Skip to content

fix(docs): sort tools by required args in tool reference#1973

Closed
Will-hxw wants to merge 1 commit intoChromeDevTools:mainfrom
Will-hxw:fix/tool-ref-sort-order
Closed

fix(docs): sort tools by required args in tool reference#1973
Will-hxw wants to merge 1 commit intoChromeDevTools:mainfrom
Will-hxw:fix/tool-ref-sort-order

Conversation

@Will-hxw
Copy link
Copy Markdown

Summary

Test plan

  • Run npm run gen and verify tool reference shows correct ordering
  • Check that no-arg tools like list_pages appear before tools with required args

🤖 Generated with Claude Code

Issue #1932: Tools within each category should be sorted with no-arg
tools first, followed by tools with required args, then tools with
only optional args. This matches the requested ordering in the issue.

Updated both the TOC generation (generateToolsTOC) and the main
reference generation (generateReference) to use the new sort order.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 29, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Will-hxw Will-hxw closed this by deleting the head repository Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant