Get Claude.ai memory settings
TL;DR
Automatically get Claude.ai memory settings on claude.ai. Check if Claude.ai can search your past chats and build memory from them, for your account.
About
Claude.ai has two memory switches: one lets Claude search and reference past chats, the other lets it build memory from your chats. Memory is fully off only when both are off. Check them before you compare Claude answers, because memory can change them. To turn them on or off, use the set_memory script.
Inputs
None
Output
searchChats requiredTrue when Claude may search and reference past chats.
generateMemory requiredTrue when Claude generates memory from your chats.
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. An answer still being written at 100 s is returned as it stands, with stopReason "deadline": the text the page showed so far (empty while Claude was still thinking), no message id, model, searches or sources. 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.
Check Claude.ai session
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.
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.
