create_document_from_spec
Generate a HWPX document from a DocumentSpec v1 payload, preserving original formatting while applying AI-generated values.
Instructions
Create an HWPX from a DocumentSpec v1 payload (validated template union; delegate).
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": {
"spec": "<spec>",
"out_path": "<out_path>"
},
"name": "create_document_from_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| out_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |