Close the browser
close_sessionClose the server's headless browser to free memory after pending calls finish, for one AnkiWeb account or all, while keeping the stored session so later calls can restart it.
Instructions
Close the server's headless browser to free its memory, once any call in progress has finished: the one for account, or without it every one open. The AnkiWeb session stays stored, and the next call that needs the browser starts it again. A browser also closes by itself after five idle minutes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Omit unless the user names an AnkiWeb account. Which of the accounts signed in on this machine to act as; a name that is not one is refused with the list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | Yes | false when no browser was open. |