Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

docs: add tool reference pages - #142

Merged
yai-dev merged 5 commits into
masterfrom
docs/tool-permissions-guide
Apr 13, 2026
Merged

docs: add tool reference pages#142
yai-dev merged 5 commits into
masterfrom
docs/tool-permissions-guide

Conversation

@yai-dev

@yai-dev yai-dev commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a dedicated Tools section to the docs site sidebar
  • add reference pages for built-in tools, including AskUserQuestion UI integration guidance
  • convert source-code references in docs pages to GitHub blob links so published docs resolve correctly

Validation

  • pnpm exec prettier --check docs/.vitepress/config.ts docs/examples/deep-research.md docs/examples/playground-server.md docs/examples/playground-ui.md docs/guides/add-context.md docs/guides/build-a-profile.md docs/guides/manage-prompts.md docs/reference/host-primitives.md docs/reference/plugin-contract.md docs/reference/profile-contract.md docs/tools/**/*.md

Notes

  • docs-only change; no changeset added

yai-dev added 3 commits April 13, 2026 11:23
Add /guides/tool-permissions covering the rule DSL, evaluation order,
permission modes, interactive approval wiring, and per-tool
checkPermissions. Register the page in the VitePress sidebar between
"Add Tools" and "Add Context", and update the dead /guides/tool-permissions
link in reference/create-agent-app.md to point to the new guide.

Signed-off-by: yai-dev <sunzhenyucn@gmail.com>
Cover the full client-side pattern: consuming permission_request /
permission_resolved events from the SSE stream, POSTing the decision to
/api/sessions/:id/respond, and building a safe approval component that
resets state on consecutive requests and only dismisses after a successful
POST.

Signed-off-by: yai-dev <sunzhenyucn@gmail.com>
Signed-off-by: yai-dev <sunzhenyucn@gmail.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a comprehensive Tools section to the documentation, including a guide on tool permissions and reference pages for over twenty built-in tools. It also updates internal file links to absolute GitHub URLs. Feedback identifies inconsistent event naming in the AskUserQuestion documentation, a contradiction in the Bash tool's result schema, and an overly specific artifact path in the Python tool documentation.

Comment thread docs/tools/ask-user-question.md Outdated
Comment thread docs/tools/ask-user-question.md Outdated
Comment thread docs/tools/bash.md Outdated
Comment thread docs/tools/python.md Outdated
Signed-off-by: yai-dev <sunzhenyucn@gmail.com>
@yai-dev yai-dev self-assigned this Apr 13, 2026
@yai-dev yai-dev added skip-changeset Skip changeset check for docs-only, CI-only, or internal changes labels Apr 13, 2026
Signed-off-by: yai-dev <sunzhenyucn@gmail.com>
@yai-dev
yai-dev marked this pull request as ready for review April 13, 2026 03:51
@yai-dev
yai-dev merged commit 9340dbe into master Apr 13, 2026
6 checks passed
@yai-dev
yai-dev deleted the docs/tool-permissions-guide branch April 13, 2026 03:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

skip-changeset Skip changeset check for docs-only, CI-only, or internal changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant