web_run_site_command — Claude Code prompt: features and setup
The web_run_site_command Claude Code prompt runs a named command for the current site to extract structured data from an open page. Open the target page first.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/web_run_site_command.mdWhat web_run_site_command does
The prompt runs a command for the current site by name. Each command is a read-only script described in that site's knowledge; it extracts structured data from the open page and returns JSON. The site's knowledge also lists command names and their arguments.
Execution follows web_evaluate_js rules: scripts can make same-origin GET requests only. The result is capped at {{result_max}} characters. If the site has no command with the requested name, unknown_command returns the available command names.
What it helps with
- extract structured data from an open page
- get a site's command output as JSON
- find out which commands the current site provides
Example prompts for the agent
- Run the site command that extracts structured data from this page.
- Execute the site command with these arguments and return its result as JSON.
How to install web_run_site_command
Manually: put the files in place
.claude/commands/web_run_site_command.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about web_run_site_command
How do I install web_run_site_command in Claude Code?
Add .claude/commands/web_run_site_command.md to the project.
What does web_run_site_command do?
It runs a named command for the current site. The command reads data from the open page and returns JSON.
What restrictions apply to web_run_site_command?
Open the target page first. The script is read-only and can make same-origin GET requests only.
Source text
web_run_site_command.md · Apache-2.0
Run one of the current site's commands by name: a read-only script kept in the site's knowledge that pulls structured data out of the page you are on. The commands and their arguments are listed in that site's knowledge. It runs like web_evaluate_js (real page, read-only, same-origin GET requests only) and returns its result as JSON (at most {{result_max}} characters). Open the page the command is meant for first. unknown_command means the current site has no command by that name; the message lists the ones it has.
© wangzan101 · Apache-2.0 · wangzan101/Mika