cortex_add_snippet
Save a code snippet to your library by providing title, code, language, and tags. Organize and reuse code snippets efficiently.
Instructions
Save a code snippet to library
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>",
"code": "<code>"
},
"name": "cortex_add_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Snippet title | |
| code | Yes | Code content | |
| language | No | Programming language | |
| tags | No | Tags (comma-separated) |