chat_ask
Send a prompt through a bound browser to a supported AI provider and wait for the assistant reply, with options for model, files, tools, and captcha handling.
Instructions
Send a prompt (new or existing chat) via the bound browser and wait for the assistant reply. Prefer over chats_create+chats_send when you need the reply; use wait:false or jobs_enqueue kind=ask for non-blocking. Supports model|mode|toggles|tools|files|onCaptcha|ensureTab. Captcha is never auto-solved; allow_agent is operator-opt-in in the client prompt. Requires browsers_bind.
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": {
"platform": "<platform>",
"prompt": "<prompt>"
},
"name": "chat_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Provider mode/style id when applicable | |
| wait | No | Default true; false returns job_id immediately | |
| files | No | Local files to attach to the prompt | |
| model | No | Provider model id when the UI exposes a model picker | |
| title | No | Optional title when creating a new chat | |
| tools | No | Provider tool/plugin ids to enable | |
| chatId | No | Existing chat id; omit to create/continue per platform defaults | |
| prompt | Yes | User prompt to send | |
| toggles | No | Provider UI toggle ids to enable | |
| platform | Yes | Provider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax | |
| browserId | No | Override bound browserId for this call only | |
| ensureTab | No | If true, tabs_ensure before the mutate when needed (default false) | |
| onCaptcha | No | Captcha policy (default stop). Captcha is never auto-solved. stop=error immediately; wait_human=poll host_state until cleared; allow_agent=return structured challenge and only permit UI action when the operator opted in via the client prompt | |
| timeout_s | No | Max seconds to wait for the assistant reply (10-600; kimi/zai/minimax may need >300) |