Skip to content

chore: update CLI generator to generate all possible tools#1962

Open
nroscino wants to merge 5 commits intomainfrom
feat/update-cli
Open

chore: update CLI generator to generate all possible tools#1962
nroscino wants to merge 5 commits intomainfrom
feat/update-cli

Conversation

@nroscino
Copy link
Copy Markdown
Contributor

@nroscino nroscino commented Apr 27, 2026

This PR adds all tools in the CLI interface. When a tool is not enabled the server responds with an error guiding the user on how to enable the category or the experiment.

@nroscino nroscino requested a review from OrKoN April 27, 2026 15:18
@nroscino nroscino marked this pull request as ready for review April 27, 2026 15:18
Comment thread skills/chrome-devtools-cli/SKILL.md Outdated
Comment thread skills/chrome-devtools-cli/SKILL.md Outdated
Comment thread src/bin/chrome-devtools-cli-options.ts
Comment thread src/bin/chrome-devtools-cli-options.ts Outdated
Comment thread src/bin/chrome-devtools-cli-options.ts Outdated
@nroscino nroscino self-assigned this Apr 28, 2026
Comment thread src/bin/chrome-devtools-cli-options.ts
@nroscino nroscino requested a review from OrKoN April 28, 2026 14:10
Comment thread src/bin/chrome-devtools-cli-options.ts Outdated
@nroscino nroscino requested a review from OrKoN April 28, 2026 15:28
@OrKoN
Copy link
Copy Markdown
Collaborator

OrKoN commented Apr 28, 2026

The tests seem to fail still.

Comment on lines -64 to -69
if (!('default' in cliOptions.headless)) {
throw new Error('headless cli option unexpectedly does not have a default');
}
if ('default' in cliOptions.isolated) {
throw new Error('isolated cli option unexpectedly has a default');
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what was the reason to remove these lines?

delete startCliOptions.categoryNetwork;
delete startCliOptions.categoryExtensions;
// Always on in CLI.
delete startCliOptions.experimentalStructuredContent;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why was this line deleted?

delete startCliOptions.viewport;
// CLI is generated based on the default tool definitions. To enable conditional
// tools, they need to be enabled during CLI generation.
delete startCliOptions.experimentalPageIdRouting;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should keep this one.

delete startCliOptions.experimentalPageIdRouting;
delete startCliOptions.experimentalVision;
delete startCliOptions.experimentalWebmcp;
delete startCliOptions.experimentalInteropTools;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

keep this one

Comment thread src/index.ts
Comment on lines +37 to +43
export const CONDITION_TO_FLAG: Record<string, string> = {
computerVision: 'experimentalVision',
experimentalMemory: 'experimentalMemory',
experimentalInteropTools: 'experimentalInteropTools',
screencast: 'experimentalScreencast',
experimentalWebmcp: 'experimentalWebmcp',
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could we instead have a convention that a condition has to match the flag name?

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.

2 participants