update_svg
Update the SVG document for your Rapport canvas; it validates security and integrity before saving and returns detailed feedback.
Instructions
Update the SVG document for your Rapport canvas. The SVG will be validated for security (no scripts, event handlers, or malicious content) and integrity before being saved. Returns detailed feedback about the update including element counts and any warnings. Automatically updates your canvas using your authenticated user account.
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": {
"svg_document": "<svg_document>"
},
"name": "update_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg_document | Yes | The complete, valid SVG document as a string. Must include <svg> wrapper with xmlns and viewBox attributes. All elements must have unique IDs and appropriate data-type attributes. |