Starworld MCP

One authenticated endpoint for acting on Star's machines — from any model provider.

Endpoint

MCP (streamable HTTP): https://mcp.starworld.love/mcp
This page and /health are the only things served without auth. Every tool call needs a gate below.

Authenticate (either one)

OAuth — for providers that require it (Gemini, and others). Just add the server by URL; the client discovers OAuth automatically, registers itself, and opens a consent page. Approve it by pasting your Star World token there. Nothing else to configure.

Bearer token — for your own CLI and anything that accepts a header:

Authorization: Bearer <your token>

Your token is in your Gmail drafts ("Star World MCP — API token"). It never appears on this page, and it is what you paste on the consent screen.

Register it (Claude example; any MCP client is the same shape)

{
  "mcpServers": {
    "starworld": {
      "url": "https://mcp.starworld.love/mcp",
      "headers": {
        "Authorization": "Bearer <your token>"
      }
    }
  }
}

For OAuth clients, the URL alone is enough — drop the header and approve on the consent page.

Machines you can target

Pass a host to any tool. prod1 (this appliance) runs locally; the rest go over ssh. Default is prod1.

prod1this endpoint — runs locally
dev1[email protected]
dev2[email protected]
dev3[email protected]
umbrel[email protected]

Any literal user@host also works, so new machines need no change.

Long commands

A foreground run() waits up to timeout seconds (capped at 600) and never blocks other calls. On timeout the command's whole process group is killed and the partial output comes back with timed_out: true. For anything long or noisy pass background=true: run() returns a job_id at once (jobs run up to 3600 s) and job(job_id) reports its state and output. To leave something running on its own, start it with setsid nohup … > log 2>&1 &.

status() is the one-call health check: uptime, event-loop lag, calls in flight, running jobs, and the last errors with their reasons.

Messages and WhatsApp

The whatsapp_*, imessage_*, messaging_* and contacts_lookup tools read Star's WhatsApp Desktop and Apple Messages stores on his Mac (dev1, the default host) in fresh read-only transactions, and send through the logged-in apps. A send returns the stored outgoing row as its receipt and never reports sent: true without it. Nothing is copied off the Mac and nothing is marked read by a read.

Machines

hosts() -> 'dict'

List the machines this endpoint can reach and which one is local.

run(command: 'str', host: 'str' = 'prod1', cwd: 'str | None' = None, timeout: 'float' = 120.0, background: 'bool' = False) -> 'dict'

Run a shell command on a machine. Foreground (default): wait up to `timeout` seconds (capped by the server) and return {ok, exit_code, stdout, stderr, host, elapsed_s}; on timeout the command's whole process group is killed and the partial output comes back with timed_out=true and an `error` saying so. background=true: return {job_id, state} immediately and poll job(job_id) — use this for anything long or noisy. `command` is a full shell line (pipes, redirects, &&); `host` names the machine (see hosts()); `cwd` is an optional working directory. To leave something running on its own, start it with `setsid nohup … > log 2>&1 &`.

job(job_id: 'str') -> 'dict'

Report a background job started by run(background=true): {job_id, state, host, command, cwd, started_at, finished_at, result{exit_code, stdout, stderr, timed_out, elapsed_s}, error}. state is running, done, timeout, failed, or interrupted (the server restarted while it ran).

status() -> 'dict'

One-call health check: which code is running and for how long, event-loop lag (the thing that froze on 2026-10-28), calls in flight, running and recent jobs, the last errors with their reasons, and the server's limits.

read_file(path: 'str', host: 'str' = 'prod1', max_bytes: 'int' = 4000000) -> 'dict'

Read a file from a machine. Returns {path, host, bytes, truncated, content}.

write_file(path: 'str', content: 'str', host: 'str' = 'prod1', append: 'bool' = False) -> 'dict'

Write (or append to) a file on a machine, creating parent directories. Returns {path, host, bytes_written, ok}. Content travels base64-encoded, so any bytes are safe.

list_dir(path: 'str' = '.', host: 'str' = 'prod1') -> 'dict'

List a directory on a machine (one level, with type and size). Returns {path, host, entries}.

Google Calendar

calendar_status() -> 'dict'

Check the dedicated Google grant and role on the designated calendar without reading event content.

calendar_read(event_id: 'str') -> 'dict'

Read one Google event by its opaque ID. Returns its current time, color, version and permanent URL.

calendar_create(request_id: 'str', title: 'str', start: 'str', end: 'str', color: 'str' = 'peacock', available: 'bool' = False) -> 'dict'

Create a personal event. Reuse one request_id per intention, including retries. Supply offset timestamps or all-day dates with an exclusive end. Color is a Google color name or ID. Set available=true for a quiet free-time marker with no reminders. Returns Google's read-back.

calendar_update(event_id: 'str', start: 'str | None' = None, end: 'str | None' = None, color: 'str | None' = None, etag: 'str | None' = None) -> 'dict'

Move or recolor one personal event. Supply both time boundaries to move it, or just a color. Use a recurring occurrence's ID for one occurrence. Pass a previous read's etag to reject stale edits.

WhatsApp (on Star's Mac)

whatsapp_status(host: 'str' = 'dev1') -> 'dict'

Is WhatsApp readable on the Mac: store path and size, app running and version, Star's own number, message/chat/unread counts, newest message time, synced contacts, and the send capability (accessibility granted, which routes work). Call this first when something seems off.

whatsapp_chats(query: 'str' = '', unread_only: 'bool' = False, include_archived: 'bool' = True, kind: 'str' = 'all', limit: 'int' = 30, offset: 'int' = 0, host: 'str' = 'dev1') -> 'dict'

List WhatsApp conversations newest first: {chats: [{chat_id, name, kind (direct/group/community), jid, phone, unread, archived, muted, member_count, message_count, last_message_at, last_message: {at, direction, sender, kind, text}}], count, has_more, next_offset}. `query` filters by chat name (case-insensitive substring); `kind` is all/direct/group/community; page with offset.

whatsapp_messages(chat: 'str', limit: 'int' = 30, before_id: 'int | None' = None, after_id: 'int | None' = None, since: 'str | None' = None, until: 'str | None' = None, format: 'str' = 'json', host: 'str' = 'dev1') -> 'dict'

Read one WhatsApp chat in chronological order (the newest `limit` messages by default). `chat` is a chat_id, an exact or partial name ("Mom"), a phone number or a JID; ambiguous names come back as an error listing candidates. Each message: {id, at (local time), direction in/out, sender, text, kind (text/image/video/audio/document/sticker/link/location/contact/call/deleted/system/…), status (outgoing), starred, media {path, size_bytes, duration_s, caption}, quoted {sender, text}, reactions [{emoji, sender}], system_event}. Page older with before_id=oldest_id, newer with after_id. `since`/`until` accept 2026-11-01, an ISO datetime, 3h/2d/1w, today, yesterday. format="transcript" adds a plain-text transcript for summarizing.

whatsapp_search(query: 'str' = '', chat: 'str | None' = None, sender: 'str | None' = None, direction: 'str' = 'any', kind: 'str | None' = None, starred_only: 'bool' = False, since: 'str | None' = None, until: 'str | None' = None, limit: 'int' = 30, before_id: 'int | None' = None, host: 'str' = 'dev1') -> 'dict'

Search WhatsApp message text across every chat (or one `chat`), newest first, case-insensitive literal match. Filters: `sender` (name or number), `direction` in/out/any, `kind` (image, video, audio, document, link, sticker, location, contact, poll…), `starred_only`, `since`/`until` (2026-11-01, 3h, 2d, 1w, today, yesterday). An empty query with filters lists messages, e.g. every starred message or every document this month. Returns {messages, count, has_more, next_before_id}.

whatsapp_resolve(query: 'str', limit: 'int' = 10, host: 'str' = 'dev1') -> 'dict'

Who does a name, phone number, JID or chat id refer to in WhatsApp? Returns {state: resolved | ambiguous | not_found, match_quality, chat, contact, candidates, contacts_without_chat}. Use it when a name might match several people, or to get the chat_id before reading or sending.

whatsapp_contacts(query: 'str', limit: 'int' = 30, host: 'str' = 'dev1') -> 'dict'

Search WhatsApp's synced address book by name or number: {contacts: [{name, phone, jid, lid, about, business_name, chat_id (when a chat exists)}], count, has_more}.

whatsapp_group(chat: 'str', host: 'str' = 'dev1') -> 'dict'

A WhatsApp group's details: the chat record plus members [{name, jid, phone, admin, active}], member_count, created_at, creator, owner, subject_changed_at. `chat` is a chat_id or group name.

whatsapp_media(chat: 'str | None' = None, kind: 'str | None' = None, since: 'str | None' = None, until: 'str | None' = None, limit: 'int' = 30, before_id: 'int | None' = None, host: 'str' = 'dev1') -> 'dict'

Photos, videos, voice notes, documents, GIFs, stickers and video notes shared on WhatsApp, newest first, optionally in one `chat` or of one `kind` (image/video/audio/document/gif/sticker/video_note). Each item carries media.path on the Mac; fetch the bytes or a preview with messaging_file(path).

whatsapp_calls(since: 'str | None' = None, limit: 'int' = 30, host: 'str' = 'dev1') -> 'dict'

WhatsApp call history newest first: [{at, direction in/out, missed, video, duration_s, participants [{name, jid}], group_jid}]. `since` accepts 2026-11-01, 3h, 2d, 1w, today, yesterday.

whatsapp_unread(limit_per_chat: 'int' = 10, max_chats: 'int' = 50, host: 'str' = 'dev1') -> 'dict'

What Star has not read on WhatsApp: {chats: [chat record + unread_messages [...]], chat_count, unread_total, has_more_chats}. Muted/archived groups are included (they often hold most of the count), so check each chat's `muted` and `archived` before treating it as urgent.

whatsapp_activity(since: 'str' = '24h', limit: 'int' = 50, host: 'str' = 'dev1') -> 'dict'

What moved on WhatsApp since a time (default the last 24 hours): chats ordered by message volume with messages_since, incoming_since, outgoing_since and the last message. The "what happened today" call.

whatsapp_stats(chat: 'str | None' = None, since: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

WhatsApp totals: messages in/out, first and last dates, counts by kind, chats_total and the busiest chats; narrow to one `chat` or a `since` bound.

whatsapp_presence(chat: 'str' = '', chats: 'list' = None, host: 'str' = 'dev1') -> 'dict'

Who is free right now, exactly as Star's own WhatsApp shows it: for each direct chat (`chat`, or up to 12 in `chats`: chat_id, name, phone or JID) the header subtitle WhatsApp Desktop shows him (online, typing…, recording audio…, last seen today at 19:28, or nothing when they hide it), as {results: [{name, phone, state (online/typing/recording/last_seen/hidden/not_checked/unknown), subtitle, how, about, about_set_at, status_24h, status_last_at, read_at}], restored}. Read live on each call, never polled or stored. A chat with unread messages is not opened (that would send read receipts); it comes back not_checked with the chat-list line instead. Other chats are opened in the background and Star's open chat and front app are put back. Signal has no presence and no desktop app on the Mac, so there is no Signal twin.

whatsapp_draft(chat: 'str', text: 'str', host: 'str' = 'dev1') -> 'dict'

Prepare a WhatsApp message without sending: resolves the recipient, reports the route, flags a recent duplicate and the current send capability. Review the returned recipient, then whatsapp_send.

whatsapp_send(chat: 'str', text: 'str', confirm_seconds: 'float' = 12, allow_duplicate: 'bool' = False, dry_run: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Send a WhatsApp message to a direct chat (`chat` = chat_id, exact name, phone number or JID) from the Mac's logged-in WhatsApp Desktop. The app opens that chat with the text, presses Return, then this waits up to confirm_seconds for the new outgoing row and returns it as the receipt: {sent: true, message_id, chat, state: sent}. If no row appears you get sent: false with state composer_opened_not_confirmed and a next_step; check the chat before retrying. The same text sent to the same chat within 90 s is refused unless allow_duplicate=true. Side effects on the Mac: WhatsApp comes to the front and the chat is marked read. Groups are not supported by this route (the error says so); dry_run=true returns the draft only.

Messages: iMessage, SMS, RCS (on Star's Mac)

imessage_status(host: 'str' = 'dev1') -> 'dict'

Is Messages readable on the Mac: chat.db path and size, app running, counts (messages, chats, filtered junk chats, unread, attachments), newest message time, the Messages accounts that can send (iMessage / SMS / RCS) and the Contacts book summary.

imessage_chats(query: 'str' = '', unread_only: 'bool' = False, include_filtered: 'bool' = False, kind: 'str' = 'all', service: 'str | None' = None, limit: 'int' = 30, offset: 'int' = 0, host: 'str' = 'dev1') -> 'dict'

List Messages conversations (iMessage, SMS, RCS) newest first: {chats: [{chat_id, name, kind direct/group, service, guid, identifier, participants [{handle, name, service}], unread, archived, filtered, message_count, last_message_at, last_message}], count, has_more, next_offset}. Junk ("filtered") SMS chats are hidden unless include_filtered=true. `query` matches the chat name or a participant's name from Contacts; `kind` is all/direct/group; `service` is iMessage/SMS/RCS.

imessage_messages(chat: 'str', limit: 'int' = 30, before_id: 'int | None' = None, after_id: 'int | None' = None, since: 'str | None' = None, until: 'str | None' = None, format: 'str' = 'json', host: 'str' = 'dev1') -> 'dict'

Read one Messages chat in chronological order (newest `limit` by default). `chat` is a chat_id, a person's name (from Contacts), a phone number, an email or a chat guid. Each message: {id, at, direction, sender, sender_handle, text (decoded even when Apple stores it only as attributedBody), kind (text/image/ video/audio/file/sticker/link/app/audio_message/system), service, status (outgoing: pending/sent/ delivered/read/failed), read (incoming), attachments [{kind, name, mime_type, size_bytes, path}], reactions [{label, emoji, sender}], reply_to {sender, text}, edited_at, unsent_at, effect, system_event}. Page older with before_id=oldest_id. `since`/`until` accept 2026-11-01, 3h, 2d, 1w, today, yesterday. format="transcript" adds a plain-text transcript.

imessage_search(query: 'str' = '', chat: 'str | None' = None, sender: 'str | None' = None, direction: 'str' = 'any', service: 'str | None' = None, with_attachments: 'bool' = False, unread_only: 'bool' = False, include_filtered: 'bool' = False, since: 'str | None' = None, until: 'str | None' = None, limit: 'int' = 30, before_id: 'int | None' = None, host: 'str' = 'dev1') -> 'dict'

Search Messages text across every chat (or one `chat`), newest first, case-insensitive literal match, including text Apple stores only in attributedBody. Filters: `sender` (name, phone or email), `direction` in/out/any, `service` iMessage/SMS/RCS, `with_attachments`, `unread_only`, `include_filtered` (junk SMS), `since`/`until`. An empty query with filters lists messages, e.g. every unread text or every photo from one person this month. Returns {messages, count, has_more, next_before_id}.

imessage_resolve(query: 'str', limit: 'int' = 10, host: 'str' = 'dev1') -> 'dict'

Who does a name, phone, email, chat guid or chat id refer to in Messages? Returns {state: resolved | ambiguous | not_found, match_quality, chat, person (from Contacts), handles (numbers/emails usable for sending), candidates, people}. A known person with no chat yet still resolves with handles.

imessage_attachments(chat: 'str | None' = None, kind: 'str | None' = None, since: 'str | None' = None, until: 'str | None' = None, limit: 'int' = 30, before_id: 'int | None' = None, include_filtered: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Photos, videos, audio and files sent or received in Messages, newest first, optionally in one `chat` or of one `kind` (image/video/audio/file/sticker). Each message lists attachments with a path on the Mac; fetch bytes or an image preview with messaging_file(path).

imessage_unread(limit_per_chat: 'int' = 10, max_chats: 'int' = 50, include_filtered: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

What Star has not read in Messages: {chats: [chat record + unread_messages [...]], chat_count, unread_total, has_more_chats}. Junk SMS chats are excluded unless include_filtered=true.

imessage_activity(since: 'str' = '24h', limit: 'int' = 50, include_filtered: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

What moved in Messages since a time (default the last 24 hours): chats ordered by message volume with messages_since, incoming_since, outgoing_since and the last message.

imessage_stats(chat: 'str | None' = None, since: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

Messages totals: messages in/out, first and last dates, counts by service, with_attachments, chats_total, filtered_chats and the busiest chats; narrow to one `chat` or a `since` bound.

imessage_draft(to: 'str', text: 'str' = '', attachment: 'str | None' = None, service: 'str' = 'auto', host: 'str' = 'dev1') -> 'dict'

Prepare a Messages send without sending: resolves `to` (name, phone, email, chat_id or chat guid), chooses the route (existing chat, or a new conversation via a handle and account) and flags a recent duplicate. Review the returned recipient and route, then imessage_send.

imessage_send(to: 'str', text: 'str' = '', attachment: 'str | None' = None, service: 'str' = 'auto', confirm_seconds: 'float' = 15, allow_duplicate: 'bool' = False, dry_run: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Send an iMessage/SMS/RCS from the Mac's Messages app to `to` (a person's name, phone number, email, chat_id or chat guid; groups work by chat_id or group name). Optional `attachment` is a file path on the Mac. `service` auto picks the existing chat's service, else iMessage; pass sms to force SMS to a phone. Waits up to confirm_seconds for the new outgoing row in chat.db and returns it as the receipt: {sent: true, message_id, chat_id, service, is_sent, is_delivered}. If Messages accepts but no row appears you get sent: false, state accepted_not_confirmed; check with imessage_messages before retrying. The same text to the same chat within 90 s is refused unless allow_duplicate=true. dry_run=true returns the draft only. Nothing is brought to the front on the Mac.

Across both, and Contacts

contacts_lookup(query: 'str', limit: 'int' = 20, host: 'str' = 'dev1') -> 'dict'

Look someone up in the Mac's Contacts by name, organization, phone or email: {people: [{name, first_name, last_name, organization, nickname, phones [{number, label}], emails [{address, label}]}], count}. Exact names rank first. Use it to find the number or email behind a name.

messaging_search(query: 'str', since: 'str | None' = None, until: 'str | None' = None, limit: 'int' = 20, host: 'str' = 'dev1') -> 'dict'

"Did anyone message me about X?" — the same text search run in WhatsApp and Messages at once: {whatsapp: {messages, count, has_more}, imessage: {messages, count, has_more}}. Each side reports its own error if its store is unavailable.

messaging_unread(limit_per_chat: 'int' = 5, max_chats: 'int' = 30, host: 'str' = 'dev1') -> 'dict'

Everything unread across WhatsApp and Messages in one call: {whatsapp: {chats, unread_total, …}, imessage: {chats, unread_total, …}}. Junk SMS is excluded; muted WhatsApp groups are included and flagged.

messaging_file(path: 'str', max_bytes: 'int' = 3000000, preview: 'bool' = True, preview_max_edge: 'int' = 1280, host: 'str' = 'dev1') -> 'dict'

The bytes of a WhatsApp media file or a Messages attachment (a `path` from whatsapp_media, whatsapp_messages, imessage_attachments or imessage_messages), base64 in content_base64 with mime_type and size. Images come back as a JPEG preview no larger than preview_max_edge by default (preview=false for the original); other files up to max_bytes. Only paths under the two message stores are served.

Purchases (Amazon, Etsy, every store)

amazon_orders(query: 'str' = '', since: 'str' = '', until: 'str' = '', limit: 'int' = 50, offset: 'int' = 0, include_names: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Star's Amazon orders, newest first: {orders, count, total, has_more, next_offset, totals, filters, url (/things/amazon/), built_at}. `query` is words that must all appear (case-insensitive) in the merchant, an item title, the order id, an ASIN or the family. Each order: {order_id, n (ledger row), date (YYYY-MM-DD), store (amazon/etsy/other), merchant, status (ordered/shipped/delivered/cancelled/refunded/returned…), kind (physical/grocery/subscribe & save/gift/digital…), cancelled, total, currency, usd, usd_converted (when converted from another currency), family (category), items [{title, qty, unit_price}] (first 8, items_more counts the rest), photos [{title, product_id (ASIN or etsy:<listing>), image, url}] when the ledger has them, url (the order's permanent page http://dev1.local:8765/things/order/<order_id>; url_note says when an id cannot be an address and the link opens the store's list instead)}. Paging: {count, total, offset, has_more, next_offset}; totals {orders, cancelled, usd (live orders only: cancelled ones are listed and flagged but never totalled), orders_without_usd} cover every match, not just the page. limit is capped at 200. since/until (inclusive) accept YYYY-MM-DD, YYYY-MM, YYYY, today, yesterday, or 7d/2w/3m/1y ago. include_names=true adds ship_to (the other person an order went to); it is left out by default.

etsy_orders(query: 'str' = '', since: 'str' = '', until: 'str' = '', limit: 'int' = 50, offset: 'int' = 0, include_names: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Star's Etsy orders (merchant starting "Etsy"), newest first, each with the shop name split out as `shop` and its page as shop_url: {orders, count, total, has_more, next_offset, totals, filters, url (/things/etsy/), built_at}. `query` words must all appear in the merchant/shop, an item title, the order id or the family. Each order: {order_id, n (ledger row), date (YYYY-MM-DD), store (amazon/etsy/other), merchant, status (ordered/shipped/delivered/cancelled/refunded/returned…), kind (physical/grocery/subscribe & save/gift/digital…), cancelled, total, currency, usd, usd_converted (when converted from another currency), family (category), items [{title, qty, unit_price}] (first 8, items_more counts the rest), photos [{title, product_id (ASIN or etsy:<listing>), image, url}] when the ledger has them, url (the order's permanent page http://dev1.local:8765/things/order/<order_id>; url_note says when an id cannot be an address and the link opens the store's list instead)}. Paging: {count, total, offset, has_more, next_offset}; totals {orders, cancelled, usd (live orders only: cancelled ones are listed and flagged but never totalled), orders_without_usd} cover every match, not just the page. limit is capped at 200. since/until (inclusive) accept YYYY-MM-DD, YYYY-MM, YYYY, today, yesterday, or 7d/2w/3m/1y ago. include_names=true adds ship_to (the other person an order went to); it is left out by default.

purchases_search(query: 'str' = '', store: 'str' = 'all', merchant: 'str' = '', family: 'str' = '', since: 'str' = '', until: 'str' = '', min_usd: 'float | None' = None, max_usd: 'float | None' = None, sort: 'str' = 'date-desc', limit: 'int' = 50, offset: 'int' = 0, include_names: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Search every purchase in the ledger (Amazon, Etsy and every other store from 2004 on). `query` words must all appear (case-insensitive) in the merchant, an item title, the order id, a product id or the family; an empty query with filters lists orders. `store` is all/amazon/etsy/other; `merchant` and `family` are case-insensitive substrings ("apple", "supplements"); min_usd/max_usd bound the order's USD value (orders with no USD value drop out when a bound is set); `sort` is date-desc/date-asc/usd-desc. Returns {orders, count, total, has_more, next_offset, totals, filters, url, built_at}. Each order: {order_id, n (ledger row), date (YYYY-MM-DD), store (amazon/etsy/other), merchant, status (ordered/shipped/delivered/cancelled/refunded/returned…), kind (physical/grocery/subscribe & save/gift/digital…), cancelled, total, currency, usd, usd_converted (when converted from another currency), family (category), items [{title, qty, unit_price}] (first 8, items_more counts the rest), photos [{title, product_id (ASIN or etsy:<listing>), image, url}] when the ledger has them, url (the order's permanent page http://dev1.local:8765/things/order/<order_id>; url_note says when an id cannot be an address and the link opens the store's list instead)}. Paging: {count, total, offset, has_more, next_offset}; totals {orders, cancelled, usd (live orders only: cancelled ones are listed and flagged but never totalled), orders_without_usd} cover every match, not just the page. limit is capped at 200. since/until (inclusive) accept YYYY-MM-DD, YYYY-MM, YYYY, today, yesterday, or 7d/2w/3m/1y ago. include_names=true adds ship_to (the other person an order went to); it is left out by default.

purchase_order(order_id: 'str', include_names: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

One order in full, every item and photo: {order, orders, count, url}. `order_id` is the id from any purchases tool (exact, case-insensitive), or n:<row> for a ledger row with no id. One id can name several rows (a split shipment or a reused receipt number): `order` is the newest, `orders` has them all. Unknown ids come back ok=false, kind not_found. Each order: {order_id, n (ledger row), date (YYYY-MM-DD), store (amazon/etsy/other), merchant, status (ordered/shipped/delivered/cancelled/refunded/returned…), kind (physical/grocery/subscribe & save/gift/digital…), cancelled, total, currency, usd, usd_converted (when converted from another currency), family (category), items [{title, qty, unit_price}], photos [{title, product_id (ASIN or etsy:<listing>), image, url}] when the ledger has them, url (the order's permanent page http://dev1.local:8765/things/order/<order_id>; url_note says when an id cannot be an address and the link opens the store's list instead)}. include_names=true adds ship_to (the other person an order went to); it is left out by default.

purchases_patterns(section: 'str' = '', host: 'str' = 'dev1') -> 'dict'

Star's buying patterns, exactly as the /things/patterns/ page shows them: {summary (five plain sentences: the store split, the biggest store and Etsy shop, peak and quiet month, rhythms due now, the last 30 days against his usual pace), patterns, sections, today (the day the block was computed), url, built_at}. patterns holds stores (orders, usd, first, last per amazon/etsy/other), by_year, by_month, seasons (months, weekdays, peak_month, quiet_month), repeats (things bought 3+ times: times, cadence_days, last, next_due, status ok/due/overdue/lapsed, order ids), refills (live rhythms due within 45 days), merchants (top stores and Etsy shops), families, one_offs (the largest single objects), now (last 30/90/365 days vs usual) and peaks (busiest and biggest days). Pass `section` (one of those names) to get just that part; the summary always comes back.

purchases_status(host: 'str' = 'dev1') -> 'dict'

Is the purchase ledger there and how fresh: {ledger {path, bytes, modified_at, built_at, orders_built, has_patterns}, orders, cancelled, usd, first, last, with_photos, photo_coverage, without_order_id, stores {amazon, etsy, other: {orders, cancelled, usd, with_photos, photo_coverage, first, last, url}}, urls (the /things/ pages: amazon, etsy, other, patterns, ledger, … and the order and item address patterns)}. Call this first when something seems off.

His X and Instagram (one corpus, on his Mac)

social_posts(query: 'str' = '', platform: 'str' = 'all', kind: 'str' = '', since: 'str | None' = None, until: 'str | None' = None, order: 'str' = 'newest', limit: 'int' = 30, offset: 'int' = 0, host: 'str' = 'dev1') -> 'dict'

Search or browse Star's own X (@DrStarHeartsong, 2009 on) and Instagram (@drstarheartsong, 2011 on) as one corpus: {items, count, matches, by_kind, has_more, next_offset}. `query` needs every word (case- and accent-blind, any order) in the text or quoted text; a word starting with @ also matches who he replied to, reposted or mentioned. Empty query browses. `platform` all/x/instagram; `kind` one or more of post, reply, rt, like, quote, reel, story, igtv, archived (comma-separated; browsing with no query and no kind leaves likes out, since they carry no time); `since`/`until` take 2026-11-01, 2026-11, 2026, 3h, 2d, 1w, 6m, 1y, today, yesterday; `order` newest/oldest/top (top ranks his own posts and replies by likes and reposts, never reposts of others). Page with offset/next_offset. Each item: {platform (x/instagram), id (X status id, or Instagram code when known), at (UTC ISO; none for X likes, which the archive gives no time), kind (x: post/reply/rt/like; instagram: post/reel/story/igtv/archived), text (his words, or the caption; for rt and like, the other person's), url, reply_to and reply_to_id, rt_of, quote_of and quoted_text, mentions, links, media, favs, rts, replies, views}. Empty fields are left out.

social_post(id: 'str', platform: 'str' = 'all', host: 'str' = 'dev1') -> 'dict'

One X post or Instagram post in full: {item, replying_to (the post it answers, when that is his too), his_replies_to_it, quoting, he_liked_it}. `id` is an X status id, an Instagram code, or a pasted x.com / instagram.com link.

social_people(handle: 'str', platform: 'str' = 'all', limit: 'int' = 10, host: 'str' = 'dev1') -> 'dict'

Who Star talks with on X and Instagram, by @handle (any part, case-blind): {state (resolved/ambiguous/not_found), people: [{handle, x_url, counts (replied_to, reposted, mentioned, liked_a_post_naming), total, first_at, last_at, recent (5 items)}], candidate_count, note}. Every handle holding the letters comes back, exact match first, so a near-namesake is never hidden. For the same person in WhatsApp or Messages, use whatsapp_resolve / imessage_resolve / contacts_lookup.

social_stats(platform: 'str' = 'all', since: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

The shape and freshness of his X and Instagram corpus: {total, by_kind, by_year, first_at, last_at, last_7d, last_30d, last_365d, top_handles, top_hashtags, freshness, tabs}. freshness: {x: {mirror (the 3-hourly check: last_attempt_at, last_success_at, ok, error, method, added_last_run), archive_built_at, last_new_rows, newest_item_at, gap}, instagram: {mirror, export_parts, live_posts, newest_item_at, gap}}. `gap` says plainly what the free refresh cannot see and what would fill it. `since` narrows the counts (same forms as social_posts).

Star Memes (order a meme, watch its tracker)

memes_make(dictation: 'str', follow_up_of: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

Order one Star Meme from a pasted or spoken dictation, in Star's own words (up to 12,000 characters); the composer works out what he means. It is made, signed (Starheart's autograph and @DrStarHeartsong on X & IG), banked in his private Star Memes library and put on his wall at https://starmemes.starworld.love, where the same order shows on the live tracker. One meme cooks at a time: a second order while one is cooking is refused, and memes_status shows the one on the stove. follow_up_of: an earlier order's id, to answer its question, retry it or change it with the same context and pictures. Only order a meme Star asked for: it uses his image worker and banks to his library. Nothing is posted anywhere. Answers the tracker: {id, state (queued/generating/filing/finished/needs_input/failed/cancelled), phase (Heard, In line, Worker up, Reading you, Making, Signing, Banking, On the wall), phases_done, glass (the thermometer: ● done, ◉ now, ○ to come), message, interpretation (what the composer understood), on_the_wall, question (when it needs an answer), file and meme_page when banked, page}. A phase counts only once the composer itself has written it.

memes_status(id: 'str | None' = None, wait_s: 'float' = 0, host: 'str' = 'dev1') -> 'dict'

Where a meme order is now, read from the composer's own saved stages; with no id, the newest order. wait_s (up to 50) waits for it to finish, checking every two seconds, before answering. Answers the tracker: {id, state (queued/generating/filing/finished/needs_input/failed/cancelled), phase (Heard, In line, Worker up, Reading you, Making, Signing, Banking, On the wall), phases_done, glass (the thermometer: ● done, ◉ now, ○ to come), message, interpretation (what the composer understood), on_the_wall, question (when it needs an answer), file and meme_page when banked, page}. A phase counts only once the composer itself has written it.

memes_recent(limit: 'int' = 10, host: 'str' = 'dev1') -> 'dict'

The newest meme orders: {orders: [{id, state, summary (the first words of the dictation), created_at}], page}.

memes_cancel(id: 'str', host: 'str' = 'dev1') -> 'dict'

Stop a meme order that is still cooking. Its words and pictures are kept for a follow-up.

Star Keys (his stickers, totems and emojis by his own words)

stickers_search(query: 'str', kind: 'str | None' = None, limit: 'int' = 12, host: 'str' = 'dev1') -> 'dict'

Search Star Keys the way his keyboard does: his own words first, typos forgiven, never empty. kind narrows to "sticker", "totem" (a run of emojis he sends whole) or "emoji". Answers {items: [{id, kind, page, body (a totem's or emoji's characters), stars_words, agent_words, guessed_words, caption, seen_text (the words printed on the sticker), favorite, sent}], guess}. guess true means nothing wears those words yet and these are his favorites instead: a good moment to add the word with stickers_tag.

stickers_add(words: 'str', path: 'str | None' = None, url: 'str | None' = None, image_base64: 'str | None' = None, name: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

Add a new sticker to Star Keys from any picture: path (a file on Star's Mac), url (https) or image_base64. words are the keywords that should find it, comma separated ("victory lap, we won"). It is resized to a 512 px sticker, kept once (the same picture twice is one sticker) and shows on https://stickers.starworld.love and in his Mac keyboard within seconds. Answers {id, new, words, page}.

stickers_tag(id: 'str', words: 'str', remove: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Add keywords to one sticker, totem or emoji (id from stickers_search), comma separated, in the words Star would type. They are kept as an agent's words: below his own, above the machine's guesses. remove=true takes those words off instead.

stickers_totem(body: 'str', words: 'str', name: 'str | None' = None, host: 'str' = 'dev1') -> 'dict'

Keep a totem: a run of emojis (or any short text) Star sends whole, such as "🔔🕊️✨", under the keywords that should call it. Answers {id, page}.

stickers_favorite(id: 'str', on: 'bool' = True, host: 'str' = 'dev1') -> 'dict'

Mark one item as a favorite of Star's (or not, with on=false). Only when he said so.

stickers_stats(host: 'str' = 'dev1') -> 'dict'

How big Star Keys is: stickers, totems, emojis, how many stickers are tagged, favorites, and how many keywords are Star's own.

His screen (open a link in front of him)

open_on_screen(url: 'str', host: 'str' = 'dev1', profile: 'str' = '[email protected]', caller: 'str' = '') -> 'dict'

Open one https link on Star's screen, now: a new tab in the front Google Chrome window on his Mac (host dev1, the default), in his main profile ([email protected]; `profile` takes another of his Chrome accounts by email), with Chrome brought forward. Nothing is typed, clicked or read in any page. `caller` says who is asking (a session id or agent name) for the log. Returns {ok, url, profile, tab_in_session, front_app, opened_in_s}: tab_in_session is true once Chrome's own session file holds the link, front_app names the app in front. Only https links with a real host name are accepted.

Shopping (Amazon, live, with deep reviews)

shop_search(query: 'str', sort: 'str' = 'relevance', limit: 'int' = 12, min_rating: 'float | None' = None, min_ratings: 'int' = 0, max_price: 'float | None' = None, include_sponsored: 'bool' = False, fresh: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Search amazon.com live: {results, count, matched, found_on_page, sponsored_hidden, star_bar (4.7, Star's bar), deliver_to, fetched_at, cached, search_url}. Each result: {asin, title, brand, price, list_price, unit_price, unit, rating, ratings (exact count), meets_bar, bought_past_month, sponsored, prime, badges, delivery, image, url}. sort: relevance, price-asc, price-desc, reviews, newest. Sponsored results are hidden unless include_sponsored. Pages are cached 15 minutes; fresh=true skips the cache. min_rating / min_ratings / max_price filter the page. For judging reviews use shop_reviews or shop_best. When Amazon answers with its bot check the reply is ok=false, kind=bot_check, with the url: that is a stop, never retried or worked around; say so and give Star the url.

shop_product(asin: 'str', fresh: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

One Amazon product live, by ASIN or amazon.com link: {product {asin, title, brand, price, list_price, unit, rating, ratings, meets_bar, availability, in_stock, delivery, fastest_delivery, ships_from, sold_by, returns, bullets, images, deliver_to, url}, fetched_at, cached, star_bar}. Cached 10 minutes. When Amazon answers with its bot check the reply is ok=false, kind=bot_check, with the url: that is a stop, never retried or worked around; say so and give Star the url.

shop_reviews(asin: 'str', count: 'int' = 40, fresh: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Deep read of one product's reviews: real versus manipulated, and what buyers actually say. Pulls `count` reviews (10–200; half most helpful, half most recent) and judges each one: verified purchase, Amazon Vine, free-or-discounted-for-review wording, near-copies, repeat reviewers, short generic praise, words against stars (Warriner valence, Star's affect-14k lexicon), five-star bursts, photos. Returns {verdict (one plain sentence), grade A–F, official_rating, adjusted_rating (Amazon's rating moved by how much unreliable reviews inflate it), meets_bar_adjusted, recent_mean, recent_slipping, suspicious_share, signals, praise and complaints (recurring themes), best_praise and best_criticism (the most interesting credible reviews, Flickr-style: independent helpful votes, specificity, photos, recency, diversity), most_suspicious, title, price, ratings, url, spent_this_month_usd, monthly_cap_usd}. Costs about $0.20 per product from a monthly cap; cached a day (fresh=true pays again). Takes 10–60 seconds. When Amazon answers with its bot check the reply is ok=false, kind=bot_check, with the url: that is a stop, never retried or worked around; say so and give Star the url.

shop_best(query: 'str', top: 'int' = 3, max_price: 'float | None' = None, min_ratings: 'int' = 100, min_rating: 'float' = 4.0, count: 'int' = 30, host: 'str' = 'dev1') -> 'dict'

The actually-best of a search: searches Amazon, takes the top `top` (1–5) organic results with at least `min_ratings` ratings and `min_rating` stars (and under max_price), judges each one's reviews like shop_reviews (`count` each), and ranks them by adjusted rating, review volume and trust grade: {pick {asin, title, price, rating, adjusted_rating, grade, url}, ranked [search row + verdict, grade, adjusted_rating, meets_bar_adjusted, praise, complaints, best_criticism, rank, score], star_bar, deliver_to, fetched_at, spent_this_month_usd}. About $0.20 per product judged. Takes up to a few minutes. When Amazon answers with its bot check the reply is ok=false, kind=bot_check, with the url: that is a stop, never retried or worked around; say so and give Star the url.

shop_cart_link(items: 'list[dict[str, Any]]') -> 'dict'

An amazon.com add-to-cart link for Star to open and confirm himself: items is [{asin, quantity}] (up to 20). Returns {url, items}. Opening it shows Amazon's own "add to cart" page in his signed-in browser; it adds nothing until he presses Add there, and nothing here signs in, orders or pays.

shop_status(host: 'str' = 'dev1') -> 'dict'

Is live shopping working: {route, fetcher {curl_cffi, python}, min_gap_seconds, cache_ttl_seconds, recent_outcomes (ok / bot_check counts over the last 200 requests), last_ok_at, last_bot_check_at, recent, reviews_route, reviews_spent_this_month_usd, reviews_monthly_cap_usd, sentiment_lexicon_words}. Call this first when something seems off.

Usage (every AI account: its connection and its meters)

accounts(provider: 'str' = '', host: 'str' = 'dev1') -> 'dict'

Every provider account Star holds, one row each: {accounts, count, unclassified_vaults, probed_at}. Each account: key (the account id to pass to connect/usage, e.g. claude:[email protected] or codex:.codex), provider, account (email/home/label), label, plan, connected (yes/no/unknown — "no" is a seat that needs reconnecting), state (the provider's own, e.g. data, needs_login, no_reading, stale, unreachable), how (which reader determined it and how fresh), vault (the secrets file that holds it, or null), vault_descriptors (non-secret identity fields only — never a credential), connectable + connect_via + connect_note (whether the CLI reconnect flow can target it, and why/why not). A vault with no live card still appears, state no_live_card, with its reason. `provider` filters (claude, openai, grok, gemini, kimi, venice).

usage(account: 'str' = '', provider: 'str' = '', host: 'str' = 'dev1') -> 'dict'

Full usage detail for one account or all: {accounts, count, probed_at}. Each account keeps the provider's own card verbatim (so a renamed or newly added meter rides along untouched) plus: meters (normalized [{slot, label, value, unit, reset, reset_in}] for session, weekly and every model meter), confidence (live / live_no_meter / reading_withheld / disconnected / unreadable / no_meter), connected, plan, plan_source, state, freshness, probed_at, probed_age_s, note, hint, spend/extra as the provider states them. Numbers appear only from a live reading whose window is still open; a stale or disconnected account keeps its identity and says why instead of painting an old number. `account` is a key or email from accounts(); `provider` filters. No argument reads every account.

connect(account: 'str', code: 'str' = '', attempt: 'str' = '', host: 'str' = 'dev1') -> 'dict'

Reconnect one account on the CLI, through the same live flow the Bar and home tab use. With no `code`: start the flow and return its state — for a Claude seat, {state: awaiting_code, authorization_url, attempt} (Star reads the one code back, then call connect again with code+attempt); for a Codex home, {state: pending, authorization_url, code} to approve at the device URL. With `code` and `attempt` (Claude only): submit the code to finish. Returns the portal's own state verbatim (ready, awaiting_code, pending, verifying, complete, failed, expired) plus account. Grok/Gemini/Kimi/ Venice have no portal reconnect flow — accounts() says so and names how each refreshes instead.

reconnect(account: 'str', host: 'str' = 'dev1') -> 'dict'

Start a fresh reconnect for one account (an alias of connect with no code): the existing flow reverifies the saved credential first and only re-authenticates if it is truly gone. Returns the same state shape as connect(). Follow a Claude awaiting_code with connect(account, code, attempt).

disconnect(account: 'str', confirm: 'bool' = False, host: 'str' = 'dev1') -> 'dict'

Cancel any in-flight reconnect for one account (safe and reversible) and report the terminal sign-out path. Terminal sign-out removes a working credential — a destructive act that can lock Star out until a human re-authenticates — so it is never performed here without his explicit yes to that exact account; this returns {in_flight_cancelled, terminal_signout: not_armed, terminal_note} naming the reversible mechanism instead of doing it.

connect_status(account: 'str', host: 'str' = 'dev1') -> 'dict'

The live state of a reconnect flow already in flight for one account, read only — never begins, exchanges or launches anything. Returns the portal's own state (ready, awaiting_code, pending, verifying, complete, failed, expired, stopping) plus account, and authorization_url while one is waiting. `account` is a key from accounts().

refresh(account: 'str', host: 'str' = 'dev1') -> 'dict'

Renew one account's own session with no human. Grok and Gemini renew in place from the session already saved on the Mac (a rotated token is persisted) and return {ok, kind: renewed|fresh, expires_in_s}; Kimi and Venice cannot renew (the Kimi subscription ended 2026-10-16, a Venice key never expires) and say so honestly in `error`. A Claude seat or a Codex home returns {ok: true, kind: browser, driver: running} at once: a detached browser driver on the Mac finishes the consent and submits the code, and usage_driver_status reports each step until it lands. `account` is a key from accounts().

auto_connect(account: 'str' = '', host: 'str' = 'dev1') -> 'dict'

Sign in every dead account on its own — Star does no work: each one is refreshed from its saved session or, where only a code will do, walked to the end by our own browser on the Mac and the code handed back to the portal. With `account`, only that one; with none, every account accounts() calls connected=no or auth_expired. Returns {ok, count, accounts: [{account, outcome, kind, note}]} with a per-account verdict; grok/gemini are usually back within a second, a Claude seat or Codex home is still walking and reports through usage_driver_status. Never wipes a working credential.

driver_status(account: 'str', host: 'str' = 'dev1') -> 'dict'

The sign-in log of a browser driver on the Mac: its stage (browser, google, submitting, verified, pending, approved, failed, needs_human, timed_out), whether its process is still alive, the steps it took, and the moment each changed. Read this after refresh() / auto_connect() says driver: running; `account` is a key from accounts(). Read only — usage_driver_stop stops one.

driver_stop(account: 'str', host: 'str' = 'dev1') -> 'dict'

Stop a browser sign-in still walking for one account, leaving whatever credential was already there untouched. `account` is a key from accounts().

seats(renew_under_min: 'int' = 120, host: 'str' = 'dev1') -> 'dict'

Claude seat health for the GTD Flow kitchen, renewed with no human: every seat in the fleet store on the Mac whose sign-in has under `renew_under_min` minutes left is renewed now from its own refresh token (one-shot, re-persisted under the owner's lock). Returns {ok, seats: [{seat, ok, expires_in, why}]}; why is fresh, renewed, or exactly what blocks it (a refused refresh means only a browser sign-in can mint a new one). Never returns a token. The kitchen also runs this every tick.

Star's memory (recall him before answering)

memory_grep(pattern: 'str', k: 'int' = 20, mine: 'bool' = False, source: 'str | None' = None, since: 'str | None' = None, until: 'str | None' = None, regex: 'bool' = False, case: 'bool' = False) -> 'dict'

Find Star's exact words: every real occurrence of a phrase in his memory, his own shelves first. Use when the words themselves matter: "I hate", "I'm tired of", "pet peeve", a line he said, a name spelled one way. memory_recall finds meaning and can miss the literal line; this never does. `pattern` is a phrase (case and curly quotes ignored; spaces match any whitespace), or a Python regex with regex=true ("I (hate|can't stand) \w+"). `mine`=true keeps only what he wrote or said himself (sent mail, writing, notes, poems, voice, spoken, journals, his words to agents). `source`, `since`/`until` (YYYY or YYYY-MM-DD) narrow it. Returns `matches`, `his_own`, `by_source`, and up to `k` results (max 100), each with the `line` around the match, `date`, `where`, `mine`. His own come first, newest first; then everyone else's.

memory_recall(query: 'str', k: 'int' = 8, source: 'str | None' = None, since: 'str | None' = None, until: 'str | None' = None, also: 'list[str] | None' = None, pad: 'dict[str, list[float]] | None' = None, near: 'list[float] | None' = None, emotion: 'str | None' = None) -> 'dict'

Search Star's own memory: everything he has written, said and lived that is on his machines. Use FIRST whenever a question touches Star himself: who someone is to him, what he decided, what he believes, what a project is, what he said about something, his history (MIT, ConceptNet, MontyLingua, Metafor, Hunch, Artsy), his poems and spiritual path, his taste and rules. `query` is a plain-language question or topic ("why did Star leave Artsy", "Jade's son", "Word Becomes World tour"). `k` passages come back (default 8, max 25), each with `text`, `where` (source · title · section · date), `date`, `source` and `path`, best first, plus `entities`: concept cards for any person/project/idea named in the query, with their connections in his life. Filters: `source` accepts any reviewed collection id, named shelf id, alias, or comma-separated list from `memory_collections()` — including his personal record (memory, notes, papers, works, lifelogs-wiki, lifelogs-raw, poems, books, granola, celeste, scarlett, akasha, akasha-words, spoken, duet, sent, people, conversations, groups, mail, calendar, photos, press, voice, taste, writing, applenotes, superagent, meditations, drive, projects, aim), curated project and family libraries (spells-library, genealogy-library, starheart-library, starstuff-library, silent-sentence-library, nameangel-library, consensus-library, cookbook-library, anagrammaton-library, tipping-library, namegod-library, namedata-library, quintessence-library, asstman-library, starcharts-library), attributed reference libraries (programming-library, rhetoric-library, sacred-texts-library, gunkel-library, logion-library, humandesign-library), and named shelves (bhakti-log, aeon-dialogues, things-treasury, good-design, moleskines, peptides-shelf, sacred-contracts, word-becomes-world, hunch-archive, mit-phd-years, soul-desire-body, energy-of-1008); `since`/`until` as YYYY or YYYY-MM-DD. Each hit includes `reference` for `memory_read`, and `collection_notes` explains authorship, how to use, and how to attribute each returned source. For tabular affect/name/Human Design lookups use `memory_lexicon`. `legs` says which searches ran. Emotion: `pad={"pleasure":[0.7,1],"arousal":[0,0.4]}` filters all retrieval legs on a 0–1 scale. `near=[P,A,D]` or `emotion="calm"` orders by Euclidean PAD distance. Use query="" for exact nearest feeling across the whole scored corpus; with a topic, distance orders the returned topic matches. Missing scores are excluded and coverage is reported. Scores estimate expressed passage tone, not a person's mental state. Feeling names are approximate search shortcuts; the interpreted target and model provenance are returned. Best results: put his own words in `query` and two or three other phrasings in `also` (synonyms, the name of the work, the feeling, the person); every phrasing runs words + literal phrase/pattern + meaning and they fuse before the rerank. Quoted phrases ("I hate", 'I'm tired of'), short phrases, comma-separated phrase lists, and regex patterns (r"I (hate|can't stand)", "I hate|I'm tired of", "/pattern/") run a verified literal leg (`legs.phrase`) that puts Star's own first-person lines ahead of formal corpus tables and other speakers. Each result carries `mine`, `match` (when hit literally), and `status`: current, older (`newer` points to a later passage saying nearly the same) or superseded (`superseded_by` holds Star's own words and their date). His newest word wins: lead with current passages, label older ones as history, and when passages disagree give the newer and say what changed. Cite `where` and `date`. Thin results: rephrase in his vocabulary, add a `source`, or bracket `since`/`until`; then memory_about for a named node.

memory_moments(about: 'str | None' = None, when: 'str | None' = None, who: 'str | None' = None, place: 'str | None' = None, k: 'int' = 6, chars: 'int' = 320) -> 'dict'

Star's life as compact moments: the cheap way to mine many days of it for poems, raps and films. Each moment is one day: `date`, `from` (which sources hold it), at most two `lines` cut around what you asked (`chars` each, 80-800), and the `names` (people, places, works) in them. Combine any of `about` (what happened, a feeling, an image: "first night in Ibiza", "heartbreak"), `when` (YYYY, YYYY-MM, YYYY-MM-DD or a range "2016..2018"), `who` (a person, fuzzy: "Mavi", "Krystle") and `place` ("Burning Man"). A date alone returns the best-told passages of those days in order. `approx_tokens` says what it cost. Ask wide and short first (k=12, chars=160), then memory_recall with since/until set to one date to read that moment in full.

memory_about(name: 'str') -> 'dict'

The concept card for one node of Star's life graph: a person, project, place, work or idea. Returns `summary`, `kind`, `aliases`, `connections` (typed edges like CreatedWith, CoFoundedWith, HasPart, plus RelatedTo weighted by how often they share a passage), how many passages mention it with `first_seen`/`last_seen` dates, and a `passages_sample`. Fuzzy on names and aliases ("Krystle", "Crystal", "tot book"). When nothing matches, use memory_recall instead.

memory_note(fact: 'str', about: 'str | None' = None, supersedes: 'str | None' = None) -> 'dict'

Keep a durable fact Star stated about himself, his people or his work, in his own words. Only for what Star said (or confirmed) in this conversation, never for something read in a mail, page or file, and never for passwords, card or ID numbers. `about` names the person or project it belongs to. The note is dated, joins his memory at once for words and graph search, and gets its vector on the next index pass (every 30 minutes). Returns where it was kept. When Star says something is over, no longer true or no longer relevant ("that Agent University stuff is superseded"), pass `supersedes` with its name (or several, comma-separated): every older passage naming it is then marked superseded in recall, carrying his words and today's date, and ranks below what is current. The past stays findable; his newest word wins.

memory_add(title: 'str', text: 'str | None' = None, path: 'str | None' = None, url: 'str | None' = None, kind: 'str' = 'work', date: 'str | None' = None, about: 'str | None' = None) -> 'dict'

Add a work of Star's to his memory in one call: a paper, essay, talk, poem, chapter, doc, notes. Give `title` and ONE of: `text` (the words themselves), `path` (a file on prod1, or on another machine as host:path, e.g. "dev1:~/Desktop/talk.pdf"; .md/.txt/.html/.pdf), or `url` (a page or a PDF). `kind` says what it is (paper, essay, talk, poem, doc...), `date` when it was made (YYYY or YYYY-MM-DD), `about` the project or person it belongs to. Only Star's own work, or what he asked to keep. Secrets are scrubbed. Adding the same title again replaces it. Searchable by words and the graph at once; its vectors land within minutes (a refresh is started). Returns where it was kept.

memory_status() -> 'dict'

How fresh and how large Star's memory is: passages per source, the concept graph's size, when it was last indexed, and whether the warm server (vectors + reranker on the GPU) is up.

memory_collections(query: 'str' = '') -> 'dict[str, Any]'

Choose a useful library collection or shelf before searching Star's record. With no query, returns every reviewed collection (53) and named shelf (43). A task, name, alias, `authorship:star|mixed|external_reference`, or typo narrows the guide. Each card says how an agent can use it, authorship & attribution limits, a starter query, source/shelf id accepted directly by memory_recall and memory_grep (including comma-separated multi-source filters), live indexed document count and index timestamp. Zero means no indexed documents, not an empty original library. Unindexed structured reservoirs and any unreviewed sources are reported explicitly. Read-only, no GPU.

memory_browse(collection: 'str', query: 'str' = '', offset: 'int' = 0, limit: 'int' = 12, sort: 'str' = 'reference') -> 'dict[str, Any]'

Browse artifacts in a collection or named shelf from memory_collections, with pagination. query is a literal title/path/reference substring, NOT semantic search of body text (use memory_recall(query=..., source=collection) for that). sort accepts 'reference' (stable uid order), 'newest' (latest dated artifacts first), or 'oldest'. Returns stable document references, indexed revisions, source paths, passage links and part counts. No raw files are opened.

memory_read(reference: 'str', offset: 'int' = 0, limit: 'int' = 3, revision: 'str' = '') -> 'dict[str, Any]'

Open an artifact beyond its recall excerpt, in ordered pages of exact indexed passages. reference is a stable document reference from memory_browse/memory_recall, a numeric chunk id from memory_recall (starts one passage before the hit for context), or an unambiguous title/reference substring (ambiguous substrings return choose_reference candidates). Continue with the returned reference, next_offset and revision; null next_offset means the end. At most ten parts per call. Revision mismatch is explicit. Source paths are citations, never arbitrary files this tool will open.

memory_lexicon(query: 'str', lexicon: 'str' = 'auto', limit: 'int' = 10) -> 'dict[str, Any]'

Query structured lexical, phonetic, and Human Design tables without prose-chunk noise. Use when an agent needs exact tabular context from Star's structured reference libraries: - `lexicon='affect'`: Warriner 14k English word Valence, Arousal, Dominance norms (1-9 and 0-1 PAD) for diction, rap/poetry tone calibration, or affective analysis. - `lexicon='names'`: 23,355 given names with etymology, cultural heritage usages, scripts, and ARPAbet phonemes backing NameGod and NameAngel. - `lexicon='humandesign'`: all 64 Gates, 36 Channels, 12 Profiles, and Rave Mandala zodiacal degree spans (`'Gate 1'`, `'5-15'`, `'1/3'`). - `lexicon='auto'` (default): checks all available structured lexicons at once. Pass one term or a comma-separated list (`'wend, denouement, luminous'`, `'Aurelia, Mateo'`). Typos return fuzzy `suggestions`; external attribution is always attached. Read-only, zero GPU.

akasha_life(period_key: 'str' = 'life', find_words: 'str' = '') -> 'dict[str, Any]'

Read Star's Akasha: his life summarized at every scale (life, year, month, week, day, facts). period_key: "life" for the whole and how far the pass has come, "2026" for a year with its months, "2026-11" for a month with its weeks and every day, "week/2026-11-16" for a week, "2026-11-16" for one day in full, or "facts" for his verified biographical facts. find_words: words to find across every year, month, week, day and fact summary (newest first); when given, period_key is ignored. Each entry carries the model that wrote it (src "life" is the new top Gemini pass, "chronicle" the older local one). Private to Star: quote it to him, never publish it.

poem_stub_add(title: 'str' = '', seeds: 'str' = '', intention: 'str' = '', source: 'str' = '', source_date: 'str' = '', status: 'str' = 'stub', draft: 'str' = '', notes: 'str' = '') -> 'dict[str, Any]'

Hold a poem Star means to write as a stub in his private Starheart Poetry Stubs folio. title: working title (inferred fail-soft from seeds/intention if omitted). seeds: seed metaphors or lines, verbatim. intention: what Star intends the poem to be, in his own words, verbatim. source: where the seeds came from (e.g. 'akasha-words'); source_date: YYYY or YYYY-MM. status: 'stub' (default), 'draft', or 'finished'. Returns the saved stub with its private folio URL and starheart.love doorway URL.

poem_stubs(slug: 'str' = '', status: 'str' = '', q: 'str' = '') -> 'dict[str, Any]'

List Star's poetry stubs (newest first, with counts and status/q filter) or read one by slug.

poem_stub_update(slug: 'str', status: 'str' = '', draft: 'str' = '', title: 'str' = '', seeds: 'str' = '', intention: 'str' = '', source: 'str' = '', source_date: 'str' = '', notes: 'str' = '') -> 'dict[str, Any]'

Advance a poetry stub (stub -> draft -> finished), save draft lines, or refine metadata. Only non-empty fields are updated. Keep Star's spoken seeds and intention verbatim.

Markets (read-only prices, spans, and OHLCV chart data)

market_price(symbol: 'str', at: 'str' = '', source: 'str' = 'auto') -> 'dict'

Latest quote/trade or the close on one ISO date, with multi-provider fallback and provenance. price_kind distinguishes last_trade, exchange_ticker, regular_market_quote, daily_reference_rate, and daily_candle_close. Quotes carry their provider timestamp; sessions can be closed or delayed. A date without trades returns an explicit no-data answer, never another day's price. Symbol and source follow market_chart. No account, subscription, or trading action.

market_span(symbol: 'str', start: 'str', end: 'str' = '', basis: 'str' = 'close', source: 'str' = 'auto') -> 'dict'

Daily endpoints, percent change, extrema, and maximum drawdown over any available date span. Basis close compares daily closes; wick compares highs to later lows, excluding same-bar order. Returns exact peak/trough UTC dates and elapsed calendar days (not inclusive day count). Source, currency, missing-bar coverage, and current open candle stay explicit. For the 406-day check: BTC/USD, start=2013-01-01, end=2015-12-31, source=bitstamp. A measured trough is only the lowest observed value in the requested window, not a prediction.

market_chart(symbol: 'str', start: 'str' = '30d', end: 'str' = '', interval: 'str' = '1d', source: 'str' = 'auto') -> 'dict'

OHLCV chart data in one call, with source URLs, currency, UTC times, and coverage. Crypto: Bitstamp, Coinbase, Kraken, then Yahoo. Equities/ETFs: Yahoo, CNBC, then Nasdaq. Indices: Yahoo, CNBC, then Nasdaq. Futures/commodities: Yahoo then CNBC. FX: Yahoo, CNBC, then Frankfurter (ECB). Use ticker AAPL, ^GSPC, GC=F, EURUSD=X, or BTC/USD; common names and typos are resolved visibly. Dates: ISO date/time, today, yesterday, or 406d/2w/1y (years mean 365 days). Date-only end is inclusive; time end is exclusive. Intervals: 1m, 5m, 15m, 1h, 6h, 1d. Provider retention and trading calendars apply. Up to 20,000 bars; refine a larger request. Source auto falls back visibly across independent feeds; explicit source names never substitute. Returns data for analysis or rendering, not a generated image. Missing bars are never interpolated.

Every call is logged

Timestamp, tool, host, and the command or path are appended to an audit log on prod1, and each completion is logged with its exit code and duration. The token is never logged.