Improve a prompt
improve_promptRewrites rough or follow-up prompts into self-contained, model-ready prompts by applying research-backed prompting techniques, returning citations, assumptions, and clarifying questions.
Instructions
Rewrite a prompt so a model answers it better, using techniques from the prompting literature: LLaVA-CoT staged reasoning, System 2 Attention context distillation, conversational query rewriting, Rephrase-and-Respond, Chain-of-Verification, Step-Back, Plan-and-Solve, Least-to-Most, and more. The server cannot see the conversation, so pass the current prompt verbatim plus the earlier turns and context it depends on. Returns the improved prompt, the techniques used (with paper citations), what changed, assumptions, and clarifying questions. If backend_used is 'host', improved_prompt is a template draft: finish it by following host_instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The user's current prompt, verbatim. | |
| target | No | 'reasoning' for models with built-in thinking (Claude, o-series, R1): no visible chain-of-thought cues. 'standard' for models without it (e.g. small open VLMs): adds explicit step-by-step and LLaVA-CoT stage tags. | reasoning |
| backend | No | 'auto' uses the Claude API if credentials are available, else MCP sampling if the client supports it, else 'host' (a template draft for the calling model to finish). | auto |
| context | No | Other material the prompt depends on: files, documents, task background. | |
| history | No | Earlier conversation turns, oldest first, including previous assistant responses. | |
| has_image | No | True if the prompt will be sent with an image or video. | |
| techniques | No | Force exactly these techniques instead of automatic selection. Ids: context_distillation, self_contained_rewrite, failure_feedback, rephrase_expand, clarify, visual_grounding, step_back, plan_and_solve, least_to_most, staged_reasoning, verification, zero_shot_cot, re_reading, specificity_format | |
| refine_rounds | No | Self-Refine critique-and-revise rounds (Claude API backend only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| target | Yes | ||
| changes | Yes | ||
| profile | Yes | ||
| techniques | Yes | ||
| assumptions | Yes | ||
| backend_used | Yes | ||
| inference_tips | Yes | ||
| improved_prompt | Yes | ||
| host_instructions | No | Set only when backend_used is 'host': the improved_prompt is a template draft, and these are the steps the calling model should take to finish it. | |
| clarifying_questions | Yes |