Ask Grok Bot
ask_grokSends a task to a Grok Bot webhook and waits for the completed answer. If it times out, returns a request_id so you can retrieve the result later.
Instructions
Send a task to Grok Bot and wait for the answer. Returns the answer, or a request_id with status pending if it times out so you can collect it later with get_grok_result.
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": {
"task": "<task>"
},
"name": "ask_grok"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Optional bot name to route the task to. | |
| task | Yes | The task for Grok Bot to perform. | |
| context | No | Optional extra context for the bot. | |
| wait_seconds | No | How long to wait for a result, in seconds. Default 300, max 780. |