save_snippet
Stores a code snippet to a local snippets library as a file, named by the user, with language and optional description.
Instructions
Save a code snippet to your snippets library. The snippet will be saved as a file in ~/snippets/
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": {
"name": "<name>",
"language": "<language>",
"code": "<code>"
},
"name": "save_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to save | |
| name | Yes | Name for the snippet (will be used as filename) | |
| language | Yes | Programming language (e.g., javascript, python, java) | |
| description | No | Optional description of what this snippet does |