generate_script
Generate, lint, and repair a short-drama script from a topic through an OpenAI-compatible API, returning the script and lint report.
Instructions
Optional end-to-end generator using an OpenAI-compatible API (requires OPENAI_API_KEY or DRAMA_FORGE_API_KEY). Automatically generates, lints, repairs, and returns the script + lint report.
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": {
"topic": "<topic>"
},
"name": "generate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| topic | Yes | ||
| target_tool | No | seedance | |
| aspect_ratio | No | ||
| duration_sec | No | ||
| extra_requirements | No |