Tools · Planning and checking
build_prompt
Read-onlyBuild or refine a system prompt from goals, constraints, and style instructions.
When to use: Use this to generate or refine a system prompt for a downstream agent, role, or workflow.
Example
Run for real by scripts/tool-examples.py in a small demo project, with Haiku 5.5 where the tool calls a model. The output is exactly what the tool returned.
The call
{
"tool": "build_prompt",
"arguments": {
"goal": "Summarise a support ticket for an engineer",
"constraints": [
"three bullets",
"keep error codes"
],
"style": "concise"
}
}Real output
You are responsible for: Summarise a support ticket for an engineer Style: concise Constraints: - three bullets - keep error codes
Parameters
| Name | Type | Description |
|---|---|---|
| goal* | string | Primary responsibility of the prompt |
| constraints | array | Hard constraints |
| style | string | Tone and style guidance |
* required
More in Planning and checking
Plan the work, weigh options, and check results before answering.