close_session
Terminate browser sessions to release system resources and prevent memory leaks. Clean up browser instances, pages, and contexts when web automation tasks are complete.
Instructions
Close the browser session and free all associated resources including browser instance, pages, and contexts. Always call this when finished with a session to prevent memory leaks. The sessionId becomes invalid after closing and cannot be reused. Any unsaved work or open pages will be lost.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sessionId | Yes | Session ID obtained from initialize_session to close |
Input Schema (JSON Schema)
{
"properties": {
"sessionId": {
"description": "Session ID obtained from initialize_session to close",
"type": "string"
}
},
"required": [
"sessionId"
],
"type": "object"
}