Ask ChatGPT
ask_chatgptThis tool allows you to send a prompt to OpenAI's ChatGPT via ScrapingBee and get back the generated response.
Scope: one query per call. To run many queries in one pass, or to write
results to disk instead of into the conversation, use the ScrapingBee CLI —
scrapingbee <command> --input-file queries.txt --output-dir results.
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": "ask_chatgpt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Response-header label only. | |
| prompt | Yes | The prompt to send to ChatGPT. | |
| search | No | Whether to enable web search capability for the prompt. | |
| add_html | No | Whether to include the full HTML of the page in the results. | |
| country_code | No | ISO country code the request should originate from (affects web results when search is enabled). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||