find_orphaned_sections
Identify sections lacking incoming links in markdown manuscripts to maintain document connectivity and improve navigation.
Instructions
Find sections with no incoming links
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_orphaned_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Path to manuscript directory (defaults to current directory) | |
| scope | No | File scope pattern |
Implementation Reference
- src/tools/WriterToolHandlers.ts:176-183 (handler)The primary handler function executing the tool logic. It calls checkLinks on WritersAid and returns a structured response identifying orphaned sections (currently placeholder).
private async findOrphanedSections(_args: Record<string, unknown>) { await this.writersAid.checkLinks({}); return { orphanedSections: [], message: "Analysis complete - check links for orphaned content", }; } - The input schema and metadata definition for the find_orphaned_sections tool.
{ name: "find_orphaned_sections", description: "Find sections with no incoming links", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" }, scope: { type: "string", description: "File scope pattern" }, }, }, }, - src/tools/WriterToolHandlers.ts:30-31 (registration)Registration of the tool handler within the central handleTool switch statement.
case "find_orphaned_sections": return this.findOrphanedSections(args);