Skip to content

設定仕様

設定ファイル

ファイル用途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
キーデフォルト説明
enginestring"agent-browser"使用するエンジン
headlessbooltrueヘッドレスモード

[evidence]

toml
[evidence]
# エビデンス自動取得
auto_capture = true

# スクリーンショットのビューポート
viewport_width = 1400
viewport_height = 900

# 出力ディレクトリ
output_dir = "/tmp/test-captures"
キーデフォルト説明
auto_capturebooltrueエビデンス自動取得
viewport_widthint1400ビューポート幅
viewport_heightint900ビューポート高さ
output_dirstring"/tmp/test-captures"出力先

[fallback]

toml
[fallback]
# agent-browser 未インストール時のPlaywrightフォールバック
playwright_fallback = true
キーデフォルト説明
playwright_fallbackbooltruePlaywrightへのフォールバック許可

環境変数

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          # フォールバック許可