select_tests
Call before running tests after code changes to get the command for only the tests affected by committed and uncommitted changes, with a reason per test, instead of the full suite.
Instructions
Call this before running tests after changing code. It returns the command that runs only the tests your change (committed and uncommitted) can affect, with a reason per test. Run that command instead of the full test suite. If mode is "full", run the project's full test suite; if the command is empty in selective mode, no tests are affected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch or ref the change is diffed against (default: SIFTWISE_BASE_REF, else the branch origin/HEAD points to, else main). | |
| max_tests | No | List at most this many tests (the command still runs all of them). | |
| repo_path | No | Absolute path of the repository. Only needed when siftwise says it isn't running in a git repository (default: SIFTWISE_REPO_PATH, CLAUDE_PROJECT_DIR, the client's workspace roots, else the server's working directory). | |
| include_uncommitted | No | Include staged, unstaged and untracked changes in the change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||