Generate Content
generate_contentProduce original text from a natural-language prompt. Steer output using project context (documents, characters, style) and specify desired length.
Instructions
Generate new prose from a natural-language prompt and return the generated text, optionally steered by project context (a document, characters, or a target style) and a desired length. This creates fresh text and does not modify any document. Use enhance_content to improve existing text instead, or analyze_document to critique it. Calls an external AI model and requires OPENAI_API_KEY; without it a placeholder is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Approximate target length in words. Default 500. | |
| prompt | Yes | Natural-language instruction describing the content to generate. | |
| context | No | Optional project context to steer generation. |