Search Muse chats (muse.ai)
Automatically search Muse chats (muse.ai) on muse.ai. Search the messages of the signed-in Muse account (Meta's personal agent at muse.ai) with Muse's own search, and return one page of the messages that match, newest first: each message (from the user or from Muse) with its text as markdown, its time and its sources, the chat it is in, and the extract Muse shows for the match. All chats are searched, archived chats included, or only the main chat with main_chat_only: true. A page holds up to 100 messages. When has_more is true, run the same search again with before set to next_before to get the next page. A search that matches nothing returns an empty list. Pass a hit's chat id to muse.ai/get_chat to read the whole chat, or to muse.ai/send_message to continue it. Requires a signed-in session: a signed-out browser fails at once with an error that says so.
Inputs
query requiredThe words to search for, as typed in Muse's search box. It must hold at least one character that is not a space.
before optionalThe next_before of the previous page, to get the page after it. Omit it for the first page.
main_chat_only optionaltrue searches only the account's main chat. false (the default) searches every chat.
Default: falseOutput
hits requiredThe messages of this page that match, newest first. Empty when nothing matches.
has_more requiredTrue when older messages also match: pass next_before as before to get them.
next_before requiredThe value of before for the next page. Null when has_more is false.
FAQ
Read a Muse chat (muse.ai)
Read one chat of the signed-in Muse account (Meta's personal agent at muse.ai) from its first message to its last: every message of the user and of Muse, and every card Muse showed in it (a browser task, shopping results, choices), oldest first, each with its text as markdown, its time, its status and the web pages Muse attached as sources. Long chats are read page by page to their start, so the chat comes back whole. Get a chat's id from muse.ai/list_chats, or the threadId that muse.ai/ask returns; it also reads the result Muse posts later in a chat that ask left pending. An id the account has no chat for fails with an error that says so. Requires a signed-in session: a signed-out browser fails at once with an error that says so.
Ask Muse (muse.ai)
Open a new side chat with Muse, Meta's personal agent at muse.ai, send one question, wait until Muse ends its reply (up to about 3 minutes), and return what Muse posted: the answer as markdown, each message and widget of the turn, and the web pages it used as sources. `answer` joins the text of every reply message of the turn. `messages` lists the turn in order: `reply` items are Muse's text messages, `widget` items are the cards Muse shows (a browser task, shopping results, choices), each with its text and the data Muse holds for it. `sources` are the pages Muse's searches gave it, deduplicated by url; they are the pool it could read, not only the pages the answer links to. Muse can give a task to its own browser and keep working after its reply. Then `pending` is true and the answer is Muse's first reply (for example "checking the stores now"): Muse posts its result later in the same chat, at `url`. `pending` is null when the browser hides Muse's activity panel, so the run cannot tell. Requires a signed-in session: Muse has no anonymous chat, and a signed-out browser fails at once with an error that says so. Each run starts a new side chat in the account, which stays in its chat list. The account's memory and earlier chats can influence the answer.
List Muse chats (muse.ai)
List every chat of the signed-in Muse account (Meta's personal agent at muse.ai), as its chat list shows them: the main chat and each side chat, with its id, title, the text of its last message, when it was created and last updated, and whether it is pinned, archived or has unread messages. Muse gives the whole list at once, so the list is complete. Pass archived: true to list the archived chats instead. Pass a chat's id to muse.ai/get_chat to read it. Requires a signed-in session: a signed-out browser fails at once with an error that says so.
