Ask Muse Code (new session) [experimental]
muse_askAsk Meta's Muse Code a question or task in a new session and get its final answer, with optional sandbox control and workspace context.
Instructions
Ask Meta's Muse Code (muse exec) a question or task in a NEW session. EXPERIMENTAL.
⚠️ The real model has never answered through this bridge — the author has no
Muse plan. Muse's built-in offline echo provider verified everything else
end to end (argv, event stream, answer, session resume), so a failure here is
most likely auth or the model itself. If it misbehaves, say so plainly and
please report it.
Needs a Muse Code plan (muse login) or a META_API_KEY; run muse_status
first. Returns the agent's final message (the run_terminal event of
muse exec --json). Point workspace at a project dir for repo context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model id (`--model`, e.g. "muse-spark-1.3"). Muse accepts any id, so this is not validated. Omit for muse's default. | |
| watch | No | If true, open a live "watch" view of muse's task stream. Same final text is returned. Best-effort. Default false. | |
| prompt | Yes | Question or instruction for Muse. Passed in a file, never argv. | |
| sandbox | No | "read-only" (default — muse's write, shell and web tools switched off, so it can only read and answer; holds on every OS), "workspace-write" (shell runs inside muse's OS sandbox, network proxy-only; on Windows that sandbox needs a one-time elevated setup — see muse_status), or "danger-full-access" (`--yolo`: no approval, no sandbox — avoid). | read-only |
| timeout_s | No | Max seconds to wait for muse to complete. Default 180. | |
| workspace | No | Working root (`--workspace`). Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |