document_create
Create a new SVG document from custom dimensions or a named page preset without overwriting existing files for headless Inkscape workflows.
Instructions
Creates a new SVG document from bounded custom dimensions or a named page preset. Existing outputs are never overwritten.
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": {
"outputPath": "<outputPath>",
"workspaceId": "<workspaceId>"
},
"name": "document_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| pages | No | ||
| width | No | ||
| height | No | ||
| preset | No | ||
| outputPath | Yes | ||
| workspaceId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes | ||
| documentPath | Yes |