Use the --custom-tools-config flag to enable tools. You can provide a path to a single YAML file or a directory containing multiple YAML files.
Running from a Local Binary
Pass the path to your local tools directory:
./kubectl-ai --custom-tools-config=<path-to-tools-directory> "your prompt here"
Running with Docker Image
Using Built-in Tools
To use the default tool configurations baked into the image, point to the internal path:
docker run --rm -it your-kubectl-ai-image:latest \
--custom-tools-config=/etc/kubectl-ai/tools \
"list all pull requests on GitHub"
Using a Local Tools Directory
To use custom tools from your host machine, mount the directory into the container and point the flag to the mount point:
docker run --rm -it \
-v /path/to/your/local/tools:/my-custom-tools \
your-kubectl-ai-image:latest \
--custom-tools-config=/my-custom-tools \
"your prompt here"