Commit 3bb850ac added tests/test_ts_c_tools.py but the corresponding ts_c_get_skeleton function was never added to src/mcp_client.py. The test file's module-level 'from src.mcp_client import ts_c_get_skeleton, ts_c_get_code_outline' raises ImportError, which aborts Batch 9 collection in run_tests_batched.py.
Add ts_c_get_skeleton parallel to ts_cpp_get_skeleton (commit 3bb850ac also added ts_cpp_get_skeleton). Implementation is the same pattern: parse via ASTParser('c') (which is supported per Phase 2B) and delegate to parser.get_skeleton().
The C function block in mcp_client.py now mirrors the CPP block:
ts_c_get_skeleton, ts_c_get_code_outline, ts_c_get_definition, ts_c_get_signature, ts_c_update_definition
ts_cpp_get_skeleton, ts_cpp_get_code_outline, ts_cpp_get_definition, ts_cpp_get_signature, ts_cpp_update_definition
Verified: tests/test_ts_c_tools.py 2/2 pass (previously aborted Batch 9 with ImportError).
- New edit_file(path, old_string, new_string, replace_all) function
- Reads/writes with newline='' to preserve CRLF and 1-space indentation
- Returns error if old_string not found or multiple matches without replace_all
- Added to MUTATING_TOOLS for HITL approval routing
- Added to TOOL_NAMES and dispatch function
- Added MCP_TOOL_SPECS entry for AI tool declaration
- Updated agent configs (tier2, tier3, general) with edit_file mapping
Note: tier1, tier4, explore agents don't need this (edit: deny - read-only)