設定仕様
設定ファイル
| ファイル | 用途 | Git管理 |
|---|---|---|
config.toml | デフォルト設定 | ✅ |
config.local.toml | ユーザー個別設定(上書き) | ❌ |
config.local.toml の値が config.toml を上書きする。
設定項目
[browser]
toml
[browser]
# ブラウザ自動化エンジン
# "agent-browser" | "playwright" | "auto"
# auto: agent-browser優先、未インストールならPlaywright
engine = "agent-browser"
# ヘッドレスモード
headless = true| キー | 型 | デフォルト | 説明 |
|---|---|---|---|
engine | string | "agent-browser" | 使用するエンジン |
headless | bool | true | ヘッドレスモード |
[evidence]
toml
[evidence]
# エビデンス自動取得
auto_capture = true
# スクリーンショットのビューポート
viewport_width = 1400
viewport_height = 900
# 出力ディレクトリ
output_dir = "/tmp/test-captures"| キー | 型 | デフォルト | 説明 |
|---|---|---|---|
auto_capture | bool | true | エビデンス自動取得 |
viewport_width | int | 1400 | ビューポート幅 |
viewport_height | int | 900 | ビューポート高さ |
output_dir | string | "/tmp/test-captures" | 出力先 |
[fallback]
toml
[fallback]
# agent-browser 未インストール時のPlaywrightフォールバック
playwright_fallback = true| キー | 型 | デフォルト | 説明 |
|---|---|---|---|
playwright_fallback | bool | true | Playwrightへのフォールバック許可 |
環境変数
agent-browser 自体の設定は環境変数でも制御可能:
| 環境変数 | 説明 |
|---|---|
AGENT_BROWSER_DAEMON=1 | デーモンモードで実行 |
AGENT_BROWSER_ENCRYPTION_KEY | 認証情報暗号化キー |
AGENT_BROWSER_ACTION_POLICY | アクションポリシーJSON |
AGENT_BROWSER_PROVIDER | クラウドブラウザプロバイダ |
dev-workflow との設定統合
dev-workflow の config.toml に agent-browser 関連の設定を追加:
toml
# dev-workflow config.toml への追加項目
[evidence]
auto_capture = true
viewport_width = 1400
viewport_height = 900
# 以下を追加
browser_engine = "agent-browser" # agent-browser / playwright / auto
playwright_fallback = true # フォールバック許可