Skip to content

docs: propose native tool pattern matching - #56

Draft
Konstantinov-Innokentii wants to merge 2 commits into
mainfrom
docs/propose-tool-pattern-matching
Draft

docs: propose native tool pattern matching#56
Konstantinov-Innokentii wants to merge 2 commits into
mainfrom
docs/propose-tool-pattern-matching

Conversation

@Konstantinov-Innokentii

@Konstantinov-Innokentii Konstantinov-Innokentii commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Proposal

  • Put match.argument and match.cases directly inside a tool definition.
  • Let a tool match one required string argument without a dynamic resolver.
  • Check cases from top to bottom; _ is the required final fallback.
  • Show email-domain matching and a conservative Bash example with exact commands.
  • Keep the first version small: literal text and the * wildcard only.

Open decision

The proposal does not define the built-in meaning of internal. That needs a separate decision about who counts as internal.

Scope

Documentation only. This syntax is not implemented.

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