Add commands for dealing with cache and site data, cookies, etc
This commit is contained in:
@@ -920,6 +920,120 @@ Returns file management results:
|
||||
}
|
||||
```
|
||||
|
||||
### 28. `web_disable_cache_cremotemcp` *(New in Phase 6)*
|
||||
Disable browser cache for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Disable cache for current tab
|
||||
web_disable_cache_cremotemcp:
|
||||
timeout: 10
|
||||
|
||||
# Disable cache for specific tab
|
||||
web_disable_cache_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 5
|
||||
```
|
||||
|
||||
### 29. `web_enable_cache_cremotemcp` *(New in Phase 6)*
|
||||
Enable browser cache for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Enable cache for current tab
|
||||
web_enable_cache_cremotemcp:
|
||||
timeout: 10
|
||||
|
||||
# Enable cache for specific tab
|
||||
web_enable_cache_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 5
|
||||
```
|
||||
|
||||
### 30. `web_clear_cache_cremotemcp` *(New in Phase 6)*
|
||||
Clear browser cache for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Clear cache for current tab
|
||||
web_clear_cache_cremotemcp:
|
||||
timeout: 10
|
||||
|
||||
# Clear cache for specific tab
|
||||
web_clear_cache_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 5
|
||||
```
|
||||
|
||||
### 31. `web_clear_all_site_data_cremotemcp` *(New in Phase 6)*
|
||||
Clear all site data including cookies, storage, cache, etc. for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Clear all site data for current tab
|
||||
web_clear_all_site_data_cremotemcp:
|
||||
timeout: 15
|
||||
|
||||
# Clear all site data for specific tab
|
||||
web_clear_all_site_data_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 10
|
||||
```
|
||||
|
||||
### 32. `web_clear_cookies_cremotemcp` *(New in Phase 6)*
|
||||
Clear cookies for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Clear cookies for current tab
|
||||
web_clear_cookies_cremotemcp:
|
||||
timeout: 10
|
||||
|
||||
# Clear cookies for specific tab
|
||||
web_clear_cookies_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 5
|
||||
```
|
||||
|
||||
### 33. `web_clear_storage_cremotemcp` *(New in Phase 6)*
|
||||
Clear web storage (localStorage, sessionStorage, IndexedDB, etc.) for a tab.
|
||||
|
||||
**Parameters:**
|
||||
- `tab` (optional): Tab ID (uses current tab if not specified)
|
||||
- `timeout` (optional): Timeout in seconds (default: 5)
|
||||
|
||||
**Example Usage:**
|
||||
```
|
||||
# Clear storage for current tab
|
||||
web_clear_storage_cremotemcp:
|
||||
timeout: 10
|
||||
|
||||
# Clear storage for specific tab
|
||||
web_clear_storage_cremotemcp:
|
||||
tab: "tab-123"
|
||||
timeout: 5
|
||||
```
|
||||
|
||||
## Common Usage Patterns
|
||||
|
||||
### 1. Basic Web Navigation
|
||||
|
||||
Reference in New Issue
Block a user