Update Session
alterlab_update_sessionUpdate a stored session's name, cookies, headers, expiration, or notes without deleting and recreating it. Replace all cookies or headers in one call when rotating credentials.
Instructions
Update a stored session's properties. You can change the name, rotate cookies, update custom headers, set a new expiration, or add notes. When cookies are provided, they replace ALL existing cookies (not merged). Use this instead of delete+recreate when you need to rotate credentials.
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_update_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the session | |
| notes | No | Notes or description for this session | |
| cookies | No | New cookies — replaces ALL existing cookies. 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 | New custom headers — replaces ALL existing headers | |
| expires_at | No | New expiration date in ISO 8601 format (e.g., '2026-12-31T23:59:59Z') | |
| session_id | Yes | UUID of the session to update | |
| notify_on_failure | No | Enable or disable the validation-failure notification | |
| auto_refresh_enabled | No | Enable or disable proactive expiry detection and health checks | |
| notify_before_expiry | No | Enable or disable the before-expiry notification |