Image & Design
Inkscape CLI
SVG creation, vector editing and multi-format export
✓ 202 tests passed
Install
$ pip install cli-anything-inkscape
About
Create and manipulate SVG files programmatically. Add shapes, text, gradients and transforms. Export to PNG, PDF or other formats. Automate vector artwork pipelines without a GUI.
Requirements
Inkscape (optional, falls back to svgwrite)
Command Reference
| Command | Arguments | Description |
|---|---|---|
detect |
Check Inkscape / svgwrite availability | |
create |
--output OUT --width W --height H |
Create new SVG canvas |
export |
SVG_FILE --format png|pdf|eps --output OUT |
Export SVG to other format |
add-text |
SVG_FILE --text TEXT --x X --y Y --size S |
Add text element |
add-rect |
SVG_FILE --x X --y Y --w W --h H --fill COLOR |
Add rectangle |
info |
SVG_FILE |
Get SVG metadata and element count |
Usage Examples
# Install
$ pip install cli-anything-inkscape
# Health check
$ inkscape-cli detect
# Get capabilities schema (Agent-ready, no token needed)
$ inkscape-cli schema
# Run with JSON output (for AI Agent integration)
$ inkscape-cli --json detect
# Example JSON response:
{"width":"800","height":"600","elements":12,"viewBox":"0 0 800 600"}
Agent Integration
# Python — call from AI Agent
import subprocess, json
result = subprocess.run(
["inkscape-cli", "--json", "detect"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
print(data)
# Discover all commands without credentials:
schema = subprocess.run(
["inkscape-cli", "schema"],
capture_output=True, text=True
)
capabilities = json.loads(schema.stdout)