read_file
Access file contents through a security gateway with policy enforcement, approval gates, and verifiable decision receipts for controlled data retrieval.
Instructions
Read the contents of a file
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to read |
Implementation Reference
- src/demo-server.ts:114-116 (handler)The implementation of the read_file tool handler in the demo MCP server.
case 'read_file': resultText = `[demo] Read file: ${args.path || '/example.txt'}\nContents: Hello from protect-mcp demo server!`; break; - src/demo-server.ts:28-36 (registration)The definition/registration of the read_file tool in the demo MCP server.
{ name: 'read_file', description: 'Read the contents of a file', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'File path to read' } }, required: ['path'], }, },