trace_reference_chain
Track how concepts connect across linked documents in your manuscript to maintain consistency and verify logical flow.
Instructions
Follow concept through linked documents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Path to manuscript directory (defaults to current directory) | |
| start_file | Yes | Starting file | |
| end_file | Yes | Target file | |
| concept | No | Concept to track |
Implementation Reference
- src/tools/WriterToolHandlers.ts:237-249 (handler)The primary handler function that implements the 'trace_reference_chain' tool logic. It extracts arguments (start_file, end_file, concept) and returns a structured response with a mock chain analysis.private async traceReferenceChain(args: Record<string, unknown>) { const startFile = args.start_file as string; const endFile = args.end_file as string; const concept = args.concept as string | undefined; return { startFile, endFile, concept, chain: [], message: "Reference chain analysis", }; }
- The JSON schema defining the input parameters and structure for the 'trace_reference_chain' tool.{ name: "trace_reference_chain", description: "Follow concept through linked documents", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" }, start_file: { type: "string", description: "Starting file" }, end_file: { type: "string", description: "Target file" }, concept: { type: "string", description: "Concept to track" }, }, required: ["start_file", "end_file"], },
- src/tools/WriterToolHandlers.ts:42-43 (registration)The dispatch case in the central handleTool method that routes calls to the specific traceReferenceChain handler.case "trace_reference_chain": return this.traceReferenceChain(args);