mcpField
C
camofox-cli

camofox-cli

github.com/redf0x1エージェントワークフロー429176 回インストール3 日前に更新
リポジトリ

camofox-cli について

ブラウザー自動化ワークフロー向けに、検証済みの CamoFox CLI コマンドをまとめたスキルです。ページ操作、セッションと認証の管理、診断、トレース、コマンドスクリプトを扱います。

主な機能

  1. 01ブラウザータブの移動と操作
  2. 02ページのテキスト、リンク、スクリーンショット取得
  3. 03セッションの保存と復元
  4. 04Cookieと認証データの管理
  5. 05コンソールエラーとトレースの確認
  6. 06CLIコマンドスクリプトの順次実行

活用シーン

  1. 01反復的なブラウザー操作の自動化
  2. 02ページ内容とスクリーンショットの取得
  3. 03保存済みブラウザーセッションの再利用
  4. 04ブラウザーワークフローの障害調査

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/redf0x1/camofox-browser --skill camofox-cli

インストール後、Claude Code で/camofox-cliを入力して読み込まれたか確認します。

同梱ファイルreferences/command-reference.md

詳細

1. 概要

このスキルでは、カテゴリ別に整理された、検証済みの CamoFox CLI の全機能(50 個のコマンド)を説明します。

  • 機械可読な出力には --format json を使用してください
  • [tabId] を省略した場合、ほとんどのコマンドはアクティブなタブを自動的に解決します
  • セッション状態の一貫性を保つため、ワークフロー全体で --user <user> を固定してください

2. コアコマンド(5)

camofox open <url> [--user <user>] [--viewport <WxH>] [--geo <preset>]
camofox close [tabId] [--user <user>]
camofox snapshot [tabId] [--user <user>]
camofox click <ref> [tabId] [--user <user>]
camofox type <ref> <text> [tabId] [--user <user>]

3. ナビゲーションコマンド(4)

camofox navigate <url> [tabId] [--user <user>]
camofox screenshot [tabId] [--path <file>] [--output <file>] [--full-page] [--user <user>]
camofox go-back [tabId] [--user <user>]
camofox go-forward [tabId] [--user <user>]

4. コンテンツコマンド(7)

camofox get-text [tabId] [--selector <selector>] [--user <user>]
camofox get-url [tabId] [--user <user>]
camofox get-links [tabId] [--user <user>]
camofox get-tabs [--user <user>]
camofox eval <expression> [tabId] [--user <user>]
camofox wait <condition> [tabId] [--timeout <ms>] [--user <user>]
camofox search <query> [tabId] [--engine <engine>] [--user <user>]

検索エンジン:google、youtube、amazon、bing、reddit、duckduckgo、github、stackoverflow。

5. インタラクションコマンド(6)

camofox fill '<assignments>' [tabId] [--user <user>]
camofox scroll [direction] [tabId] [--amount <N>] [--user <user>]
camofox select <ref> <value> [tabId] [--user <user>]
camofox hover <ref> [tabId] [--user <user>]
camofox press <key> [tabId] [--user <user>]
camofox drag <fromRef> <toRef> [tabId] [--user <user>]

fill の割り当て形式:

[e1]="value1" [e2]="value2"

6. コンソールとエラーの取得(2)

camofox console [tabId] [--user <user>] [--type <type>] [--limit <N>] [--clear]
camofox errors [tabId] [--user <user>] [--limit <N>] [--clear]

7. トレースコマンド(5)

camofox trace start [--user <user>] [--screenshots] [--snapshots]
camofox trace stop [--user <user>] [--output <file>]
camofox trace chunk-start [--user <user>]
camofox trace chunk-stop [--user <user>] [--output <file>]
camofox trace status [--user <user>]

8. セッションコマンド(4)

camofox session save <name> [tabId] [--user <user>]
camofox session load <name> [tabId] [--user <user>]
camofox session list [--format <format>]
camofox session delete <name> [--force]

9. ダウンロード/Cookie コマンド(4)

camofox cookie export [tabId] [--path <file>] [--user <user>]
camofox cookie import <file> [tabId] [--user <user>]
camofox download [url] [--path <dir>] [--user <user>]
camofox downloads [--user <user>] [--format <format>]

10. 認証コマンド(5)

camofox auth save <profile-name> [--url <url>] [--notes <notes>]
camofox auth load <profile-name> [--inject [tabId]] [--username-ref <ref>] [--password-ref <ref>] [--user <user>]
camofox auth list [--format <format>]
camofox auth delete <profile-name>
camofox auth change-password <profile-name>

11. サーバーコマンド(3)

camofox server start [--port <port>] [--background] [--idle-timeout <minutes>]
camofox server stop
camofox server status [--format <format>]

12. 高度なコマンド(4)

camofox annotate [tabId] [--user <user>] [--output <file>] [--format <format>]
camofox health [--format <format>]
camofox version [--format <format>]
camofox info [--format <format>]

13. パイプラインコマンド(1)

camofox run <script-file> [--continue-on-error]

run は、CLI コマンドスクリプトを順次実行します(ファイルパス、または標準入力を表す - を指定します)。JavaScript/TypeScript のソースファイルは実行しません。

14. グローバルオプション

--user <user>
--port <port>
--format <format>    # json|text|plain
--local              # reserved for v2
-V, --version
-h, --help

15. 全コマンド一覧(50)

  1. open
  2. close
  3. snapshot
  4. click
  5. type
  6. navigate
  7. screenshot
  8. go-back
  9. go-forward
  10. get-text
  11. get-url
  12. get-links
  13. get-tabs
  14. eval
  15. wait
  16. search
  17. fill
  18. scroll
  19. select
  20. hover
  21. press
  22. drag
  23. console
  24. errors
  25. trace start
  26. trace stop
  27. trace chunk-start
  28. trace chunk-stop
  29. trace status
  30. session save
  31. session load
  32. session list
  33. session delete
  34. cookie export
  35. cookie import
  36. download
  37. downloads
  38. auth save
  39. auth load
  40. auth list
  41. auth delete
  42. auth change-password
  43. server start
  44. server stop
  45. server status
  46. annotate
  47. health
  48. version
  49. info
  50. run

コメント