add_context
Add knowledge entries like code examples and best practices to the Klever VM context store for later retrieval via query_context or search_documentation.
Instructions
Add a new knowledge entry to the Klever VM context store. Use this to save code examples, best practices, security tips, or documentation that can later be retrieved via query_context or search_documentation. Returns the generated ID of the new entry.
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": {
"type": "<type>",
"content": "<content>",
"metadata": "<metadata>"
},
"name": "add_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The category of this knowledge entry. Choose the most specific type: "code_example" for Rust snippets, "best_practice" for recommended patterns, "security_tip" for vulnerability guidance, "error_pattern" for known error solutions. | |
| content | Yes | The main content body — typically Rust source code, a CLI command, or a detailed explanation. For code, include the full working snippet. | |
| metadata | Yes | Entry metadata including title, tags, and categorization. At minimum, provide a title. |