(self)
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected