docs: rename --enabled-tools to --additional-tools and add --restrict-tools#1271
docs: rename --enabled-tools to --additional-tools and add --restrict-tools#1271lukealvoeiro wants to merge 1 commit into
Conversation
…-tools Rename the droid exec --enabled-tools CLI flag to --additional-tools and introduce --restrict-tools (allowlist) across the EN and JP docs. Update the overview examples, CLI reference tables, and the MCP per-tool filtering cross-reference. The mcp.json enabledTools config field is left unchanged. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
Droid encountered an error —— View job Droid is reviewing code and running a security check… |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Droid finished @lukealvoeiro's task —— View job The flag rename and new |
| # Restrict to only specific tools | ||
| droid exec --restrict-tools ApplyPatch "refactor files" | ||
|
|
||
| # Enable additional tools | ||
| droid exec --enabled-tools ApplyPatch "refactor files" | ||
| droid exec --additional-tools ApplyPatch "refactor files" |
There was a problem hiding this comment.
[P1] Add --auto to ApplyPatch tool-control examples
This page states droid exec defaults to spec-mode (read-only), but the new tool-control examples invoke ApplyPatch without --auto, so they will fail permission checks as written. Add --auto low (or use a read-only tool in the example) to keep the docs executable.
| # Restrict to only specific tools | |
| droid exec --restrict-tools ApplyPatch "refactor files" | |
| # Enable additional tools | |
| droid exec --enabled-tools ApplyPatch "refactor files" | |
| droid exec --additional-tools ApplyPatch "refactor files" | |
| # Restrict to only specific tools | |
| droid exec --auto low --restrict-tools ApplyPatch "refactor files" | |
| # Enable additional tools | |
| droid exec --auto low --additional-tools ApplyPatch "refactor files" |
Summary
Renames the
droid exec --enabled-toolsCLI flag to--additional-toolsand introduces a new--restrict-toolsflag (allowlist: run only the listed tools) across the English and Japanese docs.Changes
droid exec --restrict-tools ApplyPatch "refactor files"plus an--additional-toolsexample; help-text block lists both flags.--enabled-toolsrow is split into--restrict-toolsand--additional-toolsrows.--restrict-tools(matching theenabledToolsallowlist semantics).Out of scope
mcp.jsonenabledTools/disabledToolsconfig field names are intentionally left unchanged.