improve_prompt
Improve your prompt by submitting a draft and receiving a polished, structured version with explanations and suggested follow-up questions for further refinement.
Instructions
Improve and refine a prompt using Pretty Prompt. Returns a polished prompt (flattened text plus structured sections), an explanation, and optional follow-up questions. Uses the user's prompt credits. To refine further, call again with question_answers from the follow_up_questions.
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>"
},
"name": "improve_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt text to improve | |
| category | No | Optional category (General, Image, Video, Vibe Coding, Research, Agent, System Prompt) | |
| provider | No | Optional target provider (e.g. openai, perplexity, lovable) | |
| save_to_library | No | If true, also save the improved prompt to the library | |
| question_answers | No | Map of follow-up question → selected answers for a refine pass | |
| context_snippet_ids | No | Specific context snippet IDs to include | |
| include_context_snippets | No | Include the user's saved context snippets |