trove_add_snippet
Save a plaintext snippet as Markdown with frontmatter under a domain/subpath folder and rebuild the index for immediate retrieval.
Instructions
Save a plaintext snippet as Markdown with frontmatter under snippets///.md, then rebuild the index. Provide body_markdown already segmented (prose outside fences, code in fenced blocks).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Main code language: python/html/bash/text… | |
| tags | No | Cross-cutting tags. | |
| title | Yes | Human-readable title; slug derived from it. | |
| domain | Yes | Primary domain folder, e.g. 'django'. | |
| project | No | Optional generic project name. | |
| subpath | No | Optional sub-folder under the domain. | |
| overwrite | No | Replace an existing file (default false). | |
| body_markdown | Yes | Note body below the H1 title. |