Tools · Planning and checking

build_prompt

Read-only

Build 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 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

NameTypeDescription
goal*stringPrimary responsibility of the prompt
constraintsarrayHard constraints
stylestringTone and style guidance

* required

Plan the work, weigh options, and check results before answering.