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.
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. |