Ask any AI
ai_askSend a message to a chosen AI model such as ChatGPT, Claude, Gemini, or local Ollama, and reuse a conversation ID to continue multi-turn threads.
Instructions
Send a message to a specific AI model: ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, models on Groq or OpenRouter, or a local model via Ollama/LM Studio. Use this whenever the user names an AI ('ask Gemini', 'what does Grok think'). Pass the same conversation_id to keep a multi-turn thread with that AI.
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": {
"provider": "<provider>",
"message": "<message>"
},
"name": "ai_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional paths of text/code files to share with the AI (only inside ALLOWED_FILE_DIRS). | |
| model | No | Model ID for the chosen provider, e.g. 'gpt-5.6-sol' or 'gemini-3.8-flash'. You can also write 'provider:model', e.g. 'xai:grok-4.6'. Leave empty to use that provider's default. | |
| message | Yes | The message to send. Include all needed context: the AI cannot see this chat. | |
| provider | Yes | Which AI: openai/chatgpt, anthropic/claude, gemini, xai/grok, deepseek, mistral, meta/llama, perplexity, moonshot/kimi, qwen, cohere, groq, openrouter, ollama, lmstudio. | |
| temperature | No | Creativity, 0 to 2. Lower is more focused. Some reasoning models ignore this; the bridge drops it automatically. | |
| system_prompt | No | Optional instructions for the AI's role or style. Only applied when a conversation starts. | |
| conversation_id | No | Optional thread ID. Reuse it to continue a conversation; use a new value (e.g. 'research-1') to start one. Letters, numbers, '-' and '_' only. A thread remembers which AI it is with. | |
| reasoning_effort | No | For reasoning models only: how hard the model should think. Higher is slower and more expensive. | |
| max_output_tokens | No | Upper limit on the length of ChatGPT's reply, in tokens. |