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

Method parameters

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

Source from the content-addressed store, hash-verified

234
235 @property
236 def parameters(self) -> dict[str, Any]:
237 return {
238 "type": "object",
239 "properties": {
240 "path": {
241 "type": "string",
242 "description": "Absolute or relative path to the file",
243 },
244 "old_str": {
245 "type": "string",
246 "description": "Exact string to find and replace (must be unique in file)",
247 },
248 "new_str": {
249 "type": "string",
250 "description": "Replacement string (use for refactoring, renaming, etc.)",
251 },
252 },
253 "required": ["path", "old_str", "new_str"],
254 }
255
256 async def execute(self, path: str, old_str: str, new_str: str) -> ToolResult:
257 """Execute edit file."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected