(self)
| 86 | |
| 87 | @property |
| 88 | def parameters(self) -> dict[str, Any]: |
| 89 | return { |
| 90 | "type": "object", |
| 91 | "properties": { |
| 92 | "path": { |
| 93 | "type": "string", |
| 94 | "description": "Absolute or relative path to the file", |
| 95 | }, |
| 96 | "offset": { |
| 97 | "type": "integer", |
| 98 | "description": "Starting line number (1-indexed). Use for large files to read from specific line", |
| 99 | }, |
| 100 | "limit": { |
| 101 | "type": "integer", |
| 102 | "description": "Number of lines to read. Use with offset for large files to read in chunks", |
| 103 | }, |
| 104 | }, |
| 105 | "required": ["path"], |
| 106 | } |
| 107 | |
| 108 | async def execute(self, path: str, offset: int | None = None, limit: int | None = None) -> ToolResult: |
| 109 | """Execute read file.""" |
nothing calls this directly
no outgoing calls
no test coverage detected