Communityコーディング&開発github.com

キャンバス

接続されたOpenClawノードのキャンバス上にHTMLを表示し、ナビゲート、評価、スクリーンショット、キャンバスホストURLのデバッグを行います。

キャンバス とは?

このスキルは、OpenClawプラグインがMac、iOS、Androidノードの画面上にHTMLコンテンツを表示するための「キャンバス」機能を提供します。キャンバスホストは設定されたルートディレクトリからファイルを配信し、Gateway HTTPポート(デフォルト18789)経由でルーティングされます。ノードブリッジがキャンバスURLを接続されたノードアプリに送信し、各ノードはWebViewでURLをレンダリングします。開発者はpresent(表示)、hide(非表示)、navigate(URL遷移)、eval(JavaScript実行)、snapshot(スクリーンショット取得)のアクションを利用でき、デバッグやUI確認が容易になります。ホスト名はgateway.bind設定に従い、ループバック、LAN IP、Tailscaleホスト名を自動選択するため、ローカルでもリモートでも柔軟に利用可能です。ノードがペアリングされている場合は、ノードスコープのcapability URLが優先されます。HTML/CSS/JSファイルを指定のルートディレクトリに配置し、`/__openclaw__/canvas/<ファイル>.html`の形式でURLを発行するだけで動作します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/canvas

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

キャンバス は何をしますか?

キャンバスを使用して、接続されたMac/iOS/AndroidノードにHTMLを表示します。

モデル

  • キャンバスホストは plugins.entries.canvas.config.host.root からファイルを配信します。
  • キャンバスルートはGateway HTTPポート(gateway.port、デフォルト 18789)上に配置されます。
  • ノードブリッジはキャンバスURLを接続されたノードアプリに送信します。
  • ノードアプリはWebViewでURLをレンダリングします。
  • ホスト名は gateway.bind に従います:ループバックの場合はローカルのみ、LANの場合はLAN IP、Tailnetの場合はTailscaleホスト、自動的に最適なルートを選択します。
  • localhost URLは同じマシン上のノードでのみ動作します。
  • ペアリングされたノードは通常、ノードスコープの pluginSurfaceUrls.canvas 機能URLを受け取ります。可能な限りこれらを優先してください。

設定

アクティブな設定ファイル:$OPENCLAW_CONFIG_PATH または ~/.openclaw/openclaw.json。

{
  "plugins": {
    "entries": {
      "canvas": {
        "config": {
          "host": {
            "enabled": true,
            "root": "~/.openclaw/canvas",
            "liveReload": true
          }
        }
      }
    }
  },
  "gateway": { "bind": "auto" }
}

アクション

  • present:キャンバスを表示します。オプションでURLを指定できます。
  • hide:キャンバスを非表示にします。
  • navigate:新しいURLを開きます。
  • eval:現在のキャンバスでJavaScriptを実行します。
  • snapshot:スクリーンショットを取得します。

ワークフロー

  1. Canvasプラグインのホストが有効になっていることを確認します。
  2. HTML/CSS/JSファイルを plugins.entries.canvas.config.host.root またはデフォルトのステートキャンバスディレクトリに配置します。
  3. ターゲットノードから到達可能なルートを使用します。
  4. ホストされたURLを提示します:/__openclaw__/canvas/<ファイル>.html。
  5. ユーザーが証明を必要とする場合は snapshot を使用します。

URLの形式

http://<gateway-host>:<gateway.port>/__openclaw__/canvas/index.html
http://<gateway-host>:<gateway.port>/__openclaw__/canvas/games/snake.html

パスマッピング:

  • /__openclaw__/canvas/index.html -> <canvas host root>/index.html
  • /__openclaw__/canvas/games/snake.html -> <canvas host root>/games/snake.html

トラブルシューティング

  • ノードがlocalhostを参照しているがリモートの場合:gateway.bind または公開URLを修正し、URLを再生成します。
  • LANノードがロードできない場合:同じネットワーク、ファイアウォール、Gatewayポート、認証/機能URLを確認します。
  • Tailnetノードがロードできない場合:Tailscaleのステータスとアドバタイズされたホストを確認します。
  • 空白ページ:URLをローカルで開き、ブラウザコンソールを確認してから、ノードのスナップショットを撮ります。
  • ライブリロードがない場合:liveReload とルート下のファイル書き込みを確認します。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

claw-score

Audit or refresh OpenClaw maturity scorecard docs from root taxonomy, maturity scores, and QA evidence artifacts without using maintainer discrawl data or committed inventory reports.

関連スキル