Inkscape File
inkscape_fileLoad, validate, convert, export, and batch-process SVG or other files through Inkscape CLI; inspect metadata and list supported formats for editing and publishing workflows.
Instructions
INKSCAPE_FILE — Load, convert, export, and validate SVG/other files via Inkscape CLI.
PORTMANTEAU RATIONALE: One tool keeps file I/O discoverable without dozens of
single-purpose tools; operation selects the CLI behavior.
Operations:
load: Read/validate path exists for editing workflows.
save: Persist changes (requires paths per server policy).
convert: Export to pdf/png/etc. (needs output_path, format).
info: Metadata and dimensions.
validate: Structural check via CLI query.
list_formats: Bounded list of supported export formats (no disk read required).
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latex | No | ||
| format | No | Target format for convert/batch_convert (e.g. pdf, png). | |
| margin | No | ||
| quality | No | Encoder quality 1-100 for the Pillow-backed formats (jpeg/webp/avif). | |
| pdf_page | No | Page to read when input_path is a PDF. | |
| operation | Yes | Must be one of the Literal values (schema-enumerated). | |
| input_path | No | Source file; may be empty for list_formats/batch_convert. | |
| output_dir | No | Destination directory for batch_convert (required). | |
| input_paths | No | Source files for batch_convert (required for that operation). | |
| output_path | No | Destination for save/convert when applicable. | |
| pdf_version | No | ||
| png_dithering | No | ||
| ignore_filters | No | ||
| png_color_mode | No | ||
| validate_structure | No | Run Inkscape's query check during load. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||