openai_safe_api_request
Send safe JSON REST requests to approved OpenAI model and inference endpoints only, with no destructive methods, to query models or run text, vision, image, audio, embedding, moderation, and realtime tasks.
Instructions
Advanced JSON REST call restricted to approved model and inference endpoints; no destructive methods.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "openai_safe_api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| method | Yes | ||
| body_json | No | ||
| query_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||