render_prompt
Substitute variables into a prompt template and return the rendered messages without executing the model. Verify template output before making a completions call.
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 |