cleanup_document
Remove tiny or empty objects from SVG embroidery designs to prevent thread breaks. Dry run reports removals without applying changes.
Instructions
Remove tiny/empty objects that would cause thread breaks. dry_run=True (default) only reports what would be removed.
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": {
"svg_path": "<svg_path>"
},
"name": "cleanup_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| svg_path | Yes | ||
| remove_fills | No | ||
| remove_satins | No | ||
| remove_strokes | No | ||
| output_svg_path | No | ||
| fill_threshold_mm2 | No | ||
| satin_threshold_mm | No | ||
| remove_empty_groups | No | ||
| stroke_threshold_mm | No |