Run a prompt
run_promptRun a deployed prompt once with values for its {{variables}} and return the answer. It costs money: call it first without approved to get the cost, and with approved: true only after the person says yes.
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_id": "<prompt_id>"
},
"name": "run_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | A value for each {{variable}} (get_prompt lists them). | |
| approved | No | ||
| prompt_id | Yes |