read_markdown
Extract content and digest from markdown files to analyze FedRAMP documentation, compliance requirements, and security controls.
Instructions
Read a markdown file and return its contents and digest.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Implementation Reference
- src/tools/read_markdown.ts:22-35 (handler)Execute function that implements the core logic of the read_markdown tool by retrieving the markdown document and returning its metadata and content.execute: async (input) => { const doc = getMarkdownDoc(input.path); if (!doc) { throw createError({ code: "NOT_FOUND", message: `Markdown file not indexed: ${input.path}`, }); } return { path: doc.path, sha256: doc.sha256, content: doc.content, }; },
- src/tools/read_markdown.ts:7-9 (schema)Zod input schema defining the 'path' parameter for the read_markdown tool.const schema = z.object({ path: z.string(), });
- src/tools/register.ts:19-19 (registration)Import statement for the readMarkdownTool.import { readMarkdownTool } from "./read_markdown.js";
- src/tools/register.ts:42-42 (registration)readMarkdownTool included in the array passed to registerToolDefs for MCP server registration.readMarkdownTool,