Generate text
generate_textGenerate text responses by sending prompts to OpenAI models, with support for image input, web search, and instructions.
Instructions
Send a prompt to an OpenAI model and return its text reply. Pass images to ask a vision-capable model about them
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>",
"model": "<model>"
},
"name": "generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | OpenAI model to use for text generation. Must support image input if images are provided | |
| images | No | Images to include with the prompt, each as an http(s) URL or a file path on this server's filesystem (PNG, JPEG, WEBP, or GIF) | |
| prompt | Yes | The input text to send to the model | |
| webSearch | No | Let the model search the web. Cited pages are listed under Sources in the reply | |
| instructions | No | Optional high-level instructions to steer the model's behavior |