execute_prompt
Send a single-turn prompt to any available model from providers like OpenAI, Ollama, or OpenRouter and retrieve its response. Optionally attach local text or image files for context.
Instructions
Execute a single-turn prompt against a model and return its response.
provider and model_id must match an entry from list_models. attachments
is an optional list of local file paths (text or images) included as
context with 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": {
"provider": "<provider>",
"model_id": "<model_id>",
"prompt": "<prompt>"
},
"name": "execute_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model_id | Yes | ||
| provider | Yes | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |