run_agent
Run a single subagent task and wait for completion, validating the provider, model, effort, and permissions you specify. Supports read-only or workspace-write limits and conversation continuation.
Instructions
子を1件実行し完了を待つ。permission省略はfull-access(信頼する子向け・OSユーザー権限の範囲)。制限はread-only/workspace-write(実行先が対応する場合)。このOSにbrokeredは無い。指定モデル・Effort・権限を検証する
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"model": "<model>",
"task": "<task>"
},
"name": "run_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| role | No | ||
| task | Yes | ||
| files | No | ||
| model | Yes | 必須。許可済みの取得済みモデルID | |
| effort | No | Effort対応モデルでは必須。対応・許可済みの値のみ | |
| context | No | ||
| provider | Yes | プロバイダーID | |
| permission | No | 省略時full-access(OSユーザー権限の範囲で標準編集・シェル)。read-only/workspace-writeは既存のCLI標準制限。brokeredではread-only/workspace-writeの明示が必須 | |
| timeout_ms | No | ||
| json_schema | No | ||
| conversation_id | No | 同じサーバーの完了した会話を継続するID | |
| include_details | No | 同期結果に使用量・実行メタデータを含める。既定false。非同期結果はget_agentで指定 | |
| notify_progress | No | 同期実行の進捗通知を送る。既定false。バックグラウンド実行では通知しない | |
| output_instructions | No |