web_back — Claude Code prompt: what it does, how to install
The web_back Claude Code prompt returns the current browser tab to its previous page. If the address stays the same, the agent follows the page’s own back link.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/web_back.mdWhat web_back does
The prompt takes the current browser tab back one page. If the address does not change, the agent stops repeating the navigation and follows the page’s own back link instead. To reopen an earlier list, it navigates to that list’s address again, preserving its dates and filters better.
A successful change is marked place_changed, with the new address in effect.web.url. If nothing changes, the result is no_effect; when there is no browsing history, it is no_history.
What it helps with
- return to the previous page in the current tab
- follow the page’s back link when browser navigation has no effect
- reopen a list with its earlier dates and filters
Example prompts for the agent
- Go back one page in the current tab.
- If that does not work, follow the page’s own back link.
- Reopen the previous list with the same dates and filters.
How to install web_back
Manually: put the files in place
.claude/commands/web_back.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about web_back
How do I install web_back in Claude Code?
Add the file at .claude/commands/web_back.md.
What does web_back do?
It takes the current tab to its previous page. If navigation leaves the address unchanged, the agent follows the page’s back link.
What happens when the browser has no history?
The result is no_history. If navigation makes no change, the result is no_effect.
Source text
web_back.md · Apache-2.0
Go back to the previous page of the current tab (no_history when there is none). If the page does not change, use the page's own back link instead of repeating; to return to an earlier list, opening its address again with web_navigate keeps dates and filters better. effect.kind is place_changed (the new address in effect.web.url) when the page changed, no_effect when nothing changed.
© wangzan101 · Apache-2.0 · wangzan101/Mika