ChatGPT Search (Beta)
chatgpt_searchAsk ChatGPT a question and retrieve its parsed answer as structured JSON or CSV for brand visibility and AI search monitoring.
Instructions
Beta: success rate and response time can vary; retry failed requests.
Ask ChatGPT (chatgpt.com) a question and retrieve its parsed answer.
Returns ChatGPT's answer as structured data for a prompt. Sources are collected on a best-effort basis; set sources=true to require them for a successful response, which costs more credits.
When to use:
Seeing what ChatGPT answers for a prompt
Brand visibility or AI search monitoring on ChatGPT
When NOT to use:
Answers from Perplexity (use 'perplexity_search')
Answers from the Gemini chat app (use 'google_gemini')
Google AI Mode answers in Google Search (use 'google_ai_mode')
Args: params (ChatgptSearchParams): query (required) plus optional sources and output_format.
Returns: str: JSON (default) or CSV containing the structured AI answer.
Raises: ToolError: If the API key is missing, the rate limit is exceeded, or the request fails.
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": {
"params": "<params>"
},
"name": "chatgpt_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |