bridge_chat
Send prompts to built-in or custom AI coding agents through headless CLI or live desktop channels, then read back replies for automated coding workflows.
Instructions
Converse with any built-in or custom AI coding agent via user-selectable channel: channel='cli' (headless CLI execution) or channel='desktop' (live visible dialogue inside the macOS/Windows desktop client window via Computer-Use v2.1 + lossless session readback) or channel='auto'.
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": {
"agent": "<agent>",
"prompt": "<prompt>"
},
"name": "bridge_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working project directory (required for CLI channel). | |
| mode | No | workspace-write | |
| agent | Yes | ||
| model | No | ||
| prompt | Yes | ||
| channel | No | Choose 'cli' (headless CLI), 'desktop' (live inside macOS/Windows client UI), or 'auto' (uses saved user preference). | auto |
| async_mode | No | ||
| extra_dirs | No | ||
| session_id | No | ||
| timeout_sec | No | ||
| wait_for_reply | No | For channel='desktop', wait and read back the client's full reply. | |
| capture_screenshot | No | For channel='desktop', save a verification screenshot of the client window. | |
| enable_computer_use | No |