$ agent "Run tests.py and fix any errors"
→ get_files_info(".")· 2 files
→ run_python_file("tests.py")· 1 failed
→ get_file_content("calculator.py")· 24 lines
→ write_file("calculator.py")· patched divide()
→ run_python_file("tests.py")· 4 passed
✓ done — 5 tool calls, fixed tests.py