run_affected
Run only tests impacted by git changes. Analyzes diffs against a base ref to find and execute related test files.
Instructions
Run only tests affected by git changes. Analyzes diff to find related test files.
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": {
"projectDir": "<projectDir>"
},
"name": "run_affected"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Git ref to diff against (e.g., "main", "HEAD~3"). Defaults to unstaged/staged changes. | |
| timeout | No | Time budget in milliseconds | |
| coverage | No | Enable coverage collection | |
| projectDir | Yes | Absolute path to the project directory |