Skip to content

docs(agent-format): make the allowedTools Examples block valid JSON (#3851)#3852

Open
ken-jo wants to merge 1 commit into
aws:mainfrom
ken-jo:fix/agent-format-allowedtools-valid-json
Open

docs(agent-format): make the allowedTools Examples block valid JSON (#3851)#3852
ken-jo wants to merge 1 commit into
aws:mainfrom
ken-jo:fix/agent-format-allowedtools-valid-json

Conversation

@ken-jo

@ken-jo ken-jo commented Jun 19, 2026

Copy link
Copy Markdown

Fixes #3851.

The allowedTools Examples block in docs/agent-format.md is fenced as ```json but isn't valid JSON — it has inline // comments and an unquoted @builtin, so copy-pasting it (or anything that parses the fenced block) fails to parse.

This drops the // comments and quotes @builtin. The pattern meanings are already explained in the bullet list and "Pattern Matching Rules" just above/below, so no information is lost. Verified the block now parses with json.loads.

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.

bug: invalid JSON in agent-format.md allowedTools Examples block (JS // comments + unquoted @builtin) breaks copy-paste

1 participant