List Claude Code sessions
List your Claude Code web sessions (the Recents list in the /code sidebar), newest first. Each entry carries the session id used by get_code_session, its full title, and the live status the sidebar dot reports (e.g. Running, Needs input) when it shows one. An account with no sessions yet returns an empty list. Claude Code sessions are not part of /recents ("Chats and tasks") — that page's Cowork filter is a different feature — so this sidebar list is the surface that has them.
Input
limit optionalMax sessions to return. Omit for every session the sidebar holds.
Output
None
Ask Claude
Open a new Claude.ai chat, send one question, and wait for the answer to finish (up to 3 minutes). Returns the answer as the markdown the model emitted, the message and conversation ids, why generation stopped, which model answered, the web_search queries it issued, every source its web_search and web_fetch tools surfaced, and — separately — the sources the answer actually cited. Requires a signed-in session: claude.ai has no anonymous chat. 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.
List Claude invoices
List every invoice across the orgs you have billing access to. Returns invoices (org_uuid, org_name, created_ts, due_date_ts, total, total_excluding_tax, currency, status, num_seats, hosted_invoice_url, invoice_pdf_url, payment_status) and skipped, newest first. Orgs you lack billing access to are reported in skipped rather than raising an error. Feed hosted_invoice_url to invoice.stripe.com/download_invoice_pdf to fetch the PDF (verified public/login-free, no Claude session needed).
Claude (Anthropic) login
Log into Claude (Anthropic) via Google SSO. Drives Claude's Continue-with-Google popup, picks the account (optional email arg), clears the consent screen, and lands in the Claude app. Runs on your local extension-paired browser only — it relies on the browser's own signed-in Google session, so it won't work on a cloud/managed browser without one.
