agent_ask
Give a running agent a task. Returns a turn at once and does not wait for it: poll agent_get_turn until its state is final. Resumes a paused agent first, so it can take seconds. mode decides what the agent may do alone: supervised asks before anything, guided before risky actions, autonomous never. A guided or supervised turn can stop on an approval, see agent_list_approvals.
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": {
"sandbox_id": "<sandbox_id>",
"message": "<message>"
},
"name": "agent_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | branch, tag or SHA to clone with repo | |
| mode | No | supervised, guided or autonomous; default the agent's own | |
| repo | No | with thread new: a git URL the chat works in, cloned on its own branch with the sandbox's GIT_TOKEN | |
| thread | No | latest (default), new, or a thread id | |
| message | Yes | what to do | |
| priority | No | jump the queue | |
| sandbox_id | Yes | sandbox id of an agent template |