Check Claude.ai session
Automatically check Claude.ai session on claude.ai. Report whether the browser is signed in to Claude.ai, and as which account. Returns connected (true or false) and account (the sign-in email, or null when signed out). A signed-out browser is a normal answer, not an error, so this can be used as the session check that runs before another Claude.ai script.
Input
None
Output
account requiredThe sign-in email of that session, or null when signed out.
connected requiredTrue when the browser holds a live Claude.ai session.
FAQ
Ask Claude on claude.ai
Open a new Claude.ai chat, send one question, and wait for the answer to finish (up to 100 s). Returns the answer as the markdown the model emitted, the message and conversation ids, why generation stopped, which model answered, each web search it made with the results it was shown, and every source its search and fetch tools surfaced. Citation links are returned when claude.ai attaches them to the answer; answers that searched the web now carry their links in the markdown instead, and the citation list is then empty. Requires a signed-in session: claude.ai has no anonymous chat, and a signed-out browser fails at once with an error that says so. When the account has used up its 5-hour or weekly allowance, it fails at once with the time the allowance resets, without sending anything. Avoid running many of these at once: claude.ai limits how many chats one account may hold concurrently and refuses the extras, so a refused send comes back quickly carrying Claude's own message and only needs to be retried at a slower pace.
Get Claude.ai memory settings
Report the two memory switches of the signed-in Claude.ai account, from Settings > Memory: `searchChats` (Claude may search and reference past chats) and `generateMemory` (Claude builds memory from your chats). Memory is fully off only when both are false. Reads the organisation the browser has open. Requires a signed-in session; a signed-out browser fails with an error that says so. Use set_memory to change them.
List Claude invoices
List the Claude (claude.ai) plan invoices of the organization currently open in this browser, as its billing settings show them, newest first. To get another organization's invoices, switch to it in claude.ai, then run this again. Each invoice comes with its number, date, total and total before tax (in the currency's smallest unit, so 10800 means 108.00 EUR), currency, status, seats, payment status and a link to its PDF. When the open organization gives you no billing access, the result lists it in skipped with no invoices. complete is false when claude.ai says the organization has older invoices than its billing page shows; those are not returned. The run fails when the browser is not signed in to claude.ai, or when org_uuid is given and a different organization is open. To save a PDF, pass its link to the Stripe invoice PDF download script.
