Refresh Session
alterlab_refresh_sessionRefresh a web scraping session by rotating cookies, resetting failure counters, and restoring active status after browser re-authentication.
Instructions
Refresh a session by rotating its cookies and resetting failure counters. This is the preferred way to update cookies after re-authenticating in your browser. The session status is reset to active. If cookies are omitted, only the failure counters are reset.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "alterlab_refresh_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookies | No | New cookies to replace the old ones. If omitted, only failure counters are reset. Cookies as a {name: value} object (e.g. {"session-id": "abc123"}) or as a list (max 100) of cookie objects with metadata: {name, value, domain?, path?, secure?, httpOnly?, sameSite?, expires?}. | |
| headers | No | Updated custom headers to include with the session | |
| session_id | Yes | UUID of the session to refresh |