web_draw
Author a pure SVG asset file that rejects scripts, foreignObject, and event attributes; external references require --allow-external. Reference it with web_insert_section or web_set_attr.
Instructions
Author a pure SVG asset file. Rejects scripts, foreignObject and event attributes. External references are refused unless started with --allow-external. Reference it afterwards with web_insert_section or web_set_attr.
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": {
"path": "<path>",
"svg": "<svg>",
"expected_rev": "<expected_rev>"
},
"name": "web_draw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | Complete pure SVG source. | |
| path | Yes | Safe relative .svg asset path. | |
| expected_rev | Yes | Revision returned by your most recent read. Stale revisions refuse; read again. |