graph_add_doc_pointer
Link a knowledge graph entity to a Memory Bank file (and optional heading) to enable targeted context retrieval and accurate file excerpts for queries.
Instructions
Link a knowledge graph entity to a specific Memory Bank file (and optional heading). This helps get_targeted_context find the right file excerpts for a query. The file path is validated before saving.
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": {
"entityNameOrId": "<entityNameOrId>",
"docPath": "<docPath>"
},
"name": "graph_add_doc_pointer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityNameOrId | Yes | Name or ID of the KG entity to link | |
| docPath | Yes | Memory Bank root file path (e.g., "decision-log.md", "system-patterns.md") | |
| heading | No | Optional heading within the file to point to | |
| note | No | Optional note to include in the observation |