ground_prompt
Optimize a prompt by grounding it in explicit caller-provided sources such as specs or transcripts. Ensures the rewritten prompt cites specific material, preventing curator bias.
Instructions
Optimize a prompt against EXPLICIT caller-provided grounding sources (a spec, a transcript excerpt, an RFC, an internal doc, etc.). Each source is pinned at the highest priority — above project rules, above pinned instructions — and tracked individually in the trace. Use this when you want the rewrite to cite specific material rather than letting the curator decide what's relevant. Requires at least one non-empty source; will error rather than silently fall through to optimize_prompt. Sources are capped at 4000 chars each so a single large paste can't dominate the budget.
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": {
"prompt": "<prompt>",
"sources": "<sources>"
},
"name": "ground_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to optimize. | |
| sources | Yes | Caller-provided grounding sources. Must be non-empty. | |
| category | No | ||
| platform | No | ||
| mode | No | ||
| cwd | No | ||
| file_path | No | ||
| file_language | No | ||
| file_excerpt | No | ||
| session_id | No | ||
| user_locale | No | ||
| user_pinned_instructions | No | ||
| enrich_context | No | ||
| skip_intent_resolution | No | ||
| include_bundle | No |