Skip to content

docs: document custom tools in the CLI - #852

Merged
edenreich merged 3 commits into
mainfrom
docs/issue-850-20260928-2009
Sep 28, 2026
Merged

edenreich merged 3 commits into
mainfrom
docs/issue-850-20260928-2009

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents custom tools in the CLI: tools written in any language, added with one YAML manifest per tool, run with the call's arguments as JSON on stdin.

  • New cli-custom-tools.md covering where tools load from (~/.infer/tools/, tools.custom_dir / INFER_TOOLS_CUSTOM_DIR, and the project .infer/tools/ and .agents/tools/ with their precedence), the manifest reference, how a call runs, modes and approval (including that project tools always ask outside auto mode), tool-name rules, the one-binary-many-tools Rust example, custom tools vs MCP, the security model with tool-directory write protection, and troubleshooting. Links to the runnable examples/tools in the CLI repository.
  • cli.md: Custom Tools bullet in Key Features, a Custom row in Tool Categories, two new Security Features entries (project tools always ask, tool directories are write-protected), infer config set tools.custom_dir in Tool Configuration, a tools/ row in Configuration Files, and INFER_TOOLS_CUSTOM_DIR in the environment variables.
  • mcp.md: a short "Custom tools vs MCP" pointer plus a Learn More link to the new page.
  • .vitepress/config.ts: the new page registered in the nav and the sidebar, next to the CLI page.

Validation

bun run lint:md, bun run format:check and bun run build all pass.

Closes #850

@inference-gateway-releaser

inference-gateway-releaser Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🗑️ Preview environment destroyed.

@edenreich

Copy link
Copy Markdown
Contributor

@claude You keep doing that, why do you move the section outside of the CLI - this feature belongs to the CLI! please update also AGENTS.md to ensure it's not recurring.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 2m 20s —— View job


Done - custom tools now live inside the CLI page

You're right, and the fix is in.

  • Move the whole cli-custom-tools.md content into cli.md as a ## Custom Tools section, right after Tools & Capabilities (subheadings demoted to ### and disambiguated, e.g. Custom Tool Manifest Reference, Custom Tool Security)
  • Delete the standalone cli-custom-tools.md page
  • Revert the two .vitepress/config.ts nav/sidebar entries - config.ts is now byte-identical to main
  • Repoint every link to the anchor: #custom-tools within cli.md, /cli/#custom-tools from mcp.md
  • Add a rule to AGENTS.md so this does not recur

The AGENTS.md line, under Conventions:

CLI features are documented inside cli.md as a section of that page, not as a new cli-*.md page. Link to them with an anchor (/cli/#custom-tools). The existing standalone cli-*.md pages are the exception, not the pattern - do not add more without being asked.

The PR diff is now cli.md +229, mcp.md +5, AGENTS.md +1, no new files and no nav changes.

Validation

bun run lint:md, bun run format:check and bun run build all pass (Prettier reflowed the moved tables; that is in the commit).
| Branch

@edenreich
edenreich merged commit e32cf2e into main Sep 28, 2026
1 check passed
@edenreich
edenreich deleted the docs/issue-850-20260928-2009 branch September 28, 2026 20:34
inference-gateway-releaser Bot added a commit that referenced this pull request Sep 30, 2026
## [0.9.19](0.9.18...0.9.19) (2026-09-30)

### 📚 Documentation

* ag-ui resume snapshot and cancelled run outcome ([#861](#861)) ([53e4c80](53e4c80))
* **agents:** add code readability guidelines ([#832](#832)) ([9435459](9435459))
* **agents:** add code readability guidelines ([#834](#834)) ([6b06d8b](6b06d8b))
* artifacts route is not served by the daemon ([#867](#867)) ([513e866](513e866))
* browser-use routes through the daemon socket ([#865](#865)) ([79a9292](79a9292))
* bundled ffmpeg covers desktop timeline export ([#837](#837)) ([43ff30c](43ff30c))
* daemon.yaml binding and channel thread path ([#871](#871)) ([9f6efc5](9f6efc5))
* document autocomplete kind labels ([#847](#847)) ([94b0ceb](94b0ceb))
* document ctrl+r prompt history search in chat ([#869](#869)) ([08239c2](08239c2))
* document custom tools in the CLI ([#852](#852)) ([e32cf2e](e32cf2e))
* document infer daemon as the client hub ([#860](#860)) ([6fabb62](6fabb62))
* document nested AGENTS.md awareness in the CLI ([#854](#854)) ([e6c17a9](e6c17a9))
* document secret redaction in infer insights ([#831](#831)) ([7ae06bb](7ae06bb))
* headless --serve ag-ui worker over stdio ([#863](#863)) ([ac80158](ac80158))
* lead agent pages with bare-name infer agents add ([#835](#835)) ([113179d](113179d))
* opentask tab recording skill loop ([#840](#840)) ([48b6bde](48b6bde))
* single /agents view and markdown subagents ([#845](#845)) ([9557066](9557066))
* **skills:** document the built-in demo skill and infer-action record-demo ([#849](#849)) ([393b0c9](393b0c9))
* sync cli page with new upstream cli docs ([#855](#855)) ([88e0905](88e0905))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#846](#846)) ([c278297](c278297))
* **deps:** bump claude-code 2.1.280 -> 2.1.283 ([#858](#858)) ([3a23dc8](3a23dc8))
* **deps:** bump infer CLI v0.208.0 -> v0.218.0 ([#859](#859)) ([fd05fc6](fd05fc6))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.19 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document custom tools in the CLI

1 participant