Skip to content

Suggest related operations for similar nouns and verbs when an invalid subcommand is specified - #10893

Open
ashovlin wants to merge 1 commit into
v2from
agent-errors-verb-swap
Open

ashovlin wants to merge 1 commit into
v2from
agent-errors-verb-swap

Conversation

@ashovlin

Copy link
Copy Markdown
Member

Before

The CLI suggested valid commands when a provided, invalid command has a similar spelling:

➜ aws s3api list-bucktes

aws: [ERROR]: An error occurred (ParamValidation): argument operation: Found invalid choice 'list-bucktes'

Maybe you meant:

  * list-buckets

However, this doesn't help if you use the wrong verb, which we see some models doing

❯ aws glue list-tables

aws: [ERROR]: An error occurred (ParamValidation): argument operation: Found invalid choice 'list-tables'

After

Now, the CLI will suggest related operations based on verb + noun matches:

➜ aws glue list-tables

aws: [ERROR]: An error occurred (ParamValidation): argument operation: Found invalid choice 'list-tables'

Maybe you meant:

  * get-tables
  * search-tables
  * get-table

This should help agents recover faster, without an additional tool call for help or to read docs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin
ashovlin requested a review from a team as a code owner November 12, 2026 20:45

This branch has not been deployed

No deployments
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