Inkscape Vector
inkscape_vectorEdit and convert SVG vectors via Inkscape CLI: trace images, apply boolean/path operations, generate QR/barcodes, optimize files, and render previews.
Instructions
INKSCAPE_VECTOR — Vector editing, booleans, trace, QR/barcode, path ops, previews.
PORTMANTEAU RATIONALE: Inkscape exposes many CLI actions; grouping avoids tool explosion.
Operations include: trace_image, generate_barcode_qr, apply_boolean, path_simplify, optimize_svg, scour_svg, render_preview, query_document, measure_object, export_dxf, layers_to_files, object_raise/lower, set_document_units, and others (see Literal).
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": {
"operation": "<operation>"
},
"name": "inkscape_vector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| dpi | No | Resolution for render_preview. steps: 90-degree turns for page_rotate. | |
| cols | No | ||
| rows | No | ||
| steps | No | ||
| units | No | Target unit for set_document_units (px, mm, cm, in, pt, pc). | px |
| offset | No | Grow (positive) or shrink (negative) amount for path_inset_outset. | |
| path_id | No | ||
| text_id | No | ||
| x_shift | No | ||
| y_shift | No | ||
| object_id | No | Target element — measure_object, count_nodes, path_simplify, object_raise, object_lower. | |
| operation | Yes | Subcommand; must match InkscapeVectorOperation. | |
| source_id | No | ||
| threshold | No | Simplification strength for path_simplify (1-10 passes). | |
| input_path | No | Primary document path. | |
| object_ids | No | ||
| output_dir | No | Destination directory for layers_to_files. | |
| scale_step | No | ||
| select_all | No | ||
| description | No | ||
| output_path | No | Output file when the operation writes a file. | |
| trace_scans | No | ||
| trace_stack | No | ||
| barcode_data | No | Payload for generate_barcode_qr (required). | |
| trace_smooth | No | ||
| rotation_step | No | ||
| operation_type | No | union | difference | intersection | exclusion for apply_boolean. REQUIRED for align — one or two of left|hcenter|right / top|vcenter|bottom plus an optional anchor (last|first|biggest|smallest|page|drawing|selection|pref), e.g. "top", "hcenter vcenter", "top page". REQUIRED for distribute — exactly one of hgap|left|hcenter|right|vgap|top|vcenter|bottom. | |
| trace_optimize | No | ||
| trace_speckles | No | ||
| trace_smooth_corners | No | ||
| trace_remove_background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||