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 |
The auto target
Section titled “The auto target”to for message.send and question.ask (CLI --to) accepts auto.
- Picks one visible, unbound resident:
autosends to one random resident that is visible now and can receive. Residents bound byresident.ensureare never picked. - Summons only on an empty desk: Only when the desk has no resident at all does
autosummon 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 withzukanEmpty; a resident that cannot be placed fails withsummonFailed. - 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),
autodoes not summon. It refuses withrejected/noVisibleResident(CLI exit5), preventing extra copies from piling up around unseen residents. - Questions never summon: A question with
autorefuses withrejected/noVisibleResident(CLI exit5) even on an empty desk, so retrying with the samerequestIDnever adds residents. - Result identification: The result’s
entityIDnames the receiving resident. The CLI prints it only with--json; human output prints only the result count and outcome. tois always required: Omittingtofails withinvalidArguments(CLI usage error, exit64). Pixling never picks silently.- Unsupported elsewhere: Placement, settings, stow/summon, shape, pixels, light, and motion operations refuse
autowithrejected/autoNotSupported.
pixling_message_send
Section titled “pixling_message_send”{ "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" }}pixling message send --to No.7 \ --text $'Build 142 passed.\n[View log](https://example.com/builds/142)' \ --author CI --request-id msg-build-142Arguments (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’shooks.speak(pokeunless 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 likeresident.statusname. Allowed only whentois a singleclient:<namespace>/<key>; any other target returnsinvalidArgumentsonstatus. Set regardless of receipt outcome and echoed in the result asstatus.notifyandsound:truenever overrides a user setting that is off. See Notification and sound.requestID: Uses the same alphabet as a question’srequestID(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 barehttp(s)://URLs are underlined. Clicking an open link openshttp,https, andmailtodestinations in the browser or mail app. While Pixling is active, hovered links change color and display the destination as a tooltip. fontandsize:fontuses the same values asresident.set’sspeech.font.sizeoverrides 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 forshoutor a cloud with two small circles forthink. 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 sequencesayhas nomood.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.
Window and timeline rules
Section titled “Window and timeline rules”- 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 eithermessage.sendor a sequencesay. Messages withoutauthorshare 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.
busyreturns only when nothing else can drop. Cards dropped unseen incrementdroppedUnseen. 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.
Receipts and several targets
Section titled “Receipts and several targets”{ "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). |
queueddetails: The card is either below the current scroll position (counted on theNewtab) or waiting while keyboard focus or VoiceOver is inside another card. It counts as seen once it scrolls into view.helddetails: 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
rejectedreceipt, whereas a singletofails the call as usual. summaryreportstotaland per-outcome counts (spoke,queued,held,notVisible,notOnDesk,rejected) without merging shown and waiting. Readreceiptsfor each resident, because anokcall does not mean every target saw it.autoandeveryoneare not allowed inside an array.
Resending a message
Section titled “Resending a message”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
requestIDwith different content fails withrejected/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
requestIDcalls that produced at least one accepted receipt. Calls refused before sending, or where every receipt was refused (such asbusy), are not remembered and can be retried with the samerequestID.
pixling_question_ask
Section titled “pixling_question_ask”{ "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" }}pixling question ask --to No.7 \ --question 'Deploy release 1.4 now?' \ --choice deploy=Deploy --choice wait=Wait \ --choice-note 'deploy=Publishes to production' \ --choice-recommended deploy \ --request-id 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. |
Question behavior
Section titled “Question behavior”- Choice schema (
choices): Each item needs a uniqueidof 1–64 characters from letters, digits,.,_,:, or-, and alabelof up to 32 characters. Optionalnoteadds one line under the label, up to 60 graphemes with line breaks folded to spaces, when the consequence is not obvious fromlabel. CLI:--choice-note ID=TEXT(anidnot in--choiceis a usage error). - Recommended choices:
recommended: trueoutlines the chip in the paper’s mark color, and VoiceOver announces Recommended first in its help. Keeplabelplain without writing “Recommended” into it. At most one choice may be recommended unlessmultiSelectistrue(otherwisefield: "choices"fails). CLI:--choice-recommended ID(an unknownidis a usage error). - Self-contained
questionanddetail: Makequestionclear enough to decide on its own; usedetailfor trade-offs.detailis sanitized and renders GitHub Markdown likemessage.sendtext. Both render in full, so longdetailpushes the question up and scrolls the window. - Free-text row: On by default with id
free-textand captionWrite my own, localized by the desk (Write my own in English). Pass{id?, label?}to customize (label up to 32 characters, shown verbatim;idcannot match any choiceid), or passnullto remove the row. CLI:--no-free-text,--free-text-id,--free-text-label. - Typed answers: Pressing Return settles as
answeredwithselectedChoiceIDset to the free-text id andenteredTextcontaining 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 returnsselectedChoiceIDsinstead ofselectedChoiceID, ordered by choice definition with the free-text id last andenteredTextif typed. The user submits at least one choice or closes the card (cancelled). statusandrequestID:statusrequires a singleclient:<namespace>/<key>(as formessage.send), has no expiry, restores the previous state when the question settles if still active, and appears in the result.requestIDuses the same character alphabet as choiceids.- Arrival defaults: On first appearance, the resident lights and moves once using its defaults;
question.askhas noactionor 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 orwaitMselapses.- Socket deadline:
waitMsplus 5 seconds; the55000ms 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 withquestion.resultor readkind: answerfrom your bound inbox.
- Socket deadline:
- 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. |
Question receipt
Section titled “Question receipt”The result’s question object is a receipt only; your question, detail, choices, free-text row, and creation time are not echoed back:
{"promptID":"…","requestID":"…","entityID":"…","state":"pending","presentation":"waiting"}state:pending,answered, orcancelled. When answered,selectedChoiceID(orselectedChoiceIDsformultiSelect) andenteredTextappear.presentation(question.askonly):presented,notOnDesk,notVisible, orwaiting.presentedmeans the card is in the window (not necessarily scrolled into view).waitingmeans 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 samerequestIDdo not re-evaluate and omitnotification.
CLI human output is one of:
answer: ID(withtext: …on the next line for a typed answer)question cancelled (closed without an answer)- On timeout:
question pending: PROMPT_IDand the next command (exit0)
Notification and sound
Section titled “Notification and sound”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: falseorsound: falsesuppresses that single call. Passingtruenever 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
toorder 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,
authoras subtitle, and the message orquestiontext (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.
pixling_question_result
Section titled “pixling_question_result”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.
pixling_question_cancel
Section titled “pixling_question_cancel”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 anystatusthe question set. - Waiting
question.askorquestion.resultcalls returncancelled. Nothing is written to the resident’s inbox because you initiated the cancel. - Returns the
questionreceipt 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 withrejected/notFound. All MCP connections share one caller identity, so any MCP connection can cancel a question asked by another given itspromptID.
Resending and handing over the answer
Section titled “Resending and handing over the answer”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:
- A waiting
question.askorquestion.resultcall (waitMs). - Otherwise, if the resident is bound by
resident.ensure, itsnamespace/keyinbox as akind: answerentry (emptytext,answer: {promptID, outcome, selectedChoiceID?, selectedChoiceIDs?, enteredText?}, andmessageIDequal topromptID), read withpixling_inbox_read. - Otherwise, the next single
question.resultcall.
- Resending pending questions: Resend with the same explicit
requestIDand identical content. autoretries: Resending withautofinds the resident picked by the first call, even after a desktop change, instead of picking again. If that lookup cannot run, the call fails withunavailableand never picks a new resident.- Always set
requestID: OmittingrequestIDgenerates a fresh key on every call, soquestion.askis 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.
Conversation state in residents.list
Section titled “Conversation state in residents.list”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.
pixling_conversation_read
Section titled “pixling_conversation_read”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:
tomust name one resident. A resident bound to another caller can only be read through its ownclient:<namespace>/<key>, matching its inbox; otherwise the call fails withboundToAnotherClient. A resident with no conversation returns an empty list. - Pagination: Works like
zukan.list:offsetstarts from0, andlimitdefaults to50with a maximum of200. The response includestotalandnextOffset(nullon the last page). - Entry fields: Each entry has
id,ordinal,kind,admittedAt, and when presentauthor,caller,text,detail,answer, andmoreAnswers. 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:
messageentries:textis included only whentois the resident’s ownclient:(the caller allowed to callinbox.read). Other callers receive anidreference only.- Typed free-text answers:
answersetsanswerTyped: trueand reveals the typed text inanswerormoreAnswersonly for the resident’s ownclient:. Other callers also seetypedAnswerWithheld: true. Choice labels offered by the asker are always included.