render_prompt
Render a prompt by substituting variables and returning the final messages, allowing verification of template output before calling the model.
Instructions
Render a prompt by substituting variables and returning the final messages without calling the model. Use this to verify template output before a completion; run_prompt_completion is the tool that actually invokes the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | Yes | Prompt ID or slug to render | |
| variables | Yes | Variable values to substitute into the template | |
| hyperparameters | No | Override default hyperparameters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |