Server status
server_statusReport the server version, storage locations for sessions and downloads, and whether an AnkiWeb session is stored per account. Optionally validate sessions with AnkiWeb to confirm sign-in status.
Instructions
Report the server version, where sessions and downloads are kept, and whether an AnkiWeb session is stored for each account. With validate, also ask AnkiWeb whether each session, or the one for account, is still signed in.
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": "server_status"
}
}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. | |
| validate | No | Check the session against AnkiWeb. Starts a headless browser only when the stored cookie is missing or turned down. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataDir | Yes | Where the sessions are kept. | |
| version | Yes | ||
| accounts | Yes | Each AnkiWeb account stored, `default` first; just `default` for most users. | |
| readOnly | No | Present when the server was started read-only and lists no tool that acts on AnkiWeb. | |
| downloadsDir | Yes | Where downloads go when no directory is given. |