chatgpt
Send prompts to ChatGPT and get replies with a conversation ID to continue multi-turn chats, list prior conversations, attach images, or enable web search. Runs in the background without an API key.
Instructions
Ask ChatGPT a question (runs in the background through the Codex CLI signed in with the user's ChatGPT plan; no API cost, does not touch the screen). Operations: 'ask' sends a prompt and returns ChatGPT's reply plus a conversation_id you can pass back to continue the same conversation; 'get_conversations' lists conversations started through this tool. ChatGPT here has no access to files, email, or other apps; include any text it needs in the prompt.
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": {
"operation": "<operation>"
},
"name": "chatgpt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model (default gpt-6.2-sol) | |
| images | No | Optional local image file paths to attach | |
| prompt | No | The prompt to send to ChatGPT (required for ask) | |
| operation | Yes | 'ask' or 'get_conversations' | |
| web_search | No | Let ChatGPT search the web for this answer (default false) | |
| conversation_id | No | Optional conversation_id from an earlier ask, to continue that conversation | |
| timeout_seconds | No | Max seconds to wait (default 600) | |
| reasoning_effort | No | Reasoning effort (default medium) |