ワンクリックで
glimpse-open
Persistent Glimpse window. Use for long-lived UI, dashboard, inspector, multi-step form, shell event loop, update/send/wait.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Persistent Glimpse window. Use for long-lived UI, dashboard, inspector, multi-step form, shell event loop, update/send/wait.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Set up or operate npm Trusted Publishing with OIDC and staged publishing using danielroe/uppt. Use when configuring npm release workflows, replacing NPM_TOKEN, creating first placeholder packages, running npm stage publish, or approving staged npm releases.
One-shot Glimpse dialog. Use for confirm, choice, small form, text input, approval. Opens, returns JSON result, closes.
| name | glimpse-open |
| description | Persistent Glimpse window. Use for long-lived UI, dashboard, inspector, multi-step form, shell event loop, update/send/wait. |
glimpse open = persistent window. Returns windowId. Later commands use -w <windowId-or-name>.
set-html, send, navigate, eval.wait, read, peek, events.One-shot input? Use glimpse-prompt skill.
open_json=$(glimpse open --name my-tool --replace --width 420 --height 320 --title "My Tool" --html '<h1>Hello</h1>')
window_id=$(printf '%s' "$open_json" | sed -n 's/.*"windowId":"\([^"]*\)".*/\1/p')
Use --name = stable human handle. Use --replace during dev -> avoid name conflict.
Local/inline HTML gets bridge automatically. Page sends JSON-serializable events:
<button id="save">Save</button>
<script>
document.querySelector('#save').addEventListener('click', () => {
window.glimpse?.send?.({ type: 'form.saved', value: 'example' });
});
</script>
Wait unfiltered if loop must also detect close:
while true; do
event_json=$(glimpse wait -w "$window_id")
if [[ "$event_json" == *'"type":"window.closed"'* ]]; then
break
fi
if [[ "$event_json" == *'"type":"form.saved"'* ]]; then
echo "$event_json"
fi
done
wait consumes one queued event. read = non-blocking consume. peek/events = inspect queued events, no consume.
Send structured messages:
glimpse send -w "$window_id" --type app.update --data '{"status":"Working"}'
glimpse send -w "$window_id" --type app.log --text "Finished step 1"
Page handles via bridge listener API if available. No listener? Use explicit local eval.
glimpse set-html -w "$window_id" --html '<h1>Updated</h1>'
glimpse navigate -w "$window_id" --url http://localhost:3000
glimpse eval -w "$window_id" 'document.body.dataset.ready = "true"'
glimpse close -w "$window_id"
Remote URL: add --allow-remote. Remote page needs CLI bridge? add --allow-bridge only then.
{ type: 'counter.changed', action, count }.type string.window.*, html.*, glimpse.*.