Docs that describe a file
docguard_docs_for_pathIdentify which documentation describes a given project file, returning canonical doc lines, annotations, references, lifecycle status, and cached open findings for that exact path.
Instructions
Exact answer to "which documentation describes this file?": canonical doc lines that name it (with heading, anchor and section), AGENTS.md/CLAUDE.md/GEMINI.md lines, the @implements/@req IDs it declares, its @doc annotations, doc sections whose covers= includes it with their review state, the referencing docs that are not active (superseded, retired) under docs.lifecycle, and, when a guard run for this exact tree state is cached, the open finding codes of each doc under docs.openFindings. Deterministic, bounded, no model.
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": {
"path": "<path>"
},
"name": "docguard_docs_for_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project-relative file path, e.g. src/api/users.ts | |
| projectDir | No | Project to inspect: a directory inside the directories this server serves (absolute, or relative to the served directory). Defaults to the served directory. |