grok_query
Sends your prompt to Grok through your logged-in x.com session and returns the full answer; optionally starts a fresh chat to avoid continuing the current context.
Instructions
Ask Grok (x.com/i/grok, the user's logged-in X session) and return the full answer.
Args:
prompt: The question or task for Grok.
new_chat: Start a fresh Grok conversation first (otherwise the current chat context continues).
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_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| new_chat | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |