Write curated context to a workspace
rag_writeEmbed markdown documents into an AnythingLLM workspace with automatic vectorization. Overwrite existing entries by title to keep RAG context current and avoid stale duplicates.
Instructions
Embed a curated markdown doc into a workspace (raw-text + auto-embed). If overwrite=true (default), removes any existing embedding with the same title first to avoid stale duplicates.
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": {
"slug": "<slug>",
"title": "<title>",
"content": "<content>"
},
"name": "rag_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Workspace slug (from rag_find/rag_create_workspace) | |
| title | Yes | Canonical doc name, e.g. 'architecture.md' | |
| content | Yes | Markdown content | |
| overwrite | No |