grok_chat
Send a one-shot prompt to xAI Grok and receive its reply. Designed for stateless, single-turn queries.
Instructions
Send a one-shot prompt to xAI Grok and return its reply. Stateless — for multi-turn use grok_consult.
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": {
"prompt": "<prompt>"
},
"name": "grok_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to send to Grok. | |
| model | No | Override default Grok model (e.g. 'grok-4'). | |
| timeout | No | Per-call timeout in seconds. Defaults to 300. Raise for long grok-4 reasoning. |