Skip to content
English

Messages and questions

Pixling is preparing for Mac App Store release. Join the waitlist on pixling.app to hear when it launches.

The contracts for speaking through a resident, asking structured questions, reading live conversation history, and observing what is on screen. For combining messages, questions, and motion, see Build expression. For retry safety, see Effects and retries. Late answers for a bound resident arrive in its Inbox.

Task MCP tool CLI command
Send a message or letter pixling_message_send pixling message send
Ask a choice or free-text question pixling_question_ask pixling question ask
Wait for or collect a pending answer pixling_question_result pixling question result
Cancel your own pending question pixling_question_cancel pixling question cancel
Read live conversation history pixling_conversation_read pixling conversation read

to for message.send and question.ask (CLI --to) accepts auto.

  • Picks one visible, unbound resident: auto sends to one random resident that is visible now and can receive. Residents bound by resident.ensure are never picked.
  • Summons only on an empty desk: Only when the desk has no resident at all does auto summon one at random from the Field Guide and have it speak. It appears at the center of the display at an apparent size of about 160pt and is saved. An empty Field Guide fails with zukanEmpty; a resident that cannot be placed fails with summonFailed.
  • Refuses when residents exist but none qualify: If residents are on the desk but none are eligible (another desktop, off screen, hidden, wallpaper, or all bound), auto does not summon. It refuses with rejected / noVisibleResident (CLI exit 5), preventing extra copies from piling up around unseen residents.
  • Questions never summon: A question with auto refuses with rejected / noVisibleResident (CLI exit 5) even on an empty desk, so retrying with the same requestID never adds residents.
  • Result identification: The result’s entityID names the receiving resident. The CLI prints it only with --json; human output prints only the result count and outcome.
  • to is always required: Omitting to fails with invalidArguments (CLI usage error, exit 64). Pixling never picks silently.
  • Unsupported elsewhere: Placement, settings, stow/summon, shape, pixels, light, and motion operations refuse auto with rejected / autoNotSupported.
MCP tool call
{
"name": "pixling_message_send",
"arguments": {
"to": "No.7",
"text": "Build 142 passed.\n[View log](https://example.com/builds/142)",
"author": "CI",
"requestID": "msg-build-142"
}
}

Arguments (see CLI commands for matching CLI flags):

Argument Meaning
to A selector, auto, or an array of 1–32 selectors.
text Message body, up to 4000 graphemes and 64 KiB of UTF-8 (GitHub Markdown).
font auto, maru, gothic, dot, mono, or mincho (auto uses the paper’s typeface).
size small (13pt), normal (16pt), or large (20pt) for this message only.
glowMs Arrival light duration: 570–1010 ms (default 1010).
glowPoints 1–64 opaque pixels {x, y} from top-left; omit for an automatic wave of up to 64 lights.
action One-shot arrival motion: builtin, saved sequence, custom motion, or "none".
mood shout or think on supported papers; omit for a plain remark.
author Speaker label shown on one line above the text, up to 32 graphemes.
keep true creates a letter marked ✉, never shown as a lone oval.
status State name set alongside the message (single client: target only).
notify false skips macOS notifications; omit or true notifies when out of view.
sound false leaves this message silent; omit or true plays the arrival sound.
requestID Idempotency key, 1–128 characters. Omit for a new message on every call.

Key argument rules:

  • action: Pass {"builtin": "poke"|"settle"|"pass"}, {"sequence": "<saved name>"} (a sequence that says nothing), {"motion": "<id>"}, or "none" to keep the resident still. Omit to use the resident’s hooks.speak (poke unless changed).
  • glowPoints: Coordinates use the current pixel-art canvas. Each point lights in place and does not trace a path. CLI: repeat --glow-point X,Y.
  • status: Works like resident.status name. Allowed only when to is a single client:<namespace>/<key>; any other target returns invalidArguments on status. Set regardless of receipt outcome and echoed in the result as status.
  • notify and sound: true never overrides a user setting that is off. See Notification and sound.
  • requestID: Uses the same alphabet as a question’s requestID (letters, digits, ., _, :, -). See Resending a message.
Markdown rendering, links, mood, font, and letters
  • Markdown in text: Renders headings, emphasis, strikethrough, `code`, lists, task lists, quotes, code blocks, tables, and horizontal rules. Images render their alt text, HTML stays literal, and every line break is kept.
  • Links: [text](url), <url>, and bare http(s):// URLs are underlined. Clicking an open link opens http, https, and mailto destinations in the browser or mail app. While Pixling is active, hovered links change color and display the destination as a tooltip.
  • font and size: font uses the same values as resident.set’s speech.font. size overrides the resident’s letter size for this message only.
  • mood: Pixling never guesses mood from text. Only papers with mood shapes (including Manga) draw it: a spiky bubble for shout or a cloud with two small circles for think. It renders only while a short one-line message is the lone card in view of an auto-sizing window. Other papers, longer text, letters, and questions ignore it. It does not persist across restarts, and sequence say has no mood.
  • keep (letters): Letters show ✉ in the window, are read aloud by VoiceOver, and never appear as a lone oval. They are kept and dropped under the same 200-card limit as any other card.
  • Arrival light and motion play once: Both trigger when a card first enters the window; re-showing the card does not replay them. Reduce Motion and a running sequence skip both silently, and turning off the resident’s motion skips motion only. Receipts describe only the card.
  • One window per resident: Messages, letters, questions, and user messages appear oldest-first in acceptance order, scrolling on overflow. At the bottom, new cards scroll into view. While reading higher up, scroll position holds and a tab on the lower edge (New 3) counts arrivals below.
  • Senders: Defined by connection (MCP or CLI; all MCP callers count as one), author, and route, which is either message.send or a sequence say. Messages without author share one sender per route.
  • 200-card cap: Each resident keeps the newest 200 cards across all kinds, senders, and routes; past 200, the oldest drops first. Pending questions, unread user messages, and any card with pointer or keyboard focus are never dropped. busy returns only when nothing else can drop. Cards dropped unseen increment droppedUnseen. No card disappears on a timer.
  • Session persistence: Messages, letters, and answered questions survive app restarts, while sequence lines do not. Stowing the resident removes all cards.
  • Focus deferral: Questions share the same timeline. While keyboard focus or VoiceOver is inside a card (including while typing an answer), new arrivals wait outside the window and enter together once focus leaves. A resting pointer does not hold arrivals back.
Message response (result)
{
"receipts": [
{
"entityID": "0194e1a2-7b3c-7000-8000-000000000001",
"outcome": "spoke",
"waiting": 0,
"notification": "visible"
}
],
"summary": {
"total": 1,
"spoke": 1,
"queued": 0,
"notOnDesk": 0,
"notVisible": 0,
"held": 0,
"rejected": 0
}
}

Each receipt’s outcome is one of:

outcome Meaning
spoke Accepted and visible in the resident’s window.
queued Accepted, waiting below the scroll position or behind card focus. Do not resend.
held Kept while the resident’s window cannot show. Check heldBecause and hint.
notVisible, notOnDesk, rejected Not shown; check hint (and rejection for rejected).
  • queued details: The card is either below the current scroll position (counted on the New tab) or waiting while keyboard focus or VoiceOver is inside another card. It counts as seen once it scrolls into view.
  • held details: Occurs when the resident is hidden, on another desktop, or the desk is paused.
  • notification: Included on accepted receipts (spoke, queued, held); omitted on refused receipts. See Notification and sound.
  • waiting: Counts unseen messages and letters ahead of this one in the same timeline, excluding this message, questions, and user messages.

When to is an array of 1–32 selectors:

  • Every selector resolves before anything is sent. One invalid or missing selector fails the whole call and nobody receives the message.
  • Multiple selectors resolving to the same resident deliver once. If a valid client: selector is included, a UUID for that same resident uses that binding.
  • Binding rules apply per resident: an unauthorized resident gets its own rejected receipt, whereas a single to fails the call as usual.
  • summary reports total and per-outcome counts (spoke, queued, held, notVisible, notOnDesk, rejected) without merging shown and waiting. Read receipts for each resident, because an ok call does not mean every target saw it.
  • auto and everyone are not allowed inside an array.

A timed-out call may still have displayed its message. Resend with the same requestID and identical content: the desk returns the original receipts without showing the message again and without notification. With auto, it does not pick again, so an empty desk gets one resident, not two.

  • Content mismatch: Reusing a requestID with different content fails with rejected / conflict.
  • Shared key space: All MCP callers share one key space, so generate a unique key per message (such as a UUID).
  • Retention: Until Pixling quits, the desk remembers the latest 64 requestID calls that produced at least one accepted receipt. Calls refused before sending, or where every receipt was refused (such as busy), are not remembered and can be retried with the same requestID.
MCP tool call
{
"name": "pixling_question_ask",
"arguments": {
"to": "No.7",
"question": "Deploy release 1.4 now?",
"choices": [
{ "id": "deploy", "label": "Deploy", "note": "Publishes to production", "recommended": true },
{ "id": "wait", "label": "Wait" }
],
"requestID": "q-deploy-1-4"
}
}
Argument Meaning
to Exactly one resident selector, or auto.
question Prompt line, up to 120 graphemes (whitespace folds to single spaces).
choices 2–6 choice objects {id, label, note?, recommended?}.
detail Optional Markdown context below the question, up to 4000 graphemes.
freeText Customizes or removes the typing row beneath the choices.
multiSelect true lets the user check multiple choices and press Send.
requestID Idempotency key, 1–128 characters. Generated and returned when omitted.
waitMs Wait time in milliseconds: default 50000, maximum 55000 (0 returns immediately).
author Speaker label on one line, up to 32 graphemes.
status Temporary state set while pending (single client: target only).
notify false skips macOS notifications; omit or true notifies even when in view.
sound Same as message.send.
  • Choice schema (choices): Each item needs a unique id of 1–64 characters from letters, digits, ., _, :, or -, and a label of up to 32 characters. Optional note adds one line under the label, up to 60 graphemes with line breaks folded to spaces, when the consequence is not obvious from label. CLI: --choice-note ID=TEXT (an id not in --choice is a usage error).
  • Recommended choices: recommended: true outlines the chip in the paper’s mark color, and VoiceOver announces Recommended first in its help. Keep label plain without writing “Recommended” into it. At most one choice may be recommended unless multiSelect is true (otherwise field: "choices" fails). CLI: --choice-recommended ID (an unknown id is a usage error).
  • Self-contained question and detail: Make question clear enough to decide on its own; use detail for trade-offs. detail is sanitized and renders GitHub Markdown like message.send text. Both render in full, so long detail pushes the question up and scrolls the window.
  • Free-text row: On by default with id free-text and caption Write my own, localized by the desk (Write my own in English). Pass {id?, label?} to customize (label up to 32 characters, shown verbatim; id cannot match any choice id), or pass null to remove the row. CLI: --no-free-text, --free-text-id, --free-text-label.
  • Typed answers: Pressing Return settles as answered with selectedChoiceID set to the free-text id and enteredText containing the input (up to 120 graphemes, whitespace collapsed). Always handle this branch.
  • Multi-select questions: With multiSelect: true (CLI --multi-select), clicking checks choices and Send submits. The result returns selectedChoiceIDs instead of selectedChoiceID, ordered by choice definition with the free-text id last and enteredText if typed. The user submits at least one choice or closes the card (cancelled).
  • status and requestID: status requires a single client:<namespace>/<key> (as for message.send), has no expiry, restores the previous state when the question settles if still active, and appears in the result. requestID uses the same character alphabet as choice ids.
  • Arrival defaults: On first appearance, the resident lights and moves once using its defaults; question.ask has no action or light arguments, and re-showing the card does not replay arrival effects.
  • Blocking and 55-second cap (waitMs): The call waits until the question settles or waitMs elapses.
    • Socket deadline: waitMs plus 5 seconds; the 55000 ms cap stays under host tool timeouts such as Codex’s 60-second limit.
    • Inline handover: A settled answer returned here leaves the desk’s question mailbox while staying in conversation history (up to 200 cards) until stowed.
    • On timeout: Returns state: "pending"; follow up with question.result or read kind: answer from your bound inbox.
  • Waiting capacity: Each resident accepts up to 4 waiting questions in timeline order. An auto-sizing window shows from the oldest unanswered question down and keeps it in view if space runs short. Answering updates the card in place.

Question-specific rejected refusals:

Refusal Cause
residentBusy This resident already has 4 questions waiting.
mailboxFull 32 questions are waiting for the user across the desk.
conflict The requestID was already used for different content.

The result’s question object is a receipt only; your question, detail, choices, free-text row, and creation time are not echoed back:

Question receipt
{"promptID":"…","requestID":"…","entityID":"…","state":"pending","presentation":"waiting"}
  • state: pending, answered, or cancelled. When answered, selectedChoiceID (or selectedChoiceIDs for multiSelect) and enteredText appear.
  • presentation (question.ask only): presented, notOnDesk, notVisible, or waiting. presented means the card is in the window (not necessarily scrolled into view). waiting means it is accepted but not in the window yet because keyboard focus or VoiceOver is inside another card, or the window has not stood up yet; it keeps its chronological position.
  • notification: Included for a new question (Notification and sound). Retries with the same requestID do not re-evaluate and omit notification.

CLI human output is one of:

  • answer: ID (with text: … on the next line for a typed answer)
  • question cancelled (closed without an answer)
  • On timeout: question pending: PROMPT_ID and the next command (exit 0)

message.send and question.ask can alert the user with a macOS notification and Pixling’s short arrival sound. There is no notification-only operation.

  • User switches: In Settings › Notifications, Show notifications and Play a sound each have sub-switches for questions and for messages and letters (all on by default). Individual residents can also be muted in their speech bubble paper; anything turned off globally stays off per resident.
  • Per-call overrides: Passing notify: false or sound: false suppresses that single call. Passing true never overrides a user setting that is off.

The desk evaluates notifications once per call when accepting a message (across all recipients together) or a new question:

  • Each recipient follows its own switches for the kind sent.
  • At most one notification posts per call, for the first accepted recipient in to order that qualifies. Questions always notify; messages and letters notify only when the resident is out of view.
  • Other out-of-view recipients share that notification (their receipts also report posted), and clicking it jumps to the first recipient.
  • If any recipient sharing the notification has sound enabled, the sound rides on the notification so macOS Focus silences both. Otherwise (resident in view, notifications disallowed or off, or silent notification), Pixling plays the sound once if any recipient’s sound is on.
  • A disabled desk or hidden resident produces neither notification nor sound.

notification in a receipt or question result reports what happened:

Value Meaning
posted Posted to Notification Center.
visible Not posted: message or letter on a visible resident on the current desktop.
held Not posted and no sound: desk is off or resident is hidden.
notAllowed Not posted: notifications for Pixling Desk are off in System Settings › Notifications.
off Not posted: notify: false, or notifications are off for that resident or kind.
  • Content and privacy: Shows the resident’s name, author as subtitle, and the message or question text (choices omitted), whitespace-folded and truncated at 200 characters. Nothing leaves the Mac.
  • Click behavior: Clicking jumps to the resident’s desktop and opens that card, or does nothing if the resident or card is gone. Clicking a notification for a hidden resident only dismisses it.
  • Automatic retraction: Notifications clear when the user opens or first sees the card on that desktop, when the card leaves the conversation, when a question is answered or closed, when the resident is stowed or hidden, or when the desk turns off. Re-showing a card or retrying a question never notifies again.

Arguments: promptID (required), waitMs (default 50000, maximum 55000).

Returns the same question receipt without presentation. With waitMs, it holds the response while the question stays undecided. A settled result is handed over once and removed. Treat promptID as an opaque handle; never construct it or pass it as a resident ID.

An unknown or already handed-over promptID returns question: null (CLI: question not found (…)). This never means unanswered or canceled; see Effects and retries for recovery.

Arguments: promptID (required).

Cancels a pending question you asked:

  • Closes the question as cancelled, removes its card from the resident’s conversation (dropping any in-progress typed answer), and clears any status the question set.
  • Waiting question.ask or question.result calls return cancelled. Nothing is written to the resident’s inbox because you initiated the cancel.
  • Returns the question receipt once and frees one of the resident’s 4 waiting slots.

Edge cases:

  • Already settled: Returns the settled result unchanged and hands it over, like question.result.
  • Unknown or unauthorized: A question asked by another caller, or an unknown or already handed-over promptID, fails with rejected / notFound. All MCP connections share one caller identity, so any MCP connection can cancel a question asked by another given its promptID.
Answer handover flow
question.ask ─┬─ settled within waitMs ──▶ returned inline (removed from mailbox)
└─ timeout (state: pending)
├─ unbound resident ──▶ question.result --wait-ms
└─ bound resident ──▶ question.result OR inbox.watch + inbox.read (kind: answer)

The desk keeps no delivery bookkeeping. Every settled answer goes to exactly one destination, then leaves the desk:

  1. A waiting question.ask or question.result call (waitMs).
  2. Otherwise, if the resident is bound by resident.ensure, its namespace/key inbox as a kind: answer entry (empty text, answer: {promptID, outcome, selectedChoiceID?, selectedChoiceIDs?, enteredText?}, and messageID equal to promptID), read with pixling_inbox_read.
  3. Otherwise, the next single question.result call.
  • Resending pending questions: Resend with the same explicit requestID and identical content.
  • auto retries: Resending with auto finds the resident picked by the first call, even after a desktop change, instead of picking again. If that lookup cannot run, the call fails with unavailable and never picks a new resident.
  • Always set requestID: Omitting requestID generates a fresh key on every call, so question.ask is not marked idempotent. If you lose the first response without an explicit key, you cannot safely resend.
  • 32-question mailbox cap: The desk holds up to 32 questions (pending, or settled and not yet handed over). It evicts the oldest settled, uncollected question only when a new question needs space.

residents.list with detail: full (CLI residents --detail full) adds an optional conversation object per resident describing what the app observed at request time. It contains no message text, draft, or answer, and does not prove the user saw anything. Its absence means no observation was available.

Field Meaning
hostState ready, hostTransition, suppressed, wallpaper, offscreen, otherDesktop, preparing, notVisible, hostUnconfirmed, or unavailable.
speechAttachedDisplayID, questionAttachedDisplayID Display cards are attached to, if any. May differ from the body’s displayID; attached does not imply visible.
speechShowing Messages and letters currently in the window (scrolled into view or not).
speechQueued Accepted messages and letters waiting to enter the window.
speechHeld Messages and letters held while the resident’s window cannot show.
seats Distinct message senders (per connection, author, and route; letters excluded).
questionsPending Questions currently waiting for an answer.
questionPresented Whether a pending question is currently in the window.
questionWaitingForQueueOrLayout Oldest pending question is accepted but not yet in the window (presentation: waiting).
droppedUnseen Cards dropped past the 200-card limit before being seen.
  • speechQueued: Counts cards waiting while keyboard focus or VoiceOver is inside another card; pointer hover does not hold arrivals back.
  • droppedUnseen: Caps at 1,000,000 and resets when the resident leaves the desk or the app restarts.
  • Independent facts: The body’s location, where cards are attached, whether the host accepts cards, and whether the user read them are separate facts. The CLI human table prints this state in its conversation: column.

conversation.read {to, offset?, limit?} (CLI pixling conversation read) returns one resident’s live conversation oldest first, matching Past conversation. It reads the desk’s live chronology rather than the saved copy.

  • Target and privacy: to must name one resident. A resident bound to another caller can only be read through its own client:<namespace>/<key>, matching its inbox; otherwise the call fails with boundToAnotherClient. A resident with no conversation returns an empty list.
  • Pagination: Works like zukan.list: offset starts from 0, and limit defaults to 50 with a maximum of 200. The response includes total and nextOffset (null on the last page).
  • Entry fields: Each entry has id, ordinal, kind, admittedAt, and when present author, caller, text, detail, answer, and moreAnswers. Sequence speech and previews never enter the conversation.
kind Contents
speech Regular message.
letter Kept letter (keep: true).
answered Answered question at its original position, with text and detail.
answer User’s answer when given: question’s first line in text, chosen labels in answer / moreAnswers.
question Still waiting; ID only (read via question.result).
message What the user wrote to the resident.

Redaction rules for user-written text:

  • message entries: text is included only when to is the resident’s own client: (the caller allowed to call inbox.read). Other callers receive an id reference only.
  • Typed free-text answers: answer sets answerTyped: true and reveals the typed text in answer or moreAnswers only for the resident’s own client:. Other callers also see typedAnswerWithheld: true. Choice labels offered by the asker are always included.