grok_codex_chat
Send prompts to Grok AI and receive chat responses, with configurable system instructions, model, temperature, and token limits.
Instructions
Chat with Grok. Prefers SuperGrok OAuth; falls back to XAI_API_KEY.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "grok_codex_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | No | ||
| system | No | ||
| messages | No | ||
| max_tokens | No | ||
| temperature | No | ||
| timeout_sec | No |