analyze_api_surface_mutation
Compare a file against its HEAD version to classify changes as breaking API changes or internal refactors, answering whether a PR is a breaking change or safe refactor.
Instructions
Compares a file against its HEAD version and classifies the change as breaking_api_change (exported function signature changed, parameter removed/added, interface field removed) or internal_refactor (only implementation body changed). Use to answer: is this PR a breaking change or a safe refactor?
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_root": "<project_root>",
"file_path": "<file_path>"
},
"name": "analyze_api_surface_mutation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the changed file (absolute or relative to project_root) | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |