Skip to content

feat(#433): add help command to list available API actions#458

Open
giulio-leone wants to merge 1 commit intovercel-labs:mainfrom
giulio-leone:feat/433-help-command
Open

feat(#433): add help command to list available API actions#458
giulio-leone wants to merge 1 commit intovercel-labs:mainfrom
giulio-leone:feat/433-help-command

Conversation

@giulio-leone
Copy link

Summary

Closes #433

Adds a help command that returns all available API action names, making it easy for users and agents to discover the full set of supported commands.

Changes

  • src/protocol.ts: Export commandSchema and add help action to the discriminated union
  • src/types.ts: Add HelpCommand interface and include it in the Command union type
  • src/actions.ts: Add help case that introspects commandSchema options to extract and return a sorted list of all action names
  • cli/src/commands.rs: Add help / commands CLI aliases that send {"action": "help"} to the daemon

Usage

# CLI
agent-browser help
agent-browser commands

# JSON API
{"id": "1", "action": "help"}

Returns a sorted list of all available commands (e.g. Available commands: addscript, addstyle, back, ...).

@vercel
Copy link
Contributor

vercel bot commented Feb 13, 2026

@g97iulio1609 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

action: 'device_list';
}

export interface HelpCommand extends BaseCommand {
Copy link
Contributor

@vercel vercel bot Feb 13, 2026

Choose a reason for hiding this comment

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

The HelpCommand type was added to the Command union in types.ts, but no corresponding Zod schema or command handler was implemented, making the help command non-functional.

Fix on Vercel

Copy link
Author

Choose a reason for hiding this comment

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

✅ Fixed in commit c3e2e2a.

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.

[request] show exposed API calls

1 participant