Release a session
spicrawl_session_releaseEnd a session when you are done with it: frees its exit IP and browser state; it can no longer be used with spicrawl_scrape. Its stored cookies and storage are purged and cannot be recovered; start a new session and log in again to continue. The record stays visible (status released) so its history can still be inspected. Refused while a scrape holds the session's lease unless force is true. Returns the session object.
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": "spicrawl_session_release"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Break an active lease (a scrape currently using the session). Only set when you know it is safe. | |
| session_id | Yes | The session id returned by spicrawl_session_create or spicrawl_session_list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id; pass it as `session_id` to spicrawl_scrape. | |
| lease | No | Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`. | |
| proxy | No | The session's exit intent (never an IP or endpoint). | |
| engine | No | Rendering tier the session is bound to: fetch, js or browser. | |
| status | No | active, released or expired; derived from the clock, and only `active` sessions can be used. | |
| context | No | Size summary of the stored context (counts only, no secrets); null once the session is not active. | |
| retired | No | Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable. | |
| warnings | No | Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum. | |
| created_at | No | Creation time, RFC 3339 UTC. | |
| expires_at | No | Current expiry (slides on use), RFC 3339 UTC. | |
| project_id | No | Project the session belongs to. | |
| sticky_key | No | Exit pin in use (empty when rotate_ip was set). | |
| fingerprint | No | Browser fingerprint, as stored. | |
| released_at | No | Release time, on released sessions, RFC 3339 UTC. | |
| usage_count | No | Successful scrapes that used the session. | |
| last_used_at | No | Last successful scrape, RFC 3339 UTC; null if never used. | |
| domain_scores | No | Per-domain standing, keyed by domain. Omitted when empty. | |
| hard_expires_at | No | Fixed ceiling the expiry never passes, RFC 3339 UTC. |