ask_grok
Send a prompt to xAI's Grok AI and receive a response. Supports custom system prompts, temperature, max tokens, and top_p parameters.
Instructions
Ask Grok a question and get a response. Default model: grok-4.3. Supports system prompts and sampling parameters (temperature, max_tokens, top_p). Run list_models to see all available model options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The question or prompt to send to Grok | |
| system_prompt | No | Optional system prompt to set Grok's behavior and persona for this request. | |
| model | No | Chat model to use for this request. Defaults to "grok-4.3". Use list_models to see available chat models. | |
| temperature | No | Sampling temperature (0-2). Lower values make output more deterministic. Default: model-dependent. | |
| max_tokens | No | Maximum number of tokens to generate in the response. | |
| top_p | No | Nucleus sampling: only consider tokens with cumulative probability up to this value (0-1). |