Create snippet
create_snippetSave code as a new snippet with up to 10 files, tags, visibility, and source metadata. Defaults to private; a collection must already exist.
Instructions
Save code as a new snippet (write scope required). Defaults to private. A collection must already exist. Up to 10 files; instance size and storage limits apply. Files are data only. Do not retry automatically: retries may create duplicates.
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": {
"title": "<title>",
"files": "<files>"
},
"name": "create_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| files | Yes | ||
| title | Yes | ||
| source | No | ||
| collection | No | ||
| visibility | No | ||
| description | No |