Inkscape Gradient
inkscape_gradientEdit SVG gradients in a file by adding, removing, or recoloring stops and converting linear gradients to radial or radial to linear.
Instructions
Add/remove/recolor gradient stops; convert linear↔radial (headless — edits a file).
Preferred over hand-writing gradient SVG for file/headless work. NOT a live tool:
it reads/writes a file, so for gradients on an OPEN document use inkscape_live
edit_xml instead (avoids a reopen).
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>",
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "inkscape_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| input_path | Yes | ||
| stop_color | No | ||
| gradient_id | No | ||
| output_path | Yes | ||
| stop_offset | No | ||
| stop_opacity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||