Fill a prompt
fill_promptFill a ContexteTech prompt template and return the ready-to-send text, nothing else. Use it when the user wants a prompt applied to their own case; call load_resource first if you need the template or the exact variable names. 'variables' maps each {{name}} of the template to its text value; extra keys are ignored. Fails with an error if the code is unknown, if the resource is not a prompt, or if a template variable is missing (the error lists the missing names).
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": {
"code": "<code>",
"variables": "<variables>"
},
"name": "fill_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Short code of the prompt | |
| variables | Yes | Values for each {{variable}} |