MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / parameters

Method parameters

mini_agent/tools/file_tools.py:88–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected