← MetalCONTENT HISTORY
WHAT CHANGED
Update to Metal
Snapshot Nov 23, 2026 · 18:22 UTC · version 0.2.8
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Metal and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Use when the user asks to run, start or kick off a Metal Routine, or to run one on a note, email, file, record or pasted text, and to check a Routine run's status, answer its pending question or permission, or read its output.",
"included_files": [],
"name": "running-routines",
"skill_md_contents": "---\nname: running-routines\ndescription: Use when the user asks to run, start or kick off a Metal Routine, or to run one on a note, email, file, record or pasted text, and to check a Routine run's status, answer its pending question or permission, or read its output.\n---\n\n# Running Metal Routines\n\nBefore starting, read [Safety and confirmation](../../references/safety.md) and apply it throughout this task.\n\nA Metal Routine is a saved objective that Metal runs as its own Chat session. This skill covers one run from start to output: find the Routine, start it with the right input, check its status, answer what it asks, and read what it produced.\n\nCreating or editing a Routine, and stopping a run, happen in the Metal app. No Metal tool does them.\n\n## What a run sees\n\nA run sees its Routine's objective and the input you pass to `start_routine_run`: `text` and `references`. It does not see this conversation. Put everything the run needs into that input.\n\n## Start a run\n\n1. **Find the Routine.** If the user gives a Metal Routine link, its path ends in `/routines/<routineId>`; use that ID. Otherwise call `list_routines` with `view: \"mine\"`, then with `view: \"shared\"`, and follow `cursor` in each view until you find it. Never ask the user for a Routine ID.\n2. **More than one Routine could match the user's words?** Ask the user which one, by name, and end the turn. Start nothing.\n3. **Call `get_routine` and read the objective before `start_routine_run`.** This step is required. The objective says what a run takes. Build `text` and `references` from it and from the conversation.\n4. **Check `canRequestRun`.** If it is false, do not start. The Routine cannot be started by hand for this user, for example because it runs only on events. Tell the user, and give `routineUrl` when the response has one.\n5. **If input that the objective requires is missing or ambiguous, ask the user here and wait for the answer before you call `start_routine_run`.** Do not start a run and expect it to collect the missing input.\n6. **Call `start_routine_run`** with `routineId`, a new `requestId`, and the input.\n\n### Build the input\n\n- `text` carries the instructions and any pasted content the run needs, such as the body of a note or email. Write it so that someone with no access to this conversation can act on it.\n- `references` attaches Metal records. Each entry is `{\"resourceType\": ..., \"resource\": <24-character hex ID>}`. The types are `document`, `company`, `deal`, `activity`, `task` and `data_entity`.\n- A file found with `search_documents` or `get_document` is a `data_entity`. A company comes from `search_companies`, a deal from `search_deals`, a meeting or other interaction from `get_activities`, and a task from `list_tasks` or `search_tasks`.\n- Copy every ID from a tool result. Never type one from memory. The same record cannot appear twice.\n- The run needs `text`, `references`, or both. The serialized input must be at most 128 KiB.\n\n## Ambiguous names: ask, every time\n\nStarting the closer match and offering to run the other one is guessing, and a started run cannot be taken back.\n\n| Thought | Reality |\n|---|---|\n| \"One name matches the user's words exactly\" | Another name also contains them. Ask. |\n| \"I'll run this one; they can tell me if they meant the other\" | The run has already started. Ask first. |\n| \"I read both objectives and one fits better\" | The user chooses, not you. Ask. |\n\n## The requestId makes a start safe to retry\n\n`requestId` is an identity that you generate, 1 to 128 characters. Use a fresh UUID for each run the user asks for.\n\n- Keep the `requestId` and the exact input until you have a `runId`.\n- If `start_routine_run` times out, errors without a clear answer, or you are not sure whether it started, call it again with the same `requestId`, `routineId`, `text` and `references`. Metal returns the original run instead of starting a second one.\n- The same `requestId` with any change to the Routine or input fails with \"Routine request identity was already used with different input\". Do not change the input under an old ID.\n- A new deliberate request from the user is a new run and needs a new `requestId`. Never generate a new ID only to retry an uncertain start.\n\n## After the start\n\nThe receipt means Metal durably accepted the run. It does not mean the run finished. Report the `runId`, and `routineUrl` or `sessionUrl` when present. `sessionUrl` appears only after the run launches its Chat. Never build a Metal link yourself.\n\n## Check status\n\nCall `get_routine_run` with the `runId`. It returns the current state at once; it does not wait. To find a run without its ID, call `list_routine_runs` with `view: \"mine\"` and with `view: \"shared\"`. The mine view has separate attention, active and history sections, each with its own cursor.\n\n`run.status` is one of:\n\n- `starting` or `in_progress`: the run is working. Check again later, or tell the user it is still running.\n- `needs_attention`: the run is waiting on a question or a permission. See `pendingRequests` below.\n- `stopped`: the run is over. `terminal` is true, and `run.stopReason` says how it ended: `completed`, `incomplete`, `failed`, `skipped` or `user_stopped`. `run.failureCode` and `run.failureMessage` add detail when present.\n\n`stopped` with a stop reason other than `completed` is not a success. Say how it ended.\n\n## Answer a pending question or permission\n\nA pending prompt is a decision that belongs to the user. Answer it only with the user's actual answer or decision. Never infer one from the objective, the conversation or what seems likely, and never answer one because the status is pending.\n\n1. Read the prompt from `get_routine_run` `pendingRequests`. Each entry has its own `requestId`, a `kind`, and `supported` and `canRespond` flags.\n2. If `supported` is false (`kind` is `secret_input` or `secret_approval`) or `canRespond` is false, you cannot answer it here. Send the user to the run's `sessionUrl`.\n3. Show the user the question and its options, or the permission and the tool it names, and wait for their reply.\n4. Call `respond_to_routine_run` with `runId`, the prompt's `requestId` (not the start `requestId`) and `kind`.\n\nFor a `question` prompt:\n\n- Answer every question in the prompt. `answers` maps each question `id` to an object with both keys `optionIds` and `text`. Fill at least one of them; pass `\"text\": \"\"` or `\"optionIds\": []` for the one you do not use.\n- Use only option `id` values from that question. A question whose `multiSelect` is false takes at most one option.\n- `text` is at most 2000 characters.\n- Do not pass `decision` with a question response.\n\nFor a `permission` prompt:\n\n- `decision` is `approve` or `deny`, and covers only this one request. There is no standing approval. Do not pass `answers`.\n- A permission prompt names the tool, not the full target of the action. If the user cannot tell what they are approving, send them to `sessionUrl` instead.\n\nThe response receipt means Metal accepted the answer. It does not mean the run resumed or finished. If the call times out or its outcome is uncertain, read `get_routine_run` before you send anything again. \"Routine run is no longer actionable\" means the run is no longer active or a stop was requested.\n\n## Read the output\n\nWhen `get_routine_run` shows `outputAvailable: true`, call `get_routine_run_output` with the `runId`.\n\n- `content` is the run's stored result text, with `citations`. It is the run's original result, not later conversation in its Chat.\n- The response holds at most `maxChars` characters, 6000 by default and 24000 at most. When `nextCursor` is present, call again with it as `cursor` to read the rest. If the call fails with \"Stored output changed; restart without a cursor\", read again from the start without `cursor`.\n- `artifacts` lists files with `name`, `contentType`, `size` and a temporary `url`. Present each `url` to the user as a download link. The URLs expire after about one hour; read the output again to get fresh ones. If a file has no `url`, say the download is not available and give `sessionUrl` instead. Do not look for another way to reach the file.\n- Status and output are separate. A run can be `stopped` with no stored output. Then explain how it ended and that it stored no result.\n"
}SHA-256 of public snapshot: fb716d202d6920ea442443f52a688083faebe1b7b27b985b2e6b68243a167247