setup-watch-and-build
Automate Bazel builds and tests on file changes with Nativelink by configuring watch paths, exclusions, debounce timing, and optional iBazel intelligent watching.
Instructions
Set up automatic Bazel builds and tests on file changes with Nativelink
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "setup-watch-and-build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | What to run on file changes (default: both) | |
| targets | No | Bazel targets to build/test (default: //...) | |
| useIbazel | No | Use iBazel for intelligent watching (recommended) | |
| debounceMs | No | Milliseconds to wait before rebuilding (100-10000, default: 1000) | |
| watchPaths | No | Paths/patterns to watch for changes | |
| excludePaths | No | Paths/patterns to exclude from watching |