Update snippet
update_snippetReplace a live snippet's title and file list to revise code while preserving omitted settings and recording the edit in history.
Instructions
Replace the title and entire file list of your live snippet (write scope required). Read it first to keep files you still need. Omitted description, visibility, collection, tags and source are preserved; explicit null clears collection/source. Link, expiry, password and burn setting remain unchanged. Records an edit in history.
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": {
"id": "<id>",
"title": "<title>",
"files": "<files>"
},
"name": "update_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | No | ||
| files | Yes | ||
| title | Yes | ||
| source | No | ||
| collection | No | ||
| visibility | No | ||
| description | No |