Write a prompt with the local language model
enhance_promptTurn a short idea in any language into a detailed English prompt for image generation, editing, or video targets. Add an optional image reference for image-based targets.
Instructions
Turns a short idea (any language) into a detailed English prompt for a target: "Generate image", "Edit image", "Text to video (LTX)", "Image to video (LTX)" or "Wan camera move". Optional image (gallery id or path) for image-based targets. large=true uses Qwen 3.5 9B instead of Gemma 4 E2B. Takes 1 to 4 seconds. You may also write prompts yourself; this is a helper.
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": {
"idea": "<idea>"
},
"name": "enhance_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idea | Yes | ||
| image | No | ||
| large | No | ||
| target | No | Generate image |