update_snippet_code
Save full source code to a snippet's draft, replacing the current draft code.
Instructions
Save source code to a snippet's draft. Overwrites the current draft code.
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": {
"slug": "<slug>",
"code": "<code>"
},
"name": "update_snippet_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Full source code to save to the draft. | |
| slug | Yes | The snippet slug. |