save_document
Store documents as nodes in the knowledge graph to persist architecture decisions, incident reports, and specifications while linking them to related entities.
Instructions
Store a document or artifact as a node in the knowledge graph.
Use this for longer-form content that should be persisted:
ADRs (Architecture Decision Records)
Postmortems and incident reports
Specifications and design documents
Session notes and artifacts
The document becomes a node with its content stored. Use relates_to to link it to relevant entities in the graph.
Example: save_document(title="ADR: Federation via thick client", content="## Context\n...", doc_type="adr", relates_to=["Grafema", "RFDB"])
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>",
"content": "<content>"
},
"name": "save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title (becomes the node name) | |
| content | Yes | Full document content (markdown supported) | |
| doc_type | No | Document type (default: "note") | |
| relates_to | No | Node IDs or names of related entities to link to |