browser_clear_cache
Clear browsing data including cookies, storage, and cache for the current origin or all sites to ensure a clean state before starting a session.
Instructions
Clear browsing state before a run that must start clean. scope "origin" clears the current origin's storage (cookies, local/sessionStorage, IndexedDB, CacheStorage, service workers). scope "all" ALSO wipes the profile-wide HTTP cache and ALL cookies — the default for a fresh (throwaway) session, but in attach mode that is the user's real profile, so there the default is "origin" and "all" must be asked for explicitly. Every step is time-bounded.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_clear_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | default: "all" for fresh sessions, "origin" for attach sessions | |
| sessionId | No |