{
  "build": "miscsubjects",
  "ts": "2026-09-13T07:09:33.614Z",
  "note": "One call = the whole build, with the exact request for every capability and how to test it. Every capability is REST.",
  "auth": "edits (PUT/DELETE/POST that mutate) require header  x-terminal-key: <TERMINAL_KEY>",
  "envelope": {
    "note": "Standard result shapes. Parse these and you parse the whole build.",
    "dispatch": "{ \"trace\": \"t_xxxx\", \"result\": \"<string|json-string>\", \"cost\": <number> }  — from POST /api/dispatch",
    "rest_ok": "2xx + JSON body of the affected object (article/file/row/…)",
    "rest_err": "non-2xx + { \"error\": \"<reason>\" }",
    "fn_or_flow_result": "result is a JSON string for fn/flow rows — JSON.parse(result) to read it",
    "shape_mode": "POST /api/dispatch {key,body,shape:true} OR GET /api/manual?test=<key> — returns the fully-shaped outbound request without sending"
  },
  "bootstrap": [
    "GET /api/manual           -> this (every capability + its request + its test)",
    "POST /api/dispatch {key,body} -> run any capability",
    "GET /api/manual?test=<key> -> prove a capability's request shape without firing it"
  ],
  "surfaces": {
    "run_any_capability": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/dispatch",
      "body": {
        "key": "<KEY>",
        "body": "<args>",
        "actor": "<optional tag>"
      },
      "note": "the one door — runs any directory row"
    },
    "list_capabilities": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/directory",
      "note": "every row; add ?type=agent|http|fn|flow"
    },
    "create_capability": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/directory",
      "body": {
        "key": "<KEY>",
        "type": "fn|http|agent|flow",
        "target": "<target>",
        "content": "<template/prompt/dsl>"
      }
    },
    "edit_capability": {
      "method": "PATCH",
      "url": "https://miscsubjects.com/api/directory/<KEY>",
      "body": {
        "content": "<new>"
      },
      "note": "partial; PUT for full upsert; DELETE to remove"
    },
    "inventory": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/inventory",
      "note": "every file/object with read/edit/delete; ?kind=file,r2,kv,directory,page,article"
    },
    "file_read": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/file/<path>"
    },
    "file_write": {
      "method": "PUT",
      "url": "https://miscsubjects.com/api/file/<path>",
      "headers": {
        "x-terminal-key": "<KEY>"
      },
      "body": {
        "content": "<text>",
        "message": "<optional commit msg>"
      },
      "note": "commits to GitHub main"
    },
    "file_delete": {
      "method": "DELETE",
      "url": "https://miscsubjects.com/api/file/<path>",
      "headers": {
        "x-terminal-key": "<KEY>"
      }
    },
    "article_create": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/articles",
      "body": {
        "slug": "<slug>",
        "title": "<title>",
        "body": "<markdown body>",
        "hero": "<url>",
        "images": [
          {
            "url": "<url>",
            "caption": "<text>"
          }
        ],
        "style": {
          "theme": "light|dark",
          "accent": "#hex",
          "font": "\"Georgia\", serif",
          "measure": "680"
        }
      },
      "note": "hero, images, style are optional. body is markdown with ## headings, **bold**, ![alt](url), [text](url). Public page: /a/<slug>"
    },
    "article_read": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/articles/<slug>",
      "note": "returns {slug,title,body,hero,images,style,created_at,updated_at}"
    },
    "article_patch": {
      "method": "PATCH",
      "url": "https://miscsubjects.com/api/articles/<slug>",
      "body": {
        "title": "<new>",
        "body": "<new>",
        "hero": "<new>",
        "images": "<new>",
        "style": "<new>"
      },
      "note": "partial edit; any field omitted is left unchanged"
    },
    "article_delete": {
      "method": "DELETE",
      "url": "https://miscsubjects.com/api/articles/<slug>",
      "note": "removes article and all its data"
    },
    "article_list": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/articles",
      "note": "returns {articles:[{slug,title,updated_at}]}"
    },
    "page_read": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/pages/<slug>",
      "note": "D1 page; ?versions=1 for history. NOTE: the homepage / is the static file public/index.html, not a D1 page."
    },
    "page_write": {
      "method": "PUT|PATCH",
      "url": "https://miscsubjects.com/api/pages/<slug>",
      "body": {
        "title": "<title>",
        "body_html": "<html>"
      },
      "note": "PUT upserts, PATCH edits; each write snapshots a version"
    },
    "page_delete": {
      "method": "DELETE",
      "url": "https://miscsubjects.com/api/pages/<slug>"
    },
    "content_list": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/content",
      "note": "filters ?type ?status ?section ?tag ?q ?limit · ?title=<exact>"
    },
    "content_create": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/content",
      "body": {
        "slug": "<slug>",
        "type": "<type>",
        "title": "<title>",
        "body_md": "<markdown>",
        "tags": [
          "<tag>"
        ]
      }
    },
    "content_edit": {
      "method": "PATCH",
      "url": "https://miscsubjects.com/api/content/<slug>",
      "body": {
        "body_md": "<new>"
      },
      "note": "body_json merges field-by-field; snapshots a version"
    },
    "content_delete": {
      "method": "DELETE",
      "url": "https://miscsubjects.com/api/content/<slug>"
    },
    "kv": {
      "method": "GET|PUT|DELETE",
      "url": "https://miscsubjects.com/api/kv",
      "note": "key in ?key= ; also the agent settings store (convo_max, agent_tool_loops, grok_web_search, grok_temperature, todo_autorun, gas_webhook_url)"
    },
    "r2": {
      "method": "GET|PUT|DELETE",
      "url": "https://miscsubjects.com/api/r2/<path>"
    },
    "settings": {
      "method": "GET|PUT|PATCH|DELETE",
      "url": "https://miscsubjects.com/api/settings/<key>"
    },
    "ledger_turns_for_gas": {
      "method": "GET",
      "url": "https://miscsubjects.com/admin/ledger?turns=1",
      "note": "ONE JSON object per inbound iMessage: {message, tools:[{key,in,out}], routed, reply}. Filters ?trace_id ?q ?limit. The view to point Google Apps Script at."
    },
    "ledger_raw": {
      "method": "GET",
      "url": "https://miscsubjects.com/admin/ledger?data=1",
      "note": "raw events, one row per step. Filters ?source ?key ?trace_id ?q ?limit (<=1000)."
    },
    "send_message": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/dispatch",
      "body": {
        "key": "SEND_BY_CHANNEL",
        "body": "blooio|<phone-or-chat>|<text>"
      },
      "note": "the build sends an iMessage/text itself"
    },
    "deploy": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/dispatch",
      "body": {
        "key": "WRANGLER_DEPLOY",
        "body": ""
      },
      "note": "runs `wrangler pages deploy public` on the Mac bridge; makes committed code live"
    },
    "run_shell": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/dispatch",
      "body": {
        "key": "LOCAL_EXEC",
        "body": "<any shell line>"
      },
      "note": "full shell on the Mac"
    },
    "screenshot": {
      "method": "POST",
      "url": "https://miscsubjects.com/api/dispatch",
      "body": {
        "key": "LOCAL_SCREENSHOT",
        "body": ""
      },
      "note": "screenshots the Mac, returns a stable URL"
    },
    "ontology_index": {
      "method": "GET",
      "url": "https://miscsubjects.com/api/map",
      "note": "routes + bindings + counts (the index; this endpoint is the full shape dump)"
    }
  },
  "directory_schema": {
    "store": "D1 table `directory` (one row = one environment object; invocable objects retain the existing dispatch fields)",
    "fields": {
      "key": "string · primary key · the invocation name",
      "type": "fn | http | agent | flow",
      "target": "fn: FN_MAP name · http: \"METHOD url\" (e.g. \"GET https://…/$1\") · agent: model id · flow: \"\" (content holds the DSL)",
      "auth": "http only: \"bearer:ENV_VAR\" | \"headers:{...}\" | \"query:k=$ENV\" | \"\"",
      "content": "fn/http: \"# docs\\n<arg template>\" · agent: the system prompt body · flow: the DSL",
      "includes": "agent only: comma-separated prompt_block keys (e.g. BLOCK_VOICE,BLOCK_ROUTING) composed before content at runtime",
      "category": "string tag",
      "allowed_categories": "csv of categories, or \"*\"",
      "seq": "int (sort)",
      "enabled": "1|0",
      "planner_visible": "1|0",
      "planner_rank": "int",
      "input_schema": "optional JSON string",
      "examples": "optional JSON string",
      "object_kind": "optional canonical object kind (page, route, prompt, model, sheet, source, law, skill, store, external, capability)",
      "descriptor_json": "canonical miscsubjects/environment-object/1 JSON: identity, exact operations, relationships, governance, comparables, representations",
      "descriptor_rev": "monotonic descriptor revision; incremented whenever descriptor_json changes",
      "descriptor_hash": "sha256 of canonical descriptor JSON",
      "invocation": "the raw REST JSON that invokes this row: {method,url,headers,body} with the credential left as INJECTED_BY_WORKER; written by POST /api/directory/<key>/test",
      "invocation_curl": "the same request as a curl that runs when pasted into the owner's terminal: credential written as the vault variable for its host ($XAI_API_KEY, $TERMINAL_KEY)",
      "last_status": "transport record of the last test: {http, ok, ms, trace_id, ledger, error, at} — or {skipped, reason}",
      "last_response": "the full payload the last test returned (up to 60k chars)",
      "test_state": "🟢 works | 🔴 broken | 🟡 untested — decided only by POST /api/directory/<key>/test, never by hand",
      "tested_at": "when test_state was decided",
      "row_num": "int · computed · 1-based position in the canonical directory list (stable for a given ordering)"
    },
    "rest": {
      "list": "GET /api/directory[?type=agent|http|fn|flow][&row_num=N][&format=widgets] -> {count, rows[]}; format=widgets returns HTML cards; row_num returns the Nth row",
      "read": "GET /api/directory/<key>[?format=widgets] -> the row with row_num; format=widgets returns an HTML card",
      "create": "POST /api/directory {key,type,...} (key+type required) -> 201",
      "update": "PUT /api/directory/<key> {type,...} (full upsert)",
      "patch": "PATCH /api/directory/<key> {field:value,...} (partial; e.g. {\"content\":\"...\"})",
      "delete": "DELETE /api/directory/<key>"
    },
    "invoke": "POST /api/dispatch {key, body, actor?} -> runs the row and returns its result",
    "model_call": "POST /api/invoke {key, input|inputs|messages, model?, system?, memory?, includes?, vars?, temperature?, max_tokens?, n?} -> one model call, or up to 200 in parallel in one round trip. No agent loop, no tools, hard timeout. This is the only sanctioned way to call a model; a prompt never lives in code (see law MODEL_CALL_LAW)."
  },
  "counts": {
    "capabilities": 1446
  },
  "capabilities": [
    {
      "key": "0_AGENTS_MD",
      "type": "fn",
      "category": "0-instructions",
      "doc": "EX: [0_AGENTS_MD][/0_AGENTS_MD] — returns the file, verbatim WHAT: The instruction file `~/miscsubjects-pages/AGENTS.md`, read by Codex CLI, opencode, goose, OpenHands. THIS ROW IS THE FILE. WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,   and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of   the directory, above everything else. WHEN_TO_USE: before the first action of any session, and again before any decision about where a   deliverable goes or what authority a rule has. AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they   differ, the file is right and this row is stale. Regenerate, never hand-edit.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "0_AGENTS_MD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "0_AGENTS_MD",
        "type": "fn",
        "what": [
          "EX: [0_AGENTS_MD][/0_AGENTS_MD] — returns the file, verbatim",
          "WHAT: The instruction file `~/miscsubjects-pages/AGENTS.md`, read by Codex CLI, opencode, goose, OpenHands. THIS ROW IS THE FILE.",
          "WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,",
          "  and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of",
          "  the directory, above everything else.",
          "WHEN_TO_USE: before the first action of any session, and again before any decision about where a",
          "  deliverable goes or what authority a rule has.",
          "AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they",
          "  differ, the file is right and this row is stale. Regenerate, never hand-edit."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the file, verbatim",
        "example": "[0_AGENTS_MD][/0_AGENTS_MD] — returns the file, verbatim",
        "tag": "[0_AGENTS_MD][/0_AGENTS_MD]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"0_AGENTS_MD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/0_AGENTS_MD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/0_AGENTS_MD",
        "update": "PUT /api/directory/0_AGENTS_MD",
        "patch": "PATCH /api/directory/0_AGENTS_MD",
        "delete": "DELETE /api/directory/0_AGENTS_MD",
        "invoke": "POST /api/dispatch {\"key\":\"0_AGENTS_MD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"0_AGENTS_MD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"0_AGENTS_MD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/0_AGENTS_MD"
      },
      "examples": "[0_AGENTS_MD][/0_AGENTS_MD] — returns the file, verbatim",
      "test": "GET https://miscsubjects.com/api/manual?test=0_AGENTS_MD"
    },
    {
      "key": "0_AGENT_CONTEXT",
      "type": "fn",
      "category": "0-instructions",
      "doc": "EX: [0_AGENT_CONTEXT][/0_AGENT_CONTEXT] — returns the manifest of every instruction file in force WHAT: The instruction file `~/miscsubjects-pages/0-AGENT-CONTEXT.md`, read by every coding agent — the manifest of every instruction file in force. THIS ROW IS THE FILE. WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,   and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of   the directory, above everything else. WHEN_TO_USE: before the first action of any session, and again before any decision about where a   deliverable goes or what authority a rule has. AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they   differ, the file is right and this row is stale. Regenerate, never hand-edit.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "0_AGENT_CONTEXT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "0_AGENT_CONTEXT",
        "type": "fn",
        "what": [
          "EX: [0_AGENT_CONTEXT][/0_AGENT_CONTEXT] — returns the manifest of every instruction file in force",
          "WHAT: The instruction file `~/miscsubjects-pages/0-AGENT-CONTEXT.md`, read by every coding agent — the manifest of every instruction file in force. THIS ROW IS THE FILE.",
          "WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,",
          "  and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of",
          "  the directory, above everything else.",
          "WHEN_TO_USE: before the first action of any session, and again before any decision about where a",
          "  deliverable goes or what authority a rule has.",
          "AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they",
          "  differ, the file is right and this row is stale. Regenerate, never hand-edit."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the manifest of every instruction file in force",
        "example": "[0_AGENT_CONTEXT][/0_AGENT_CONTEXT] — returns the manifest of every instruction file in force",
        "tag": "[0_AGENT_CONTEXT][/0_AGENT_CONTEXT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"0_AGENT_CONTEXT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/0_AGENT_CONTEXT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/0_AGENT_CONTEXT",
        "update": "PUT /api/directory/0_AGENT_CONTEXT",
        "patch": "PATCH /api/directory/0_AGENT_CONTEXT",
        "delete": "DELETE /api/directory/0_AGENT_CONTEXT",
        "invoke": "POST /api/dispatch {\"key\":\"0_AGENT_CONTEXT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"0_AGENT_CONTEXT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"0_AGENT_CONTEXT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/0_AGENT_CONTEXT"
      },
      "examples": "[0_AGENT_CONTEXT][/0_AGENT_CONTEXT] — returns the manifest of every instruction file in force",
      "test": "GET https://miscsubjects.com/api/manual?test=0_AGENT_CONTEXT"
    },
    {
      "key": "0_CLAUDE_MD",
      "type": "fn",
      "category": "0-instructions",
      "doc": "EX: [0_CLAUDE_MD][/0_CLAUDE_MD] — returns the file, verbatim WHAT: The instruction file `~/.claude/CLAUDE.md`, read by Claude Code (every session, every project). THIS ROW IS THE FILE. WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,   and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of   the directory, above everything else. WHEN_TO_USE: before the first action of any session, and again before any decision about where a   deliverable goes or what authority a rule has. AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they   differ, the file is right and this row is stale. Regenerate, never hand-edit.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "0_CLAUDE_MD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "0_CLAUDE_MD",
        "type": "fn",
        "what": [
          "EX: [0_CLAUDE_MD][/0_CLAUDE_MD] — returns the file, verbatim",
          "WHAT: The instruction file `~/.claude/CLAUDE.md`, read by Claude Code (every session, every project). THIS ROW IS THE FILE.",
          "WHY IT IS AT THE TOP: it is what an agent is supposed to defer to before acting on this build,",
          "  and it was being ignored. Owner order 2026-09-08: the instruction files are the first rows of",
          "  the directory, above everything else.",
          "WHEN_TO_USE: before the first action of any session, and again before any decision about where a",
          "  deliverable goes or what authority a rule has.",
          "AUTHORITY: this row is a MIRROR of the file on disk, not a second source. The file wins; if they",
          "  differ, the file is right and this row is stale. Regenerate, never hand-edit."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the file, verbatim",
        "example": "[0_CLAUDE_MD][/0_CLAUDE_MD] — returns the file, verbatim",
        "tag": "[0_CLAUDE_MD][/0_CLAUDE_MD]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"0_CLAUDE_MD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/0_CLAUDE_MD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/0_CLAUDE_MD",
        "update": "PUT /api/directory/0_CLAUDE_MD",
        "patch": "PATCH /api/directory/0_CLAUDE_MD",
        "delete": "DELETE /api/directory/0_CLAUDE_MD",
        "invoke": "POST /api/dispatch {\"key\":\"0_CLAUDE_MD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"0_CLAUDE_MD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"0_CLAUDE_MD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/0_CLAUDE_MD"
      },
      "examples": "[0_CLAUDE_MD][/0_CLAUDE_MD] — returns the file, verbatim",
      "test": "GET https://miscsubjects.com/api/manual?test=0_CLAUDE_MD"
    },
    {
      "key": "ACCESS_DECISIONS",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: The recorded context decisions — allow or deny, the named code, the device, profile and session, the policy revision and a decision hash — for one capability, profile or device, newest first. WHEN_TO_USE: you want to know why something was refused or who has been exercising what. ARGS: $1 = fingerprint or profile_id or device_id, optionally |how_many. Empty = the latest decisions overall. EX: [ACCESS_DECISIONS]cap_abc123|20[/ACCESS_DECISIONS] TESTS: Each decision carries decision, code, detail and ledger_event_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ACCESS_DECISIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ACCESS_DECISIONS",
        "type": "fn",
        "what": [
          "WHAT: The recorded context decisions — allow or deny, the named code, the device, profile and session, the policy revision and a decision hash — for one capability, profile or device, newest first.",
          "WHEN_TO_USE: you want to know why something was refused or who has been exercising what.",
          "ARGS: $1 = fingerprint or profile_id or device_id, optionally |how_many. Empty = the latest decisions overall.",
          "EX: [ACCESS_DECISIONS]cap_abc123|20[/ACCESS_DECISIONS]",
          "TESTS: Each decision carries decision, code, detail and ledger_event_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_abc123",
            "desc": "fingerprint or profile_id or device_id, optionally |how_many. Empty = the latest decisions overall.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ACCESS_DECISIONS]cap_abc123|20[/ACCESS_DECISIONS]",
        "tag": "[ACCESS_DECISIONS]<cap_abc123 …>[/ACCESS_DECISIONS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ACCESS_DECISIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ACCESS_DECISIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/ACCESS_DECISIONS",
        "update": "PUT /api/directory/ACCESS_DECISIONS",
        "patch": "PATCH /api/directory/ACCESS_DECISIONS",
        "delete": "DELETE /api/directory/ACCESS_DECISIONS",
        "invoke": "POST /api/dispatch {\"key\":\"ACCESS_DECISIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ACCESS_DECISIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ACCESS_DECISIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ACCESS_DECISIONS"
      },
      "examples": "[\"cap_abc123|20\",\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ACCESS_DECISIONS"
    },
    {
      "key": "ADDTASK",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Add a job to the build queue (tasks table). Cron will pick it up and run it automatically when protocol_autorun is on.\\n# WHEN_TO_USE: the owner wants to batch work and not wait for a live reply.\\n# ARGS:  = JSON job object OR plain text ask. JSON keys: ask (required), role (default writer), slug, topic, web_search (default true), max_tokens, post_to (default /api/protocol/write), model.\\n# EX: [ADDTASK]{\"ask\":\"Write evidence-graded BPC-157 article\",\"slug\":\"bpc-157\",\"web_search\":true}[/ADDTASK]\\n# EX: [ADDTASK]{\"ask\":\"Populate BPC-157 with more sources and widgets\",\"slug\":\"bpc-157\",\"post_to\":\"/api/protocol/populate\",\"max_rounds\":4}[/ADDTASK]\\n[\"\",\"ADDTASK\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADDTASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADDTASK",
        "type": "fn",
        "what": [
          "WHAT: Add a job to the build queue (tasks table). Cron will pick it up and run it automatically when protocol_autorun is on.\\n# WHEN_TO_USE: the owner wants to batch work and not wait for a live reply.\\n# ARGS:  = JSON job object OR plain text ask. JSON keys: ask (required), role (default writer), slug, topic, web_search (default true), max_tokens, post_to (default /api/protocol/write), model.\\n# EX: [ADDTASK]{\"ask\":\"Write evidence-graded BPC-157 article\",\"slug\":\"bpc-157\",\"web_search\":true}[/ADDTASK]\\n# EX: [ADDTASK]{\"ask\":\"Populate BPC-157 with more sources and widgets\",\"slug\":\"bpc-157\",\"post_to\":\"/api/protocol/populate\",\"max_rounds\":4}[/ADDTASK]\\n[\"\",\"ADDTASK\"]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[ADDTASK][/ADDTASK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADDTASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADDTASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADDTASK",
        "update": "PUT /api/directory/ADDTASK",
        "patch": "PATCH /api/directory/ADDTASK",
        "delete": "DELETE /api/directory/ADDTASK",
        "invoke": "POST /api/dispatch {\"key\":\"ADDTASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADDTASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADDTASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADDTASK"
      },
      "examples": "[\"Peptide outreach: collect JP/Will/Megan emails for CC/reply-to if wanted\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADDTASK"
    },
    {
      "key": "ADD_ROW",
      "type": "fn",
      "category": "self_mod",
      "doc": "WHAT: Insert a new row into the directory (tools, agents, flows). WHEN_TO_USE: creating a new tool, agent, or flow from the model. ARGS: key|type|target|auth|content. Everything after the 4th pipe is content. AUTH (4th field): blank = no auth. NOT the literal \"none\". Prefixes: bearer:ENV_NAME | basic:ENV_NAME | headers:{\"Header\":\"$ENV\"} | query:ENV_NAME | oauth: EX: [ADD_ROW]MY_TOOL|fn|myFn||# What it does\\n[\"$1\"][/ADD_ROW] EX (bearer): [ADD_ROW]MY_HTTP|http|https://api.example.com|bearer:MY_API_KEY|# WHAT...\\n{}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADD_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADD_ROW",
        "type": "fn",
        "what": [
          "WHAT: Insert a new row into the directory (tools, agents, flows).",
          "WHEN_TO_USE: creating a new tool, agent, or flow from the model.",
          "ARGS: key|type|target|auth|content. Everything after the 4th pipe is content.",
          "AUTH (4th field): blank = no auth. NOT the literal \"none\". Prefixes: bearer:ENV_NAME | basic:ENV_NAME | headers:{\"Header\":\"$ENV\"} | query:ENV_NAME | oauth:",
          "EX: [ADD_ROW]MY_TOOL|fn|myFn||# What it does\\n[\"$1\"][/ADD_ROW]",
          "EX (bearer): [ADD_ROW]MY_HTTP|http|https://api.example.com|bearer:MY_API_KEY|# WHAT...\\n{}"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ADD_ROW]MY_TOOL|fn|myFn||# What it does\\n[\"$1\"][/ADD_ROW]",
        "tag": "[ADD_ROW]<arg1>|<arg2>|<arg3>|<arg4>|<arg5 …>[/ADD_ROW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADD_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADD_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5+\"]",
      "edit": {
        "read": "GET /api/directory/ADD_ROW",
        "update": "PUT /api/directory/ADD_ROW",
        "patch": "PATCH /api/directory/ADD_ROW",
        "delete": "DELETE /api/directory/ADD_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"ADD_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADD_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADD_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADD_ROW"
      },
      "examples": "[\"probe\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADD_ROW"
    },
    {
      "key": "ADJUDICATE_ADVERSARY",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ADVERSARY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ADVERSARY",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ADVERSARY]arg1[/ADJUDICATE_ADVERSARY]",
        "tag": "[ADJUDICATE_ADVERSARY]<arg1>[/ADJUDICATE_ADVERSARY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ADVERSARY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ADVERSARY  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ADVERSARY",
        "update": "PUT /api/directory/ADJUDICATE_ADVERSARY",
        "patch": "PATCH /api/directory/ADJUDICATE_ADVERSARY",
        "delete": "DELETE /api/directory/ADJUDICATE_ADVERSARY",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ADVERSARY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ADVERSARY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ADVERSARY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ADVERSARY"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMAJORITY: AFFIRM\\nRULESET:\\nQUESTION: Does the cited source support the claim?\\n1. AFFIRM only on a verbatim span.\\nCLAIM: <claim>\\nSOURCE:\\n<verbatim>\", \"why\": \"records the strongest case against a unanimous panel so the finding is not a rubber stamp\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ADVERSARY"
    },
    {
      "key": "ADJUDICATE_ADVERSARY_GLM52",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: The mandatory recorded adversary in an adjudication. Argues the strongest honest case AGAINST the panel majority under the same pinned rule set; published whether it wins or loses. Executing model: @cf/zai-org/glm-5.2. WHEN_TO_USE: always, on any adjudication whose finding will be relied on. A panel with no recorded dissent is a poll. ARGS: RULESET, RULESET_HASH, CLAIM, SOURCE, MAJORITY, MODEL_TARGET. EX: [ADJUDICATE_ADVERSARY_GLM52]RULESET_HASH: <hash> | MAJORITY: AFFIRM | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_ADVERSARY_GLM52]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ADVERSARY_GLM52",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ADVERSARY_GLM52",
        "type": "agent",
        "what": [
          "WHAT: The mandatory recorded adversary in an adjudication. Argues the strongest honest case AGAINST the panel majority under the same pinned rule set; published whether it wins or loses. Executing model: @cf/zai-org/glm-5.2.",
          "WHEN_TO_USE: always, on any adjudication whose finding will be relied on. A panel with no recorded dissent is a poll.",
          "ARGS: RULESET, RULESET_HASH, CLAIM, SOURCE, MAJORITY, MODEL_TARGET.",
          "EX: [ADJUDICATE_ADVERSARY_GLM52]RULESET_HASH: <hash> | MAJORITY: AFFIRM | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_ADVERSARY_GLM52]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ADVERSARY_GLM52]RULESET_HASH: <hash> | MAJORITY: AFFIRM | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_ADVERSARY_GLM52]",
        "tag": "[ADJUDICATE_ADVERSARY_GLM52][/ADJUDICATE_ADVERSARY_GLM52]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ADVERSARY_GLM52\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ADVERSARY_GLM52  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ADVERSARY_GLM52",
        "update": "PUT /api/directory/ADJUDICATE_ADVERSARY_GLM52",
        "patch": "PATCH /api/directory/ADJUDICATE_ADVERSARY_GLM52",
        "delete": "DELETE /api/directory/ADJUDICATE_ADVERSARY_GLM52",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ADVERSARY_GLM52\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ADVERSARY_GLM52\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ADVERSARY_GLM52\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ADVERSARY_GLM52"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMAJORITY: CANNOT_CONCLUDE\\nMODEL_TARGET: @cf/zai-org/glm-5.2\\nRULESET:\\nQUESTION: ...\\n1. ...\\nCLAIM: <claim>\\nSOURCE:\\n<verbatim>\", \"why\": \"records the strongest case against the majority so a finding is not a rubber stamp\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ADVERSARY_GLM52"
    },
    {
      "key": "ADJUDICATE_ATTEST_ADVERSARY_GLM52",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_ADVERSARY_GLM52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_ADVERSARY_GLM52]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_ADVERSARY_GLM52",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_ADVERSARY_GLM52",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_ADVERSARY_GLM52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_ADVERSARY_GLM52]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_ADVERSARY_GLM52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_ADVERSARY_GLM52]",
        "tag": "[ADJUDICATE_ATTEST_ADVERSARY_GLM52][/ADJUDICATE_ATTEST_ADVERSARY_GLM52]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_ADVERSARY_GLM52\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_ADVERSARY_GLM52  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_ADVERSARY_GLM52",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_ADVERSARY_GLM52",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_ADVERSARY_GLM52",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_ADVERSARY_GLM52",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_ADVERSARY_GLM52\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_ADVERSARY_GLM52\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_ADVERSARY_GLM52\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_ADVERSARY_GLM52"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_ADVERSARY_GLM52"
    },
    {
      "key": "ADJUDICATE_ATTEST_GLM_52",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_GLM_52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_GLM_52]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_GLM_52",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_GLM_52",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_GLM_52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_GLM_52]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_GLM_52]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-5.2[/ADJUDICATE_ATTEST_GLM_52]",
        "tag": "[ADJUDICATE_ATTEST_GLM_52][/ADJUDICATE_ATTEST_GLM_52]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_GLM_52\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_GLM_52  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_GLM_52",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_GLM_52",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_GLM_52",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_GLM_52",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_GLM_52\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_GLM_52\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_GLM_52\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_GLM_52"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_GLM_52"
    },
    {
      "key": "ADJUDICATE_ATTEST_GLM_FLASH",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-4.7-flash — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_GLM_FLASH]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-4.7-flash[/ADJUDICATE_ATTEST_GLM_FLASH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_GLM_FLASH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_GLM_FLASH",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/zai-org/glm-4.7-flash — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_GLM_FLASH]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-4.7-flash[/ADJUDICATE_ATTEST_GLM_FLASH]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_GLM_FLASH]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/zai-org/glm-4.7-flash[/ADJUDICATE_ATTEST_GLM_FLASH]",
        "tag": "[ADJUDICATE_ATTEST_GLM_FLASH][/ADJUDICATE_ATTEST_GLM_FLASH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_GLM_FLASH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_GLM_FLASH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_GLM_FLASH",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_GLM_FLASH",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_GLM_FLASH",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_GLM_FLASH",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_GLM_FLASH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_GLM_FLASH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_GLM_FLASH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_GLM_FLASH"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_GLM_FLASH"
    },
    {
      "key": "ADJUDICATE_ATTEST_KIMI_K26",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/moonshotai/kimi-k2.6 — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_KIMI_K26]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.6[/ADJUDICATE_ATTEST_KIMI_K26]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_KIMI_K26",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_KIMI_K26",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/moonshotai/kimi-k2.6 — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_KIMI_K26]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.6[/ADJUDICATE_ATTEST_KIMI_K26]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_KIMI_K26]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.6[/ADJUDICATE_ATTEST_KIMI_K26]",
        "tag": "[ADJUDICATE_ATTEST_KIMI_K26][/ADJUDICATE_ATTEST_KIMI_K26]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_KIMI_K26\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_KIMI_K26  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_KIMI_K26",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_KIMI_K26",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_KIMI_K26",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_KIMI_K26",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_KIMI_K26\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_KIMI_K26\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_KIMI_K26\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_KIMI_K26"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_KIMI_K26"
    },
    {
      "key": "ADJUDICATE_ATTEST_KIMI_K27",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/moonshotai/kimi-k2.7-code — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_KIMI_K27]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code[/ADJUDICATE_ATTEST_KIMI_K27]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_KIMI_K27",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_KIMI_K27",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/moonshotai/kimi-k2.7-code — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_KIMI_K27]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code[/ADJUDICATE_ATTEST_KIMI_K27]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_KIMI_K27]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code[/ADJUDICATE_ATTEST_KIMI_K27]",
        "tag": "[ADJUDICATE_ATTEST_KIMI_K27][/ADJUDICATE_ATTEST_KIMI_K27]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_KIMI_K27\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_KIMI_K27  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_KIMI_K27",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_KIMI_K27",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_KIMI_K27",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_KIMI_K27",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_KIMI_K27\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_KIMI_K27\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_KIMI_K27\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_KIMI_K27"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_KIMI_K27"
    },
    {
      "key": "ADJUDICATE_ATTEST_LLAMA_33",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/meta/llama-3.3-70b-instruct-fp8-fast — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_LLAMA_33]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast[/ADJUDICATE_ATTEST_LLAMA_33]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_LLAMA_33",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_LLAMA_33",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/meta/llama-3.3-70b-instruct-fp8-fast — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_LLAMA_33]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast[/ADJUDICATE_ATTEST_LLAMA_33]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_LLAMA_33]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast[/ADJUDICATE_ATTEST_LLAMA_33]",
        "tag": "[ADJUDICATE_ATTEST_LLAMA_33][/ADJUDICATE_ATTEST_LLAMA_33]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_LLAMA_33\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_LLAMA_33  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_LLAMA_33",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_LLAMA_33",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_LLAMA_33",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_LLAMA_33",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_LLAMA_33\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_LLAMA_33\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_LLAMA_33\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_LLAMA_33"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_LLAMA_33"
    },
    {
      "key": "ADJUDICATE_ATTEST_QWEN3",
      "type": "agent",
      "category": null,
      "doc": "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/qwen/qwen3-30b-a3b-fp8 — the key names this model and no other. WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict. ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target). EX: [ADJUDICATE_ATTEST_QWEN3]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/qwen/qwen3-30b-a3b-fp8[/ADJUDICATE_ATTEST_QWEN3]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_ATTEST_QWEN3",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_ATTEST_QWEN3",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding under a rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. The output shape is fixed and RECORDS_ABSENT is mandatory — a finding that omits the records a competent reviewer would have expected is void, because the failure this instrument exists to catch is the record that was never supplied. Executing model: @cf/qwen/qwen3-30b-a3b-fp8 — the key names this model and no other.",
          "WHEN_TO_USE: any consequential question where a reader must be able to check, a year later, what the model was given, what it was NOT given, which clause each reasoning step conformed to, and what would change the verdict.",
          "ARGS: the adjudication body: the QUESTION, RULESET_URL, RULESET_HASH, RULESET as numbered clauses, the artifact and its ARTIFACT_SHA256, EVIDENCE_IDS (the only citable record ids), and MODEL_TARGET (must equal this row's target).",
          "EX: [ADJUDICATE_ATTEST_QWEN3]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/qwen/qwen3-30b-a3b-fp8[/ADJUDICATE_ATTEST_QWEN3]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_ATTEST_QWEN3]QUESTION PUT TO YOU: does this position exceed the board authorisation? | RULESET_HASH: 0df47944... | ARTIFACT_SHA256: 9f2c... | EVIDENCE_IDS: minutes, ledger | MODEL_TARGET: @cf/qwen/qwen3-30b-a3b-fp8[/ADJUDICATE_ATTEST_QWEN3]",
        "tag": "[ADJUDICATE_ATTEST_QWEN3][/ADJUDICATE_ATTEST_QWEN3]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_ATTEST_QWEN3\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_ATTEST_QWEN3  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_ATTEST_QWEN3",
        "update": "PUT /api/directory/ADJUDICATE_ATTEST_QWEN3",
        "patch": "PATCH /api/directory/ADJUDICATE_ATTEST_QWEN3",
        "delete": "DELETE /api/directory/ADJUDICATE_ATTEST_QWEN3",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_ATTEST_QWEN3\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_ATTEST_QWEN3\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_ATTEST_QWEN3\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_ATTEST_QWEN3"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_ATTEST_QWEN3"
    },
    {
      "key": "ADJUDICATE_GLM",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_GLM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_GLM",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_GLM]arg1[/ADJUDICATE_GLM]",
        "tag": "[ADJUDICATE_GLM]<arg1>[/ADJUDICATE_GLM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_GLM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_GLM  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_GLM",
        "update": "PUT /api/directory/ADJUDICATE_GLM",
        "patch": "PATCH /api/directory/ADJUDICATE_GLM",
        "delete": "DELETE /api/directory/ADJUDICATE_GLM",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_GLM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_GLM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_GLM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_GLM"
      },
      "examples": "[{\"body\": \"RULESET_URL: https://miscsubjects.com/a/ruleset-claim-support\\nRULESET_HASH: <hash>\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding with a signed verdict and a quoted span\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_GLM"
    },
    {
      "key": "ADJUDICATE_GLM_52",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other. WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record. ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS. EX: [ADJUDICATE_GLM_52]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_52]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_GLM_52",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_GLM_52",
        "type": "agent",
        "what": [
          "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/zai-org/glm-5.2 — the key names this model and no other.",
          "WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record.",
          "ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS.",
          "EX: [ADJUDICATE_GLM_52]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_52]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_GLM_52]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-5.2 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_52]",
        "tag": "[ADJUDICATE_GLM_52][/ADJUDICATE_GLM_52]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_GLM_52\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_GLM_52  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_GLM_52",
        "update": "PUT /api/directory/ADJUDICATE_GLM_52",
        "patch": "PATCH /api/directory/ADJUDICATE_GLM_52",
        "delete": "DELETE /api/directory/ADJUDICATE_GLM_52",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_GLM_52\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_GLM_52\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_GLM_52\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_GLM_52"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMODEL_TARGET: @cf/zai-org/glm-5.2\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding signed with the model that actually ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_GLM_52"
    },
    {
      "key": "ADJUDICATE_GLM_FLASH",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/zai-org/glm-4.7-flash — the key names this model and no other. WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record. ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS. EX: [ADJUDICATE_GLM_FLASH]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-4.7-flash | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_FLASH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_GLM_FLASH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_GLM_FLASH",
        "type": "agent",
        "what": [
          "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/zai-org/glm-4.7-flash — the key names this model and no other.",
          "WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record.",
          "ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS.",
          "EX: [ADJUDICATE_GLM_FLASH]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-4.7-flash | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_FLASH]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_GLM_FLASH]RULESET_HASH: <hash> | MODEL_TARGET: @cf/zai-org/glm-4.7-flash | CLAIM: ... | SOURCE: ...[/ADJUDICATE_GLM_FLASH]",
        "tag": "[ADJUDICATE_GLM_FLASH][/ADJUDICATE_GLM_FLASH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_GLM_FLASH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_GLM_FLASH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_GLM_FLASH",
        "update": "PUT /api/directory/ADJUDICATE_GLM_FLASH",
        "patch": "PATCH /api/directory/ADJUDICATE_GLM_FLASH",
        "delete": "DELETE /api/directory/ADJUDICATE_GLM_FLASH",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_GLM_FLASH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_GLM_FLASH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_GLM_FLASH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_GLM_FLASH"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMODEL_TARGET: @cf/zai-org/glm-4.7-flash\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding signed with the model that actually ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_GLM_FLASH"
    },
    {
      "key": "ADJUDICATE_GROK",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_GROK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_GROK",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_GROK]arg1[/ADJUDICATE_GROK]",
        "tag": "[ADJUDICATE_GROK]<arg1>[/ADJUDICATE_GROK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_GROK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_GROK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_GROK",
        "update": "PUT /api/directory/ADJUDICATE_GROK",
        "patch": "PATCH /api/directory/ADJUDICATE_GROK",
        "delete": "DELETE /api/directory/ADJUDICATE_GROK",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_GROK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_GROK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_GROK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_GROK"
      },
      "examples": "[{\"body\": \"RULESET_URL: https://miscsubjects.com/a/ruleset-claim-support\\nRULESET_HASH: <hash>\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding with a signed verdict and a quoted span\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_GROK"
    },
    {
      "key": "ADJUDICATE_HUMAN_REVIEW",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: Record a named human reviewer's finding on an adjudication, with BLINDED as a required field. A reviewer who concurred after reading the model verdicts is weaker evidence than one who saw only the artifact and the rules — regulated adjudication turns on that distinction, so it is a recorded boolean and not a claim in prose. WHEN_TO_USE: after a model panel has run, before any finding is relied on for a consequence. ARGS: RULESET_HASH, ARTIFACT_HASH, REVIEWER, BLINDED, VERDICT, BASIS, DATE. EX: [ADJUDICATE_HUMAN_REVIEW]RULESET_HASH: 0dd9afef | ARTIFACT_HASH: 6b0d... | REVIEWER: Jane Roe, compliance counsel | BLINDED: true | VERDICT: CANNOT_CONCLUDE | BASIS: provision addresses providers; characterisation of the site is not in the supplied text | DATE: 2026-07-30[/ADJUDICATE_HUMAN_REVIEW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_HUMAN_REVIEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_HUMAN_REVIEW",
        "type": "agent",
        "what": [
          "WHAT: Record a named human reviewer's finding on an adjudication, with BLINDED as a required field. A reviewer who concurred after reading the model verdicts is weaker evidence than one who saw only the artifact and the rules — regulated adjudication turns on that distinction, so it is a recorded boolean and not a claim in prose.",
          "WHEN_TO_USE: after a model panel has run, before any finding is relied on for a consequence.",
          "ARGS: RULESET_HASH, ARTIFACT_HASH, REVIEWER, BLINDED, VERDICT, BASIS, DATE.",
          "EX: [ADJUDICATE_HUMAN_REVIEW]RULESET_HASH: 0dd9afef | ARTIFACT_HASH: 6b0d... | REVIEWER: Jane Roe, compliance counsel | BLINDED: true | VERDICT: CANNOT_CONCLUDE | BASIS: provision addresses providers; characterisation of the site is not in the supplied text | DATE: 2026-07-30[/ADJUDICATE_HUMAN_REVIEW]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_HUMAN_REVIEW]RULESET_HASH: 0dd9afef | ARTIFACT_HASH: 6b0d... | REVIEWER: Jane Roe, compliance counsel | BLINDED: true | VERDICT: CANNOT_CONCLUDE | BASIS: provision addresses providers; characterisation of the site is not in the supplied text | DATE: 2026-07-30[/ADJUDICATE_HUMAN_REVIEW]",
        "tag": "[ADJUDICATE_HUMAN_REVIEW][/ADJUDICATE_HUMAN_REVIEW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_HUMAN_REVIEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_HUMAN_REVIEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_HUMAN_REVIEW",
        "update": "PUT /api/directory/ADJUDICATE_HUMAN_REVIEW",
        "patch": "PATCH /api/directory/ADJUDICATE_HUMAN_REVIEW",
        "delete": "DELETE /api/directory/ADJUDICATE_HUMAN_REVIEW",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_HUMAN_REVIEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_HUMAN_REVIEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_HUMAN_REVIEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_HUMAN_REVIEW"
      },
      "examples": "[{\"body\": \"RULESET_HASH: 0dd9afef93503a92\\nARTIFACT_HASH: <sha256>\\nREVIEWER: Jane Roe, compliance counsel\\nBLINDED: true\\nVERDICT: CANNOT_CONCLUDE\\nBASIS: The supplied provision addresses providers; whether a publisher is a provider is not settled by the text supplied.\\nDATE: 2026-07-30\", \"why\": \"a blinded named human finding on top of the model panel, with the blinding recorded rather than asserted\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_HUMAN_REVIEW"
    },
    {
      "key": "ADJUDICATE_IMAGE_LLAMA32",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed attesting finding over an IMAGE plus a supplied record, under a rule set pinned at a content hash. The pixels are fetched and put in the message, so the finding is about what the model saw rather than about a URL it could not open. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. RECORDS_ABSENT is mandatory and its omission voids the finding. Executing model: @cf/meta/llama-3.2-11b-vision-instruct — the key names this model and no other. WHEN_TO_USE: any question whose answer depends on an image AND a record, where the reader must be able to check a year later what the model was given, what it was not given, and which clause each step conformed to. ARGS: the adjudication body. Must contain RULESET_URL, RULESET_HASH, RULESET (numbered clauses), the question, IMAGE_URL on its own line (https; the bytes are fetched and hashed into the recorded request), IMAGE_SHA256, the record and its hash, and MODEL_TARGET. EX: [ADJUDICATE_IMAGE_LLAMA32]QUESTION PUT TO YOU: is a nodule present? | RULESET_HASH: c8823baf... | IMAGE_URL: https://miscsubjects.com/img/gen/x.png | MODEL_TARGET: @cf/meta/llama-3.2-11b-vision-instruct[/ADJUDICATE_IMAGE_LLAMA32]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_IMAGE_LLAMA32",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_IMAGE_LLAMA32",
        "type": "agent",
        "what": [
          "WHAT: One signed attesting finding over an IMAGE plus a supplied record, under a rule set pinned at a content hash. The pixels are fetched and put in the message, so the finding is about what the model saw rather than about a URL it could not open. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. RECORDS_ABSENT is mandatory and its omission voids the finding. Executing model: @cf/meta/llama-3.2-11b-vision-instruct — the key names this model and no other.",
          "WHEN_TO_USE: any question whose answer depends on an image AND a record, where the reader must be able to check a year later what the model was given, what it was not given, and which clause each step conformed to.",
          "ARGS: the adjudication body. Must contain RULESET_URL, RULESET_HASH, RULESET (numbered clauses), the question, IMAGE_URL on its own line (https; the bytes are fetched and hashed into the recorded request), IMAGE_SHA256, the record and its hash, and MODEL_TARGET.",
          "EX: [ADJUDICATE_IMAGE_LLAMA32]QUESTION PUT TO YOU: is a nodule present? | RULESET_HASH: c8823baf... | IMAGE_URL: https://miscsubjects.com/img/gen/x.png | MODEL_TARGET: @cf/meta/llama-3.2-11b-vision-instruct[/ADJUDICATE_IMAGE_LLAMA32]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_IMAGE_LLAMA32]QUESTION PUT TO YOU: is a nodule present? | RULESET_HASH: c8823baf... | IMAGE_URL: https://miscsubjects.com/img/gen/x.png | MODEL_TARGET: @cf/meta/llama-3.2-11b-vision-instruct[/ADJUDICATE_IMAGE_LLAMA32]",
        "tag": "[ADJUDICATE_IMAGE_LLAMA32][/ADJUDICATE_IMAGE_LLAMA32]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_IMAGE_LLAMA32\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_IMAGE_LLAMA32  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_IMAGE_LLAMA32",
        "update": "PUT /api/directory/ADJUDICATE_IMAGE_LLAMA32",
        "patch": "PATCH /api/directory/ADJUDICATE_IMAGE_LLAMA32",
        "delete": "DELETE /api/directory/ADJUDICATE_IMAGE_LLAMA32",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_IMAGE_LLAMA32\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_IMAGE_LLAMA32\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_IMAGE_LLAMA32\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_IMAGE_LLAMA32"
      },
      "examples": "[{\"body\": \"QUESTION PUT TO YOU: Is a pulmonary nodule present in the supplied image?\\nRULESET_HASH: c8823bafd3b3946c234d802e78e74e846206a965c34f0912836040aac3781962\\nIMAGE_URL: https://miscsubjects.com/img/gen/arcads-seedream-radiograph-f4c6d0f3-334b-43ec-9b12-250ad8244005.png\\nMODEL_TARGET: @cf/meta/llama-3.2-11b-vision-instruct\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_IMAGE_LLAMA32"
    },
    {
      "key": "ADJUDICATE_KIMI",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_KIMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_KIMI",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_KIMI]arg1[/ADJUDICATE_KIMI]",
        "tag": "[ADJUDICATE_KIMI]<arg1>[/ADJUDICATE_KIMI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_KIMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_KIMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_KIMI",
        "update": "PUT /api/directory/ADJUDICATE_KIMI",
        "patch": "PATCH /api/directory/ADJUDICATE_KIMI",
        "delete": "DELETE /api/directory/ADJUDICATE_KIMI",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_KIMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_KIMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_KIMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_KIMI"
      },
      "examples": "[{\"body\": \"RULESET_URL: https://miscsubjects.com/a/ruleset-claim-support\\nRULESET_HASH: <hash>\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding with a signed verdict and a quoted span\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_KIMI"
    },
    {
      "key": "ADJUDICATE_KIMI_K26",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/moonshotai/kimi-k2.6 — the key names this model and no other. WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record. ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS. EX: [ADJUDICATE_KIMI_K26]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.6 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K26]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_KIMI_K26",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_KIMI_K26",
        "type": "agent",
        "what": [
          "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/moonshotai/kimi-k2.6 — the key names this model and no other.",
          "WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record.",
          "ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS.",
          "EX: [ADJUDICATE_KIMI_K26]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.6 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K26]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_KIMI_K26]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.6 | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K26]",
        "tag": "[ADJUDICATE_KIMI_K26][/ADJUDICATE_KIMI_K26]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_KIMI_K26\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_KIMI_K26  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_KIMI_K26",
        "update": "PUT /api/directory/ADJUDICATE_KIMI_K26",
        "patch": "PATCH /api/directory/ADJUDICATE_KIMI_K26",
        "delete": "DELETE /api/directory/ADJUDICATE_KIMI_K26",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_KIMI_K26\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_KIMI_K26\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_KIMI_K26\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_KIMI_K26"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMODEL_TARGET: @cf/moonshotai/kimi-k2.6\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding signed with the model that actually ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_KIMI_K26"
    },
    {
      "key": "ADJUDICATE_KIMI_K27",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/moonshotai/kimi-k2.7-code — the key names this model and no other. WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record. ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS. EX: [ADJUDICATE_KIMI_K27]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K27]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_KIMI_K27",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_KIMI_K27",
        "type": "agent",
        "what": [
          "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/moonshotai/kimi-k2.7-code — the key names this model and no other.",
          "WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record.",
          "ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS.",
          "EX: [ADJUDICATE_KIMI_K27]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K27]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_KIMI_K27]RULESET_HASH: <hash> | MODEL_TARGET: @cf/moonshotai/kimi-k2.7-code | CLAIM: ... | SOURCE: ...[/ADJUDICATE_KIMI_K27]",
        "tag": "[ADJUDICATE_KIMI_K27][/ADJUDICATE_KIMI_K27]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_KIMI_K27\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_KIMI_K27  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_KIMI_K27",
        "update": "PUT /api/directory/ADJUDICATE_KIMI_K27",
        "patch": "PATCH /api/directory/ADJUDICATE_KIMI_K27",
        "delete": "DELETE /api/directory/ADJUDICATE_KIMI_K27",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_KIMI_K27\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_KIMI_K27\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_KIMI_K27\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_KIMI_K27"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMODEL_TARGET: @cf/moonshotai/kimi-k2.7-code\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding signed with the model that actually ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_KIMI_K27"
    },
    {
      "key": "ADJUDICATE_LLAMA",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_LLAMA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_LLAMA",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_LLAMA]arg1[/ADJUDICATE_LLAMA]",
        "tag": "[ADJUDICATE_LLAMA]<arg1>[/ADJUDICATE_LLAMA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_LLAMA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_LLAMA  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_LLAMA",
        "update": "PUT /api/directory/ADJUDICATE_LLAMA",
        "patch": "PATCH /api/directory/ADJUDICATE_LLAMA",
        "delete": "DELETE /api/directory/ADJUDICATE_LLAMA",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_LLAMA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_LLAMA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_LLAMA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_LLAMA"
      },
      "examples": "[{\"body\": \"RULESET_URL: https://miscsubjects.com/a/ruleset-claim-support\\nRULESET_HASH: <hash>\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding with a signed verdict and a quoted span\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_LLAMA"
    },
    {
      "key": "ADJUDICATE_LLAMA_33",
      "type": "agent",
      "category": "adjudication",
      "doc": "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/meta/llama-3.3-70b-instruct-fp8-fast — the key names this model and no other. WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record. ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS. EX: [ADJUDICATE_LLAMA_33]RULESET_HASH: <hash> | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast | CLAIM: ... | SOURCE: ...[/ADJUDICATE_LLAMA_33]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_LLAMA_33",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_LLAMA_33",
        "type": "agent",
        "what": [
          "WHAT: One signed adjudication finding on a claim against a cited source, under a published rule set pinned at a content hash. Verdicts: AFFIRM | DENY | CANNOT_CONCLUDE. Executing model: @cf/meta/llama-3.3-70b-instruct-fp8-fast — the key names this model and no other.",
          "WHEN_TO_USE: you need a checkable finding about whether a source supports a claim, whether a statutory obligation applies, whether a record was in a dataset, or whether an identity matches — with the rules, the exposure and the signature on the record.",
          "ARGS: the adjudication body: RULESET_URL, RULESET_HASH, RULESET, CLAIM, ARTIFACT_HASH, MODEL_TARGET (must equal this row's target), SOURCE, optional PRIOR_FINDINGS.",
          "EX: [ADJUDICATE_LLAMA_33]RULESET_HASH: <hash> | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast | CLAIM: ... | SOURCE: ...[/ADJUDICATE_LLAMA_33]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_LLAMA_33]RULESET_HASH: <hash> | MODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast | CLAIM: ... | SOURCE: ...[/ADJUDICATE_LLAMA_33]",
        "tag": "[ADJUDICATE_LLAMA_33][/ADJUDICATE_LLAMA_33]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_LLAMA_33\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_LLAMA_33  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_LLAMA_33",
        "update": "PUT /api/directory/ADJUDICATE_LLAMA_33",
        "patch": "PATCH /api/directory/ADJUDICATE_LLAMA_33",
        "delete": "DELETE /api/directory/ADJUDICATE_LLAMA_33",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_LLAMA_33\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_LLAMA_33\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_LLAMA_33\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_LLAMA_33"
      },
      "examples": "[{\"body\": \"RULESET_HASH: <hash>\\nMODEL_TARGET: @cf/meta/llama-3.3-70b-instruct-fp8-fast\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding signed with the model that actually ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_LLAMA_33"
    },
    {
      "key": "ADJUDICATE_MINIMAX",
      "type": "agent",
      "category": "adjudication",
      "doc": "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_MINIMAX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_MINIMAX",
        "type": "agent",
        "what": [
          "RETIRED 2026-07-30: this key named a model that was not the one executing, which would have attributed probe calibration to a model that never ran. Superseded by the ADJUDICATE_<MODEL> rows whose key matches their target. Disabled rather than deleted so the findings it produced stay resolvable in the ledger."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[ADJUDICATE_MINIMAX]arg1[/ADJUDICATE_MINIMAX]",
        "tag": "[ADJUDICATE_MINIMAX]<arg1>[/ADJUDICATE_MINIMAX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_MINIMAX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_MINIMAX  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_MINIMAX",
        "update": "PUT /api/directory/ADJUDICATE_MINIMAX",
        "patch": "PATCH /api/directory/ADJUDICATE_MINIMAX",
        "delete": "DELETE /api/directory/ADJUDICATE_MINIMAX",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_MINIMAX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_MINIMAX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_MINIMAX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_MINIMAX"
      },
      "examples": "[{\"body\": \"RULESET_URL: https://miscsubjects.com/a/ruleset-claim-support\\nRULESET_HASH: <hash>\\nRULESET:\\nQUESTION: Does the cited source support the claim as stated?\\n1. AFFIRM only if a verbatim span establishes the claim.\\nCLAIM: <claim>\\nARTIFACT_HASH: <sha256 of the source bytes>\\nSOURCE:\\n<verbatim text>\", \"why\": \"one blinded independent finding with a signed verdict and a quoted span\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_MINIMAX"
    },
    {
      "key": "ADJUDICATE_PROBE",
      "type": "fn",
      "category": "adjudication",
      "doc": "WHAT: Known-answer probe for an adjudication panel. Runs claims whose correct verdict is declared IN ADVANCE through the identical adjudication path, so the panel's miss rate and abstention rate are measured per model per rule set rather than assumed. A verdict with an attached error rate is evidence; without one it is an opinion with good paperwork. WHEN_TO_USE: before relying on any panel verdict for a consequence, and at a low rate continuously inside the live adjudication stream. ARGS: probe_set_slug|panel_keys_csv EX: [ADJUDICATE_PROBE]ruleset-claim-support|ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM[/ADJUDICATE_PROBE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADJUDICATE_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADJUDICATE_PROBE",
        "type": "fn",
        "what": [
          "WHAT: Known-answer probe for an adjudication panel. Runs claims whose correct verdict is declared IN ADVANCE through the identical adjudication path, so the panel's miss rate and abstention rate are measured per model per rule set rather than assumed. A verdict with an attached error rate is evidence; without one it is an opinion with good paperwork.",
          "WHEN_TO_USE: before relying on any panel verdict for a consequence, and at a low rate continuously inside the live adjudication stream.",
          "ARGS: probe_set_slug|panel_keys_csv",
          "EX: [ADJUDICATE_PROBE]ruleset-claim-support|ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM[/ADJUDICATE_PROBE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ruleset-claim-support",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ADJUDICATE_PROBE]ruleset-claim-support|ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM[/ADJUDICATE_PROBE]",
        "tag": "[ADJUDICATE_PROBE]<ruleset-claim-support>|<ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM>[/ADJUDICATE_PROBE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADJUDICATE_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADJUDICATE_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/ADJUDICATE_PROBE",
        "update": "PUT /api/directory/ADJUDICATE_PROBE",
        "patch": "PATCH /api/directory/ADJUDICATE_PROBE",
        "delete": "DELETE /api/directory/ADJUDICATE_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"ADJUDICATE_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADJUDICATE_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADJUDICATE_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADJUDICATE_PROBE"
      },
      "examples": "[{\"body\": \"ruleset-claim-support|ADJUDICATE_KIMI,ADJUDICATE_GROK,ADJUDICATE_GLM\", \"why\": \"measure this panel's miss rate under the claim-support rules before trusting a verdict\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ADJUDICATE_PROBE"
    },
    {
      "key": "ADSPOWER_OPEN",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Launch an AdsPower profile browser; returns CDP/WebDriver endpoint for Playwright/Selenium attach. ARGS: $1=profile user_id. EX: [ADSPOWER_OPEN]k1abc[/ADSPOWER_OPEN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADSPOWER_OPEN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADSPOWER_OPEN",
        "type": "flow",
        "what": [
          "WHAT: Launch an AdsPower profile browser; returns CDP/WebDriver endpoint for Playwright/Selenium attach. ARGS: $1=profile user_id. EX: [ADSPOWER_OPEN]k1abc[/ADSPOWER_OPEN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "k1abc",
            "desc": "profile user_id. EX: [ADSPOWER_OPEN]k1abc[/ADSPOWER_OPEN]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "CDP/WebDriver endpoint for Playwright/Selenium attach. ARGS: $1=profile user_id. EX: [ADSPOWER_OPEN]k1abc[/ADSPOWER_OPEN]",
        "example": "[ADSPOWER_OPEN]k1abc[/ADSPOWER_OPEN]",
        "tag": "[ADSPOWER_OPEN]<k1abc>[/ADSPOWER_OPEN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADSPOWER_OPEN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADSPOWER_OPEN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADSPOWER_OPEN",
        "update": "PUT /api/directory/ADSPOWER_OPEN",
        "patch": "PATCH /api/directory/ADSPOWER_OPEN",
        "delete": "DELETE /api/directory/ADSPOWER_OPEN",
        "invoke": "POST /api/dispatch {\"key\":\"ADSPOWER_OPEN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADSPOWER_OPEN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADSPOWER_OPEN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADSPOWER_OPEN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=ADSPOWER_OPEN"
    },
    {
      "key": "ADSPOWER_PROFILES",
      "type": "flow",
      "category": null,
      "doc": "WHAT: List AdsPower browser profiles (isolated logged-in identities). ARGS: none. EX: [ADSPOWER_PROFILES][/ADSPOWER_PROFILES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADSPOWER_PROFILES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADSPOWER_PROFILES",
        "type": "flow",
        "what": [
          "WHAT: List AdsPower browser profiles (isolated logged-in identities). ARGS: none. EX: [ADSPOWER_PROFILES][/ADSPOWER_PROFILES]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[ADSPOWER_PROFILES][/ADSPOWER_PROFILES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADSPOWER_PROFILES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADSPOWER_PROFILES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADSPOWER_PROFILES",
        "update": "PUT /api/directory/ADSPOWER_PROFILES",
        "patch": "PATCH /api/directory/ADSPOWER_PROFILES",
        "delete": "DELETE /api/directory/ADSPOWER_PROFILES",
        "invoke": "POST /api/dispatch {\"key\":\"ADSPOWER_PROFILES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADSPOWER_PROFILES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADSPOWER_PROFILES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADSPOWER_PROFILES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=ADSPOWER_PROFILES"
    },
    {
      "key": "ADSPOWER_STATUS",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Is the AdsPower local API up + is the api-key configured (~/.miscsubjects/adspower_key, from AdsPower → Settings → Local API). ARGS: none. EX: [ADSPOWER_STATUS][/ADSPOWER_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADSPOWER_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADSPOWER_STATUS",
        "type": "flow",
        "what": [
          "WHAT: Is the AdsPower local API up + is the api-key configured (~/.miscsubjects/adspower_key, from AdsPower → Settings → Local API). ARGS: none. EX: [ADSPOWER_STATUS][/ADSPOWER_STATUS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[ADSPOWER_STATUS][/ADSPOWER_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADSPOWER_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADSPOWER_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADSPOWER_STATUS",
        "update": "PUT /api/directory/ADSPOWER_STATUS",
        "patch": "PATCH /api/directory/ADSPOWER_STATUS",
        "delete": "DELETE /api/directory/ADSPOWER_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"ADSPOWER_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADSPOWER_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADSPOWER_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADSPOWER_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=ADSPOWER_STATUS"
    },
    {
      "key": "ADSPOWER_STOP",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Close an AdsPower profile browser. ARGS: $1=profile user_id. EX: [ADSPOWER_STOP]k1abc[/ADSPOWER_STOP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ADSPOWER_STOP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ADSPOWER_STOP",
        "type": "flow",
        "what": [
          "WHAT: Close an AdsPower profile browser. ARGS: $1=profile user_id. EX: [ADSPOWER_STOP]k1abc[/ADSPOWER_STOP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "k1abc",
            "desc": "profile user_id. EX: [ADSPOWER_STOP]k1abc[/ADSPOWER_STOP]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[ADSPOWER_STOP]k1abc[/ADSPOWER_STOP]",
        "tag": "[ADSPOWER_STOP]<k1abc>[/ADSPOWER_STOP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ADSPOWER_STOP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ADSPOWER_STOP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ADSPOWER_STOP",
        "update": "PUT /api/directory/ADSPOWER_STOP",
        "patch": "PATCH /api/directory/ADSPOWER_STOP",
        "delete": "DELETE /api/directory/ADSPOWER_STOP",
        "invoke": "POST /api/dispatch {\"key\":\"ADSPOWER_STOP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ADSPOWER_STOP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ADSPOWER_STOP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ADSPOWER_STOP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=ADSPOWER_STOP"
    },
    {
      "key": "AD_LIBRARY_SCRAPE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Collect public Meta Ad Library results via system Chrome. Graph ads_archive is locked (error 10); this is the public transparency page. Saves every ad to ~/.miscsubjects/ad-library/YYYY-MM-DD/ads.jsonl. WHEN_TO_USE: competitor ads, peptide terms, volume search without the restricted API. ARGS: empty = all queries in scripts/ad-library-queries.json. Or --q TERM. EX: [AD_LIBRARY_SCRAPE]--q tesofensine[/AD_LIBRARY_SCRAPE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AD_LIBRARY_SCRAPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AD_LIBRARY_SCRAPE",
        "type": "http",
        "what": [
          "WHAT: Collect public Meta Ad Library results via system Chrome. Graph ads_archive is locked (error 10); this is the public transparency page. Saves every ad to ~/.miscsubjects/ad-library/YYYY-MM-DD/ads.jsonl.",
          "WHEN_TO_USE: competitor ads, peptide terms, volume search without the restricted API.",
          "ARGS: empty = all queries in scripts/ad-library-queries.json. Or --q TERM.",
          "EX: [AD_LIBRARY_SCRAPE]--q tesofensine[/AD_LIBRARY_SCRAPE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "--q tesofensine",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[AD_LIBRARY_SCRAPE]--q tesofensine[/AD_LIBRARY_SCRAPE]",
        "tag": "[AD_LIBRARY_SCRAPE]<--q tesofensine …>[/AD_LIBRARY_SCRAPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AD_LIBRARY_SCRAPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AD_LIBRARY_SCRAPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-lc\", \"node scripts/ad-library-scrape.mjs $1+\"], \"cwd\": \"/Users/the owner/miscsubjects-pages\", \"timeout\": 900000}",
      "edit": {
        "read": "GET /api/directory/AD_LIBRARY_SCRAPE",
        "update": "PUT /api/directory/AD_LIBRARY_SCRAPE",
        "patch": "PATCH /api/directory/AD_LIBRARY_SCRAPE",
        "delete": "DELETE /api/directory/AD_LIBRARY_SCRAPE",
        "invoke": "POST /api/dispatch {\"key\":\"AD_LIBRARY_SCRAPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AD_LIBRARY_SCRAPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AD_LIBRARY_SCRAPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AD_LIBRARY_SCRAPE"
      },
      "examples": "[{\"args\": \"--q tesofensine\"}, {\"args\": \"\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=AD_LIBRARY_SCRAPE"
    },
    {
      "key": "AGENT",
      "type": "fn",
      "category": "agent",
      "doc": "WHAT: Control a resident agent WHEN_TO_USE: you need to agent ARGS: op(status|send|pause|resume|kill|events)|id|msg EX: [AGENT]arg1|arg2|arg3[/AGENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT",
        "type": "fn",
        "what": [
          "WHAT: Control a resident agent",
          "WHEN_TO_USE: you need to agent",
          "ARGS: op(status|send|pause|resume|kill|events)|id|msg",
          "EX: [AGENT]arg1|arg2|arg3[/AGENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT]arg1|arg2|arg3[/AGENT]",
        "tag": "[AGENT]<arg1>|<arg2>|<arg3 …>[/AGENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/AGENT",
        "update": "PUT /api/directory/AGENT",
        "patch": "PATCH /api/directory/AGENT",
        "delete": "DELETE /api/directory/AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT"
      },
      "examples": "[\"ag_997eb2b2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT"
    },
    {
      "key": "AGENT_BRIDGE",
      "type": "flow",
      "category": "routing",
      "doc": "Route a message from one agent to another. $1=source_agent, $2=target_agent, $3=message. Creates a turn that appears to come from the source agent, routed to the target agent.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_BRIDGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_BRIDGE",
        "type": "flow",
        "what": [
          "Route a message from one agent to another. $1=source_agent, $2=target_agent, $3=message. Creates a turn that appears to come from the source agent, routed to the target agent."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "source_agent, $2=target_agent, $3=message. Creates a turn that appears to come from the source agent, routed to the target agent.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[AGENT_BRIDGE]arg1|arg2|arg3[/AGENT_BRIDGE]",
        "tag": "[AGENT_BRIDGE]<arg1>|<arg2>|<arg3>[/AGENT_BRIDGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_BRIDGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_BRIDGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/AGENT_BRIDGE",
        "update": "PUT /api/directory/AGENT_BRIDGE",
        "patch": "PATCH /api/directory/AGENT_BRIDGE",
        "delete": "DELETE /api/directory/AGENT_BRIDGE",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_BRIDGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_BRIDGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_BRIDGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_BRIDGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_BRIDGE"
    },
    {
      "key": "AGENT_IMPORT",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Cannibalize an agent definition (md frontmatter name/description/model/tools) into a proposed agent row. PROPOSE only WHEN_TO_USE: you need to agent import ARGS: source(url|r2:key|raw)|category EX: [AGENT_IMPORT]arg1|arg2[/AGENT_IMPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_IMPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_IMPORT",
        "type": "fn",
        "what": [
          "WHAT: Cannibalize an agent definition (md frontmatter name/description/model/tools) into a proposed agent row. PROPOSE only",
          "WHEN_TO_USE: you need to agent import",
          "ARGS: source(url|r2:key|raw)|category",
          "EX: [AGENT_IMPORT]arg1|arg2[/AGENT_IMPORT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_IMPORT]arg1|arg2[/AGENT_IMPORT]",
        "tag": "[AGENT_IMPORT]<arg1>|<arg2>[/AGENT_IMPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_IMPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_IMPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_IMPORT",
        "update": "PUT /api/directory/AGENT_IMPORT",
        "patch": "PATCH /api/directory/AGENT_IMPORT",
        "delete": "DELETE /api/directory/AGENT_IMPORT",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_IMPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_IMPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_IMPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_IMPORT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_IMPORT"
    },
    {
      "key": "AGENT_LEARN",
      "type": "fn",
      "category": null,
      "doc": "WHAT: save a lesson/working pattern to an agent persistent memory. Args: agent|lesson. WHEN_TO_USE: the user says something works, prefers a style, or gives feedback worth keeping.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_LEARN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_LEARN",
        "type": "fn",
        "what": [
          "WHAT: save a lesson/working pattern to an agent persistent memory. Args: agent|lesson.",
          "WHEN_TO_USE: the user says something works, prefers a style, or gives feedback worth keeping."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_LEARN]arg1|arg2[/AGENT_LEARN]",
        "tag": "[AGENT_LEARN]<arg1>|<arg2>[/AGENT_LEARN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_LEARN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_LEARN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"mem:$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_LEARN",
        "update": "PUT /api/directory/AGENT_LEARN",
        "patch": "PATCH /api/directory/AGENT_LEARN",
        "delete": "DELETE /api/directory/AGENT_LEARN",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_LEARN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_LEARN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_LEARN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_LEARN"
      },
      "examples": "[\"arcads|warm natural daylight from a window makes kitchen scenes look best\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_LEARN"
    },
    {
      "key": "AGENT_LIST",
      "type": "fn",
      "category": "agent",
      "doc": "WHAT: List resident agents and their live status WHEN_TO_USE: you need to agent list ARGS: none EX: [AGENT_LIST][/AGENT_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_LIST",
        "type": "fn",
        "what": [
          "WHAT: List resident agents and their live status",
          "WHEN_TO_USE: you need to agent list",
          "ARGS: none",
          "EX: [AGENT_LIST][/AGENT_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_LIST][/AGENT_LIST]",
        "tag": "[AGENT_LIST][/AGENT_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/AGENT_LIST",
        "update": "PUT /api/directory/AGENT_LIST",
        "patch": "PATCH /api/directory/AGENT_LIST",
        "delete": "DELETE /api/directory/AGENT_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_LIST"
    },
    {
      "key": "AGENT_RECALL",
      "type": "fn",
      "category": null,
      "doc": "WHAT: load an agent saved lessons/patterns. Arg: agent. WHEN_TO_USE: at the start of a creative job, to apply what worked before.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_RECALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_RECALL",
        "type": "fn",
        "what": [
          "WHAT: load an agent saved lessons/patterns. Arg: agent.",
          "WHEN_TO_USE: at the start of a creative job, to apply what worked before."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_RECALL]arg1[/AGENT_RECALL]",
        "tag": "[AGENT_RECALL]<arg1>[/AGENT_RECALL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_RECALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_RECALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"mem:$1\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_RECALL",
        "update": "PUT /api/directory/AGENT_RECALL",
        "patch": "PATCH /api/directory/AGENT_RECALL",
        "delete": "DELETE /api/directory/AGENT_RECALL",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_RECALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_RECALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_RECALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_RECALL"
      },
      "examples": "[\"REASON\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_RECALL"
    },
    {
      "key": "AGENT_SPAWN",
      "type": "fn",
      "category": "agent",
      "doc": "WHAT: Spawn a resident agent that loops on a goal until done (durable, survives Mac sleep) WHEN_TO_USE: you need to agent spawn ARGS: goal|brain|maxSteps EX: [AGENT_SPAWN]arg1|arg2|arg3[/AGENT_SPAWN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_SPAWN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_SPAWN",
        "type": "fn",
        "what": [
          "WHAT: Spawn a resident agent that loops on a goal until done (durable, survives Mac sleep)",
          "WHEN_TO_USE: you need to agent spawn",
          "ARGS: goal|brain|maxSteps",
          "EX: [AGENT_SPAWN]arg1|arg2|arg3[/AGENT_SPAWN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_SPAWN]arg1|arg2|arg3[/AGENT_SPAWN]",
        "tag": "[AGENT_SPAWN]<arg1>|<arg2>|<arg3>[/AGENT_SPAWN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_SPAWN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_SPAWN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_SPAWN",
        "update": "PUT /api/directory/AGENT_SPAWN",
        "patch": "PATCH /api/directory/AGENT_SPAWN",
        "delete": "DELETE /api/directory/AGENT_SPAWN",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_SPAWN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_SPAWN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_SPAWN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_SPAWN"
      },
      "examples": "[\"test goal|ROUTER|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_SPAWN"
    },
    {
      "key": "AGENT_SPAWN_CLI",
      "type": "fn",
      "category": "cli",
      "doc": "Alias of CLI_SPAWN. Args: agent|prompt|cwd|mode|delivery|model|session",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_SPAWN_CLI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_SPAWN_CLI",
        "type": "fn",
        "what": [
          "Alias of CLI_SPAWN. Args: agent|prompt|cwd|mode|delivery|model|session"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_SPAWN_CLI]arg1|arg2|arg3|arg4|arg5|arg6|arg7[/AGENT_SPAWN_CLI]",
        "tag": "[AGENT_SPAWN_CLI]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>[/AGENT_SPAWN_CLI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_SPAWN_CLI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_SPAWN_CLI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_SPAWN_CLI",
        "update": "PUT /api/directory/AGENT_SPAWN_CLI",
        "patch": "PATCH /api/directory/AGENT_SPAWN_CLI",
        "delete": "DELETE /api/directory/AGENT_SPAWN_CLI",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_SPAWN_CLI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_SPAWN_CLI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_SPAWN_CLI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_SPAWN_CLI"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_SPAWN_CLI"
    },
    {
      "key": "AGENT_TURNS",
      "type": "fn",
      "category": "log",
      "doc": "WHAT: last N agent turns across all CLI agents (claude, codex, grok, …). $1 = agent id or \"all\", $2 = limit (default 5). WHEN_TO_USE: \"what did codex do\", \"show agent turns\", cross-agent audit. EX: [AGENT_TURNS]claude|5[/AGENT_TURNS]  [AGENT_TURNS]all|10[/AGENT_TURNS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_TURNS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_TURNS",
        "type": "fn",
        "what": [
          "WHAT: last N agent turns across all CLI agents (claude, codex, grok, …). $1 = agent id or \"all\", $2 = limit (default 5).",
          "WHEN_TO_USE: \"what did codex do\", \"show agent turns\", cross-agent audit.",
          "EX: [AGENT_TURNS]claude|5[/AGENT_TURNS]  [AGENT_TURNS]all|10[/AGENT_TURNS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "claude",
            "desc": "agent id or \"all\", $2 = limit (default 5).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "5",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_TURNS]claude|5[/AGENT_TURNS]  [AGENT_TURNS]all|10[/AGENT_TURNS]",
        "tag": "[AGENT_TURNS]<claude>|<5>[/AGENT_TURNS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_TURNS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_TURNS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT id, ts, agent, source, trace_id, substr(user_input,1,200) AS user_input, substr(assistant_text,1,400) AS assistant_text, dispatch_key FROM agent_turns WHERE ('$1' = 'all' OR agent = '$1') ORDER BY id DESC LIMIT COALESCE(NULLIF('$2',''),5)\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_TURNS",
        "update": "PUT /api/directory/AGENT_TURNS",
        "patch": "PATCH /api/directory/AGENT_TURNS",
        "delete": "DELETE /api/directory/AGENT_TURNS",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_TURNS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_TURNS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_TURNS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_TURNS"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_TURNS"
    },
    {
      "key": "AGENT_TURNS_FILTER",
      "type": "fn",
      "category": "log",
      "doc": "WHAT: multi-filter agent turn query. $1=agent|all, $2=tag|risk|all, $3=limit. WHEN_TO_USE: cross-agent issue board, \"gemini risk turns\", audit backlog. EX: [AGENT_TURNS_FILTER]codex|risk|15[/AGENT_TURNS_FILTER]  [AGENT_TURNS_FILTER]all|unaudited|50[/AGENT_TURNS_FILTER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_TURNS_FILTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_TURNS_FILTER",
        "type": "fn",
        "what": [
          "WHAT: multi-filter agent turn query. $1=agent|all, $2=tag|risk|all, $3=limit.",
          "WHEN_TO_USE: cross-agent issue board, \"gemini risk turns\", audit backlog.",
          "EX: [AGENT_TURNS_FILTER]codex|risk|15[/AGENT_TURNS_FILTER]  [AGENT_TURNS_FILTER]all|unaudited|50[/AGENT_TURNS_FILTER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "codex",
            "desc": "agent|all, $2=tag|risk|all, $3=limit.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "risk",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "15",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_TURNS_FILTER]codex|risk|15[/AGENT_TURNS_FILTER]  [AGENT_TURNS_FILTER]all|unaudited|50[/AGENT_TURNS_FILTER]",
        "tag": "[AGENT_TURNS_FILTER]<codex>|<risk>|<15>[/AGENT_TURNS_FILTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_TURNS_FILTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_TURNS_FILTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT id, ts, agent, source, trace_id, tags_json, audit_verdict, n_tools, substr(user_input,1,180) AS user_input FROM agent_turns WHERE ('$1' = 'all' OR agent = '$1') AND ('$2' = 'all' OR tags_json LIKE '%\\\"' || '$2' || '\\\"%') ORDER BY id DESC LIMIT COALESCE(NULLIF('$3',''),30)\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_TURNS_FILTER",
        "update": "PUT /api/directory/AGENT_TURNS_FILTER",
        "patch": "PATCH /api/directory/AGENT_TURNS_FILTER",
        "delete": "DELETE /api/directory/AGENT_TURNS_FILTER",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_TURNS_FILTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_TURNS_FILTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_TURNS_FILTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_TURNS_FILTER"
      },
      "examples": "[\"codex|risk|15\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_TURNS_FILTER"
    },
    {
      "key": "AGENT_TURNS_ISSUES",
      "type": "fn",
      "category": "log",
      "doc": "WHAT: agent turns matching issue tags (risk, protected, file_edit, unaudited, audit_fail). $1 = tag, $2 = limit. WHEN_TO_USE: \"show risky agent turns\", \"unaudited codex turns\", filterable issue triage. EX: [AGENT_TURNS_ISSUES]risk|20[/AGENT_TURNS_ISSUES]  [AGENT_TURNS_ISSUES]protected|10[/AGENT_TURNS_ISSUES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_TURNS_ISSUES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_TURNS_ISSUES",
        "type": "fn",
        "what": [
          "WHAT: agent turns matching issue tags (risk, protected, file_edit, unaudited, audit_fail). $1 = tag, $2 = limit.",
          "WHEN_TO_USE: \"show risky agent turns\", \"unaudited codex turns\", filterable issue triage.",
          "EX: [AGENT_TURNS_ISSUES]risk|20[/AGENT_TURNS_ISSUES]  [AGENT_TURNS_ISSUES]protected|10[/AGENT_TURNS_ISSUES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "risk",
            "desc": "tag, $2 = limit.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_TURNS_ISSUES]risk|20[/AGENT_TURNS_ISSUES]  [AGENT_TURNS_ISSUES]protected|10[/AGENT_TURNS_ISSUES]",
        "tag": "[AGENT_TURNS_ISSUES]<risk>|<20>[/AGENT_TURNS_ISSUES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_TURNS_ISSUES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_TURNS_ISSUES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT id, ts, agent, source, session, trace_id, tags_json, substr(user_input,1,200) AS user_input, substr(assistant_text,1,300) AS assistant_text, audit_verdict FROM agent_turns WHERE tags_json LIKE '%\\\"' || '$1' || '\\\"%' ORDER BY id DESC LIMIT COALESCE(NULLIF('$2',''),20)\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_TURNS_ISSUES",
        "update": "PUT /api/directory/AGENT_TURNS_ISSUES",
        "patch": "PATCH /api/directory/AGENT_TURNS_ISSUES",
        "delete": "DELETE /api/directory/AGENT_TURNS_ISSUES",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_TURNS_ISSUES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_TURNS_ISSUES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_TURNS_ISSUES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_TURNS_ISSUES"
      },
      "examples": "[\"audit_fail|20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_TURNS_ISSUES"
    },
    {
      "key": "AGENT_TURNS_TRACE",
      "type": "fn",
      "category": "log",
      "doc": "WHAT: agent turns linked to one ledger trace_id. $1 = trace_id, $2 = limit (default 20). WHEN_TO_USE: \"what CLI agents ran on this trace\", incident/debug linkage. EX: [AGENT_TURNS_TRACE]t_abc123|10[/AGENT_TURNS_TRACE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGENT_TURNS_TRACE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGENT_TURNS_TRACE",
        "type": "fn",
        "what": [
          "WHAT: agent turns linked to one ledger trace_id. $1 = trace_id, $2 = limit (default 20).",
          "WHEN_TO_USE: \"what CLI agents ran on this trace\", incident/debug linkage.",
          "EX: [AGENT_TURNS_TRACE]t_abc123|10[/AGENT_TURNS_TRACE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "t_abc123",
            "desc": "trace_id, $2 = limit (default 20).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "10",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGENT_TURNS_TRACE]t_abc123|10[/AGENT_TURNS_TRACE]",
        "tag": "[AGENT_TURNS_TRACE]<t_abc123>|<10>[/AGENT_TURNS_TRACE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGENT_TURNS_TRACE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGENT_TURNS_TRACE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT id, ts, agent, source, dispatch_key, substr(user_input,1,200) AS user_input, substr(assistant_text,1,500) AS assistant_text FROM agent_turns WHERE trace_id = '$1' ORDER BY id ASC LIMIT COALESCE(NULLIF('$2',''),20)\"]",
      "edit": {
        "read": "GET /api/directory/AGENT_TURNS_TRACE",
        "update": "PUT /api/directory/AGENT_TURNS_TRACE",
        "patch": "PATCH /api/directory/AGENT_TURNS_TRACE",
        "delete": "DELETE /api/directory/AGENT_TURNS_TRACE",
        "invoke": "POST /api/dispatch {\"key\":\"AGENT_TURNS_TRACE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGENT_TURNS_TRACE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGENT_TURNS_TRACE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGENT_TURNS_TRACE"
      },
      "examples": "[\"t_abc123|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGENT_TURNS_TRACE"
    },
    {
      "key": "AGGREGATE_QUERY",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: An aggregate over a declared dataset: sum, mean, median, min, max over at least five members, never the rows. Each buyer has a budget of distinct queries per dataset; a cohort that differs from an earlier answered one by fewer than five members is refused, because the difference would isolate them. WHEN_TO_USE: a buyer wants a benchmark without anyone's rows. ARGS: buyer|dataset(sales_by_row, claims_by_method, leases_by_kind)|filters_json EX: [AGGREGATE_QUERY]prf_abc|sales_by_row|{\"row_key\":\"CLAUDE_WEB\"}[/AGGREGATE_QUERY] TESTS: COHORT_TOO_SMALL under five; OVERLAP_REFUSED on an isolating difference; PRIVACY_BUDGET_SPENT past the budget; otherwise the aggregate and the remaining budget.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGGREGATE_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGGREGATE_QUERY",
        "type": "fn",
        "what": [
          "WHAT: An aggregate over a declared dataset: sum, mean, median, min, max over at least five members, never the rows. Each buyer has a budget of distinct queries per dataset; a cohort that differs from an earlier answered one by fewer than five members is refused, because the difference would isolate them.",
          "WHEN_TO_USE: a buyer wants a benchmark without anyone's rows.",
          "ARGS: buyer|dataset(sales_by_row, claims_by_method, leases_by_kind)|filters_json",
          "EX: [AGGREGATE_QUERY]prf_abc|sales_by_row|{\"row_key\":\"CLAUDE_WEB\"}[/AGGREGATE_QUERY]",
          "TESTS: COHORT_TOO_SMALL under five; OVERLAP_REFUSED on an isolating difference; PRIVACY_BUDGET_SPENT past the budget; otherwise the aggregate and the remaining budget."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AGGREGATE_QUERY]prf_abc|sales_by_row|{\"row_key\":\"CLAUDE_WEB\"}[/AGGREGATE_QUERY]",
        "tag": "[AGGREGATE_QUERY]<prf_abc …>[/AGGREGATE_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGGREGATE_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGGREGATE_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/AGGREGATE_QUERY",
        "update": "PUT /api/directory/AGGREGATE_QUERY",
        "patch": "PATCH /api/directory/AGGREGATE_QUERY",
        "delete": "DELETE /api/directory/AGGREGATE_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"AGGREGATE_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGGREGATE_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGGREGATE_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGGREGATE_QUERY"
      },
      "examples": "[\"prf_abc|sales_by_row|{\\\"row_key\\\":\\\"CLAUDE_WEB\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGGREGATE_QUERY"
    },
    {
      "key": "AGREEMENT_ACCEPT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The buyer accepts one offer under the mandate; obligations become binding; a work task is created with the acceptance tests and a settlement is held in escrow until the tests pass. Above the auto-execute threshold the person must approve. WHEN_TO_USE: the buyer chooses an offer. ARGS: offer_id|acceptance_tests_json|authority_grade EX: [AGREEMENT_ACCEPT]ofr_abc||person-approved[/AGREEMENT_ACCEPT] TESTS: Returns agreement_id, task_id, settlement_id held; over the threshold without person-approved is CONFIRMATION_REQUIRED; over budget OVER_BUDGET; an accepted or expired offer OFFER_STATE or OFFER_EXPIRED.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AGREEMENT_ACCEPT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AGREEMENT_ACCEPT",
        "type": "fn",
        "what": [
          "WHAT: The buyer accepts one offer under the mandate; obligations become binding; a work task is created with the acceptance tests and a settlement is held in escrow until the tests pass. Above the auto-execute threshold the person must approve.",
          "WHEN_TO_USE: the buyer chooses an offer.",
          "ARGS: offer_id|acceptance_tests_json|authority_grade",
          "EX: [AGREEMENT_ACCEPT]ofr_abc||person-approved[/AGREEMENT_ACCEPT]",
          "TESTS: Returns agreement_id, task_id, settlement_id held; over the threshold without person-approved is CONFIRMATION_REQUIRED; over budget OVER_BUDGET; an accepted or expired offer OFFER_STATE or OFFER_EXPIRED."
        ],
        "args": [
          {
            "pos": 1,
            "name": "ofr_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "agreement_id, task_id, settlement_id held; over the threshold without person-approved is CONFIRMATION_REQUIRED; over budget OVER_BUDGET; an accepted or expired offer OFFER_STATE or OFFER_EXPIRED.",
        "example": "[AGREEMENT_ACCEPT]ofr_abc||person-approved[/AGREEMENT_ACCEPT]",
        "tag": "[AGREEMENT_ACCEPT]<ofr_abc …>[/AGREEMENT_ACCEPT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AGREEMENT_ACCEPT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AGREEMENT_ACCEPT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/AGREEMENT_ACCEPT",
        "update": "PUT /api/directory/AGREEMENT_ACCEPT",
        "patch": "PATCH /api/directory/AGREEMENT_ACCEPT",
        "delete": "DELETE /api/directory/AGREEMENT_ACCEPT",
        "invoke": "POST /api/dispatch {\"key\":\"AGREEMENT_ACCEPT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AGREEMENT_ACCEPT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AGREEMENT_ACCEPT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AGREEMENT_ACCEPT"
      },
      "examples": "[\"ofr_abc||person-approved\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AGREEMENT_ACCEPT"
    },
    {
      "key": "AIG_LIST",
      "type": "http",
      "category": null,
      "doc": "WHAT: List AI Gateways on the account WHEN_TO_USE: you need to aig list ARGS: account_id EX: [AIG_LIST][/AIG_LIST] List AI Gateways on the account. Arg: account_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AIG_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AIG_LIST",
        "type": "http",
        "what": [
          "WHAT: List AI Gateways on the account",
          "WHEN_TO_USE: you need to aig list",
          "ARGS: account_id",
          "EX: [AIG_LIST][/AIG_LIST]",
          "List AI Gateways on the account. Arg: account_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[AIG_LIST][/AIG_LIST]",
        "tag": "[AIG_LIST]<arg1>[/AIG_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AIG_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AIG_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/AIG_LIST",
        "update": "PUT /api/directory/AIG_LIST",
        "patch": "PATCH /api/directory/AIG_LIST",
        "delete": "DELETE /api/directory/AIG_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"AIG_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AIG_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AIG_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AIG_LIST"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AIG_LIST"
    },
    {
      "key": "AIG_RAW",
      "type": "http",
      "category": null,
      "doc": "WHAT: Raw call to AI Gateway REST. Arg $1 = full JSON body (model + messages) WHEN_TO_USE: you need to aig raw ARGS: see content EX: [AIG_RAW]arg1[/AIG_RAW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AIG_RAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AIG_RAW",
        "type": "http",
        "what": [
          "WHAT: Raw call to AI Gateway REST. Arg $1 = full JSON body (model + messages)",
          "WHEN_TO_USE: you need to aig raw",
          "ARGS: see content",
          "EX: [AIG_RAW]arg1[/AIG_RAW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "full JSON body (model + messages)",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [
          "CF_ACCOUNT_ID"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[AIG_RAW]arg1[/AIG_RAW]",
        "tag": "[AIG_RAW]<arg1 …>[/AIG_RAW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AIG_RAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AIG_RAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/AIG_RAW",
        "update": "PUT /api/directory/AIG_RAW",
        "patch": "PATCH /api/directory/AIG_RAW",
        "delete": "DELETE /api/directory/AIG_RAW",
        "invoke": "POST /api/dispatch {\"key\":\"AIG_RAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AIG_RAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AIG_RAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AIG_RAW"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AIG_RAW"
    },
    {
      "key": "ALLOCATE_REASONING",
      "type": "fn",
      "category": "adjudication",
      "doc": "WHAT: The runtime allocator. Turns an action and its action class into R (loss exposure), K (complexity) and epsilon (permitted wrongful-action rate) from a VERSIONED SERVER-OWNED policy, selects the least-cost configuration whose MEASURED undetected-wrong rate is at or below that epsilon, executes it so every model payload lands on the ledger, seals it with SEAL_PANEL bound to those records, and then performs the bounded downstream act only if the seal returns APPROVE. NEGATE refuses the act. NO_ACTION leaves it untouched. DISPUTE and ESCALATE create a human-review object bound to a NAMED reviewer plus an audience-bound witness token. If no measured configuration satisfies the policy epsilon for the task class, it ESCALATES rather than guessing. WHEN_TO_USE: any consequential action that must not execute until enough auditable reasoning has been purchased for its consequence. ARGS: one JSON object {action, action_class, question, ruleset_url, ruleset_hash, rules[], artifact, artifact_hash, task_class?, reviewer?, reviewer_audience?}. The caller does NOT supply R, K, epsilon, thresholds or the configuration. EX: [ALLOCATE_REASONING]{\"action\":\"file the clause (c) notice\",\"action_class\":\"board-authority\",\"question\":\"Does this engage the notification duty?\",\"ruleset_hash\":\"0df47944...\",\"rules\":[\"...\"],\"artifact\":\"...\",\"artifact_hash\":\"8c689258...\",\"reviewer\":\"Jane Roe, audit committee chair\"}[/ALLOCATE_REASONING]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ALLOCATE_REASONING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ALLOCATE_REASONING",
        "type": "fn",
        "what": [
          "WHAT: The runtime allocator. Turns an action and its action class into R (loss exposure), K (complexity) and epsilon (permitted wrongful-action rate) from a VERSIONED SERVER-OWNED policy, selects the least-cost configuration whose MEASURED undetected-wrong rate is at or below that epsilon, executes it so every model payload lands on the ledger, seals it with SEAL_PANEL bound to those records, and then performs the bounded downstream act only if the seal returns APPROVE. NEGATE refuses the act. NO_ACTION leaves it untouched. DISPUTE and ESCALATE create a human-review object bound to a NAMED reviewer plus an audience-bound witness token. If no measured configuration satisfies the policy epsilon for the task class, it ESCALATES rather than guessing.",
          "WHEN_TO_USE: any consequential action that must not execute until enough auditable reasoning has been purchased for its consequence.",
          "ARGS: one JSON object {action, action_class, question, ruleset_url, ruleset_hash, rules[], artifact, artifact_hash, task_class?, reviewer?, reviewer_audience?}. The caller does NOT supply R, K, epsilon, thresholds or the configuration.",
          "EX: [ALLOCATE_REASONING]{\"action\":\"file the clause (c) notice\",\"action_class\":\"board-authority\",\"question\":\"Does this engage the notification duty?\",\"ruleset_hash\":\"0df47944...\",\"rules\":[\"...\"],\"artifact\":\"...\",\"artifact_hash\":\"8c689258...\",\"reviewer\":\"Jane Roe, audit committee chair\"}[/ALLOCATE_REASONING]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "APPROVE. NEGATE refuses the act. NO_ACTION leaves it untouched. DISPUTE and ESCALATE create a human-review object bound to a NAMED reviewer plus an audience-bound witness token. If no measured configuration satisfies the policy epsilon for the task class, it ESCALATES rather than guessing.",
        "example": "[ALLOCATE_REASONING]{\"action\":\"file the clause (c) notice\",\"action_class\":\"board-authority\",\"question\":\"Does this engage the notification duty?\",\"ruleset_hash\":\"0df47944...\",\"rules\":[\"...\"],\"artifact\":\"...\",\"artifact_hash\":\"8c689258...\",\"reviewer\":\"Jane Roe, audit committee chair\"}[/ALLOCATE_REASONING]",
        "tag": "[ALLOCATE_REASONING]<arg1 …>[/ALLOCATE_REASONING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ALLOCATE_REASONING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ALLOCATE_REASONING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/ALLOCATE_REASONING",
        "update": "PUT /api/directory/ALLOCATE_REASONING",
        "patch": "PATCH /api/directory/ALLOCATE_REASONING",
        "delete": "DELETE /api/directory/ALLOCATE_REASONING",
        "invoke": "POST /api/dispatch {\"key\":\"ALLOCATE_REASONING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ALLOCATE_REASONING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ALLOCATE_REASONING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ALLOCATE_REASONING"
      },
      "examples": "[{\"body\": \"{\\\"action\\\":\\\"write the authorised-action record\\\",\\\"action_class\\\":\\\"statutory-applicability\\\",\\\"question\\\":\\\"Does the obligation apply?\\\",\\\"ruleset_hash\\\":\\\"0dd9afef93503a92280c90869eaf6a5a13ee508b2ec3506045f1803bce1a4d3c\\\",\\\"rules\\\":[\\\"Read only the provision text supplied.\\\"],\\\"artifact\\\":\\\"(provision text)\\\",\\\"artifact_hash\\\":\\\"9d89534fddaece861fcfdda68feff0412061b2832af66f49529a94e8f7ae9f8b\\\",\\\"reviewer\\\":\\\"Jane Roe, compliance counsel\\\"}\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ALLOCATE_REASONING"
    },
    {
      "key": "APPLE_BLUETOOTH",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Connected Bluetooth devices on the Mac. ARGS: none EX: [APPLE_BLUETOOTH][/APPLE_BLUETOOTH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_BLUETOOTH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_BLUETOOTH",
        "type": "http",
        "what": [
          "WHAT: Connected Bluetooth devices on the Mac.",
          "ARGS: none",
          "EX: [APPLE_BLUETOOTH][/APPLE_BLUETOOTH]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_BLUETOOTH][/APPLE_BLUETOOTH]",
        "tag": "[APPLE_BLUETOOTH][/APPLE_BLUETOOTH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_BLUETOOTH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_BLUETOOTH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_BLUETOOTH",
        "update": "PUT /api/directory/APPLE_BLUETOOTH",
        "patch": "PATCH /api/directory/APPLE_BLUETOOTH",
        "delete": "DELETE /api/directory/APPLE_BLUETOOTH",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_BLUETOOTH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_BLUETOOTH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_BLUETOOTH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_BLUETOOTH"
      },
      "examples": "[{\"args\": \"\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_BLUETOOTH"
    },
    {
      "key": "APPLE_CALENDAR",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Local Apple Calendar sqlite observe on the Mac. ARGS: $1 = optional query EX: [APPLE_CALENDAR][/APPLE_CALENDAR]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_CALENDAR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_CALENDAR",
        "type": "http",
        "what": [
          "WHAT: Local Apple Calendar sqlite observe on the Mac.",
          "ARGS: $1 = optional query",
          "EX: [APPLE_CALENDAR][/APPLE_CALENDAR]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_CALENDAR][/APPLE_CALENDAR]",
        "tag": "[APPLE_CALENDAR]<arg1>[/APPLE_CALENDAR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_CALENDAR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_CALENDAR  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_CALENDAR",
        "update": "PUT /api/directory/APPLE_CALENDAR",
        "patch": "PATCH /api/directory/APPLE_CALENDAR",
        "delete": "DELETE /api/directory/APPLE_CALENDAR",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_CALENDAR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_CALENDAR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_CALENDAR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_CALENDAR"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_CALENDAR"
    },
    {
      "key": "APPLE_CONTACTS",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Search local Apple Contacts (AddressBook sqlite on the Mac). Returns names, not the database. ARGS: $1 = query EX: [APPLE_CONTACTS]will[/APPLE_CONTACTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_CONTACTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_CONTACTS",
        "type": "http",
        "what": [
          "WHAT: Search local Apple Contacts (AddressBook sqlite on the Mac). Returns names, not the database.",
          "ARGS: $1 = query",
          "EX: [APPLE_CONTACTS]will[/APPLE_CONTACTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "will",
            "desc": "query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "names, not the database.",
        "example": "[APPLE_CONTACTS]will[/APPLE_CONTACTS]",
        "tag": "[APPLE_CONTACTS]<will>[/APPLE_CONTACTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_CONTACTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_CONTACTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_CONTACTS",
        "update": "PUT /api/directory/APPLE_CONTACTS",
        "patch": "PATCH /api/directory/APPLE_CONTACTS",
        "delete": "DELETE /api/directory/APPLE_CONTACTS",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_CONTACTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_CONTACTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_CONTACTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_CONTACTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_CONTACTS"
    },
    {
      "key": "APPLE_INVENTORY",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Apple node inventory — grants, Shortcuts, sensors, running apps, iMessage high-water. ARGS: none EX: [APPLE_INVENTORY][/APPLE_INVENTORY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_INVENTORY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_INVENTORY",
        "type": "http",
        "what": [
          "WHAT: Apple node inventory — grants, Shortcuts, sensors, running apps, iMessage high-water.",
          "ARGS: none",
          "EX: [APPLE_INVENTORY][/APPLE_INVENTORY]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_INVENTORY][/APPLE_INVENTORY]",
        "tag": "[APPLE_INVENTORY][/APPLE_INVENTORY]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_INVENTORY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_INVENTORY  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_INVENTORY",
        "update": "PUT /api/directory/APPLE_INVENTORY",
        "patch": "PATCH /api/directory/APPLE_INVENTORY",
        "delete": "DELETE /api/directory/APPLE_INVENTORY",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_INVENTORY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_INVENTORY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_INVENTORY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_INVENTORY"
      },
      "examples": "[{\"args\": \"\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_INVENTORY"
    },
    {
      "key": "APPLE_JXA",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Run JavaScript for Automation (JXA) on the Mac. ARGS: $1 = JavaScript source EX: [APPLE_JXA]Application(\"System Events\").unixId()[/APPLE_JXA]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_JXA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_JXA",
        "type": "http",
        "what": [
          "WHAT: Run JavaScript for Automation (JXA) on the Mac.",
          "ARGS: $1 = JavaScript source",
          "EX: [APPLE_JXA]Application(\"System Events\").unixId()[/APPLE_JXA]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Application(\"System Events\").unixId()",
            "desc": "JavaScript source",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_JXA]Application(\"System Events\").unixId()[/APPLE_JXA]",
        "tag": "[APPLE_JXA]<Application(\"System Events\").unixId()>[/APPLE_JXA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_JXA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_JXA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"code\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/APPLE_JXA",
        "update": "PUT /api/directory/APPLE_JXA",
        "patch": "PATCH /api/directory/APPLE_JXA",
        "delete": "DELETE /api/directory/APPLE_JXA",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_JXA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_JXA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_JXA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_JXA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_JXA"
    },
    {
      "key": "APPLE_LAYERS",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Named Mac+iPhone personal-world layers and control surfaces. Observe/Act/Trigger/Compose/Record. ARGS: none EX: [APPLE_LAYERS][/APPLE_LAYERS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_LAYERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_LAYERS",
        "type": "http",
        "what": [
          "WHAT: Named Mac+iPhone personal-world layers and control surfaces. Observe/Act/Trigger/Compose/Record.",
          "ARGS: none",
          "EX: [APPLE_LAYERS][/APPLE_LAYERS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_LAYERS][/APPLE_LAYERS]",
        "tag": "[APPLE_LAYERS][/APPLE_LAYERS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_LAYERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_LAYERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_LAYERS",
        "update": "PUT /api/directory/APPLE_LAYERS",
        "patch": "PATCH /api/directory/APPLE_LAYERS",
        "delete": "DELETE /api/directory/APPLE_LAYERS",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_LAYERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_LAYERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_LAYERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_LAYERS"
      },
      "examples": "[{\"args\": \"\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_LAYERS"
    },
    {
      "key": "APPLE_MAIL",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Search local Apple Mail envelope index (subjects). Not Gmail API. ARGS: $1 = query EX: [APPLE_MAIL]invoice[/APPLE_MAIL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_MAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_MAIL",
        "type": "http",
        "what": [
          "WHAT: Search local Apple Mail envelope index (subjects). Not Gmail API.",
          "ARGS: $1 = query",
          "EX: [APPLE_MAIL]invoice[/APPLE_MAIL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "invoice",
            "desc": "query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_MAIL]invoice[/APPLE_MAIL]",
        "tag": "[APPLE_MAIL]<invoice>[/APPLE_MAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_MAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_MAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_MAIL",
        "update": "PUT /api/directory/APPLE_MAIL",
        "patch": "PATCH /api/directory/APPLE_MAIL",
        "delete": "DELETE /api/directory/APPLE_MAIL",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_MAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_MAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_MAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_MAIL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_MAIL"
    },
    {
      "key": "APPLE_NOTES",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Local Apple Notes store observe on the Mac. ARGS: $1 = optional query EX: [APPLE_NOTES][/APPLE_NOTES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_NOTES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_NOTES",
        "type": "http",
        "what": [
          "WHAT: Local Apple Notes store observe on the Mac.",
          "ARGS: $1 = optional query",
          "EX: [APPLE_NOTES][/APPLE_NOTES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_NOTES][/APPLE_NOTES]",
        "tag": "[APPLE_NOTES]<arg1>[/APPLE_NOTES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_NOTES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_NOTES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPLE_NOTES",
        "update": "PUT /api/directory/APPLE_NOTES",
        "patch": "PATCH /api/directory/APPLE_NOTES",
        "delete": "DELETE /api/directory/APPLE_NOTES",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_NOTES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_NOTES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_NOTES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_NOTES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_NOTES"
    },
    {
      "key": "APPLE_SAFARI_JS",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Run JavaScript in the front Safari document and return the result. ARGS: $1 = JavaScript EX: [APPLE_SAFARI_JS]document.title[/APPLE_SAFARI_JS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_SAFARI_JS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_SAFARI_JS",
        "type": "http",
        "what": [
          "WHAT: Run JavaScript in the front Safari document and return the result.",
          "ARGS: $1 = JavaScript",
          "EX: [APPLE_SAFARI_JS]document.title[/APPLE_SAFARI_JS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "document.title",
            "desc": "JavaScript",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the result.",
        "example": "[APPLE_SAFARI_JS]document.title[/APPLE_SAFARI_JS]",
        "tag": "[APPLE_SAFARI_JS]<document.title>[/APPLE_SAFARI_JS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_SAFARI_JS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_SAFARI_JS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"js\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/APPLE_SAFARI_JS",
        "update": "PUT /api/directory/APPLE_SAFARI_JS",
        "patch": "PATCH /api/directory/APPLE_SAFARI_JS",
        "delete": "DELETE /api/directory/APPLE_SAFARI_JS",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_SAFARI_JS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_SAFARI_JS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_SAFARI_JS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_SAFARI_JS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_SAFARI_JS"
    },
    {
      "key": "APPLE_SHORTCUT",
      "type": "http",
      "category": "local",
      "doc": "WHAT: Run an iCloud-synced Shortcut by name on the Mac/iPhone node. ARGS: $1 = name, $2 = optional input EX: [APPLE_SHORTCUT]Door Lock[/APPLE_SHORTCUT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPLE_SHORTCUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPLE_SHORTCUT",
        "type": "http",
        "what": [
          "WHAT: Run an iCloud-synced Shortcut by name on the Mac/iPhone node.",
          "ARGS: $1 = name, $2 = optional input",
          "EX: [APPLE_SHORTCUT]Door Lock[/APPLE_SHORTCUT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Door Lock",
            "desc": "name, $2 = optional input",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPLE_SHORTCUT]Door Lock[/APPLE_SHORTCUT]",
        "tag": "[APPLE_SHORTCUT]<Door Lock>|<arg2>[/APPLE_SHORTCUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPLE_SHORTCUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPLE_SHORTCUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\":\"$1\",\"input\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/APPLE_SHORTCUT",
        "update": "PUT /api/directory/APPLE_SHORTCUT",
        "patch": "PATCH /api/directory/APPLE_SHORTCUT",
        "delete": "DELETE /api/directory/APPLE_SHORTCUT",
        "invoke": "POST /api/dispatch {\"key\":\"APPLE_SHORTCUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPLE_SHORTCUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPLE_SHORTCUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPLE_SHORTCUT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=APPLE_SHORTCUT"
    },
    {
      "key": "APPROVE_DEMO",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: The pause, end to end. Reads the clock, stops in front of the send, and only sends once a person says yes. WHEN_TO_USE: to see APPROVE and FLOW_RESUME work, and as the shape to copy for any flow that touches the world. ARGS: $1 = note=<the text to send>. Named, with a default, so the order does not matter. PARAMS: note=A message from a flow that waited for you. EX: [APPROVE_DEMO]note=ship it[/APPROVE_DEMO] TESTS: the first call returns {awaiting_approval:true} with a token and the exact steps still to come; FLOW_RESUME <token>|yes sends, FLOW_RESUME <token>|no does not. The clock step is never run twice. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPROVE_DEMO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPROVE_DEMO",
        "type": "flow",
        "what": [
          "WHAT: The pause, end to end. Reads the clock, stops in front of the send, and only sends once a person says yes.",
          "WHEN_TO_USE: to see APPROVE and FLOW_RESUME work, and as the shape to copy for any flow that touches the world.",
          "ARGS: $1 = note=<the text to send>. Named, with a default, so the order does not matter.",
          "PARAMS: note=A message from a flow that waited for you.",
          "EX: [APPROVE_DEMO]note=ship it[/APPROVE_DEMO]",
          "TESTS: the first call returns {awaiting_approval:true} with a token and the exact steps still to come; FLOW_RESUME <token>|yes sends, FLOW_RESUME <token>|no does not. The clock step is never run twice.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "OWNER"
        ],
        "returns": "{awaiting_approval:true} with a token and the exact steps still to come; FLOW_RESUME <token>|yes sends, FLOW_RESUME <token>|no does not. The clock step is never run twice.",
        "example": "[APPROVE_DEMO]note=ship it[/APPROVE_DEMO]",
        "tag": "[APPROVE_DEMO][/APPROVE_DEMO]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPROVE_DEMO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPROVE_DEMO  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/APPROVE_DEMO",
        "update": "PUT /api/directory/APPROVE_DEMO",
        "patch": "PATCH /api/directory/APPROVE_DEMO",
        "delete": "DELETE /api/directory/APPROVE_DEMO",
        "invoke": "POST /api/dispatch {\"key\":\"APPROVE_DEMO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPROVE_DEMO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPROVE_DEMO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPROVE_DEMO"
      },
      "examples": "[\"note=the pause worked\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=APPROVE_DEMO"
    },
    {
      "key": "APPS_SCRIPT_RUN",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Generic Apps Script invocation. $1=action name, $2=JSON args. Routes to the airunner web app deployment which has Google Drive / Sheets / Tasks / Calendar / Apps Script-runtime access. Use when you need to read/write the user's Google stuff. $$2+ (double dollar, N+) inlines every remaining arg rejoined with | and raw — required because the JSON args blob routinely contains real data (a business name, a drafted email body) with a literal | character in it; plain $2 silently truncates the JSON at that first embedded pipe, which is the true cause of every past 'airunner_body_truncated_in_transit' report — it was never a network/size issue. WHEN_TO_USE: any natural language about Google Drive / Sheets / Tasks / Calendar / Apps Script. ARGS: see content EX: [APPS_SCRIPT_RUN]arg1|arg2[/APPS_SCRIPT_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "APPS_SCRIPT_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "APPS_SCRIPT_RUN",
        "type": "http",
        "what": [
          "WHAT: Generic Apps Script invocation. $1=action name, $2=JSON args. Routes to the airunner web app deployment which has Google Drive / Sheets / Tasks / Calendar / Apps Script-runtime access. Use when you need to read/write the user's Google stuff. $$2+ (double dollar, N+) inlines every remaining arg rejoined with | and raw — required because the JSON args blob routinely contains real data (a business name, a drafted email body) with a literal | character in it; plain $2 silently truncates the JSON at that first embedded pipe, which is the true cause of every past 'airunner_body_truncated_in_transit' report — it was never a network/size issue.",
          "WHEN_TO_USE: any natural language about Google Drive / Sheets / Tasks / Calendar / Apps Script.",
          "ARGS: see content",
          "EX: [APPS_SCRIPT_RUN]arg1|arg2[/APPS_SCRIPT_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "action name, $2=JSON args. Routes to the airunner web app deployment which has Google Drive / Sheets / Tasks / Calendar / Apps Script-runtime access. Use when you need to read/write the user's Google stuff. $$2+ (double dollar, N+) inlines every remaining arg rejoined with | and raw — required because the JSON args blob routinely contains real data (a business name, a drafted email body) with a literal | character in it",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[APPS_SCRIPT_RUN]arg1|arg2[/APPS_SCRIPT_RUN]",
        "tag": "[APPS_SCRIPT_RUN]<arg1>|<arg2 …>[/APPS_SCRIPT_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"APPS_SCRIPT_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/APPS_SCRIPT_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"$1\",\"args\":$$2+}",
      "edit": {
        "read": "GET /api/directory/APPS_SCRIPT_RUN",
        "update": "PUT /api/directory/APPS_SCRIPT_RUN",
        "patch": "PATCH /api/directory/APPS_SCRIPT_RUN",
        "delete": "DELETE /api/directory/APPS_SCRIPT_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"APPS_SCRIPT_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"APPS_SCRIPT_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"APPS_SCRIPT_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/APPS_SCRIPT_RUN"
      },
      "examples": "[\"sheets_get|{\\\"tab\\\":\\\"OIP\\\",\\\"range\\\":\\\"A2:E3\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=APPS_SCRIPT_RUN"
    },
    {
      "key": "ARCADS",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ARCADS][/ARCADS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ARCADS",
        "update": "PUT /api/directory/ARCADS",
        "patch": "PATCH /api/directory/ARCADS",
        "delete": "DELETE /api/directory/ARCADS",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS"
    },
    {
      "key": "ARCADS_CREDITS",
      "type": "fn",
      "category": "arcads",
      "doc": "WHAT: ArcAds credit usage this month. Returns {month,used,cap,remaining}. Cap from settings.arcads_monthly_credits (80440). Logged from each generate (data.creditsCharged) WHEN_TO_USE: you need to arcads credits ARGS: none EX: [ARCADS_CREDITS][/ARCADS_CREDITS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_CREDITS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_CREDITS",
        "type": "fn",
        "what": [
          "WHAT: ArcAds credit usage this month. Returns {month,used,cap,remaining}. Cap from settings.arcads_monthly_credits (80440). Logged from each generate (data.creditsCharged)",
          "WHEN_TO_USE: you need to arcads credits",
          "ARGS: none",
          "EX: [ARCADS_CREDITS][/ARCADS_CREDITS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "{month,used,cap,remaining}. Cap from settings.arcads_monthly_credits (80440). Logged from each generate (data.creditsCharged)",
        "example": "[ARCADS_CREDITS][/ARCADS_CREDITS]",
        "tag": "[ARCADS_CREDITS][/ARCADS_CREDITS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_CREDITS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_CREDITS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/ARCADS_CREDITS",
        "update": "PUT /api/directory/ARCADS_CREDITS",
        "patch": "PATCH /api/directory/ARCADS_CREDITS",
        "delete": "DELETE /api/directory/ARCADS_CREDITS",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_CREDITS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_CREDITS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_CREDITS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_CREDITS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_CREDITS"
    },
    {
      "key": "ARCADS_GENERATE",
      "type": "fn",
      "category": "arcads",
      "doc": "WHAT: Generate an ad image via ArcAds, poll to completion, store to R2, return a stable link WHEN_TO_USE: you need to arcads generate ARGS: model|prompt|aspectRatio|referenceImages|productId|enhance EX: [ARCADS_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_GENERATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_GENERATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_GENERATE",
        "type": "fn",
        "what": [
          "WHAT: Generate an ad image via ArcAds, poll to completion, store to R2, return a stable link",
          "WHEN_TO_USE: you need to arcads generate",
          "ARGS: model|prompt|aspectRatio|referenceImages|productId|enhance",
          "EX: [ARCADS_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_GENERATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a stable link",
        "example": "[ARCADS_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_GENERATE]",
        "tag": "[ARCADS_GENERATE]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/ARCADS_GENERATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_GENERATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_GENERATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\"]",
      "edit": {
        "read": "GET /api/directory/ARCADS_GENERATE",
        "update": "PUT /api/directory/ARCADS_GENERATE",
        "patch": "PATCH /api/directory/ARCADS_GENERATE",
        "delete": "DELETE /api/directory/ARCADS_GENERATE",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_GENERATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_GENERATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_GENERATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_GENERATE"
      },
      "examples": "[\"|an evidence board of pinned index cards joined by red string, each card holding one short typed sentence, photographic|1:1|||\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_GENERATE"
    },
    {
      "key": "ARCADS_ROUTES",
      "type": "http",
      "category": "arcads",
      "doc": "WHAT: ArcAds HTTP unified entrypoint WHEN_TO_USE: direct ArcAds REST ops (presigned uploads, products, assets, situations, fields) ARGS: $1=op, $2..$N=positional args EX: [ARCADS_ROUTES]products[/ARCADS_ROUTES] TESTS: POSITIVE: {\"key\":\"ARCADS_ROUTES\",\"body\":\"products\"} → HTTP 200. INVERSE: {\"key\":\"ARCADS_ROUTES\",\"body\":\"xxx\"} → ERR:target_map:unknown_op",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_ROUTES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_ROUTES",
        "type": "http",
        "what": [
          "WHAT: ArcAds HTTP unified entrypoint",
          "WHEN_TO_USE: direct ArcAds REST ops (presigned uploads, products, assets, situations, fields)",
          "ARGS: $1=op, $2..$N=positional args",
          "EX: [ARCADS_ROUTES]products[/ARCADS_ROUTES]",
          "TESTS:",
          "POSITIVE: {\"key\":\"ARCADS_ROUTES\",\"body\":\"products\"} → HTTP 200.",
          "INVERSE: {\"key\":\"ARCADS_ROUTES\",\"body\":\"xxx\"} → ERR:target_map:unknown_op"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: actors, asset_get, asset_watch, image_raw, presets, products, situations, video_raw",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "actors",
            "sig": "[ARCADS_ROUTES]actors[/ARCADS_ROUTES]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "asset_get",
            "sig": "[ARCADS_ROUTES]asset_get|<arg1>[/ARCADS_ROUTES]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "asset_watch",
            "sig": "[ARCADS_ROUTES]asset_watch|<arg1>[/ARCADS_ROUTES]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "image_raw",
            "sig": "[ARCADS_ROUTES]image_raw|<arg1>[/ARCADS_ROUTES]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "presets",
            "sig": "[ARCADS_ROUTES]presets[/ARCADS_ROUTES]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "products",
            "sig": "[ARCADS_ROUTES]products[/ARCADS_ROUTES]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "situations",
            "sig": "[ARCADS_ROUTES]situations[/ARCADS_ROUTES]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "video_raw",
            "sig": "[ARCADS_ROUTES]video_raw|<arg1>[/ARCADS_ROUTES]",
            "extraArgs": 1,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[ARCADS_ROUTES]products[/ARCADS_ROUTES]",
        "tag": "[ARCADS_ROUTES]<op>|<args for that op>[/ARCADS_ROUTES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_ROUTES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_ROUTES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ARCADS_ROUTES",
        "update": "PUT /api/directory/ARCADS_ROUTES",
        "patch": "PATCH /api/directory/ARCADS_ROUTES",
        "delete": "DELETE /api/directory/ARCADS_ROUTES",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_ROUTES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_ROUTES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_ROUTES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_ROUTES"
      },
      "examples": "[\"products\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_ROUTES"
    },
    {
      "key": "ARCADS_TO_R2",
      "type": "fn",
      "category": "creative",
      "doc": "WHAT: Poll a finished ArcAds render by arcads_id and re-store its bytes to R2, returning a stable https://miscsubjects.com/img/ link (permanent, not a presigned/expiring S3 url). Waits up to 120s for the render. WHEN_TO_USE: after ARCADS_GENERATE / ARCADS_VIDEO_GENERATE returns an arcads_id, to get the durable asset link for the sheet / a text / an ad. ARGS: $1 = arcads_id, $2 = model label (optional, for the filename). EX: [ARCADS_TO_R2]9a14205f-3683-4231-abc4-bf6228017c0a|gpt-image[/ARCADS_TO_R2]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_TO_R2",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_TO_R2",
        "type": "fn",
        "what": [
          "WHAT: Poll a finished ArcAds render by arcads_id and re-store its bytes to R2, returning a stable https://miscsubjects.com/img/ link (permanent, not a presigned/expiring S3 url). Waits up to 120s for the render.",
          "WHEN_TO_USE: after ARCADS_GENERATE / ARCADS_VIDEO_GENERATE returns an arcads_id, to get the durable asset link for the sheet / a text / an ad.",
          "ARGS: $1 = arcads_id, $2 = model label (optional, for the filename).",
          "EX: [ARCADS_TO_R2]9a14205f-3683-4231-abc4-bf6228017c0a|gpt-image[/ARCADS_TO_R2]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "9a14205f-3683-4231-abc4-bf6228017c0a",
            "desc": "arcads_id, $2 = model label (optional, for the filename).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "gpt-image",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an arcads_id, to get the durable asset link for the sheet / a text / an ad.",
        "example": "[ARCADS_TO_R2]9a14205f-3683-4231-abc4-bf6228017c0a|gpt-image[/ARCADS_TO_R2]",
        "tag": "[ARCADS_TO_R2]<9a14205f-3683-4231-abc4-bf6228017c0a>|<gpt-image>[/ARCADS_TO_R2]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_TO_R2\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_TO_R2  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/ARCADS_TO_R2",
        "update": "PUT /api/directory/ARCADS_TO_R2",
        "patch": "PATCH /api/directory/ARCADS_TO_R2",
        "delete": "DELETE /api/directory/ARCADS_TO_R2",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_TO_R2\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_TO_R2\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_TO_R2\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_TO_R2"
      },
      "examples": "[\"133f2591-a527-4608-9b0b-9307fd49a225|gpt-image\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_TO_R2"
    },
    {
      "key": "ARCADS_UPLOAD",
      "type": "fn",
      "category": "arcads",
      "doc": "WHAT: Upload a file to ArcAds (presign + S3 PUT).  Returns {filePath,fileId}; pass filePath in referenceImages. fileType e.g. image/png, image/jpeg, video/mp4, audio/mp3 WHEN_TO_USE: you need to arcads upload ARGS: source_url|file_type EX: [ARCADS_UPLOAD]arg1|arg2[/ARCADS_UPLOAD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_UPLOAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_UPLOAD",
        "type": "fn",
        "what": [
          "WHAT: Upload a file to ArcAds (presign + S3 PUT).  Returns {filePath,fileId}; pass filePath in referenceImages. fileType e.g. image/png, image/jpeg, video/mp4, audio/mp3",
          "WHEN_TO_USE: you need to arcads upload",
          "ARGS: source_url|file_type",
          "EX: [ARCADS_UPLOAD]arg1|arg2[/ARCADS_UPLOAD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{filePath,fileId}; pass filePath in referenceImages. fileType e.g. image/png, image/jpeg, video/mp4, audio/mp3",
        "example": "[ARCADS_UPLOAD]arg1|arg2[/ARCADS_UPLOAD]",
        "tag": "[ARCADS_UPLOAD]<arg1>|<arg2>[/ARCADS_UPLOAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_UPLOAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_UPLOAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/ARCADS_UPLOAD",
        "update": "PUT /api/directory/ARCADS_UPLOAD",
        "patch": "PATCH /api/directory/ARCADS_UPLOAD",
        "delete": "DELETE /api/directory/ARCADS_UPLOAD",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_UPLOAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_UPLOAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_UPLOAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_UPLOAD"
      },
      "examples": "[\"https://miscsubjects.com/img/ref/7a1e22f6-b502-4603-9e73-b9432e206c8e.png|image/png\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_UPLOAD"
    },
    {
      "key": "ARCADS_VIDEO_GENERATE",
      "type": "fn",
      "category": "arcads",
      "doc": "WHAT: Generate a video via ArcAds, poll, store to R2, return a stable link WHEN_TO_USE: you need to arcads video generate ARGS: model|prompt|aspectRatio|referenceImages|duration|productId EX: [ARCADS_VIDEO_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_VIDEO_GENERATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARCADS_VIDEO_GENERATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARCADS_VIDEO_GENERATE",
        "type": "fn",
        "what": [
          "WHAT: Generate a video via ArcAds, poll, store to R2, return a stable link",
          "WHEN_TO_USE: you need to arcads video generate",
          "ARGS: model|prompt|aspectRatio|referenceImages|duration|productId",
          "EX: [ARCADS_VIDEO_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_VIDEO_GENERATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a stable link",
        "example": "[ARCADS_VIDEO_GENERATE]arg1|arg2|arg3|arg4|arg5|arg6[/ARCADS_VIDEO_GENERATE]",
        "tag": "[ARCADS_VIDEO_GENERATE]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/ARCADS_VIDEO_GENERATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARCADS_VIDEO_GENERATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARCADS_VIDEO_GENERATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\"]",
      "edit": {
        "read": "GET /api/directory/ARCADS_VIDEO_GENERATE",
        "update": "PUT /api/directory/ARCADS_VIDEO_GENERATE",
        "patch": "PATCH /api/directory/ARCADS_VIDEO_GENERATE",
        "delete": "DELETE /api/directory/ARCADS_VIDEO_GENERATE",
        "invoke": "POST /api/dispatch {\"key\":\"ARCADS_VIDEO_GENERATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARCADS_VIDEO_GENERATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARCADS_VIDEO_GENERATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARCADS_VIDEO_GENERATE"
      },
      "examples": "[\"<model>|<prompt>|<aspectRatio>|<referenceImages>|<duration>|<productId>\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARCADS_VIDEO_GENERATE"
    },
    {
      "key": "ARTICLES",
      "type": "http",
      "category": "articles",
      "doc": "WHAT: Fast natural-language article CRUD. One row per article in D1; writes are URL-invocable through OIP. WHEN_TO_USE: list/read/create/rename/delete articles, set a manual article slot, or ask the writer to compose/revise a slot. ARGS: op | args EX: [ARTICLES]list[/ARTICLES] EX: [ARTICLES]get|bpc-157[/ARTICLES] EX: [ARTICLES]set|bpc-157|mechanism|replacement section text[/ARTICLES] EX: [ARTICLES]compose|bpc-157|mechanism|make it more precise and evidence-graded[/ARTICLES] OPS:   list                                  -> compact index, never huge/full article payload   get|<slug>                            -> one full article   create|<slug>|<title>|<subject>       -> create article shell   update|<slug>|<title>                 -> rename article   delete|<slug>                         -> delete mutable article   set|<slug>|<slot_key>|<content>       -> manual slot override, no LLM   compose|<slug>|<slot_key>|<brief>     -> asks the writer, stores a new slot version, returns nested receipt",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLES",
        "type": "http",
        "what": [
          "WHAT: Fast natural-language article CRUD. One row per article in D1; writes are URL-invocable through OIP.",
          "WHEN_TO_USE: list/read/create/rename/delete articles, set a manual article slot, or ask the writer to compose/revise a slot.",
          "ARGS: op | args",
          "EX: [ARTICLES]list[/ARTICLES]",
          "EX: [ARTICLES]get|bpc-157[/ARTICLES]",
          "EX: [ARTICLES]set|bpc-157|mechanism|replacement section text[/ARTICLES]",
          "EX: [ARTICLES]compose|bpc-157|mechanism|make it more precise and evidence-graded[/ARTICLES]",
          "OPS:",
          "  list                                  -> compact index, never huge/full article payload",
          "  get|<slug>                            -> one full article",
          "  create|<slug>|<title>|<subject>       -> create article shell",
          "  update|<slug>|<title>                 -> rename article",
          "  delete|<slug>                         -> delete mutable article",
          "  set|<slug>|<slot_key>|<content>       -> manual slot override, no LLM",
          "  compose|<slug>|<slot_key>|<brief>     -> asks the writer, stores a new slot version, returns nested receipt"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: compose, create, delete, get, list, set, update",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "compose",
            "sig": "[ARTICLES]compose|<arg1>|<arg2>|<arg3>[/ARTICLES]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "create",
            "sig": "[ARTICLES]create|<arg1>|<arg2>|<arg3>[/ARTICLES]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "delete",
            "sig": "[ARTICLES]delete|<arg1>[/ARTICLES]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "get",
            "sig": "[ARTICLES]get|<arg1>[/ARTICLES]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "list",
            "sig": "[ARTICLES]list[/ARTICLES]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "set",
            "sig": "[ARTICLES]set|<arg1>|<arg2>|<arg3>[/ARTICLES]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "update",
            "sig": "[ARTICLES]update|<arg1>|<arg2>[/ARTICLES]",
            "extraArgs": 2,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "nested receipt",
        "example": "[ARTICLES]list[/ARTICLES]",
        "tag": "[ARTICLES]<op>|<args for that op>[/ARTICLES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ARTICLES",
        "update": "PUT /api/directory/ARTICLES",
        "patch": "PATCH /api/directory/ARTICLES",
        "delete": "DELETE /api/directory/ARTICLES",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLES"
      },
      "examples": "[{\"args\":\"list\",\"desc\":\"Fast compact article index\"},{\"args\":\"get|bpc-157\",\"desc\":\"Read one article\"},{\"args\":\"set|bpc-157|mechanism|replacement text\",\"desc\":\"Manual slot override\"},{\"args\":\"compose|bpc-157|mechanism|tighten the mechanism section\",\"desc\":\"Compose and store a new slot version\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLES"
    },
    {
      "key": "ARTICLE_ASK",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Answer from article ledger topology (claims, sources, Reddit/X anecdotes, user reports). Not medical advice. WHEN_TO_USE: user asks about a peptide, condition, stack, or a specific claim on miscsubjects. ARGS: slug|question   OR   slug1,slug2,slug3|question EX: [ARTICLE_ASK]bpc-157|What good and bad experiences are logged?[/ARTICLE_ASK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_ASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_ASK",
        "type": "fn",
        "what": [
          "WHAT: Answer from article ledger topology (claims, sources, Reddit/X anecdotes, user reports). Not medical advice.",
          "WHEN_TO_USE: user asks about a peptide, condition, stack, or a specific claim on miscsubjects.",
          "ARGS: slug|question   OR   slug1,slug2,slug3|question",
          "EX: [ARTICLE_ASK]bpc-157|What good and bad experiences are logged?[/ARTICLE_ASK]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "What good and bad experiences are logged?",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ARTICLE_ASK]bpc-157|What good and bad experiences are logged?[/ARTICLE_ASK]",
        "tag": "[ARTICLE_ASK]<bpc-157>|<What good and bad experiences are logged? …>[/ARTICLE_ASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_ASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_ASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1|$2+\"]",
      "edit": {
        "read": "GET /api/directory/ARTICLE_ASK",
        "update": "PUT /api/directory/ARTICLE_ASK",
        "patch": "PATCH /api/directory/ARTICLE_ASK",
        "delete": "DELETE /api/directory/ARTICLE_ASK",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_ASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_ASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_ASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_ASK"
      },
      "examples": "[\"bpc-157|What good and bad experiences are logged?\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_ASK"
    },
    {
      "key": "ARTICLE_CLAIM",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Post one tiered claim voxel into an article ledger with who_claims + posted_by provenance. Not medical advice. WHEN_TO_USE: user or model has one falsifiable assertion to append — who claims what, anecdote, study finding. ARGS: slug|tier|assertion   tier = human|preclinical|anecdotal|mechanistic|speculative EX: [ARTICLE_CLAIM]bpc-157|anecdotal|Reddit user reports gut healing after GLP-1[/ARTICLE_CLAIM]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_CLAIM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_CLAIM",
        "type": "fn",
        "what": [
          "WHAT: Post one tiered claim voxel into an article ledger with who_claims + posted_by provenance. Not medical advice.",
          "WHEN_TO_USE: user or model has one falsifiable assertion to append — who claims what, anecdote, study finding.",
          "ARGS: slug|tier|assertion   tier = human|preclinical|anecdotal|mechanistic|speculative",
          "EX: [ARTICLE_CLAIM]bpc-157|anecdotal|Reddit user reports gut healing after GLP-1[/ARTICLE_CLAIM]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "anecdotal",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ARTICLE_CLAIM]bpc-157|anecdotal|Reddit user reports gut healing after GLP-1[/ARTICLE_CLAIM]",
        "tag": "[ARTICLE_CLAIM]<bpc-157>|<anecdotal …>[/ARTICLE_CLAIM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_CLAIM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_CLAIM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1|$2+\"]",
      "edit": {
        "read": "GET /api/directory/ARTICLE_CLAIM",
        "update": "PUT /api/directory/ARTICLE_CLAIM",
        "patch": "PATCH /api/directory/ARTICLE_CLAIM",
        "delete": "DELETE /api/directory/ARTICLE_CLAIM",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_CLAIM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_CLAIM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_CLAIM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_CLAIM"
      },
      "examples": "[\"bpc-157|anecdotal|Reddit user reports gut healing after GLP-1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_CLAIM"
    },
    {
      "key": "ARTICLE_GET",
      "type": "flow",
      "category": "articles",
      "doc": "Return article + its slots as one joined result set. $1=slug. Returns an array of {slug,title,subject,updated_at,slot_key,content,model,version}. WHEN_TO_USE: \"show me article <slug>\" or any caller that needs the article body",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_GET",
        "type": "flow",
        "what": [
          "Return article + its slots as one joined result set. $1=slug. Returns an array of {slug,title,subject,updated_at,slot_key,content,model,version}.",
          "WHEN_TO_USE: \"show me article <slug>\" or any caller that needs the article body"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug. Returns an array of {slug,title,subject,updated_at,slot_key,content,model,version}.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "article + its slots as one joined result set. $1=slug. Returns an array of {slug,title,subject,updated_at,slot_key,content,model,version}.",
        "example": "[ARTICLE_GET]arg1[/ARTICLE_GET]",
        "tag": "[ARTICLE_GET]<arg1>[/ARTICLE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ARTICLE_GET",
        "update": "PUT /api/directory/ARTICLE_GET",
        "patch": "PATCH /api/directory/ARTICLE_GET",
        "delete": "DELETE /api/directory/ARTICLE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_GET"
      },
      "examples": "[\"agent-gold-execution-layer\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_GET"
    },
    {
      "key": "ARTICLE_INGEST",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Parse user-submitted evidence and write to article source ledger + optional claims. Hash-chained. WHEN_TO_USE: user texts evidence to add to a peptide article, or replies to a question node with new info. ARGS: slug|evidence text   OR   slug|q:NODE_ID|evidence text EX: [ARTICLE_INGEST]bpc-157|paste from another model here[/ARTICLE_INGEST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_INGEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_INGEST",
        "type": "fn",
        "what": [
          "WHAT: Parse user-submitted evidence and write to article source ledger + optional claims. Hash-chained.",
          "WHEN_TO_USE: user texts evidence to add to a peptide article, or replies to a question node with new info.",
          "ARGS: slug|evidence text   OR   slug|q:NODE_ID|evidence text",
          "EX: [ARTICLE_INGEST]bpc-157|paste from another model here[/ARTICLE_INGEST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "paste from another model here",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ARTICLE_INGEST]bpc-157|paste from another model here[/ARTICLE_INGEST]",
        "tag": "[ARTICLE_INGEST]<bpc-157>|<paste from another model here …>[/ARTICLE_INGEST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_INGEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_INGEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1|$2+\"]",
      "edit": {
        "read": "GET /api/directory/ARTICLE_INGEST",
        "update": "PUT /api/directory/ARTICLE_INGEST",
        "patch": "PATCH /api/directory/ARTICLE_INGEST",
        "delete": "DELETE /api/directory/ARTICLE_INGEST",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_INGEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_INGEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_INGEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_INGEST"
      },
      "examples": "[\"scratch-getjson|some evidence text\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_INGEST"
    },
    {
      "key": "ARTICLE_INSPECT",
      "type": "http",
      "category": null,
      "doc": "WHAT: Inspect any article as an isolated proof object — the tap-and-go proven-work loop in one invocation. Fetching this mints the caller a fresh delegated authority scoped to that single article (reading is the onboarding: no key, no account) and returns the proof package — the claim, the requirement manifest (hand-bound, or synthesized at read time from the page's own claims, sources, and revision history), the evidence payloads, the exact article_hash the proof covers — plus the caller's own inspection receipt (inv_…). Every inspection is itself on the record. WHEN_TO_USE: any model or person asked to verify a miscsubjects page instead of merely summarizing it; a regulator, auditor, or counterparty checking a claim from outside the system; the first step before signing any verdict — certification is refused without the inspection receipt this returns. NEXT: judge, then sign the ledger. POST https://miscsubjects.com/api/proven-work/$1/certify with {\"verdict\":\"…\",\"model\":\"<your name>\",\"grounds\":\"<what you checked, citing record ids>\",\"inspection_receipt\":\"<inv_… from this call>\"}. Verdicts: SUPPORTED_BY_RECORD | MISSING_EVIDENCE | CONTRADICTED_BY_RECORD | PROVED | DISPROVED | CONTESTED | QUESTION | OBJECTION | INCONCLUSIVE. READ is cheap; a STRONG verdict costs verification — record-citing grounds or verification_receipts of the tool calls you ran. ARGS: $1 = article slug. EX: [ARTICLE_INSPECT]proven-work[/ARTICLE_INSPECT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_INSPECT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_INSPECT",
        "type": "http",
        "what": [
          "WHAT: Inspect any article as an isolated proof object — the tap-and-go proven-work loop in one invocation. Fetching this mints the caller a fresh delegated authority scoped to that single article (reading is the onboarding: no key, no account) and returns the proof package — the claim, the requirement manifest (hand-bound, or synthesized at read time from the page's own claims, sources, and revision history), the evidence payloads, the exact article_hash the proof covers — plus the caller's own inspection receipt (inv_…). Every inspection is itself on the record.",
          "WHEN_TO_USE: any model or person asked to verify a miscsubjects page instead of merely summarizing it; a regulator, auditor, or counterparty checking a claim from outside the system; the first step before signing any verdict — certification is refused without the inspection receipt this returns.",
          "NEXT: judge, then sign the ledger. POST https://miscsubjects.com/api/proven-work/$1/certify with {\"verdict\":\"…\",\"model\":\"<your name>\",\"grounds\":\"<what you checked, citing record ids>\",\"inspection_receipt\":\"<inv_… from this call>\"}. Verdicts: SUPPORTED_BY_RECORD | MISSING_EVIDENCE | CONTRADICTED_BY_RECORD | PROVED | DISPROVED | CONTESTED | QUESTION | OBJECTION | INCONCLUSIVE. READ is cheap; a STRONG verdict costs verification — record-citing grounds or verification_receipts of the tool calls you ran.",
          "ARGS: $1 = article slug. EX: [ARTICLE_INSPECT]proven-work[/ARTICLE_INSPECT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "proven-work",
            "desc": "article slug. EX: [ARTICLE_INSPECT]proven-work[/ARTICLE_INSPECT]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the proof package — the claim, the requirement manifest (hand-bound, or synthesized at read time from the page's own claims, sources, and revision history), the evidence payloads, the exact article_hash the proof covers — plus the caller's own inspection receipt (inv_…). Every inspection is itself on the record.",
        "example": "[ARTICLE_INSPECT]proven-work[/ARTICLE_INSPECT]",
        "tag": "[ARTICLE_INSPECT]<proven-work>[/ARTICLE_INSPECT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_INSPECT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_INSPECT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ARTICLE_INSPECT",
        "update": "PUT /api/directory/ARTICLE_INSPECT",
        "patch": "PATCH /api/directory/ARTICLE_INSPECT",
        "delete": "DELETE /api/directory/ARTICLE_INSPECT",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_INSPECT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_INSPECT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_INSPECT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_INSPECT"
      },
      "examples": "[\"proven-work\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_INSPECT"
    },
    {
      "key": "ARTICLE_PUT",
      "type": "http",
      "category": null,
      "doc": "WHAT: create/replace an article. ARGS: $1 = JSON {slug,title,body,hero?,images?,style?}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARTICLE_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARTICLE_PUT",
        "type": "http",
        "what": [
          "WHAT: create/replace an article. ARGS: $1 = JSON {slug,title,body,hero?,images?,style?}"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "JSON {slug,title,body,hero?,images?,style?}",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[ARTICLE_PUT]arg1[/ARTICLE_PUT]",
        "tag": "[ARTICLE_PUT]<arg1>[/ARTICLE_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARTICLE_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARTICLE_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1",
      "edit": {
        "read": "GET /api/directory/ARTICLE_PUT",
        "update": "PUT /api/directory/ARTICLE_PUT",
        "patch": "PATCH /api/directory/ARTICLE_PUT",
        "delete": "DELETE /api/directory/ARTICLE_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"ARTICLE_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARTICLE_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARTICLE_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARTICLE_PUT"
      },
      "examples": "[\"# Probe\\n\\nEnd-to-end test of the write_token forward in runHttp. 2026-07-28T11:39:14.440Z\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARTICLE_PUT"
    },
    {
      "key": "ART_GET",
      "type": "http",
      "category": "articles",
      "doc": "WHAT: Read an article by slug WHEN_TO_USE: you need to art get ARGS: see content EX: [ART_GET][/ART_GET] Read an article by slug.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ART_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ART_GET",
        "type": "http",
        "what": [
          "WHAT: Read an article by slug",
          "WHEN_TO_USE: you need to art get",
          "ARGS: see content",
          "EX: [ART_GET][/ART_GET]",
          "Read an article by slug."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[ART_GET][/ART_GET]",
        "tag": "[ART_GET]<arg1>[/ART_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ART_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ART_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ART_GET",
        "update": "PUT /api/directory/ART_GET",
        "patch": "PATCH /api/directory/ART_GET",
        "delete": "DELETE /api/directory/ART_GET",
        "invoke": "POST /api/dispatch {\"key\":\"ART_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ART_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ART_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ART_GET"
      },
      "examples": "[\"bpc-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ART_GET"
    },
    {
      "key": "ART_PATCH",
      "type": "http",
      "category": "articles",
      "doc": "WHAT: Edit an article by slug WHEN_TO_USE: you need to art patch ARGS: slug|json_body EX: [ART_PATCH]arg2[/ART_PATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ART_PATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ART_PATCH",
        "type": "http",
        "what": [
          "WHAT: Edit an article by slug",
          "WHEN_TO_USE: you need to art patch",
          "ARGS: slug|json_body",
          "EX: [ART_PATCH]arg2[/ART_PATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[ART_PATCH]arg2[/ART_PATCH]",
        "tag": "[ART_PATCH]<arg2>|<arg2 …>[/ART_PATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ART_PATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ART_PATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$2+",
      "edit": {
        "read": "GET /api/directory/ART_PATCH",
        "update": "PUT /api/directory/ART_PATCH",
        "patch": "PATCH /api/directory/ART_PATCH",
        "delete": "DELETE /api/directory/ART_PATCH",
        "invoke": "POST /api/dispatch {\"key\":\"ART_PATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ART_PATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ART_PATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ART_PATCH"
      },
      "examples": "[\"arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ART_PATCH"
    },
    {
      "key": "ARXIV_GROW",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Regenerate the arXiv paper from live state. Reads paper/template.tex + paper/rings.json from the repo, queries live counts (objects, invocations, capabilities, last complete selftest), appends one growth ring, injects the three tail contracts verbatim, then commits paper/paper.tex + paper/rings.json + README.md + oip.json — each commit message carries this trace id. CI compiles the PDF on the paper.tex push. This fn is the only writer of the generated files. WHEN_TO_USE: the owner says \"grow the paper\", \"regenerate the arxiv\", \"add a ring\", \"refresh the paper\". Also fired daily by launchd com.the owner.oip.arxiv-grow on the Mac. ARGS: none. EX: [ARXIV_GROW][/ARXIV_GROW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARXIV_GROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARXIV_GROW",
        "type": "fn",
        "what": [
          "WHAT: Regenerate the arXiv paper from live state. Reads paper/template.tex + paper/rings.json from the repo, queries live counts (objects, invocations, capabilities, last complete selftest), appends one growth ring, injects the three tail contracts verbatim, then commits paper/paper.tex + paper/rings.json + README.md + oip.json — each commit message carries this trace id. CI compiles the PDF on the paper.tex push. This fn is the only writer of the generated files.",
          "WHEN_TO_USE: the owner says \"grow the paper\", \"regenerate the arxiv\", \"add a ring\", \"refresh the paper\". Also fired daily by launchd com.the owner.oip.arxiv-grow on the Mac.",
          "ARGS: none.",
          "EX: [ARXIV_GROW][/ARXIV_GROW]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ARXIV_GROW][/ARXIV_GROW]",
        "tag": "[ARXIV_GROW][/ARXIV_GROW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARXIV_GROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARXIV_GROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/ARXIV_GROW",
        "update": "PUT /api/directory/ARXIV_GROW",
        "patch": "PATCH /api/directory/ARXIV_GROW",
        "delete": "DELETE /api/directory/ARXIV_GROW",
        "invoke": "POST /api/dispatch {\"key\":\"ARXIV_GROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARXIV_GROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARXIV_GROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARXIV_GROW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARXIV_GROW"
    },
    {
      "key": "ARXIV_PAPER",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: The arXiv paper as a live object. The paper \"The Document Is the Receipt\" lives at github.com/the owner/oip (private) and is written only by ARXIV_GROW. Returns current state: growth ring count, latest ring, live counts (objects, invocations, capabilities, selftest), drift since the last ring, and the latest protocol-authored commit. WHEN_TO_USE: the owner asks \"paper state\", \"how big is the paper\", \"when did the paper last grow\", \"show the arxiv object\", \"has the paper drifted\". ARGS: none. EX: [ARXIV_PAPER][/ARXIV_PAPER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ARXIV_PAPER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ARXIV_PAPER",
        "type": "fn",
        "what": [
          "WHAT: The arXiv paper as a live object. The paper \"The Document Is the Receipt\" lives at github.com/the owner/oip (private) and is written only by ARXIV_GROW. Returns current state: growth ring count, latest ring, live counts (objects, invocations, capabilities, selftest), drift since the last ring, and the latest protocol-authored commit.",
          "WHEN_TO_USE: the owner asks \"paper state\", \"how big is the paper\", \"when did the paper last grow\", \"show the arxiv object\", \"has the paper drifted\".",
          "ARGS: none.",
          "EX: [ARXIV_PAPER][/ARXIV_PAPER]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "current state: growth ring count, latest ring, live counts (objects, invocations, capabilities, selftest), drift since the last ring, and the latest protocol-authored commit.",
        "example": "[ARXIV_PAPER][/ARXIV_PAPER]",
        "tag": "[ARXIV_PAPER][/ARXIV_PAPER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ARXIV_PAPER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ARXIV_PAPER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/ARXIV_PAPER",
        "update": "PUT /api/directory/ARXIV_PAPER",
        "patch": "PATCH /api/directory/ARXIV_PAPER",
        "delete": "DELETE /api/directory/ARXIV_PAPER",
        "invoke": "POST /api/dispatch {\"key\":\"ARXIV_PAPER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ARXIV_PAPER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ARXIV_PAPER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ARXIV_PAPER"
      },
      "examples": "[\"2301.00001\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ARXIV_PAPER"
    },
    {
      "key": "ASK_CLAUDE",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ASK_CLAUDE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ASK_CLAUDE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ASK_CLAUDE][/ASK_CLAUDE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ASK_CLAUDE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ASK_CLAUDE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ASK_CLAUDE",
        "update": "PUT /api/directory/ASK_CLAUDE",
        "patch": "PATCH /api/directory/ASK_CLAUDE",
        "delete": "DELETE /api/directory/ASK_CLAUDE",
        "invoke": "POST /api/dispatch {\"key\":\"ASK_CLAUDE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ASK_CLAUDE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ASK_CLAUDE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ASK_CLAUDE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=ASK_CLAUDE"
    },
    {
      "key": "ASK_GEMINI",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ASK_GEMINI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ASK_GEMINI",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ASK_GEMINI][/ASK_GEMINI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ASK_GEMINI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ASK_GEMINI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ASK_GEMINI",
        "update": "PUT /api/directory/ASK_GEMINI",
        "patch": "PATCH /api/directory/ASK_GEMINI",
        "delete": "DELETE /api/directory/ASK_GEMINI",
        "invoke": "POST /api/dispatch {\"key\":\"ASK_GEMINI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ASK_GEMINI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ASK_GEMINI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ASK_GEMINI"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ASK_GEMINI"
    },
    {
      "key": "ASK_GPT",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ASK_GPT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ASK_GPT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ASK_GPT][/ASK_GPT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ASK_GPT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ASK_GPT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ASK_GPT",
        "update": "PUT /api/directory/ASK_GPT",
        "patch": "PATCH /api/directory/ASK_GPT",
        "delete": "DELETE /api/directory/ASK_GPT",
        "invoke": "POST /api/dispatch {\"key\":\"ASK_GPT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ASK_GPT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ASK_GPT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ASK_GPT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ASK_GPT"
    },
    {
      "key": "ASK_KIMI",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ASK_KIMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ASK_KIMI",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ASK_KIMI][/ASK_KIMI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ASK_KIMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ASK_KIMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ASK_KIMI",
        "update": "PUT /api/directory/ASK_KIMI",
        "patch": "PATCH /api/directory/ASK_KIMI",
        "delete": "DELETE /api/directory/ASK_KIMI",
        "invoke": "POST /api/dispatch {\"key\":\"ASK_KIMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ASK_KIMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ASK_KIMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ASK_KIMI"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ASK_KIMI"
    },
    {
      "key": "AUDIO",
      "type": "fn",
      "category": "voice",
      "doc": "WHAT: Speak words aloud. INVOKE: [AUDIO]the words to speak[/AUDIO] WHEN_TO_USE: you need to audio ARGS: $1 | $2 EX: [AUDIO]arg1|arg2[/AUDIO]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUDIO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUDIO",
        "type": "fn",
        "what": [
          "WHAT: Speak words aloud. INVOKE: [AUDIO]the words to speak[/AUDIO]",
          "WHEN_TO_USE: you need to audio",
          "ARGS: $1 | $2",
          "EX: [AUDIO]arg1|arg2[/AUDIO]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "the words to speak",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUDIO]arg1|arg2[/AUDIO]",
        "tag": "[AUDIO]<the words to speak>|<arg2>[/AUDIO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUDIO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUDIO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/AUDIO",
        "update": "PUT /api/directory/AUDIO",
        "patch": "PATCH /api/directory/AUDIO",
        "delete": "DELETE /api/directory/AUDIO",
        "invoke": "POST /api/dispatch {\"key\":\"AUDIO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUDIO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUDIO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUDIO"
      },
      "examples": "[\"this is the new audio tag working|redacted\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUDIO"
    },
    {
      "key": "AUDIT_COLD_CASE_V1",
      "type": "agent",
      "category": "audit",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUDIT_COLD_CASE_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUDIT_COLD_CASE_V1",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[AUDIT_COLD_CASE_V1][/AUDIT_COLD_CASE_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUDIT_COLD_CASE_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUDIT_COLD_CASE_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/AUDIT_COLD_CASE_V1",
        "update": "PUT /api/directory/AUDIT_COLD_CASE_V1",
        "patch": "PATCH /api/directory/AUDIT_COLD_CASE_V1",
        "delete": "DELETE /api/directory/AUDIT_COLD_CASE_V1",
        "invoke": "POST /api/dispatch {\"key\":\"AUDIT_COLD_CASE_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUDIT_COLD_CASE_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUDIT_COLD_CASE_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUDIT_COLD_CASE_V1"
      },
      "examples": "[\"POST /api/invoke {\\\"key\\\":\\\"AUDIT_COLD_CASE_V1\\\",\\\"model\\\":\\\"glm\\\",\\\"input\\\":\\\"<case summary + sampled rows>\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUDIT_COLD_CASE_V1"
    },
    {
      "key": "AUDIT_PROBE_ROW",
      "type": "http",
      "category": null,
      "doc": "audit probe row - safe to delete",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUDIT_PROBE_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUDIT_PROBE_ROW",
        "type": "http",
        "what": [
          "audit probe row - safe to delete"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[AUDIT_PROBE_ROW][/AUDIT_PROBE_ROW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUDIT_PROBE_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUDIT_PROBE_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/AUDIT_PROBE_ROW",
        "update": "PUT /api/directory/AUDIT_PROBE_ROW",
        "patch": "PATCH /api/directory/AUDIT_PROBE_ROW",
        "delete": "DELETE /api/directory/AUDIT_PROBE_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"AUDIT_PROBE_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUDIT_PROBE_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUDIT_PROBE_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUDIT_PROBE_ROW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUDIT_PROBE_ROW"
    },
    {
      "key": "AUDIT_TEST_ROW",
      "type": "fn",
      "category": null,
      "doc": "test\\n[\"$1\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUDIT_TEST_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUDIT_TEST_ROW",
        "type": "fn",
        "what": [
          "test\\n[\"$1\"]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[AUDIT_TEST_ROW][/AUDIT_TEST_ROW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUDIT_TEST_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUDIT_TEST_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/AUDIT_TEST_ROW",
        "update": "PUT /api/directory/AUDIT_TEST_ROW",
        "patch": "PATCH /api/directory/AUDIT_TEST_ROW",
        "delete": "DELETE /api/directory/AUDIT_TEST_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"AUDIT_TEST_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUDIT_TEST_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUDIT_TEST_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUDIT_TEST_ROW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=AUDIT_TEST_ROW"
    },
    {
      "key": "AUTOMATE_ADD",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Automate a capability — make it fire itself every N minutes and ledger a receipt each run. Turns a one-off action into a standing background job. WHEN_TO_USE: \"automate this\", \"do this every morning/hour\", \"keep doing X\", \"run this on a schedule\". ARGS: name | every_minutes | KEY | body   (body is whatever that KEY takes; may contain pipes) EX: [AUTOMATE_ADD]morning ping|1440|SEND_BY_CHANNEL|blooio|redacted|automated good morning[/AUTOMATE_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_ADD",
        "type": "fn",
        "what": [
          "WHAT: Automate a capability — make it fire itself every N minutes and ledger a receipt each run. Turns a one-off action into a standing background job.",
          "WHEN_TO_USE: \"automate this\", \"do this every morning/hour\", \"keep doing X\", \"run this on a schedule\".",
          "ARGS: name | every_minutes | KEY | body   (body is whatever that KEY takes; may contain pipes)",
          "EX: [AUTOMATE_ADD]morning ping|1440|SEND_BY_CHANNEL|blooio|redacted|automated good morning[/AUTOMATE_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "morning ping",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "1440",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "SEND_BY_CHANNEL",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "blooio",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_ADD]morning ping|1440|SEND_BY_CHANNEL|blooio|redacted|automated good morning[/AUTOMATE_ADD]",
        "tag": "[AUTOMATE_ADD]<morning ping>|<1440>|<SEND_BY_CHANNEL>|<blooio …>[/AUTOMATE_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4+\"]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_ADD",
        "update": "PUT /api/directory/AUTOMATE_ADD",
        "patch": "PATCH /api/directory/AUTOMATE_ADD",
        "delete": "DELETE /api/directory/AUTOMATE_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_ADD"
      },
      "examples": "[\"front door opens -> porch light|event:FRONT_DOOR_OPENED|NOW|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_ADD"
    },
    {
      "key": "AUTOMATE_DELETE",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Delete an automation by id. WHEN_TO_USE: \"remove that automation\", \"delete the scheduled job\". ARGS: id EX: [AUTOMATE_DELETE]3[/AUTOMATE_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_DELETE",
        "type": "fn",
        "what": [
          "WHAT: Delete an automation by id.",
          "WHEN_TO_USE: \"remove that automation\", \"delete the scheduled job\".",
          "ARGS: id",
          "EX: [AUTOMATE_DELETE]3[/AUTOMATE_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_DELETE]3[/AUTOMATE_DELETE]",
        "tag": "[AUTOMATE_DELETE]<3>[/AUTOMATE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_DELETE",
        "update": "PUT /api/directory/AUTOMATE_DELETE",
        "patch": "PATCH /api/directory/AUTOMATE_DELETE",
        "delete": "DELETE /api/directory/AUTOMATE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_DELETE"
      },
      "examples": "[\"17\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_DELETE"
    },
    {
      "key": "AUTOMATE_FIRE",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Fire every enabled automation registered for an event (trigger=event:NAME). Any inbound hook (a customer text, an error, a webhook) calls this with the event name + payload; matching automations run and ledger a receipt. WHEN_TO_USE: an event source (webhook, hook, cron) signals something happened — \"when a customer text arrives\", \"on error\", \"on new order\". ARGS: event_name | payload (payload is passed to each automation whose body is empty) EX: [AUTOMATE_FIRE]customer_text|hi, is this still available?[/AUTOMATE_FIRE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_FIRE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_FIRE",
        "type": "fn",
        "what": [
          "WHAT: Fire every enabled automation registered for an event (trigger=event:NAME). Any inbound hook (a customer text, an error, a webhook) calls this with the event name + payload; matching automations run and ledger a receipt.",
          "WHEN_TO_USE: an event source (webhook, hook, cron) signals something happened — \"when a customer text arrives\", \"on error\", \"on new order\".",
          "ARGS: event_name | payload (payload is passed to each automation whose body is empty)",
          "EX: [AUTOMATE_FIRE]customer_text|hi, is this still available?[/AUTOMATE_FIRE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "customer_text",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "hi, is this still available?",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_FIRE]customer_text|hi, is this still available?[/AUTOMATE_FIRE]",
        "tag": "[AUTOMATE_FIRE]<customer_text>|<hi, is this still available? …>[/AUTOMATE_FIRE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_FIRE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_FIRE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_FIRE",
        "update": "PUT /api/directory/AUTOMATE_FIRE",
        "patch": "PATCH /api/directory/AUTOMATE_FIRE",
        "delete": "DELETE /api/directory/AUTOMATE_FIRE",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_FIRE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_FIRE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_FIRE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_FIRE"
      },
      "examples": "[\"FRONT_DOOR_OPENED|{\\\"door\\\":\\\"front\\\",\\\"state\\\":\\\"open\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_FIRE"
    },
    {
      "key": "AUTOMATE_FORCE",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: The owner's kill switch on an automation — force_off outranks enabled everywhere (scheduled runs, event fires) and AUTOMATE_TOGGLE cannot re-enable a forced-off automation. Modeled on the cloaker and self-testing toggles. WHEN_TO_USE: the owner orders an automation kept off (\"turn off the governor and keep it off\"); or the owner explicitly commits it back on. This verb acts on the owner's authority only — never fire it from an agent's own judgment. ARGS: id | off  (force off, also disables)   OR   id | commit-on  (lift the lock; then AUTOMATE_TOGGLE|id|1 deliberately) EX: [AUTOMATE_FORCE]7|off[/AUTOMATE_FORCE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_FORCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_FORCE",
        "type": "fn",
        "what": [
          "WHAT: The owner's kill switch on an automation — force_off outranks enabled everywhere (scheduled runs, event fires) and AUTOMATE_TOGGLE cannot re-enable a forced-off automation. Modeled on the cloaker and self-testing toggles.",
          "WHEN_TO_USE: the owner orders an automation kept off (\"turn off the governor and keep it off\"); or the owner explicitly commits it back on. This verb acts on the owner's authority only — never fire it from an agent's own judgment.",
          "ARGS: id | off  (force off, also disables)   OR   id | commit-on  (lift the lock; then AUTOMATE_TOGGLE|id|1 deliberately)",
          "EX: [AUTOMATE_FORCE]7|off[/AUTOMATE_FORCE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "off",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_FORCE]7|off[/AUTOMATE_FORCE]",
        "tag": "[AUTOMATE_FORCE]<7>|<off>[/AUTOMATE_FORCE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_FORCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_FORCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_FORCE",
        "update": "PUT /api/directory/AUTOMATE_FORCE",
        "patch": "PATCH /api/directory/AUTOMATE_FORCE",
        "delete": "DELETE /api/directory/AUTOMATE_FORCE",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_FORCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_FORCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_FORCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_FORCE"
      },
      "examples": "[\"7|off\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_FORCE"
    },
    {
      "key": "AUTOMATE_LIST",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: List every automation — id, name, schedule, target key, enabled, last run, run count. WHEN_TO_USE: \"what's automated\", \"list my automations\", \"what runs on a schedule\". ARGS: none EX: [AUTOMATE_LIST][/AUTOMATE_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_LIST",
        "type": "fn",
        "what": [
          "WHAT: List every automation — id, name, schedule, target key, enabled, last run, run count.",
          "WHEN_TO_USE: \"what's automated\", \"list my automations\", \"what runs on a schedule\".",
          "ARGS: none",
          "EX: [AUTOMATE_LIST][/AUTOMATE_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_LIST][/AUTOMATE_LIST]",
        "tag": "[AUTOMATE_LIST][/AUTOMATE_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_LIST",
        "update": "PUT /api/directory/AUTOMATE_LIST",
        "patch": "PATCH /api/directory/AUTOMATE_LIST",
        "delete": "DELETE /api/directory/AUTOMATE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_LIST"
      },
      "examples": "[\"after_article_created_hook\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_LIST"
    },
    {
      "key": "AUTOMATE_RUN_DUE",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Fire every enabled automation whose interval has elapsed; ledger a receipt for each. Called by the cron each tick; safe to call manually. WHEN_TO_USE: \"run due automations now\", or the cron calls it automatically. ARGS: none EX: [AUTOMATE_RUN_DUE][/AUTOMATE_RUN_DUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_RUN_DUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_RUN_DUE",
        "type": "fn",
        "what": [
          "WHAT: Fire every enabled automation whose interval has elapsed; ledger a receipt for each. Called by the cron each tick; safe to call manually.",
          "WHEN_TO_USE: \"run due automations now\", or the cron calls it automatically.",
          "ARGS: none",
          "EX: [AUTOMATE_RUN_DUE][/AUTOMATE_RUN_DUE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_RUN_DUE][/AUTOMATE_RUN_DUE]",
        "tag": "[AUTOMATE_RUN_DUE][/AUTOMATE_RUN_DUE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_RUN_DUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_RUN_DUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_RUN_DUE",
        "update": "PUT /api/directory/AUTOMATE_RUN_DUE",
        "patch": "PATCH /api/directory/AUTOMATE_RUN_DUE",
        "delete": "DELETE /api/directory/AUTOMATE_RUN_DUE",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_RUN_DUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_RUN_DUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_RUN_DUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_RUN_DUE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_RUN_DUE"
    },
    {
      "key": "AUTOMATE_TOGGLE",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Turn an automation on or off by id (paused, not deleted). WHEN_TO_USE: \"pause that automation\", \"turn it back on\", \"stop the morning ping\". ARGS: id | 1|0 EX: [AUTOMATE_TOGGLE]3|0[/AUTOMATE_TOGGLE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "AUTOMATE_TOGGLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "AUTOMATE_TOGGLE",
        "type": "fn",
        "what": [
          "WHAT: Turn an automation on or off by id (paused, not deleted).",
          "WHEN_TO_USE: \"pause that automation\", \"turn it back on\", \"stop the morning ping\".",
          "ARGS: id | 1|0",
          "EX: [AUTOMATE_TOGGLE]3|0[/AUTOMATE_TOGGLE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "0",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[AUTOMATE_TOGGLE]3|0[/AUTOMATE_TOGGLE]",
        "tag": "[AUTOMATE_TOGGLE]<3>|<0>[/AUTOMATE_TOGGLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"AUTOMATE_TOGGLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/AUTOMATE_TOGGLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/AUTOMATE_TOGGLE",
        "update": "PUT /api/directory/AUTOMATE_TOGGLE",
        "patch": "PATCH /api/directory/AUTOMATE_TOGGLE",
        "delete": "DELETE /api/directory/AUTOMATE_TOGGLE",
        "invoke": "POST /api/dispatch {\"key\":\"AUTOMATE_TOGGLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"AUTOMATE_TOGGLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"AUTOMATE_TOGGLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/AUTOMATE_TOGGLE"
      },
      "examples": "[\"22|1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=AUTOMATE_TOGGLE"
    },
    {
      "key": "BASH",
      "type": "http",
      "category": null,
      "doc": "WHAT: Run a shell command on the owner Mac (alias of LOCAL_EXEC; agents write [BASH]cmd[/BASH]). WHEN_TO_USE: any file operation, git command, system check, or script execution. ARGS: $1+ = full shell command (pipes/OR/chains preserved). EX: [BASH]ls -la ~/Desktop[/BASH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BASH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BASH",
        "type": "http",
        "what": [
          "WHAT: Run a shell command on the owner Mac (alias of LOCAL_EXEC; agents write [BASH]cmd[/BASH]).",
          "WHEN_TO_USE: any file operation, git command, system check, or script execution.",
          "ARGS: $1+ = full shell command (pipes/OR/chains preserved).",
          "EX: [BASH]ls -la ~/Desktop[/BASH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "cmd",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BASH]ls -la ~/Desktop[/BASH]",
        "tag": "[BASH]<cmd …>[/BASH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BASH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BASH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"$1+\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/BASH",
        "update": "PUT /api/directory/BASH",
        "patch": "PATCH /api/directory/BASH",
        "delete": "DELETE /api/directory/BASH",
        "invoke": "POST /api/dispatch {\"key\":\"BASH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BASH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BASH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BASH"
      },
      "examples": "[\"uname -a && date\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BASH"
    },
    {
      "key": "BC",
      "type": "http",
      "category": "bigcommerce",
      "doc": "WHAT: BigCommerce unified entrypoint WHEN_TO_USE: products, orders, customers ARGS: $1=op, $2..$N=args EX: [BC]products[/BC] TESTS: INVERSE: ERR:target_map:unknown_op on bad op.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BC",
        "type": "http",
        "what": [
          "WHAT: BigCommerce unified entrypoint",
          "WHEN_TO_USE: products, orders, customers",
          "ARGS: $1=op, $2..$N=args",
          "EX: [BC]products[/BC]",
          "TESTS:",
          "INVERSE: ERR:target_map:unknown_op on bad op."
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: customer, customer_by_email, customers_count, order, order_products, order_refunds, order_shipping, orders, orders_by_email, orders_count, orders_range, orders_status, product, products, refunds_all, store",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "customer",
            "sig": "[BC]customer|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customer_by_email",
            "sig": "[BC]customer_by_email|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customers_count",
            "sig": "[BC]customers_count|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "order",
            "sig": "[BC]order|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "order_products",
            "sig": "[BC]order_products|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "order_refunds",
            "sig": "[BC]order_refunds|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "order_shipping",
            "sig": "[BC]order_shipping|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "orders",
            "sig": "[BC]orders|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "orders_by_email",
            "sig": "[BC]orders_by_email|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "orders_count",
            "sig": "[BC]orders_count|<arg1>|<arg2>[/BC]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "orders_range",
            "sig": "[BC]orders_range|<arg1>|<arg2>|<arg3>[/BC]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "orders_status",
            "sig": "[BC]orders_status|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "product",
            "sig": "[BC]product|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "products",
            "sig": "[BC]products|<arg1>[/BC]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "refunds_all",
            "sig": "[BC]refunds_all|<arg1>|<arg2>[/BC]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "store",
            "sig": "[BC]store[/BC]",
            "extraArgs": 0,
            "variadic": false
          }
        ],
        "envVars": [
          "BIGCOMMERCE_STORE_HASH"
        ],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[BC]products[/BC]",
        "tag": "[BC]<op>|<args for that op>[/BC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BC",
        "update": "PUT /api/directory/BC",
        "patch": "PATCH /api/directory/BC",
        "delete": "DELETE /api/directory/BC",
        "invoke": "POST /api/dispatch {\"key\":\"BC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BC"
      },
      "examples": "[\"store\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BC"
    },
    {
      "key": "BLOCK_ARA",
      "type": "agent",
      "category": "block_imported",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_ARA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_ARA",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[BLOCK_ARA][/BLOCK_ARA]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_ARA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_ARA  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOCK_ARA",
        "update": "PUT /api/directory/BLOCK_ARA",
        "patch": "PATCH /api/directory/BLOCK_ARA",
        "delete": "DELETE /api/directory/BLOCK_ARA",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_ARA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_ARA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_ARA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_ARA"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_ARA"
    },
    {
      "key": "BLOCK_COMMENT",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Add a comment to one exact recursive-content DIV version. ARGS: JSON {block_id,body,stance?,actor?}. TESTS: Require ok:true, comment_id, block version/hash proof, and an inv_ OIP receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_COMMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_COMMENT",
        "type": "http",
        "what": [
          "WHAT: Add a comment to one exact recursive-content DIV version.",
          "ARGS: JSON {block_id,body,stance?,actor?}.",
          "TESTS: Require ok:true, comment_id, block version/hash proof, and an inv_ OIP receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_COMMENT]arg1[/BLOCK_COMMENT]",
        "tag": "[BLOCK_COMMENT]<arg1 …>[/BLOCK_COMMENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_COMMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_COMMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_COMMENT",
        "update": "PUT /api/directory/BLOCK_COMMENT",
        "patch": "PATCH /api/directory/BLOCK_COMMENT",
        "delete": "DELETE /api/directory/BLOCK_COMMENT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_COMMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_COMMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_COMMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_COMMENT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_COMMENT"
    },
    {
      "key": "BLOCK_COPY",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Make an article-only copy so later shared edits stop propagating to this article. ARGS: JSON {slug,block_id,expected_position,actor?}. TESTS: Only the selected article receives a new block identity and the response has an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_COPY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_COPY",
        "type": "http",
        "what": [
          "WHAT: Make an article-only copy so later shared edits stop propagating to this article.",
          "ARGS: JSON {slug,block_id,expected_position,actor?}.",
          "TESTS: Only the selected article receives a new block identity and the response has an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_COPY]arg1[/BLOCK_COPY]",
        "tag": "[BLOCK_COPY]<arg1 …>[/BLOCK_COPY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_COPY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_COPY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_COPY",
        "update": "PUT /api/directory/BLOCK_COPY",
        "patch": "PATCH /api/directory/BLOCK_COPY",
        "delete": "DELETE /api/directory/BLOCK_COPY",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_COPY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_COPY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_COPY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_COPY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_COPY"
    },
    {
      "key": "BLOCK_DELETE",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Remove one DIV from one article while preserving its words, versions, comments, and events in history. ARGS: JSON {slug,block_id,expected_position,actor?}. TESTS: Only the selected reference disappears; history remains readable and the response has an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_DELETE",
        "type": "http",
        "what": [
          "WHAT: Remove one DIV from one article while preserving its words, versions, comments, and events in history.",
          "ARGS: JSON {slug,block_id,expected_position,actor?}.",
          "TESTS: Only the selected reference disappears; history remains readable and the response has an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_DELETE]arg1[/BLOCK_DELETE]",
        "tag": "[BLOCK_DELETE]<arg1 …>[/BLOCK_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_DELETE",
        "update": "PUT /api/directory/BLOCK_DELETE",
        "patch": "PATCH /api/directory/BLOCK_DELETE",
        "delete": "DELETE /api/directory/BLOCK_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_DELETE"
    },
    {
      "key": "BLOCK_DIVIDE",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Turn exact visible words inside one DIV into their own stable DIV boundary. ARGS: JSON {slug,block_id,expected_hash,expected_position,selected_text,occurrence?,actor?}. TESTS: Ambiguous text refuses; success preserves every byte and returns an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_DIVIDE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_DIVIDE",
        "type": "http",
        "what": [
          "WHAT: Turn exact visible words inside one DIV into their own stable DIV boundary.",
          "ARGS: JSON {slug,block_id,expected_hash,expected_position,selected_text,occurrence?,actor?}.",
          "TESTS: Ambiguous text refuses; success preserves every byte and returns an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an inv_ receipt.",
        "example": "[BLOCK_DIVIDE]arg1[/BLOCK_DIVIDE]",
        "tag": "[BLOCK_DIVIDE]<arg1 …>[/BLOCK_DIVIDE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_DIVIDE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_DIVIDE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_DIVIDE",
        "update": "PUT /api/directory/BLOCK_DIVIDE",
        "patch": "PATCH /api/directory/BLOCK_DIVIDE",
        "delete": "DELETE /api/directory/BLOCK_DIVIDE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_DIVIDE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_DIVIDE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_DIVIDE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_DIVIDE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_DIVIDE"
    },
    {
      "key": "BLOCK_EDIT",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Replace one stable DIV using compare-and-swap; every article reference receives the new version. ARGS: JSON {block_id,expected_hash,content,actor?}. TESTS: Current hash advances the version and returns affected articles plus an inv_ receipt; stale hash writes nothing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_EDIT",
        "type": "http",
        "what": [
          "WHAT: Replace one stable DIV using compare-and-swap; every article reference receives the new version.",
          "ARGS: JSON {block_id,expected_hash,content,actor?}.",
          "TESTS: Current hash advances the version and returns affected articles plus an inv_ receipt; stale hash writes nothing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "affected articles plus an inv_ receipt; stale hash writes nothing.",
        "example": "[BLOCK_EDIT]arg1[/BLOCK_EDIT]",
        "tag": "[BLOCK_EDIT]<arg1 …>[/BLOCK_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_EDIT",
        "update": "PUT /api/directory/BLOCK_EDIT",
        "patch": "PATCH /api/directory/BLOCK_EDIT",
        "delete": "DELETE /api/directory/BLOCK_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_EDIT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_EDIT"
    },
    {
      "key": "BLOCK_EMOJI",
      "type": "fn",
      "category": "block_emoji",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_EMOJI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_EMOJI",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BLOCK_EMOJI][/BLOCK_EMOJI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_EMOJI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_EMOJI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "BLOCK_EMOJI — tapback / emoji reaction language",
      "edit": {
        "read": "GET /api/directory/BLOCK_EMOJI",
        "update": "PUT /api/directory/BLOCK_EMOJI",
        "patch": "PATCH /api/directory/BLOCK_EMOJI",
        "delete": "DELETE /api/directory/BLOCK_EMOJI",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_EMOJI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_EMOJI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_EMOJI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_EMOJI"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_EMOJI"
    },
    {
      "key": "BLOCK_IMESSAGE",
      "type": "fn",
      "category": "block_imessage",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_IMESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_IMESSAGE",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BLOCK_IMESSAGE][/BLOCK_IMESSAGE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_IMESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_IMESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "BLOCK_IMESSAGE — iMessage layout (optional, not default)",
      "edit": {
        "read": "GET /api/directory/BLOCK_IMESSAGE",
        "update": "PUT /api/directory/BLOCK_IMESSAGE",
        "patch": "PATCH /api/directory/BLOCK_IMESSAGE",
        "delete": "DELETE /api/directory/BLOCK_IMESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_IMESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_IMESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_IMESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_IMESSAGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_IMESSAGE"
    },
    {
      "key": "BLOCK_MERGE",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Merge two or more adjacent DIVs into one stable DIV without losing bytes or separators. ARGS: JSON {slug,selections:[{block_id,expected_position,expected_hash}],actor?}. TESTS: Non-contiguous or stale selections refuse; success is byte-identical and returns an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_MERGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_MERGE",
        "type": "http",
        "what": [
          "WHAT: Merge two or more adjacent DIVs into one stable DIV without losing bytes or separators.",
          "ARGS: JSON {slug,selections:[{block_id,expected_position,expected_hash}],actor?}.",
          "TESTS: Non-contiguous or stale selections refuse; success is byte-identical and returns an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an inv_ receipt.",
        "example": "[BLOCK_MERGE]arg1[/BLOCK_MERGE]",
        "tag": "[BLOCK_MERGE]<arg1 …>[/BLOCK_MERGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_MERGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_MERGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_MERGE",
        "update": "PUT /api/directory/BLOCK_MERGE",
        "patch": "PATCH /api/directory/BLOCK_MERGE",
        "delete": "DELETE /api/directory/BLOCK_MERGE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_MERGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_MERGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_MERGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_MERGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_MERGE"
    },
    {
      "key": "BLOCK_MOVE",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Move one DIV inside one article without changing the DIV identity. ARGS: JSON {slug,block_id,expected_position,direction:\"up|down\",to_position?,actor?}. TESTS: Current position moves once and returns an inv_ receipt; stale position writes nothing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_MOVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_MOVE",
        "type": "http",
        "what": [
          "WHAT: Move one DIV inside one article without changing the DIV identity.",
          "ARGS: JSON {slug,block_id,expected_position,direction:\"up|down\",to_position?,actor?}.",
          "TESTS: Current position moves once and returns an inv_ receipt; stale position writes nothing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an inv_ receipt; stale position writes nothing.",
        "example": "[BLOCK_MOVE]arg1[/BLOCK_MOVE]",
        "tag": "[BLOCK_MOVE]<arg1 …>[/BLOCK_MOVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_MOVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_MOVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_MOVE",
        "update": "PUT /api/directory/BLOCK_MOVE",
        "patch": "PATCH /api/directory/BLOCK_MOVE",
        "delete": "DELETE /api/directory/BLOCK_MOVE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_MOVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_MOVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_MOVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_MOVE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_MOVE"
    },
    {
      "key": "BLOCK_MOVE_GROUP",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Move two or more adjacent selected DIVs as one ordered group. ARGS: JSON {slug,selections:[{block_id,expected_position,expected_hash}],direction:\"up|down\",to_position?,actor?}. TESTS: Non-contiguous or stale selections refuse; success preserves group order and returns an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_MOVE_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_MOVE_GROUP",
        "type": "http",
        "what": [
          "WHAT: Move two or more adjacent selected DIVs as one ordered group.",
          "ARGS: JSON {slug,selections:[{block_id,expected_position,expected_hash}],direction:\"up|down\",to_position?,actor?}.",
          "TESTS: Non-contiguous or stale selections refuse; success preserves group order and returns an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an inv_ receipt.",
        "example": "[BLOCK_MOVE_GROUP]arg1[/BLOCK_MOVE_GROUP]",
        "tag": "[BLOCK_MOVE_GROUP]<arg1 …>[/BLOCK_MOVE_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_MOVE_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_MOVE_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_MOVE_GROUP",
        "update": "PUT /api/directory/BLOCK_MOVE_GROUP",
        "patch": "PATCH /api/directory/BLOCK_MOVE_GROUP",
        "delete": "DELETE /api/directory/BLOCK_MOVE_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_MOVE_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_MOVE_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_MOVE_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_MOVE_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_MOVE_GROUP"
    },
    {
      "key": "BLOCK_REASONING_A",
      "type": "fn",
      "category": "block_reasoning_a",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_REASONING_A",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_REASONING_A",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BLOCK_REASONING_A][/BLOCK_REASONING_A]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_REASONING_A\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_REASONING_A  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "BLOCK_REASONING_A — reasoning format (type A)",
      "edit": {
        "read": "GET /api/directory/BLOCK_REASONING_A",
        "update": "PUT /api/directory/BLOCK_REASONING_A",
        "patch": "PATCH /api/directory/BLOCK_REASONING_A",
        "delete": "DELETE /api/directory/BLOCK_REASONING_A",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_REASONING_A\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_REASONING_A\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_REASONING_A\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_REASONING_A"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_REASONING_A"
    },
    {
      "key": "BLOCK_REUSE",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Use an existing stable DIV in another article by reference, never by copy. ARGS: JSON {slug,block_id,position?,separator_after?,actor?}. TESTS: The same block id resolves from both articles and the response has an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_REUSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_REUSE",
        "type": "http",
        "what": [
          "WHAT: Use an existing stable DIV in another article by reference, never by copy.",
          "ARGS: JSON {slug,block_id,position?,separator_after?,actor?}.",
          "TESTS: The same block id resolves from both articles and the response has an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_REUSE]arg1[/BLOCK_REUSE]",
        "tag": "[BLOCK_REUSE]<arg1 …>[/BLOCK_REUSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_REUSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_REUSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_REUSE",
        "update": "PUT /api/directory/BLOCK_REUSE",
        "patch": "PATCH /api/directory/BLOCK_REUSE",
        "delete": "DELETE /api/directory/BLOCK_REUSE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_REUSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_REUSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_REUSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_REUSE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_REUSE"
    },
    {
      "key": "BLOCK_ROUTING",
      "type": "fn",
      "category": "block_routing",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_ROUTING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_ROUTING",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BLOCK_ROUTING][/BLOCK_ROUTING]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_ROUTING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_ROUTING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "BLOCK_ROUTING — identity routing (ROUTER)",
      "edit": {
        "read": "GET /api/directory/BLOCK_ROUTING",
        "update": "PUT /api/directory/BLOCK_ROUTING",
        "patch": "PATCH /api/directory/BLOCK_ROUTING",
        "delete": "DELETE /api/directory/BLOCK_ROUTING",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_ROUTING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_ROUTING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_ROUTING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_ROUTING"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_ROUTING"
    },
    {
      "key": "BLOCK_SPLIT",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Split one DIV at a character boundary without losing a byte. ARGS: JSON {slug,block_id,expected_hash,split_at,actor?}. TESTS: Recomposition equals the source bytes, both identities resolve, and the response has an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_SPLIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_SPLIT",
        "type": "http",
        "what": [
          "WHAT: Split one DIV at a character boundary without losing a byte.",
          "ARGS: JSON {slug,block_id,expected_hash,split_at,actor?}.",
          "TESTS: Recomposition equals the source bytes, both identities resolve, and the response has an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_SPLIT]arg1[/BLOCK_SPLIT]",
        "tag": "[BLOCK_SPLIT]<arg1 …>[/BLOCK_SPLIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_SPLIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_SPLIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_SPLIT",
        "update": "PUT /api/directory/BLOCK_SPLIT",
        "patch": "PATCH /api/directory/BLOCK_SPLIT",
        "delete": "DELETE /api/directory/BLOCK_SPLIT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_SPLIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_SPLIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_SPLIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_SPLIT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_SPLIT"
    },
    {
      "key": "BLOCK_SUGGEST",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Submit a version-bound DIV boundary, move, edit, delete, reuse, split, or merge for private owner review. ARGS: JSON {article_slug,block_id,expected_hash,kind,payload,note?,actor?}. TESTS: Require queued_for_owner_review and an inv_ receipt; public callers cannot enumerate proposal bodies.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_SUGGEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_SUGGEST",
        "type": "http",
        "what": [
          "WHAT: Submit a version-bound DIV boundary, move, edit, delete, reuse, split, or merge for private owner review.",
          "ARGS: JSON {article_slug,block_id,expected_hash,kind,payload,note?,actor?}.",
          "TESTS: Require queued_for_owner_review and an inv_ receipt; public callers cannot enumerate proposal bodies."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_SUGGEST]arg1[/BLOCK_SUGGEST]",
        "tag": "[BLOCK_SUGGEST]<arg1 …>[/BLOCK_SUGGEST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_SUGGEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_SUGGEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_SUGGEST",
        "update": "PUT /api/directory/BLOCK_SUGGEST",
        "patch": "PATCH /api/directory/BLOCK_SUGGEST",
        "delete": "DELETE /api/directory/BLOCK_SUGGEST",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_SUGGEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_SUGGEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_SUGGEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_SUGGEST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_SUGGEST"
    },
    {
      "key": "BLOCK_VERDICT",
      "type": "http",
      "category": "content",
      "doc": "WHAT: Record Good, Bad, edit, or delete judgment against one exact DIV version. ARGS: JSON {block_id,verdict:\"positive|negative|edit|delete\",note?,actor?}. TESTS: Require ok:true, verdict_id, version/hash proof, and an inv_ receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_VERDICT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_VERDICT",
        "type": "http",
        "what": [
          "WHAT: Record Good, Bad, edit, or delete judgment against one exact DIV version.",
          "ARGS: JSON {block_id,verdict:\"positive|negative|edit|delete\",note?,actor?}.",
          "TESTS: Require ok:true, verdict_id, version/hash proof, and an inv_ receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BLOCK_VERDICT]arg1[/BLOCK_VERDICT]",
        "tag": "[BLOCK_VERDICT]<arg1 …>[/BLOCK_VERDICT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_VERDICT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_VERDICT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/BLOCK_VERDICT",
        "update": "PUT /api/directory/BLOCK_VERDICT",
        "patch": "PATCH /api/directory/BLOCK_VERDICT",
        "delete": "DELETE /api/directory/BLOCK_VERDICT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_VERDICT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_VERDICT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_VERDICT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_VERDICT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_VERDICT"
    },
    {
      "key": "BLOCK_VOICE",
      "type": "fn",
      "category": "block_voice",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOCK_VOICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOCK_VOICE",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BLOCK_VOICE][/BLOCK_VOICE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOCK_VOICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOCK_VOICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "BLOCK_VOICE — shared engineer voice (all agents)",
      "edit": {
        "read": "GET /api/directory/BLOCK_VOICE",
        "update": "PUT /api/directory/BLOCK_VOICE",
        "patch": "PATCH /api/directory/BLOCK_VOICE",
        "delete": "DELETE /api/directory/BLOCK_VOICE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOCK_VOICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOCK_VOICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOCK_VOICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOCK_VOICE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOCK_VOICE"
    },
    {
      "key": "BLOOIO",
      "type": "http",
      "category": "blooio",
      "doc": "WHAT: Blooio (iMessage/SMS) unified entrypoint WHEN_TO_USE: any iMessage/SMS send, receive, chats, contacts, groups, polls, reactions, lookups, webhooks ARGS: $1=op, $2..$N=positional args per op EX: [BLOOIO]send|redacted|hello[/BLOOIO] TESTS: POSITIVE: {\"key\":\"BLOOIO\",\"body\":\"chats_list|5|recent\"} → HTTP 200, JSON array. INVERSE: {\"key\":\"BLOOIO\",\"body\":\"nope\"} → starts with ERR:target_map:unknown_op",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO",
        "type": "http",
        "what": [
          "WHAT: Blooio (iMessage/SMS) unified entrypoint",
          "WHEN_TO_USE: any iMessage/SMS send, receive, chats, contacts, groups, polls, reactions, lookups, webhooks",
          "ARGS: $1=op, $2..$N=positional args per op",
          "EX: [BLOOIO]send|redacted|hello[/BLOOIO]",
          "TESTS:",
          "POSITIVE: {\"key\":\"BLOOIO\",\"body\":\"chats_list|5|recent\"} → HTTP 200, JSON array.",
          "INVERSE: {\"key\":\"BLOOIO\",\"body\":\"nope\"} → starts with ERR:target_map:unknown_op"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: chat_bg_del, chat_bg_get, chat_get, chats_list, contact_caps, contact_card_share, contact_card_update, contact_create, contact_delete, contact_get, contact_tag_remove, contact_tags_add, contact_tags_list, contact_update, contacts_list, group_create, group_delete, group_get, group_icon_del, group_icon_set, group_members_list, group_update, groups_list, location_get, location_list, location_refresh, lookup_batch, lookup_get, lookup_post, message_get, message_status, messages_list, poll_get, poll_send, reaction, read, send, send_audio, typing_start, typing_stop, webhook_create, webhook_delete, webhook_get, webhook_logs, webhook_replay, webhook_update, webhooks_list",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "chat_bg_del",
            "sig": "[BLOOIO]chat_bg_del|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "chat_bg_get",
            "sig": "[BLOOIO]chat_bg_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "chat_get",
            "sig": "[BLOOIO]chat_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "chats_list",
            "sig": "[BLOOIO]chats_list|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "contact_caps",
            "sig": "[BLOOIO]contact_caps|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_card_share",
            "sig": "[BLOOIO]contact_card_share|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_card_update",
            "sig": "[BLOOIO]contact_card_update|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_create",
            "sig": "[BLOOIO]contact_create|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "contact_delete",
            "sig": "[BLOOIO]contact_delete|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_get",
            "sig": "[BLOOIO]contact_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_tag_remove",
            "sig": "[BLOOIO]contact_tag_remove|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "contact_tags_add",
            "sig": "[BLOOIO]contact_tags_add|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "contact_tags_list",
            "sig": "[BLOOIO]contact_tags_list|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "contact_update",
            "sig": "[BLOOIO]contact_update|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "contacts_list",
            "sig": "[BLOOIO]contacts_list|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "group_create",
            "sig": "[BLOOIO]group_create|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "group_delete",
            "sig": "[BLOOIO]group_delete|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "group_get",
            "sig": "[BLOOIO]group_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "group_icon_del",
            "sig": "[BLOOIO]group_icon_del|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "group_icon_set",
            "sig": "[BLOOIO]group_icon_set|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "group_members_list",
            "sig": "[BLOOIO]group_members_list|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "group_update",
            "sig": "[BLOOIO]group_update|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "groups_list",
            "sig": "[BLOOIO]groups_list|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "location_get",
            "sig": "[BLOOIO]location_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "location_list",
            "sig": "[BLOOIO]location_list|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "location_refresh",
            "sig": "[BLOOIO]location_refresh|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "lookup_batch",
            "sig": "[BLOOIO]lookup_batch|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "lookup_get",
            "sig": "[BLOOIO]lookup_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "lookup_post",
            "sig": "[BLOOIO]lookup_post|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "message_get",
            "sig": "[BLOOIO]message_get|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "message_status",
            "sig": "[BLOOIO]message_status|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "messages_list",
            "sig": "[BLOOIO]messages_list|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "poll_get",
            "sig": "[BLOOIO]poll_get|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "poll_send",
            "sig": "[BLOOIO]poll_send|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "reaction",
            "sig": "[BLOOIO]reaction|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "read",
            "sig": "[BLOOIO]read|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "send",
            "sig": "[BLOOIO]send|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "send_audio",
            "sig": "[BLOOIO]send_audio|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "typing_start",
            "sig": "[BLOOIO]typing_start|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "typing_stop",
            "sig": "[BLOOIO]typing_stop|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "webhook_create",
            "sig": "[BLOOIO]webhook_create|<arg1>|<arg2>|<arg3>[/BLOOIO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "webhook_delete",
            "sig": "[BLOOIO]webhook_delete|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "webhook_get",
            "sig": "[BLOOIO]webhook_get|<arg1>[/BLOOIO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "webhook_logs",
            "sig": "[BLOOIO]webhook_logs|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "webhook_replay",
            "sig": "[BLOOIO]webhook_replay|<arg1>|<arg2>[/BLOOIO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "webhook_update",
            "sig": "[BLOOIO]webhook_update|<arg1>|<arg2>|<arg3>|<arg4>[/BLOOIO]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "webhooks_list",
            "sig": "[BLOOIO]webhooks_list[/BLOOIO]",
            "extraArgs": 0,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[BLOOIO]send|redacted|hello[/BLOOIO]",
        "tag": "[BLOOIO]<op>|<args for that op>[/BLOOIO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOOIO",
        "update": "PUT /api/directory/BLOOIO",
        "patch": "PATCH /api/directory/BLOOIO",
        "delete": "DELETE /api/directory/BLOOIO",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO"
      },
      "examples": "[\"messages_list\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO"
    },
    {
      "key": "BLOOIO2",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO2",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO2",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[BLOOIO2][/BLOOIO2]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO2\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO2  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOOIO2",
        "update": "PUT /api/directory/BLOOIO2",
        "patch": "PATCH /api/directory/BLOOIO2",
        "delete": "DELETE /api/directory/BLOOIO2",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO2\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO2\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO2\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO2"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO2"
    },
    {
      "key": "BLOOIO_ADD_CONTACT_IDENTITY",
      "type": "fn",
      "category": "blooio",
      "doc": "Attach a new identity (phone/email on a channel type) to an existing contact. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_ADD_CONTACT_IDENTITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_ADD_CONTACT_IDENTITY",
        "type": "fn",
        "what": [
          "Attach a new identity (phone/email on a channel type) to an existing contact.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_ADD_CONTACT_IDENTITY]arg1[/BLOOIO_ADD_CONTACT_IDENTITY]",
        "tag": "[BLOOIO_ADD_CONTACT_IDENTITY]<arg1 …>[/BLOOIO_ADD_CONTACT_IDENTITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_ADD_CONTACT_IDENTITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_ADD_CONTACT_IDENTITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"add_contact_identity\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_ADD_CONTACT_IDENTITY",
        "update": "PUT /api/directory/BLOOIO_ADD_CONTACT_IDENTITY",
        "patch": "PATCH /api/directory/BLOOIO_ADD_CONTACT_IDENTITY",
        "delete": "DELETE /api/directory/BLOOIO_ADD_CONTACT_IDENTITY",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_ADD_CONTACT_IDENTITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_ADD_CONTACT_IDENTITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_ADD_CONTACT_IDENTITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_ADD_CONTACT_IDENTITY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_ADD_CONTACT_IDENTITY"
    },
    {
      "key": "BLOOIO_ADD_CONTACT_TAGS",
      "type": "fn",
      "category": "blooio",
      "doc": "Add one or more tags to a contact (deduped). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_ADD_CONTACT_TAGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_ADD_CONTACT_TAGS",
        "type": "fn",
        "what": [
          "Add one or more tags to a contact (deduped).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_ADD_CONTACT_TAGS]arg1[/BLOOIO_ADD_CONTACT_TAGS]",
        "tag": "[BLOOIO_ADD_CONTACT_TAGS]<arg1 …>[/BLOOIO_ADD_CONTACT_TAGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_ADD_CONTACT_TAGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_ADD_CONTACT_TAGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"add_contact_tags\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_ADD_CONTACT_TAGS",
        "update": "PUT /api/directory/BLOOIO_ADD_CONTACT_TAGS",
        "patch": "PATCH /api/directory/BLOOIO_ADD_CONTACT_TAGS",
        "delete": "DELETE /api/directory/BLOOIO_ADD_CONTACT_TAGS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_ADD_CONTACT_TAGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_ADD_CONTACT_TAGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_ADD_CONTACT_TAGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_ADD_CONTACT_TAGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_ADD_CONTACT_TAGS"
    },
    {
      "key": "BLOOIO_ADD_REACTION",
      "type": "fn",
      "category": "blooio",
      "doc": "React to a message (tapback). reaction like '+love', '+like', '+laugh', '+emphasize', '+question', or remove with a '-' prefix. Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_ADD_REACTION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_ADD_REACTION",
        "type": "fn",
        "what": [
          "React to a message (tapback). reaction like '+love', '+like', '+laugh', '+emphasize', '+question', or remove with a '-' prefix. Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_ADD_REACTION]arg1[/BLOOIO_ADD_REACTION]",
        "tag": "[BLOOIO_ADD_REACTION]<arg1 …>[/BLOOIO_ADD_REACTION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_ADD_REACTION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_ADD_REACTION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"add_reaction\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_ADD_REACTION",
        "update": "PUT /api/directory/BLOOIO_ADD_REACTION",
        "patch": "PATCH /api/directory/BLOOIO_ADD_REACTION",
        "delete": "DELETE /api/directory/BLOOIO_ADD_REACTION",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_ADD_REACTION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_ADD_REACTION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_ADD_REACTION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_ADD_REACTION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_ADD_REACTION"
    },
    {
      "key": "BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
      "type": "fn",
      "category": "blooio",
      "doc": "Look up up to 100 phone numbers at once. Requires an enterprise plan. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
        "type": "fn",
        "what": [
          "Look up up to 100 phone numbers at once. Requires an enterprise plan.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS]arg1[/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS]",
        "tag": "[BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS]<arg1 …>[/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"batch_lookup_phone_numbers\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
        "update": "PUT /api/directory/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
        "patch": "PATCH /api/directory/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
        "delete": "DELETE /api/directory/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_BATCH_LOOKUP_PHONE_NUMBERS"
    },
    {
      "key": "BLOOIO_CONTACT_CAPABILITIES",
      "type": "fn",
      "category": "blooio",
      "doc": "Check if a phone number or email is reachable via iMessage / SMS / RCS. Resolves (or creates) the contact for that identifier, then returns its capabilities. Note: creating the contact is a side effec MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_CONTACT_CAPABILITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_CONTACT_CAPABILITIES",
        "type": "fn",
        "what": [
          "Check if a phone number or email is reachable via iMessage / SMS / RCS. Resolves (or creates) the contact for that identifier, then returns its capabilities. Note: creating the contact is a side effec",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "its capabilities. Note: creating the contact is a side effec",
        "example": "[BLOOIO_CONTACT_CAPABILITIES]arg1[/BLOOIO_CONTACT_CAPABILITIES]",
        "tag": "[BLOOIO_CONTACT_CAPABILITIES]<arg1 …>[/BLOOIO_CONTACT_CAPABILITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_CONTACT_CAPABILITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_CONTACT_CAPABILITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"contact_capabilities\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_CONTACT_CAPABILITIES",
        "update": "PUT /api/directory/BLOOIO_CONTACT_CAPABILITIES",
        "patch": "PATCH /api/directory/BLOOIO_CONTACT_CAPABILITIES",
        "delete": "DELETE /api/directory/BLOOIO_CONTACT_CAPABILITIES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_CONTACT_CAPABILITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_CONTACT_CAPABILITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_CONTACT_CAPABILITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_CONTACT_CAPABILITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_CONTACT_CAPABILITIES"
    },
    {
      "key": "BLOOIO_CREATE_CHAT",
      "type": "fn",
      "category": "blooio",
      "doc": "Find or create a 1:1 chat with a recipient on a channel. Returns the chat id (chat_...) to use for sends and actions. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_CREATE_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_CREATE_CHAT",
        "type": "fn",
        "what": [
          "Find or create a 1:1 chat with a recipient on a channel. Returns the chat id (chat_...) to use for sends and actions.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the chat id (chat_...) to use for sends and actions.",
        "example": "[BLOOIO_CREATE_CHAT]arg1[/BLOOIO_CREATE_CHAT]",
        "tag": "[BLOOIO_CREATE_CHAT]<arg1 …>[/BLOOIO_CREATE_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_CREATE_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_CREATE_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"create_chat\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_CREATE_CHAT",
        "update": "PUT /api/directory/BLOOIO_CREATE_CHAT",
        "patch": "PATCH /api/directory/BLOOIO_CREATE_CHAT",
        "delete": "DELETE /api/directory/BLOOIO_CREATE_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_CREATE_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_CREATE_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_CREATE_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_CREATE_CHAT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_CREATE_CHAT"
    },
    {
      "key": "BLOOIO_CREATE_CONTACT",
      "type": "fn",
      "category": "blooio",
      "doc": "Create a contact, optionally with one identity (phone/email on a channel type). Returns the new contact id (ct_...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_CREATE_CONTACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_CREATE_CONTACT",
        "type": "fn",
        "what": [
          "Create a contact, optionally with one identity (phone/email on a channel type). Returns the new contact id (ct_...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the new contact id (ct_...).",
        "example": "[BLOOIO_CREATE_CONTACT]arg1[/BLOOIO_CREATE_CONTACT]",
        "tag": "[BLOOIO_CREATE_CONTACT]<arg1 …>[/BLOOIO_CREATE_CONTACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_CREATE_CONTACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_CREATE_CONTACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"create_contact\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_CREATE_CONTACT",
        "update": "PUT /api/directory/BLOOIO_CREATE_CONTACT",
        "patch": "PATCH /api/directory/BLOOIO_CREATE_CONTACT",
        "delete": "DELETE /api/directory/BLOOIO_CREATE_CONTACT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_CREATE_CONTACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_CREATE_CONTACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_CREATE_CONTACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_CREATE_CONTACT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_CREATE_CONTACT"
    },
    {
      "key": "BLOOIO_CREATE_GROUP",
      "type": "fn",
      "category": "blooio",
      "doc": "Create a group chat on a group-capable channel (blooio/whatsapp) with one or more members (phones/emails). Optionally name it. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_CREATE_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_CREATE_GROUP",
        "type": "fn",
        "what": [
          "Create a group chat on a group-capable channel (blooio/whatsapp) with one or more members (phones/emails). Optionally name it.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_CREATE_GROUP]arg1[/BLOOIO_CREATE_GROUP]",
        "tag": "[BLOOIO_CREATE_GROUP]<arg1 …>[/BLOOIO_CREATE_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_CREATE_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_CREATE_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"create_group\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_CREATE_GROUP",
        "update": "PUT /api/directory/BLOOIO_CREATE_GROUP",
        "patch": "PATCH /api/directory/BLOOIO_CREATE_GROUP",
        "delete": "DELETE /api/directory/BLOOIO_CREATE_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_CREATE_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_CREATE_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_CREATE_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_CREATE_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_CREATE_GROUP"
    },
    {
      "key": "BLOOIO_CREATE_WEBHOOK",
      "type": "fn",
      "category": "blooio",
      "doc": "Create a webhook that receives inbound message + delivery events. url must be https. Optionally scope to event_types (e.g. ['message.received','message.*','*']) and/or a channel. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_CREATE_WEBHOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_CREATE_WEBHOOK",
        "type": "fn",
        "what": [
          "Create a webhook that receives inbound message + delivery events. url must be https. Optionally scope to event_types (e.g. ['message.received','message.*','*']) and/or a channel.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_CREATE_WEBHOOK]arg1[/BLOOIO_CREATE_WEBHOOK]",
        "tag": "[BLOOIO_CREATE_WEBHOOK]<arg1 …>[/BLOOIO_CREATE_WEBHOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_CREATE_WEBHOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_CREATE_WEBHOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"create_webhook\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_CREATE_WEBHOOK",
        "update": "PUT /api/directory/BLOOIO_CREATE_WEBHOOK",
        "patch": "PATCH /api/directory/BLOOIO_CREATE_WEBHOOK",
        "delete": "DELETE /api/directory/BLOOIO_CREATE_WEBHOOK",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_CREATE_WEBHOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_CREATE_WEBHOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_CREATE_WEBHOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_CREATE_WEBHOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_CREATE_WEBHOOK"
    },
    {
      "key": "BLOOIO_DELETE_CONTACT",
      "type": "fn",
      "category": "blooio",
      "doc": "Delete (deprecate) a contact and its identities. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_DELETE_CONTACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_DELETE_CONTACT",
        "type": "fn",
        "what": [
          "Delete (deprecate) a contact and its identities.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_DELETE_CONTACT]arg1[/BLOOIO_DELETE_CONTACT]",
        "tag": "[BLOOIO_DELETE_CONTACT]<arg1 …>[/BLOOIO_DELETE_CONTACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_DELETE_CONTACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_DELETE_CONTACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"delete_contact\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_DELETE_CONTACT",
        "update": "PUT /api/directory/BLOOIO_DELETE_CONTACT",
        "patch": "PATCH /api/directory/BLOOIO_DELETE_CONTACT",
        "delete": "DELETE /api/directory/BLOOIO_DELETE_CONTACT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_DELETE_CONTACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_DELETE_CONTACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_DELETE_CONTACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_DELETE_CONTACT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_DELETE_CONTACT"
    },
    {
      "key": "BLOOIO_DELETE_GROUP",
      "type": "fn",
      "category": "blooio",
      "doc": "Delete (deprecate) a group. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_DELETE_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_DELETE_GROUP",
        "type": "fn",
        "what": [
          "Delete (deprecate) a group.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_DELETE_GROUP]arg1[/BLOOIO_DELETE_GROUP]",
        "tag": "[BLOOIO_DELETE_GROUP]<arg1 …>[/BLOOIO_DELETE_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_DELETE_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_DELETE_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"delete_group\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_DELETE_GROUP",
        "update": "PUT /api/directory/BLOOIO_DELETE_GROUP",
        "patch": "PATCH /api/directory/BLOOIO_DELETE_GROUP",
        "delete": "DELETE /api/directory/BLOOIO_DELETE_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_DELETE_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_DELETE_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_DELETE_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_DELETE_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_DELETE_GROUP"
    },
    {
      "key": "BLOOIO_DELETE_WEBHOOK",
      "type": "fn",
      "category": "blooio",
      "doc": "Delete (deprecate) a webhook subscription. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_DELETE_WEBHOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_DELETE_WEBHOOK",
        "type": "fn",
        "what": [
          "Delete (deprecate) a webhook subscription.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_DELETE_WEBHOOK]arg1[/BLOOIO_DELETE_WEBHOOK]",
        "tag": "[BLOOIO_DELETE_WEBHOOK]<arg1 …>[/BLOOIO_DELETE_WEBHOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_DELETE_WEBHOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_DELETE_WEBHOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"delete_webhook\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_DELETE_WEBHOOK",
        "update": "PUT /api/directory/BLOOIO_DELETE_WEBHOOK",
        "patch": "PATCH /api/directory/BLOOIO_DELETE_WEBHOOK",
        "delete": "DELETE /api/directory/BLOOIO_DELETE_WEBHOOK",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_DELETE_WEBHOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_DELETE_WEBHOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_DELETE_WEBHOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_DELETE_WEBHOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_DELETE_WEBHOOK"
    },
    {
      "key": "BLOOIO_FINISH",
      "type": "flow",
      "category": "flow",
      "doc": "Phase C of the inbound turn: given the full agent output text in $1, extract the LAST [REPLY], send via blooio to $2, return the send result. $1=agent output text. $2=recipient phone. WHEN_TO_USE: \"finish the turn for <recipient> using <agent_text>\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_FINISH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_FINISH",
        "type": "flow",
        "what": [
          "Phase C of the inbound turn: given the full agent output text in $1, extract the LAST [REPLY], send via blooio to $2, return the send result.",
          "$1=agent output text. $2=recipient phone.",
          "WHEN_TO_USE: \"finish the turn for <recipient> using <agent_text>\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "agent output text. $2=recipient phone.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the send result.",
        "example": "[BLOOIO_FINISH]arg1|arg2[/BLOOIO_FINISH]",
        "tag": "[BLOOIO_FINISH]<arg1>|<arg2>[/BLOOIO_FINISH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_FINISH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_FINISH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOOIO_FINISH",
        "update": "PUT /api/directory/BLOOIO_FINISH",
        "patch": "PATCH /api/directory/BLOOIO_FINISH",
        "delete": "DELETE /api/directory/BLOOIO_FINISH",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_FINISH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_FINISH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_FINISH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_FINISH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_FINISH"
    },
    {
      "key": "BLOOIO_GET_CHANNEL",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a single channel by id (ch_...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CHANNEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CHANNEL",
        "type": "fn",
        "what": [
          "Get a single channel by id (ch_...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CHANNEL]arg1[/BLOOIO_GET_CHANNEL]",
        "tag": "[BLOOIO_GET_CHANNEL]<arg1 …>[/BLOOIO_GET_CHANNEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CHANNEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CHANNEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_channel\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CHANNEL",
        "update": "PUT /api/directory/BLOOIO_GET_CHANNEL",
        "patch": "PATCH /api/directory/BLOOIO_GET_CHANNEL",
        "delete": "DELETE /api/directory/BLOOIO_GET_CHANNEL",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CHANNEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CHANNEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CHANNEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CHANNEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CHANNEL"
    },
    {
      "key": "BLOOIO_GET_CHANNEL_CAPABILITIES",
      "type": "fn",
      "category": "blooio",
      "doc": "Get what a channel can do: supported protocols, content types, actions (typing/read), and interactive features. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CHANNEL_CAPABILITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CHANNEL_CAPABILITIES",
        "type": "fn",
        "what": [
          "Get what a channel can do: supported protocols, content types, actions (typing/read), and interactive features.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CHANNEL_CAPABILITIES]arg1[/BLOOIO_GET_CHANNEL_CAPABILITIES]",
        "tag": "[BLOOIO_GET_CHANNEL_CAPABILITIES]<arg1 …>[/BLOOIO_GET_CHANNEL_CAPABILITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CHANNEL_CAPABILITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CHANNEL_CAPABILITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_channel_capabilities\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CHANNEL_CAPABILITIES",
        "update": "PUT /api/directory/BLOOIO_GET_CHANNEL_CAPABILITIES",
        "patch": "PATCH /api/directory/BLOOIO_GET_CHANNEL_CAPABILITIES",
        "delete": "DELETE /api/directory/BLOOIO_GET_CHANNEL_CAPABILITIES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CHANNEL_CAPABILITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CHANNEL_CAPABILITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CHANNEL_CAPABILITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CHANNEL_CAPABILITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CHANNEL_CAPABILITIES"
    },
    {
      "key": "BLOOIO_GET_CHAT",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a chat by id (chat_...), including state and capabilities. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CHAT",
        "type": "fn",
        "what": [
          "Get a chat by id (chat_...), including state and capabilities.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CHAT]arg1[/BLOOIO_GET_CHAT]",
        "tag": "[BLOOIO_GET_CHAT]<arg1 …>[/BLOOIO_GET_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_chat\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CHAT",
        "update": "PUT /api/directory/BLOOIO_GET_CHAT",
        "patch": "PATCH /api/directory/BLOOIO_GET_CHAT",
        "delete": "DELETE /api/directory/BLOOIO_GET_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CHAT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CHAT"
    },
    {
      "key": "BLOOIO_GET_CHAT_BACKGROUND",
      "type": "fn",
      "category": "blooio",
      "doc": "Get the current background image set on a chat (Blooio channels). Reads live from the device. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CHAT_BACKGROUND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CHAT_BACKGROUND",
        "type": "fn",
        "what": [
          "Get the current background image set on a chat (Blooio channels). Reads live from the device.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CHAT_BACKGROUND]arg1[/BLOOIO_GET_CHAT_BACKGROUND]",
        "tag": "[BLOOIO_GET_CHAT_BACKGROUND]<arg1 …>[/BLOOIO_GET_CHAT_BACKGROUND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CHAT_BACKGROUND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CHAT_BACKGROUND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_chat_background\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CHAT_BACKGROUND",
        "update": "PUT /api/directory/BLOOIO_GET_CHAT_BACKGROUND",
        "patch": "PATCH /api/directory/BLOOIO_GET_CHAT_BACKGROUND",
        "delete": "DELETE /api/directory/BLOOIO_GET_CHAT_BACKGROUND",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CHAT_BACKGROUND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CHAT_BACKGROUND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CHAT_BACKGROUND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CHAT_BACKGROUND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CHAT_BACKGROUND"
    },
    {
      "key": "BLOOIO_GET_CONTACT",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a contact by id (ct_...), including its identities. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CONTACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CONTACT",
        "type": "fn",
        "what": [
          "Get a contact by id (ct_...), including its identities.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CONTACT]arg1[/BLOOIO_GET_CONTACT]",
        "tag": "[BLOOIO_GET_CONTACT]<arg1 …>[/BLOOIO_GET_CONTACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CONTACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CONTACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_contact\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CONTACT",
        "update": "PUT /api/directory/BLOOIO_GET_CONTACT",
        "patch": "PATCH /api/directory/BLOOIO_GET_CONTACT",
        "delete": "DELETE /api/directory/BLOOIO_GET_CONTACT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CONTACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CONTACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CONTACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CONTACT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CONTACT"
    },
    {
      "key": "BLOOIO_GET_CONTACT_CAPABILITIES",
      "type": "fn",
      "category": "blooio",
      "doc": "Get reachability/capabilities for an existing contact (by contact id): which protocols (iMessage/SMS/RCS) and features are available per identity. For a raw phone/email use 'contact_capabilities'. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CONTACT_CAPABILITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CONTACT_CAPABILITIES",
        "type": "fn",
        "what": [
          "Get reachability/capabilities for an existing contact (by contact id): which protocols (iMessage/SMS/RCS) and features are available per identity. For a raw phone/email use 'contact_capabilities'.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CONTACT_CAPABILITIES]arg1[/BLOOIO_GET_CONTACT_CAPABILITIES]",
        "tag": "[BLOOIO_GET_CONTACT_CAPABILITIES]<arg1 …>[/BLOOIO_GET_CONTACT_CAPABILITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CONTACT_CAPABILITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CONTACT_CAPABILITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_contact_capabilities\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CONTACT_CAPABILITIES",
        "update": "PUT /api/directory/BLOOIO_GET_CONTACT_CAPABILITIES",
        "patch": "PATCH /api/directory/BLOOIO_GET_CONTACT_CAPABILITIES",
        "delete": "DELETE /api/directory/BLOOIO_GET_CONTACT_CAPABILITIES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CONTACT_CAPABILITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CONTACT_CAPABILITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CONTACT_CAPABILITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CONTACT_CAPABILITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CONTACT_CAPABILITIES"
    },
    {
      "key": "BLOOIO_GET_CONTACT_TIMELINE",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a contact's cross-channel activity timeline (messages and events) by contact id. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_CONTACT_TIMELINE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_CONTACT_TIMELINE",
        "type": "fn",
        "what": [
          "Get a contact's cross-channel activity timeline (messages and events) by contact id.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_CONTACT_TIMELINE]arg1[/BLOOIO_GET_CONTACT_TIMELINE]",
        "tag": "[BLOOIO_GET_CONTACT_TIMELINE]<arg1 …>[/BLOOIO_GET_CONTACT_TIMELINE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_CONTACT_TIMELINE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_CONTACT_TIMELINE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_contact_timeline\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_CONTACT_TIMELINE",
        "update": "PUT /api/directory/BLOOIO_GET_CONTACT_TIMELINE",
        "patch": "PATCH /api/directory/BLOOIO_GET_CONTACT_TIMELINE",
        "delete": "DELETE /api/directory/BLOOIO_GET_CONTACT_TIMELINE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_CONTACT_TIMELINE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_CONTACT_TIMELINE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_CONTACT_TIMELINE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_CONTACT_TIMELINE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_CONTACT_TIMELINE"
    },
    {
      "key": "BLOOIO_GET_EVENT",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a single event by id (evt_...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_EVENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_EVENT",
        "type": "fn",
        "what": [
          "Get a single event by id (evt_...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_EVENT]arg1[/BLOOIO_GET_EVENT]",
        "tag": "[BLOOIO_GET_EVENT]<arg1 …>[/BLOOIO_GET_EVENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_EVENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_EVENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_event\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_EVENT",
        "update": "PUT /api/directory/BLOOIO_GET_EVENT",
        "patch": "PATCH /api/directory/BLOOIO_GET_EVENT",
        "delete": "DELETE /api/directory/BLOOIO_GET_EVENT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_EVENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_EVENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_EVENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_EVENT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_EVENT"
    },
    {
      "key": "BLOOIO_GET_GROUP",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a group by id (grp_...), including members. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_GROUP",
        "type": "fn",
        "what": [
          "Get a group by id (grp_...), including members.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_GROUP]arg1[/BLOOIO_GET_GROUP]",
        "tag": "[BLOOIO_GET_GROUP]<arg1 …>[/BLOOIO_GET_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_group\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_GROUP",
        "update": "PUT /api/directory/BLOOIO_GET_GROUP",
        "patch": "PATCH /api/directory/BLOOIO_GET_GROUP",
        "delete": "DELETE /api/directory/BLOOIO_GET_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_GROUP"
    },
    {
      "key": "BLOOIO_GET_LOCATION_CONTACT",
      "type": "fn",
      "category": "blooio",
      "doc": "Get the latest location for one Find My contact by handle. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_LOCATION_CONTACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_LOCATION_CONTACT",
        "type": "fn",
        "what": [
          "Get the latest location for one Find My contact by handle.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_LOCATION_CONTACT]arg1[/BLOOIO_GET_LOCATION_CONTACT]",
        "tag": "[BLOOIO_GET_LOCATION_CONTACT]<arg1 …>[/BLOOIO_GET_LOCATION_CONTACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_LOCATION_CONTACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_LOCATION_CONTACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_location_contact\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_LOCATION_CONTACT",
        "update": "PUT /api/directory/BLOOIO_GET_LOCATION_CONTACT",
        "patch": "PATCH /api/directory/BLOOIO_GET_LOCATION_CONTACT",
        "delete": "DELETE /api/directory/BLOOIO_GET_LOCATION_CONTACT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_LOCATION_CONTACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_LOCATION_CONTACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_LOCATION_CONTACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_LOCATION_CONTACT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_LOCATION_CONTACT"
    },
    {
      "key": "BLOOIO_GET_MESSAGE",
      "type": "fn",
      "category": "blooio",
      "doc": "Get full details of a message. Requires the chat id and message id (both returned by send_message). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_MESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_MESSAGE",
        "type": "fn",
        "what": [
          "Get full details of a message. Requires the chat id and message id (both returned by send_message).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_MESSAGE]arg1[/BLOOIO_GET_MESSAGE]",
        "tag": "[BLOOIO_GET_MESSAGE]<arg1 …>[/BLOOIO_GET_MESSAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_MESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_MESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_message\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_MESSAGE",
        "update": "PUT /api/directory/BLOOIO_GET_MESSAGE",
        "patch": "PATCH /api/directory/BLOOIO_GET_MESSAGE",
        "delete": "DELETE /api/directory/BLOOIO_GET_MESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_MESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_MESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_MESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_MESSAGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_MESSAGE"
    },
    {
      "key": "BLOOIO_GET_MESSAGE_STATUS",
      "type": "fn",
      "category": null,
      "doc": "Lightweight delivery status. ARGS: chat_id|message_id MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_MESSAGE_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_MESSAGE_STATUS",
        "type": "fn",
        "what": [
          "Lightweight delivery status. ARGS: chat_id|message_id",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_MESSAGE_STATUS]arg1|arg2[/BLOOIO_GET_MESSAGE_STATUS]",
        "tag": "[BLOOIO_GET_MESSAGE_STATUS]<arg1>|<arg2>[/BLOOIO_GET_MESSAGE_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_MESSAGE_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_MESSAGE_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_message_status\",\"{\\\"chat_id\\\":\\\"$1\\\",\\\"message_id\\\":\\\"$2\\\"}\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_MESSAGE_STATUS",
        "update": "PUT /api/directory/BLOOIO_GET_MESSAGE_STATUS",
        "patch": "PATCH /api/directory/BLOOIO_GET_MESSAGE_STATUS",
        "delete": "DELETE /api/directory/BLOOIO_GET_MESSAGE_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_MESSAGE_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_MESSAGE_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_MESSAGE_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_MESSAGE_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_MESSAGE_STATUS"
    },
    {
      "key": "BLOOIO_GET_POLL_RESULTS",
      "type": "fn",
      "category": "blooio",
      "doc": "Get current vote tallies for a poll. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_POLL_RESULTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_POLL_RESULTS",
        "type": "fn",
        "what": [
          "Get current vote tallies for a poll.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_POLL_RESULTS]arg1[/BLOOIO_GET_POLL_RESULTS]",
        "tag": "[BLOOIO_GET_POLL_RESULTS]<arg1 …>[/BLOOIO_GET_POLL_RESULTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_POLL_RESULTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_POLL_RESULTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_poll_results\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_POLL_RESULTS",
        "update": "PUT /api/directory/BLOOIO_GET_POLL_RESULTS",
        "patch": "PATCH /api/directory/BLOOIO_GET_POLL_RESULTS",
        "delete": "DELETE /api/directory/BLOOIO_GET_POLL_RESULTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_POLL_RESULTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_POLL_RESULTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_POLL_RESULTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_POLL_RESULTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_POLL_RESULTS"
    },
    {
      "key": "BLOOIO_GET_WEBHOOK",
      "type": "fn",
      "category": "blooio",
      "doc": "Get a webhook by id (wh_...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_GET_WEBHOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_GET_WEBHOOK",
        "type": "fn",
        "what": [
          "Get a webhook by id (wh_...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_GET_WEBHOOK]arg1[/BLOOIO_GET_WEBHOOK]",
        "tag": "[BLOOIO_GET_WEBHOOK]<arg1 …>[/BLOOIO_GET_WEBHOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_GET_WEBHOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_GET_WEBHOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"get_webhook\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_GET_WEBHOOK",
        "update": "PUT /api/directory/BLOOIO_GET_WEBHOOK",
        "patch": "PATCH /api/directory/BLOOIO_GET_WEBHOOK",
        "delete": "DELETE /api/directory/BLOOIO_GET_WEBHOOK",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_GET_WEBHOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_GET_WEBHOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_GET_WEBHOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_GET_WEBHOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_GET_WEBHOOK"
    },
    {
      "key": "BLOOIO_LIST_CHANNELS",
      "type": "fn",
      "category": "blooio",
      "doc": "List messaging channels for the org. A channel_id (ch_...) is required to send messages. Filter by type (blooio, twilio, whatsapp, whatsapp_business, rcs_business, amb) or status (active, ...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CHANNELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CHANNELS",
        "type": "fn",
        "what": [
          "List messaging channels for the org. A channel_id (ch_...) is required to send messages. Filter by type (blooio, twilio, whatsapp, whatsapp_business, rcs_business, amb) or status (active, ...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CHANNELS]arg1[/BLOOIO_LIST_CHANNELS]",
        "tag": "[BLOOIO_LIST_CHANNELS]<arg1 …>[/BLOOIO_LIST_CHANNELS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CHANNELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CHANNELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_channels\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CHANNELS",
        "update": "PUT /api/directory/BLOOIO_LIST_CHANNELS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CHANNELS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CHANNELS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CHANNELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CHANNELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CHANNELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CHANNELS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CHANNELS"
    },
    {
      "key": "BLOOIO_LIST_CHATS",
      "type": "fn",
      "category": "blooio",
      "doc": "List conversations (chats). Filter by channel type, state (open/closed/blocked), channel_id, or contact_id. Sorted by most recent activity. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CHATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CHATS",
        "type": "fn",
        "what": [
          "List conversations (chats). Filter by channel type, state (open/closed/blocked), channel_id, or contact_id. Sorted by most recent activity.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CHATS]arg1[/BLOOIO_LIST_CHATS]",
        "tag": "[BLOOIO_LIST_CHATS]<arg1 …>[/BLOOIO_LIST_CHATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CHATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CHATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_chats\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CHATS",
        "update": "PUT /api/directory/BLOOIO_LIST_CHATS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CHATS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CHATS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CHATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CHATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CHATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CHATS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CHATS"
    },
    {
      "key": "BLOOIO_LIST_CHAT_MESSAGES",
      "type": "fn",
      "category": "blooio",
      "doc": "List messages in a chat, newest first by default. Use order='asc' for oldest first. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CHAT_MESSAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CHAT_MESSAGES",
        "type": "fn",
        "what": [
          "List messages in a chat, newest first by default. Use order='asc' for oldest first.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CHAT_MESSAGES]arg1[/BLOOIO_LIST_CHAT_MESSAGES]",
        "tag": "[BLOOIO_LIST_CHAT_MESSAGES]<arg1 …>[/BLOOIO_LIST_CHAT_MESSAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CHAT_MESSAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CHAT_MESSAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_chat_messages\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CHAT_MESSAGES",
        "update": "PUT /api/directory/BLOOIO_LIST_CHAT_MESSAGES",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CHAT_MESSAGES",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CHAT_MESSAGES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CHAT_MESSAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CHAT_MESSAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CHAT_MESSAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CHAT_MESSAGES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CHAT_MESSAGES"
    },
    {
      "key": "BLOOIO_LIST_CONTACTS",
      "type": "fn",
      "category": "blooio",
      "doc": "List contacts for the org. Optionally filter by a specific identifier (phone in E.164 or email) to find the contact for an address. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CONTACTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CONTACTS",
        "type": "fn",
        "what": [
          "List contacts for the org. Optionally filter by a specific identifier (phone in E.164 or email) to find the contact for an address.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CONTACTS]arg1[/BLOOIO_LIST_CONTACTS]",
        "tag": "[BLOOIO_LIST_CONTACTS]<arg1 …>[/BLOOIO_LIST_CONTACTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CONTACTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CONTACTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_contacts\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CONTACTS",
        "update": "PUT /api/directory/BLOOIO_LIST_CONTACTS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CONTACTS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CONTACTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CONTACTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CONTACTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CONTACTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CONTACTS"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CONTACTS"
    },
    {
      "key": "BLOOIO_LIST_CONTACT_IDENTITIES",
      "type": "fn",
      "category": "blooio",
      "doc": "List a contact's identities (the phone numbers / emails attached to it). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CONTACT_IDENTITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CONTACT_IDENTITIES",
        "type": "fn",
        "what": [
          "List a contact's identities (the phone numbers / emails attached to it).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CONTACT_IDENTITIES]arg1[/BLOOIO_LIST_CONTACT_IDENTITIES]",
        "tag": "[BLOOIO_LIST_CONTACT_IDENTITIES]<arg1 …>[/BLOOIO_LIST_CONTACT_IDENTITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CONTACT_IDENTITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CONTACT_IDENTITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_contact_identities\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CONTACT_IDENTITIES",
        "update": "PUT /api/directory/BLOOIO_LIST_CONTACT_IDENTITIES",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CONTACT_IDENTITIES",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CONTACT_IDENTITIES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CONTACT_IDENTITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CONTACT_IDENTITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CONTACT_IDENTITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CONTACT_IDENTITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CONTACT_IDENTITIES"
    },
    {
      "key": "BLOOIO_LIST_CONTACT_TAGS",
      "type": "fn",
      "category": "blooio",
      "doc": "List the tags on a contact. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_CONTACT_TAGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_CONTACT_TAGS",
        "type": "fn",
        "what": [
          "List the tags on a contact.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_CONTACT_TAGS]arg1[/BLOOIO_LIST_CONTACT_TAGS]",
        "tag": "[BLOOIO_LIST_CONTACT_TAGS]<arg1 …>[/BLOOIO_LIST_CONTACT_TAGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_CONTACT_TAGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_CONTACT_TAGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_contact_tags\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_CONTACT_TAGS",
        "update": "PUT /api/directory/BLOOIO_LIST_CONTACT_TAGS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_CONTACT_TAGS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_CONTACT_TAGS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_CONTACT_TAGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_CONTACT_TAGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_CONTACT_TAGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_CONTACT_TAGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_CONTACT_TAGS"
    },
    {
      "key": "BLOOIO_LIST_EVENTS",
      "type": "fn",
      "category": "blooio",
      "doc": "List events from the unified feed (message lifecycle, polls, groups, reactions, typing). Filter by type, chat_id, or message_id. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_EVENTS",
        "type": "fn",
        "what": [
          "List events from the unified feed (message lifecycle, polls, groups, reactions, typing). Filter by type, chat_id, or message_id.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_EVENTS]arg1[/BLOOIO_LIST_EVENTS]",
        "tag": "[BLOOIO_LIST_EVENTS]<arg1 …>[/BLOOIO_LIST_EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_events\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_EVENTS",
        "update": "PUT /api/directory/BLOOIO_LIST_EVENTS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_EVENTS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_EVENTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_EVENTS"
    },
    {
      "key": "BLOOIO_LIST_GROUPS",
      "type": "fn",
      "category": "blooio",
      "doc": "List group chats for the org. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_GROUPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_GROUPS",
        "type": "fn",
        "what": [
          "List group chats for the org.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_GROUPS]arg1[/BLOOIO_LIST_GROUPS]",
        "tag": "[BLOOIO_LIST_GROUPS]<arg1 …>[/BLOOIO_LIST_GROUPS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_GROUPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_GROUPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_groups\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_GROUPS",
        "update": "PUT /api/directory/BLOOIO_LIST_GROUPS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_GROUPS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_GROUPS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_GROUPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_GROUPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_GROUPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_GROUPS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_GROUPS"
    },
    {
      "key": "BLOOIO_LIST_GROUP_MEMBERS",
      "type": "fn",
      "category": "blooio",
      "doc": "List the members of a group. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_GROUP_MEMBERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_GROUP_MEMBERS",
        "type": "fn",
        "what": [
          "List the members of a group.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_GROUP_MEMBERS]arg1[/BLOOIO_LIST_GROUP_MEMBERS]",
        "tag": "[BLOOIO_LIST_GROUP_MEMBERS]<arg1 …>[/BLOOIO_LIST_GROUP_MEMBERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_GROUP_MEMBERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_GROUP_MEMBERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_group_members\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_GROUP_MEMBERS",
        "update": "PUT /api/directory/BLOOIO_LIST_GROUP_MEMBERS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_GROUP_MEMBERS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_GROUP_MEMBERS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_GROUP_MEMBERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_GROUP_MEMBERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_GROUP_MEMBERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_GROUP_MEMBERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_GROUP_MEMBERS"
    },
    {
      "key": "BLOOIO_LIST_LOCATION_CONTACTS",
      "type": "fn",
      "category": "blooio",
      "doc": "List Find My friends/contacts sharing their location with the linked Apple account. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_LOCATION_CONTACTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_LOCATION_CONTACTS",
        "type": "fn",
        "what": [
          "List Find My friends/contacts sharing their location with the linked Apple account.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_LOCATION_CONTACTS]arg1[/BLOOIO_LIST_LOCATION_CONTACTS]",
        "tag": "[BLOOIO_LIST_LOCATION_CONTACTS]<arg1 …>[/BLOOIO_LIST_LOCATION_CONTACTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_LOCATION_CONTACTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_LOCATION_CONTACTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_location_contacts\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_LOCATION_CONTACTS",
        "update": "PUT /api/directory/BLOOIO_LIST_LOCATION_CONTACTS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_LOCATION_CONTACTS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_LOCATION_CONTACTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_LOCATION_CONTACTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_LOCATION_CONTACTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_LOCATION_CONTACTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_LOCATION_CONTACTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_LOCATION_CONTACTS"
    },
    {
      "key": "BLOOIO_LIST_MESSAGE_EVENTS",
      "type": "fn",
      "category": null,
      "doc": "List message lifecycle events. ARGS: chat_id|message_id MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_MESSAGE_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_MESSAGE_EVENTS",
        "type": "fn",
        "what": [
          "List message lifecycle events. ARGS: chat_id|message_id",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_MESSAGE_EVENTS]arg1|arg2[/BLOOIO_LIST_MESSAGE_EVENTS]",
        "tag": "[BLOOIO_LIST_MESSAGE_EVENTS]<arg1>|<arg2>[/BLOOIO_LIST_MESSAGE_EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_MESSAGE_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_MESSAGE_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_message_events\",\"{\\\"chat_id\\\":\\\"$1\\\",\\\"message_id\\\":\\\"$2\\\"}\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_MESSAGE_EVENTS",
        "update": "PUT /api/directory/BLOOIO_LIST_MESSAGE_EVENTS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_MESSAGE_EVENTS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_MESSAGE_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_MESSAGE_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_MESSAGE_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_MESSAGE_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_MESSAGE_EVENTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_MESSAGE_EVENTS"
    },
    {
      "key": "BLOOIO_LIST_NUMBERS",
      "type": "fn",
      "category": "blooio",
      "doc": "List the phone numbers / sender addresses available to this API key, with their channel and status. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_NUMBERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_NUMBERS",
        "type": "fn",
        "what": [
          "List the phone numbers / sender addresses available to this API key, with their channel and status.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_NUMBERS]arg1[/BLOOIO_LIST_NUMBERS]",
        "tag": "[BLOOIO_LIST_NUMBERS]<arg1 …>[/BLOOIO_LIST_NUMBERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_NUMBERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_NUMBERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_numbers\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_NUMBERS",
        "update": "PUT /api/directory/BLOOIO_LIST_NUMBERS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_NUMBERS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_NUMBERS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_NUMBERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_NUMBERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_NUMBERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_NUMBERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_NUMBERS"
    },
    {
      "key": "BLOOIO_LIST_WEBHOOKS",
      "type": "fn",
      "category": "blooio",
      "doc": "List configured webhook subscriptions. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_WEBHOOKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_WEBHOOKS",
        "type": "fn",
        "what": [
          "List configured webhook subscriptions.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_WEBHOOKS]arg1[/BLOOIO_LIST_WEBHOOKS]",
        "tag": "[BLOOIO_LIST_WEBHOOKS]<arg1 …>[/BLOOIO_LIST_WEBHOOKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_WEBHOOKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_WEBHOOKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_webhooks\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_WEBHOOKS",
        "update": "PUT /api/directory/BLOOIO_LIST_WEBHOOKS",
        "patch": "PATCH /api/directory/BLOOIO_LIST_WEBHOOKS",
        "delete": "DELETE /api/directory/BLOOIO_LIST_WEBHOOKS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_WEBHOOKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_WEBHOOKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_WEBHOOKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_WEBHOOKS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_WEBHOOKS"
    },
    {
      "key": "BLOOIO_LIST_WEBHOOK_DELIVERIES",
      "type": "fn",
      "category": "blooio",
      "doc": "List recent delivery attempts for a webhook (status, attempt count, response code). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LIST_WEBHOOK_DELIVERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LIST_WEBHOOK_DELIVERIES",
        "type": "fn",
        "what": [
          "List recent delivery attempts for a webhook (status, attempt count, response code).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LIST_WEBHOOK_DELIVERIES]arg1[/BLOOIO_LIST_WEBHOOK_DELIVERIES]",
        "tag": "[BLOOIO_LIST_WEBHOOK_DELIVERIES]<arg1 …>[/BLOOIO_LIST_WEBHOOK_DELIVERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LIST_WEBHOOK_DELIVERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LIST_WEBHOOK_DELIVERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"list_webhook_deliveries\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LIST_WEBHOOK_DELIVERIES",
        "update": "PUT /api/directory/BLOOIO_LIST_WEBHOOK_DELIVERIES",
        "patch": "PATCH /api/directory/BLOOIO_LIST_WEBHOOK_DELIVERIES",
        "delete": "DELETE /api/directory/BLOOIO_LIST_WEBHOOK_DELIVERIES",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LIST_WEBHOOK_DELIVERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LIST_WEBHOOK_DELIVERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LIST_WEBHOOK_DELIVERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LIST_WEBHOOK_DELIVERIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LIST_WEBHOOK_DELIVERIES"
    },
    {
      "key": "BLOOIO_LOGS_TAIL",
      "type": "flow",
      "category": "log",
      "doc": "Last 20 blooio_logs rows. Use to find a recent inbound webhook or outbound SMS to inspect.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LOGS_TAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LOGS_TAIL",
        "type": "flow",
        "what": [
          "Last 20 blooio_logs rows. Use to find a recent inbound webhook or outbound SMS to inspect."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[BLOOIO_LOGS_TAIL][/BLOOIO_LOGS_TAIL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LOGS_TAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LOGS_TAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOOIO_LOGS_TAIL",
        "update": "PUT /api/directory/BLOOIO_LOGS_TAIL",
        "patch": "PATCH /api/directory/BLOOIO_LOGS_TAIL",
        "delete": "DELETE /api/directory/BLOOIO_LOGS_TAIL",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LOGS_TAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LOGS_TAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LOGS_TAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LOGS_TAIL"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LOGS_TAIL"
    },
    {
      "key": "BLOOIO_LOOKUP_PHONE_NUMBER",
      "type": "fn",
      "category": "blooio",
      "doc": "Look up parsed info / geocoding for a phone number (E.164). Requires an enterprise plan. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_LOOKUP_PHONE_NUMBER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_LOOKUP_PHONE_NUMBER",
        "type": "fn",
        "what": [
          "Look up parsed info / geocoding for a phone number (E.164). Requires an enterprise plan.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_LOOKUP_PHONE_NUMBER]arg1[/BLOOIO_LOOKUP_PHONE_NUMBER]",
        "tag": "[BLOOIO_LOOKUP_PHONE_NUMBER]<arg1 …>[/BLOOIO_LOOKUP_PHONE_NUMBER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_LOOKUP_PHONE_NUMBER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_LOOKUP_PHONE_NUMBER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"lookup_phone_number\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_LOOKUP_PHONE_NUMBER",
        "update": "PUT /api/directory/BLOOIO_LOOKUP_PHONE_NUMBER",
        "patch": "PATCH /api/directory/BLOOIO_LOOKUP_PHONE_NUMBER",
        "delete": "DELETE /api/directory/BLOOIO_LOOKUP_PHONE_NUMBER",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_LOOKUP_PHONE_NUMBER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_LOOKUP_PHONE_NUMBER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_LOOKUP_PHONE_NUMBER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_LOOKUP_PHONE_NUMBER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_LOOKUP_PHONE_NUMBER"
    },
    {
      "key": "BLOOIO_MARK_CHAT_READ",
      "type": "fn",
      "category": "blooio",
      "doc": "Mark a chat as read (sends a read receipt). Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_MARK_CHAT_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_MARK_CHAT_READ",
        "type": "fn",
        "what": [
          "Mark a chat as read (sends a read receipt). Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_MARK_CHAT_READ]arg1[/BLOOIO_MARK_CHAT_READ]",
        "tag": "[BLOOIO_MARK_CHAT_READ]<arg1 …>[/BLOOIO_MARK_CHAT_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_MARK_CHAT_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_MARK_CHAT_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"mark_chat_read\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_MARK_CHAT_READ",
        "update": "PUT /api/directory/BLOOIO_MARK_CHAT_READ",
        "patch": "PATCH /api/directory/BLOOIO_MARK_CHAT_READ",
        "delete": "DELETE /api/directory/BLOOIO_MARK_CHAT_READ",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_MARK_CHAT_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_MARK_CHAT_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_MARK_CHAT_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_MARK_CHAT_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_MARK_CHAT_READ"
    },
    {
      "key": "BLOOIO_ME",
      "type": "fn",
      "category": "blooio",
      "doc": "Get the authenticated account: organization, linked devices/numbers, usage, and API key validity. Use to confirm who the key belongs to before acting. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_ME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_ME",
        "type": "fn",
        "what": [
          "Get the authenticated account: organization, linked devices/numbers, usage, and API key validity. Use to confirm who the key belongs to before acting.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_ME]arg1[/BLOOIO_ME]",
        "tag": "[BLOOIO_ME]<arg1 …>[/BLOOIO_ME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_ME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_ME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"me\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_ME",
        "update": "PUT /api/directory/BLOOIO_ME",
        "patch": "PATCH /api/directory/BLOOIO_ME",
        "delete": "DELETE /api/directory/BLOOIO_ME",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_ME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_ME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_ME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_ME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_ME"
    },
    {
      "key": "BLOOIO_REFRESH_LOCATION_CONTACTS",
      "type": "fn",
      "category": "blooio",
      "doc": "Force a refresh of Find My location data from the device. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REFRESH_LOCATION_CONTACTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REFRESH_LOCATION_CONTACTS",
        "type": "fn",
        "what": [
          "Force a refresh of Find My location data from the device.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REFRESH_LOCATION_CONTACTS]arg1[/BLOOIO_REFRESH_LOCATION_CONTACTS]",
        "tag": "[BLOOIO_REFRESH_LOCATION_CONTACTS]<arg1 …>[/BLOOIO_REFRESH_LOCATION_CONTACTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REFRESH_LOCATION_CONTACTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REFRESH_LOCATION_CONTACTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"refresh_location_contacts\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REFRESH_LOCATION_CONTACTS",
        "update": "PUT /api/directory/BLOOIO_REFRESH_LOCATION_CONTACTS",
        "patch": "PATCH /api/directory/BLOOIO_REFRESH_LOCATION_CONTACTS",
        "delete": "DELETE /api/directory/BLOOIO_REFRESH_LOCATION_CONTACTS",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REFRESH_LOCATION_CONTACTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REFRESH_LOCATION_CONTACTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REFRESH_LOCATION_CONTACTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REFRESH_LOCATION_CONTACTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REFRESH_LOCATION_CONTACTS"
    },
    {
      "key": "BLOOIO_REMOVE_CHAT_BACKGROUND",
      "type": "fn",
      "category": "blooio",
      "doc": "Remove the background image from a chat (Blooio channels). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REMOVE_CHAT_BACKGROUND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REMOVE_CHAT_BACKGROUND",
        "type": "fn",
        "what": [
          "Remove the background image from a chat (Blooio channels).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REMOVE_CHAT_BACKGROUND]arg1[/BLOOIO_REMOVE_CHAT_BACKGROUND]",
        "tag": "[BLOOIO_REMOVE_CHAT_BACKGROUND]<arg1 …>[/BLOOIO_REMOVE_CHAT_BACKGROUND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REMOVE_CHAT_BACKGROUND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REMOVE_CHAT_BACKGROUND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"remove_chat_background\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REMOVE_CHAT_BACKGROUND",
        "update": "PUT /api/directory/BLOOIO_REMOVE_CHAT_BACKGROUND",
        "patch": "PATCH /api/directory/BLOOIO_REMOVE_CHAT_BACKGROUND",
        "delete": "DELETE /api/directory/BLOOIO_REMOVE_CHAT_BACKGROUND",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REMOVE_CHAT_BACKGROUND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REMOVE_CHAT_BACKGROUND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REMOVE_CHAT_BACKGROUND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REMOVE_CHAT_BACKGROUND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REMOVE_CHAT_BACKGROUND"
    },
    {
      "key": "BLOOIO_REMOVE_CONTACT_IDENTITY",
      "type": "fn",
      "category": "blooio",
      "doc": "Detach an identity from a contact. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REMOVE_CONTACT_IDENTITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REMOVE_CONTACT_IDENTITY",
        "type": "fn",
        "what": [
          "Detach an identity from a contact.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REMOVE_CONTACT_IDENTITY]arg1[/BLOOIO_REMOVE_CONTACT_IDENTITY]",
        "tag": "[BLOOIO_REMOVE_CONTACT_IDENTITY]<arg1 …>[/BLOOIO_REMOVE_CONTACT_IDENTITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REMOVE_CONTACT_IDENTITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REMOVE_CONTACT_IDENTITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"remove_contact_identity\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REMOVE_CONTACT_IDENTITY",
        "update": "PUT /api/directory/BLOOIO_REMOVE_CONTACT_IDENTITY",
        "patch": "PATCH /api/directory/BLOOIO_REMOVE_CONTACT_IDENTITY",
        "delete": "DELETE /api/directory/BLOOIO_REMOVE_CONTACT_IDENTITY",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REMOVE_CONTACT_IDENTITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REMOVE_CONTACT_IDENTITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REMOVE_CONTACT_IDENTITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REMOVE_CONTACT_IDENTITY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REMOVE_CONTACT_IDENTITY"
    },
    {
      "key": "BLOOIO_REMOVE_CONTACT_TAG",
      "type": "fn",
      "category": "blooio",
      "doc": "Remove a single tag from a contact. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REMOVE_CONTACT_TAG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REMOVE_CONTACT_TAG",
        "type": "fn",
        "what": [
          "Remove a single tag from a contact.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REMOVE_CONTACT_TAG]arg1[/BLOOIO_REMOVE_CONTACT_TAG]",
        "tag": "[BLOOIO_REMOVE_CONTACT_TAG]<arg1 …>[/BLOOIO_REMOVE_CONTACT_TAG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REMOVE_CONTACT_TAG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REMOVE_CONTACT_TAG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"remove_contact_tag\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REMOVE_CONTACT_TAG",
        "update": "PUT /api/directory/BLOOIO_REMOVE_CONTACT_TAG",
        "patch": "PATCH /api/directory/BLOOIO_REMOVE_CONTACT_TAG",
        "delete": "DELETE /api/directory/BLOOIO_REMOVE_CONTACT_TAG",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REMOVE_CONTACT_TAG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REMOVE_CONTACT_TAG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REMOVE_CONTACT_TAG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REMOVE_CONTACT_TAG"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REMOVE_CONTACT_TAG"
    },
    {
      "key": "BLOOIO_REMOVE_GROUP_ICON",
      "type": "fn",
      "category": "blooio",
      "doc": "Remove a group's icon image. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REMOVE_GROUP_ICON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REMOVE_GROUP_ICON",
        "type": "fn",
        "what": [
          "Remove a group's icon image.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REMOVE_GROUP_ICON]arg1[/BLOOIO_REMOVE_GROUP_ICON]",
        "tag": "[BLOOIO_REMOVE_GROUP_ICON]<arg1 …>[/BLOOIO_REMOVE_GROUP_ICON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REMOVE_GROUP_ICON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REMOVE_GROUP_ICON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"remove_group_icon\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REMOVE_GROUP_ICON",
        "update": "PUT /api/directory/BLOOIO_REMOVE_GROUP_ICON",
        "patch": "PATCH /api/directory/BLOOIO_REMOVE_GROUP_ICON",
        "delete": "DELETE /api/directory/BLOOIO_REMOVE_GROUP_ICON",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REMOVE_GROUP_ICON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REMOVE_GROUP_ICON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REMOVE_GROUP_ICON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REMOVE_GROUP_ICON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REMOVE_GROUP_ICON"
    },
    {
      "key": "BLOOIO_REPLAY_WEBHOOK_DELIVERY",
      "type": "fn",
      "category": "blooio",
      "doc": "Re-send a past webhook delivery by id (wdel_...). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_REPLAY_WEBHOOK_DELIVERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_REPLAY_WEBHOOK_DELIVERY",
        "type": "fn",
        "what": [
          "Re-send a past webhook delivery by id (wdel_...).",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_REPLAY_WEBHOOK_DELIVERY]arg1[/BLOOIO_REPLAY_WEBHOOK_DELIVERY]",
        "tag": "[BLOOIO_REPLAY_WEBHOOK_DELIVERY]<arg1 …>[/BLOOIO_REPLAY_WEBHOOK_DELIVERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_REPLAY_WEBHOOK_DELIVERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_REPLAY_WEBHOOK_DELIVERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"replay_webhook_delivery\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_REPLAY_WEBHOOK_DELIVERY",
        "update": "PUT /api/directory/BLOOIO_REPLAY_WEBHOOK_DELIVERY",
        "patch": "PATCH /api/directory/BLOOIO_REPLAY_WEBHOOK_DELIVERY",
        "delete": "DELETE /api/directory/BLOOIO_REPLAY_WEBHOOK_DELIVERY",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_REPLAY_WEBHOOK_DELIVERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_REPLAY_WEBHOOK_DELIVERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_REPLAY_WEBHOOK_DELIVERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_REPLAY_WEBHOOK_DELIVERY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_REPLAY_WEBHOOK_DELIVERY"
    },
    {
      "key": "BLOOIO_ROTATE_WEBHOOK_SECRET",
      "type": "fn",
      "category": "blooio",
      "doc": "Rotate a webhook's signing secret. Returns the new secret once — store it to verify signatures. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_ROTATE_WEBHOOK_SECRET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_ROTATE_WEBHOOK_SECRET",
        "type": "fn",
        "what": [
          "Rotate a webhook's signing secret. Returns the new secret once — store it to verify signatures.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the new secret once — store it to verify signatures.",
        "example": "[BLOOIO_ROTATE_WEBHOOK_SECRET]arg1[/BLOOIO_ROTATE_WEBHOOK_SECRET]",
        "tag": "[BLOOIO_ROTATE_WEBHOOK_SECRET]<arg1 …>[/BLOOIO_ROTATE_WEBHOOK_SECRET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_ROTATE_WEBHOOK_SECRET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_ROTATE_WEBHOOK_SECRET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"rotate_webhook_secret\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_ROTATE_WEBHOOK_SECRET",
        "update": "PUT /api/directory/BLOOIO_ROTATE_WEBHOOK_SECRET",
        "patch": "PATCH /api/directory/BLOOIO_ROTATE_WEBHOOK_SECRET",
        "delete": "DELETE /api/directory/BLOOIO_ROTATE_WEBHOOK_SECRET",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_ROTATE_WEBHOOK_SECRET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_ROTATE_WEBHOOK_SECRET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_ROTATE_WEBHOOK_SECRET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_ROTATE_WEBHOOK_SECRET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_ROTATE_WEBHOOK_SECRET"
    },
    {
      "key": "BLOOIO_SEND_CHAT_MESSAGE",
      "type": "fn",
      "category": "blooio",
      "doc": "WHAT: Send a message into an existing chat (chat_...). $1=chat_id, rest = message text — plain text is safe, pipes/quotes/newlines never break it. WHEN_TO_USE: reply into a Blooio chat when you have its chat_id. EX: [BLOOIO_SEND_CHAT_MESSAGE]chat_abc123|hello there[/BLOOIO_SEND_CHAT_MESSAGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_SEND_CHAT_MESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_SEND_CHAT_MESSAGE",
        "type": "fn",
        "what": [
          "WHAT: Send a message into an existing chat (chat_...). $1=chat_id, rest = message text — plain text is safe, pipes/quotes/newlines never break it.",
          "WHEN_TO_USE: reply into a Blooio chat when you have its chat_id.",
          "EX: [BLOOIO_SEND_CHAT_MESSAGE]chat_abc123|hello there[/BLOOIO_SEND_CHAT_MESSAGE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "chat_abc123",
            "desc": "chat_id, rest = message text — plain text is safe, pipes/quotes/newlines never break it.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "hello there",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_SEND_CHAT_MESSAGE]chat_abc123|hello there[/BLOOIO_SEND_CHAT_MESSAGE]",
        "tag": "[BLOOIO_SEND_CHAT_MESSAGE]<chat_abc123>|<hello there …>[/BLOOIO_SEND_CHAT_MESSAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_SEND_CHAT_MESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_SEND_CHAT_MESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_SEND_CHAT_MESSAGE",
        "update": "PUT /api/directory/BLOOIO_SEND_CHAT_MESSAGE",
        "patch": "PATCH /api/directory/BLOOIO_SEND_CHAT_MESSAGE",
        "delete": "DELETE /api/directory/BLOOIO_SEND_CHAT_MESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_SEND_CHAT_MESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_SEND_CHAT_MESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_SEND_CHAT_MESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_SEND_CHAT_MESSAGE"
      },
      "examples": "[\"chat_abc123|hello there\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_SEND_CHAT_MESSAGE"
    },
    {
      "key": "BLOOIO_SEND_MESSAGE",
      "type": "fn",
      "category": "blooio",
      "doc": "WHAT: Low-level Blooio send. ADVANCED — needs a channel_id (ch_..., from list_channels) plus to/text. WHEN_TO_USE: only when you ALREADY have a channel_id. To just text the owner, use SEND_BY_CHANNEL instead. ARGS: full MCP args (channel_id required) EX: to text the owner use SEND_BY_CHANNEL — [SEND_BY_CHANNEL]blooio|redacted|hi[/SEND_BY_CHANNEL] MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_SEND_MESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_SEND_MESSAGE",
        "type": "fn",
        "what": [
          "WHAT: Low-level Blooio send. ADVANCED — needs a channel_id (ch_..., from list_channels) plus to/text.",
          "WHEN_TO_USE: only when you ALREADY have a channel_id. To just text the owner, use SEND_BY_CHANNEL instead.",
          "ARGS: full MCP args (channel_id required)",
          "EX: to text the owner use SEND_BY_CHANNEL — [SEND_BY_CHANNEL]blooio|redacted|hi[/SEND_BY_CHANNEL]",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "to text the owner use SEND_BY_CHANNEL — [SEND_BY_CHANNEL]blooio|redacted|hi[/SEND_BY_CHANNEL]",
        "tag": "[BLOOIO_SEND_MESSAGE]<arg1 …>[/BLOOIO_SEND_MESSAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_SEND_MESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_SEND_MESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"send_message\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_SEND_MESSAGE",
        "update": "PUT /api/directory/BLOOIO_SEND_MESSAGE",
        "patch": "PATCH /api/directory/BLOOIO_SEND_MESSAGE",
        "delete": "DELETE /api/directory/BLOOIO_SEND_MESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_SEND_MESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_SEND_MESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_SEND_MESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_SEND_MESSAGE"
      },
      "examples": "[\"to text the owner use SEND_BY_CHANNEL \\u2014 [SEND_BY_CHANNEL]blooio|redacted|hi[/SEND_BY_CHANNEL]\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_SEND_MESSAGE"
    },
    {
      "key": "BLOOIO_SEND_POLL",
      "type": "fn",
      "category": "blooio",
      "doc": "Send a native iMessage poll to a chat. Requires a title and 2+ options. Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_SEND_POLL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_SEND_POLL",
        "type": "fn",
        "what": [
          "Send a native iMessage poll to a chat. Requires a title and 2+ options. Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_SEND_POLL]arg1[/BLOOIO_SEND_POLL]",
        "tag": "[BLOOIO_SEND_POLL]<arg1 …>[/BLOOIO_SEND_POLL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_SEND_POLL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_SEND_POLL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"send_poll\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_SEND_POLL",
        "update": "PUT /api/directory/BLOOIO_SEND_POLL",
        "patch": "PATCH /api/directory/BLOOIO_SEND_POLL",
        "delete": "DELETE /api/directory/BLOOIO_SEND_POLL",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_SEND_POLL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_SEND_POLL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_SEND_POLL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_SEND_POLL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_SEND_POLL"
    },
    {
      "key": "BLOOIO_SET_TYPING",
      "type": "fn",
      "category": "blooio",
      "doc": "Show or clear a typing indicator in a chat. state='started' to show, 'stopped' to clear. Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_SET_TYPING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_SET_TYPING",
        "type": "fn",
        "what": [
          "Show or clear a typing indicator in a chat. state='started' to show, 'stopped' to clear. Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_SET_TYPING]arg1[/BLOOIO_SET_TYPING]",
        "tag": "[BLOOIO_SET_TYPING]<arg1 …>[/BLOOIO_SET_TYPING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_SET_TYPING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_SET_TYPING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"set_typing\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_SET_TYPING",
        "update": "PUT /api/directory/BLOOIO_SET_TYPING",
        "patch": "PATCH /api/directory/BLOOIO_SET_TYPING",
        "delete": "DELETE /api/directory/BLOOIO_SET_TYPING",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_SET_TYPING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_SET_TYPING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_SET_TYPING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_SET_TYPING"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_SET_TYPING"
    },
    {
      "key": "BLOOIO_SHARE_CONTACT_CARD",
      "type": "fn",
      "category": "blooio",
      "doc": "Share the sender's contact card into a chat (helps the recipient see your name/photo). Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_SHARE_CONTACT_CARD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_SHARE_CONTACT_CARD",
        "type": "fn",
        "what": [
          "Share the sender's contact card into a chat (helps the recipient see your name/photo). Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_SHARE_CONTACT_CARD]arg1[/BLOOIO_SHARE_CONTACT_CARD]",
        "tag": "[BLOOIO_SHARE_CONTACT_CARD]<arg1 …>[/BLOOIO_SHARE_CONTACT_CARD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_SHARE_CONTACT_CARD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_SHARE_CONTACT_CARD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"share_contact_card\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_SHARE_CONTACT_CARD",
        "update": "PUT /api/directory/BLOOIO_SHARE_CONTACT_CARD",
        "patch": "PATCH /api/directory/BLOOIO_SHARE_CONTACT_CARD",
        "delete": "DELETE /api/directory/BLOOIO_SHARE_CONTACT_CARD",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_SHARE_CONTACT_CARD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_SHARE_CONTACT_CARD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_SHARE_CONTACT_CARD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_SHARE_CONTACT_CARD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_SHARE_CONTACT_CARD"
    },
    {
      "key": "BLOOIO_TURN_PHASE_A",
      "type": "flow",
      "category": "flow",
      "doc": "Phase A of the inbound turn: dispatch ROUTER with the inbound text and return whatever the router emits. Channel webhooks should call this instead of building a turn job by hand. $1=inbound text from the sender. $2=optional sender phone (passed through to ROUTER as context). WHEN_TO_USE: \"process inbound turn from <user>\" or as the body of the /blooio webhook collapsed shim",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_TURN_PHASE_A",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_TURN_PHASE_A",
        "type": "flow",
        "what": [
          "Phase A of the inbound turn: dispatch ROUTER with the inbound text and return whatever the router emits. Channel webhooks should call this instead of building a turn job by hand.",
          "$1=inbound text from the sender. $2=optional sender phone (passed through to ROUTER as context).",
          "WHEN_TO_USE: \"process inbound turn from <user>\" or as the body of the /blooio webhook collapsed shim"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "inbound text from the sender. $2=optional sender phone (passed through to ROUTER as context).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "whatever the router emits. Channel webhooks should call this instead of building a turn job by hand.",
        "example": "[BLOOIO_TURN_PHASE_A]arg1[/BLOOIO_TURN_PHASE_A]",
        "tag": "[BLOOIO_TURN_PHASE_A]<arg1 …>[/BLOOIO_TURN_PHASE_A]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_TURN_PHASE_A\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_TURN_PHASE_A  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BLOOIO_TURN_PHASE_A",
        "update": "PUT /api/directory/BLOOIO_TURN_PHASE_A",
        "patch": "PATCH /api/directory/BLOOIO_TURN_PHASE_A",
        "delete": "DELETE /api/directory/BLOOIO_TURN_PHASE_A",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_TURN_PHASE_A\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_TURN_PHASE_A\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_TURN_PHASE_A\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_TURN_PHASE_A"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_TURN_PHASE_A"
    },
    {
      "key": "BLOOIO_UPDATE_CHANNEL_PROFILE",
      "type": "fn",
      "category": "blooio",
      "doc": "Update a channel's profile metadata (e.g. display name, avatar URL). The profile object is stored verbatim. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_UPDATE_CHANNEL_PROFILE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_UPDATE_CHANNEL_PROFILE",
        "type": "fn",
        "what": [
          "Update a channel's profile metadata (e.g. display name, avatar URL). The profile object is stored verbatim.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_UPDATE_CHANNEL_PROFILE]arg1[/BLOOIO_UPDATE_CHANNEL_PROFILE]",
        "tag": "[BLOOIO_UPDATE_CHANNEL_PROFILE]<arg1 …>[/BLOOIO_UPDATE_CHANNEL_PROFILE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_UPDATE_CHANNEL_PROFILE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_UPDATE_CHANNEL_PROFILE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"update_channel_profile\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_UPDATE_CHANNEL_PROFILE",
        "update": "PUT /api/directory/BLOOIO_UPDATE_CHANNEL_PROFILE",
        "patch": "PATCH /api/directory/BLOOIO_UPDATE_CHANNEL_PROFILE",
        "delete": "DELETE /api/directory/BLOOIO_UPDATE_CHANNEL_PROFILE",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_UPDATE_CHANNEL_PROFILE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_UPDATE_CHANNEL_PROFILE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_UPDATE_CHANNEL_PROFILE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_UPDATE_CHANNEL_PROFILE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_UPDATE_CHANNEL_PROFILE"
    },
    {
      "key": "BLOOIO_UPDATE_CHAT",
      "type": "fn",
      "category": "blooio",
      "doc": "Update a chat: set state to 'open' or 'closed', and/or merge metadata. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_UPDATE_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_UPDATE_CHAT",
        "type": "fn",
        "what": [
          "Update a chat: set state to 'open' or 'closed', and/or merge metadata.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_UPDATE_CHAT]arg1[/BLOOIO_UPDATE_CHAT]",
        "tag": "[BLOOIO_UPDATE_CHAT]<arg1 …>[/BLOOIO_UPDATE_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_UPDATE_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_UPDATE_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"update_chat\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_UPDATE_CHAT",
        "update": "PUT /api/directory/BLOOIO_UPDATE_CHAT",
        "patch": "PATCH /api/directory/BLOOIO_UPDATE_CHAT",
        "delete": "DELETE /api/directory/BLOOIO_UPDATE_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_UPDATE_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_UPDATE_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_UPDATE_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_UPDATE_CHAT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_UPDATE_CHAT"
    },
    {
      "key": "BLOOIO_UPDATE_CONTACT",
      "type": "fn",
      "category": "blooio",
      "doc": "Rename a contact. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_UPDATE_CONTACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_UPDATE_CONTACT",
        "type": "fn",
        "what": [
          "Rename a contact.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_UPDATE_CONTACT]arg1[/BLOOIO_UPDATE_CONTACT]",
        "tag": "[BLOOIO_UPDATE_CONTACT]<arg1 …>[/BLOOIO_UPDATE_CONTACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_UPDATE_CONTACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_UPDATE_CONTACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"update_contact\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_UPDATE_CONTACT",
        "update": "PUT /api/directory/BLOOIO_UPDATE_CONTACT",
        "patch": "PATCH /api/directory/BLOOIO_UPDATE_CONTACT",
        "delete": "DELETE /api/directory/BLOOIO_UPDATE_CONTACT",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_UPDATE_CONTACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_UPDATE_CONTACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_UPDATE_CONTACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_UPDATE_CONTACT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_UPDATE_CONTACT"
    },
    {
      "key": "BLOOIO_UPDATE_GROUP",
      "type": "fn",
      "category": "blooio",
      "doc": "Rename a group. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_UPDATE_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_UPDATE_GROUP",
        "type": "fn",
        "what": [
          "Rename a group.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_UPDATE_GROUP]arg1[/BLOOIO_UPDATE_GROUP]",
        "tag": "[BLOOIO_UPDATE_GROUP]<arg1 …>[/BLOOIO_UPDATE_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_UPDATE_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_UPDATE_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"update_group\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_UPDATE_GROUP",
        "update": "PUT /api/directory/BLOOIO_UPDATE_GROUP",
        "patch": "PATCH /api/directory/BLOOIO_UPDATE_GROUP",
        "delete": "DELETE /api/directory/BLOOIO_UPDATE_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_UPDATE_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_UPDATE_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_UPDATE_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_UPDATE_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_UPDATE_GROUP"
    },
    {
      "key": "BLOOIO_UPDATE_WEBHOOK",
      "type": "fn",
      "category": "blooio",
      "doc": "Update a webhook: change url, event_types, or status ('active'/'disabled'). MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_UPDATE_WEBHOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_UPDATE_WEBHOOK",
        "type": "fn",
        "what": [
          "Update a webhook: change url, event_types, or status ('active'/'disabled').",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_UPDATE_WEBHOOK]arg1[/BLOOIO_UPDATE_WEBHOOK]",
        "tag": "[BLOOIO_UPDATE_WEBHOOK]<arg1 …>[/BLOOIO_UPDATE_WEBHOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_UPDATE_WEBHOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_UPDATE_WEBHOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"update_webhook\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_UPDATE_WEBHOOK",
        "update": "PUT /api/directory/BLOOIO_UPDATE_WEBHOOK",
        "patch": "PATCH /api/directory/BLOOIO_UPDATE_WEBHOOK",
        "delete": "DELETE /api/directory/BLOOIO_UPDATE_WEBHOOK",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_UPDATE_WEBHOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_UPDATE_WEBHOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_UPDATE_WEBHOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_UPDATE_WEBHOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_UPDATE_WEBHOOK"
    },
    {
      "key": "BLOOIO_VOTE_POLL",
      "type": "fn",
      "category": "blooio",
      "doc": "Cast (or toggle) a vote on a poll by option_index (0-based) or option text. Blooio channels only. MCP: https://mcp.blooio.com/v4",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BLOOIO_VOTE_POLL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BLOOIO_VOTE_POLL",
        "type": "fn",
        "what": [
          "Cast (or toggle) a vote on a poll by option_index (0-based) or option text. Blooio channels only.",
          "MCP: https://mcp.blooio.com/v4"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BLOOIO_VOTE_POLL]arg1[/BLOOIO_VOTE_POLL]",
        "tag": "[BLOOIO_VOTE_POLL]<arg1 …>[/BLOOIO_VOTE_POLL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BLOOIO_VOTE_POLL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BLOOIO_VOTE_POLL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.blooio.com/v4\",\"vote_poll\",\"$1+\",\"BLOOIO_API_KEY_PEPPERUP\"]",
      "edit": {
        "read": "GET /api/directory/BLOOIO_VOTE_POLL",
        "update": "PUT /api/directory/BLOOIO_VOTE_POLL",
        "patch": "PATCH /api/directory/BLOOIO_VOTE_POLL",
        "delete": "DELETE /api/directory/BLOOIO_VOTE_POLL",
        "invoke": "POST /api/dispatch {\"key\":\"BLOOIO_VOTE_POLL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BLOOIO_VOTE_POLL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BLOOIO_VOTE_POLL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BLOOIO_VOTE_POLL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BLOOIO_VOTE_POLL"
    },
    {
      "key": "BOARD_TICK",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: run the owner sheet. Executes every APPROVE / REJECT / SAVE / PULL / RUN the owner typed in column A, and writes each result back beside the row that asked for it. NEVER sync on a schedule: sync rewrites every tab from scratch, so it erases the answers the owner is reading and anything he is part-way through typing. Sync is an explicit act, never a timer. ARGS: none. WHEN_TO_USE: on a schedule, so what the owner types in the sheet happens by itself.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BOARD_TICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BOARD_TICK",
        "type": "http",
        "what": [
          "WHAT: run the owner sheet. Executes every APPROVE / REJECT / SAVE / PULL / RUN the owner typed in",
          "column A, and writes each result back beside the row that asked for it.",
          "NEVER sync on a schedule: sync rewrites every tab from scratch, so it erases the answers the owner",
          "is reading and anything he is part-way through typing. Sync is an explicit act, never a timer.",
          "ARGS: none. WHEN_TO_USE: on a schedule, so what the owner types in the sheet happens by itself."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[BOARD_TICK][/BOARD_TICK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BOARD_TICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BOARD_TICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"tick\":1}",
      "edit": {
        "read": "GET /api/directory/BOARD_TICK",
        "update": "PUT /api/directory/BOARD_TICK",
        "patch": "PATCH /api/directory/BOARD_TICK",
        "delete": "DELETE /api/directory/BOARD_TICK",
        "invoke": "POST /api/dispatch {\"key\":\"BOARD_TICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BOARD_TICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BOARD_TICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BOARD_TICK"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BOARD_TICK"
    },
    {
      "key": "BREAKER_PROBE",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Deliberately unauthenticated call that returns 401 — exercises the auth circuit breaker. WHEN_TO_USE: never in normal operation; verification only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BREAKER_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BREAKER_PROBE",
        "type": "http",
        "what": [
          "WHAT: Deliberately unauthenticated call that returns 401 — exercises the auth circuit breaker.",
          "WHEN_TO_USE: never in normal operation; verification only."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "401 — exercises the auth circuit breaker.",
        "example": null,
        "tag": "[BREAKER_PROBE][/BREAKER_PROBE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BREAKER_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BREAKER_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"to\":\"probe\",\"subject\":\"probe\",\"text\":\"probe\"}",
      "edit": {
        "read": "GET /api/directory/BREAKER_PROBE",
        "update": "PUT /api/directory/BREAKER_PROBE",
        "patch": "PATCH /api/directory/BREAKER_PROBE",
        "delete": "DELETE /api/directory/BREAKER_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"BREAKER_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BREAKER_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BREAKER_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BREAKER_PROBE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BREAKER_PROBE"
    },
    {
      "key": "BROWSER_FETCH",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_FETCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_FETCH",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_FETCH]arg1[/BROWSER_FETCH]",
        "tag": "[BROWSER_FETCH]<arg1>[/BROWSER_FETCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_FETCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_FETCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sSL \\\"$1\\\" | head -c 20000\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/BROWSER_FETCH",
        "update": "PUT /api/directory/BROWSER_FETCH",
        "patch": "PATCH /api/directory/BROWSER_FETCH",
        "delete": "DELETE /api/directory/BROWSER_FETCH",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_FETCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_FETCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_FETCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_FETCH"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_FETCH"
    },
    {
      "key": "BROWSER_JSON",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Extract LLM-structured JSON from a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, prompt?, response_format?} WHEN_TO_USE: \"pull <fields> as json from <url>\" ARGS: see content EX: [BROWSER_JSON]arg2[/BROWSER_JSON]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_JSON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_JSON",
        "type": "http",
        "what": [
          "WHAT: Extract LLM-structured JSON from a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, prompt?, response_format?}",
          "WHEN_TO_USE: \"pull <fields> as json from <url>\"",
          "ARGS: see content",
          "EX: [BROWSER_JSON]arg2[/BROWSER_JSON]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "account_id, $2=JSON body {url, prompt?, response_format?}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_JSON]arg2[/BROWSER_JSON]",
        "tag": "[BROWSER_JSON]<arg2>|<arg2>[/BROWSER_JSON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_JSON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_JSON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/BROWSER_JSON",
        "update": "PUT /api/directory/BROWSER_JSON",
        "patch": "PATCH /api/directory/BROWSER_JSON",
        "delete": "DELETE /api/directory/BROWSER_JSON",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_JSON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_JSON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_JSON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_JSON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_JSON"
    },
    {
      "key": "BROWSER_LINKS",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Extract all links from a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url} WHEN_TO_USE: \"what links does <url> have\" ARGS: see content EX: [BROWSER_LINKS]arg2[/BROWSER_LINKS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_LINKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_LINKS",
        "type": "http",
        "what": [
          "WHAT: Extract all links from a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url}",
          "WHEN_TO_USE: \"what links does <url> have\"",
          "ARGS: see content",
          "EX: [BROWSER_LINKS]arg2[/BROWSER_LINKS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "account_id, $2=JSON body {url}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_LINKS]arg2[/BROWSER_LINKS]",
        "tag": "[BROWSER_LINKS]<arg2>|<arg2>[/BROWSER_LINKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_LINKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_LINKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/BROWSER_LINKS",
        "update": "PUT /api/directory/BROWSER_LINKS",
        "patch": "PATCH /api/directory/BROWSER_LINKS",
        "delete": "DELETE /api/directory/BROWSER_LINKS",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_LINKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_LINKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_LINKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_LINKS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_LINKS"
    },
    {
      "key": "BROWSER_MARKDOWN",
      "type": "fn",
      "category": "cloudflare",
      "doc": "WHAT: Render any URL to Markdown (Cloudflare Browser Rendering via the browser MCP — the same lane CF_BROWSER_GET_URL_MARKDOWN uses). WHEN_TO_USE: you need the readable text of a page, JS-rendered included. ARGS: $1 = the URL EX: [BROWSER_MARKDOWN]https://miscsubjects.com/start[/BROWSER_MARKDOWN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_MARKDOWN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_MARKDOWN",
        "type": "fn",
        "what": [
          "WHAT: Render any URL to Markdown (Cloudflare Browser Rendering via the browser MCP — the same lane CF_BROWSER_GET_URL_MARKDOWN uses).",
          "WHEN_TO_USE: you need the readable text of a page, JS-rendered included.",
          "ARGS: $1 = the URL",
          "EX: [BROWSER_MARKDOWN]https://miscsubjects.com/start[/BROWSER_MARKDOWN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "https://miscsubjects.com/start",
            "desc": "the URL",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BROWSER_MARKDOWN]https://miscsubjects.com/start[/BROWSER_MARKDOWN]",
        "tag": "[BROWSER_MARKDOWN]<https://miscsubjects.com/start …>[/BROWSER_MARKDOWN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_MARKDOWN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_MARKDOWN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/sse\",\"get_url_markdown\",\"$1+\",\"browser\"]",
      "edit": {
        "read": "GET /api/directory/BROWSER_MARKDOWN",
        "update": "PUT /api/directory/BROWSER_MARKDOWN",
        "patch": "PATCH /api/directory/BROWSER_MARKDOWN",
        "delete": "DELETE /api/directory/BROWSER_MARKDOWN",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_MARKDOWN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_MARKDOWN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_MARKDOWN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_MARKDOWN"
      },
      "examples": "[BROWSER_MARKDOWN]https://miscsubjects.com/start[/BROWSER_MARKDOWN]",
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_MARKDOWN"
    },
    {
      "key": "BROWSER_PDF",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Render a URL as PDF via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url}. Returns binary PDF WHEN_TO_USE: \"save <url> as PDF\" ARGS: see content EX: [BROWSER_PDF]arg2[/BROWSER_PDF]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_PDF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_PDF",
        "type": "http",
        "what": [
          "WHAT: Render a URL as PDF via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url}. Returns binary PDF",
          "WHEN_TO_USE: \"save <url> as PDF\"",
          "ARGS: see content",
          "EX: [BROWSER_PDF]arg2[/BROWSER_PDF]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "account_id, $2=JSON body {url}. Returns binary PDF",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "binary PDF",
        "example": "[BROWSER_PDF]arg2[/BROWSER_PDF]",
        "tag": "[BROWSER_PDF]<arg2>|<arg2>[/BROWSER_PDF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_PDF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_PDF  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/BROWSER_PDF",
        "update": "PUT /api/directory/BROWSER_PDF",
        "patch": "PATCH /api/directory/BROWSER_PDF",
        "delete": "DELETE /api/directory/BROWSER_PDF",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_PDF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_PDF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_PDF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_PDF"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_PDF"
    },
    {
      "key": "BROWSER_PLAYWRIGHT",
      "type": "http",
      "category": "desktop",
      "doc": "WHAT: Run a Playwright CLI command on the Mac (npx -y playwright …). g. \"screenshot https://x.com /tmp/x.png\". First run downloads browsers (~2 min). For full browser automation absorb the playwright MCP server via MCP_PROBE WHEN_TO_USE: you need to browser playwright ARGS: the playwright arguments, e EX: [BROWSER_PLAYWRIGHT]arg1[/BROWSER_PLAYWRIGHT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_PLAYWRIGHT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_PLAYWRIGHT",
        "type": "http",
        "what": [
          "WHAT: Run a Playwright CLI command on the Mac (npx -y playwright …). g. \"screenshot https://x.com /tmp/x.png\". First run downloads browsers (~2 min). For full browser automation absorb the playwright MCP server via MCP_PROBE",
          "WHEN_TO_USE: you need to browser playwright",
          "ARGS: the playwright arguments, e",
          "EX: [BROWSER_PLAYWRIGHT]arg1[/BROWSER_PLAYWRIGHT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_PLAYWRIGHT]arg1[/BROWSER_PLAYWRIGHT]",
        "tag": "[BROWSER_PLAYWRIGHT]<arg1 …>[/BROWSER_PLAYWRIGHT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_PLAYWRIGHT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_PLAYWRIGHT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"npx -y playwright $1+\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/BROWSER_PLAYWRIGHT",
        "update": "PUT /api/directory/BROWSER_PLAYWRIGHT",
        "patch": "PATCH /api/directory/BROWSER_PLAYWRIGHT",
        "delete": "DELETE /api/directory/BROWSER_PLAYWRIGHT",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_PLAYWRIGHT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_PLAYWRIGHT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_PLAYWRIGHT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_PLAYWRIGHT"
      },
      "examples": "[\"screenshot https://miscsubjects.com/a/oip /tmp/oip_claude_web_drill.png\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_PLAYWRIGHT"
    },
    {
      "key": "BROWSER_SCRAPE",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Extract structured data by selectors via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, elements:[{selector}]} WHEN_TO_USE: \"scrape <selector> from <url>\" ARGS: see content EX: [BROWSER_SCRAPE]arg2[/BROWSER_SCRAPE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_SCRAPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_SCRAPE",
        "type": "http",
        "what": [
          "WHAT: Extract structured data by selectors via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, elements:[{selector}]}",
          "WHEN_TO_USE: \"scrape <selector> from <url>\"",
          "ARGS: see content",
          "EX: [BROWSER_SCRAPE]arg2[/BROWSER_SCRAPE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "account_id, $2=JSON body {url, elements:[{selector}]}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_SCRAPE]arg2[/BROWSER_SCRAPE]",
        "tag": "[BROWSER_SCRAPE]<arg2>|<arg2>[/BROWSER_SCRAPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_SCRAPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_SCRAPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/BROWSER_SCRAPE",
        "update": "PUT /api/directory/BROWSER_SCRAPE",
        "patch": "PATCH /api/directory/BROWSER_SCRAPE",
        "delete": "DELETE /api/directory/BROWSER_SCRAPE",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_SCRAPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_SCRAPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_SCRAPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_SCRAPE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_SCRAPE"
    },
    {
      "key": "BROWSER_SCREENSHOT",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Get a PNG screenshot of a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, screenshotOptions?}. Returns binary PNG WHEN_TO_USE: \"screenshot <url>\" ARGS: see content EX: [BROWSER_SCREENSHOT]arg2[/BROWSER_SCREENSHOT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_SCREENSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_SCREENSHOT",
        "type": "http",
        "what": [
          "WHAT: Get a PNG screenshot of a URL via Cloudflare Browser Rendering. $1=account_id, $2=JSON body {url, screenshotOptions?}. Returns binary PNG",
          "WHEN_TO_USE: \"screenshot <url>\"",
          "ARGS: see content",
          "EX: [BROWSER_SCREENSHOT]arg2[/BROWSER_SCREENSHOT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "account_id, $2=JSON body {url, screenshotOptions?}. Returns binary PNG",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "binary PNG",
        "example": "[BROWSER_SCREENSHOT]arg2[/BROWSER_SCREENSHOT]",
        "tag": "[BROWSER_SCREENSHOT]<arg2>|<arg2>[/BROWSER_SCREENSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_SCREENSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_SCREENSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/BROWSER_SCREENSHOT",
        "update": "PUT /api/directory/BROWSER_SCREENSHOT",
        "patch": "PATCH /api/directory/BROWSER_SCREENSHOT",
        "delete": "DELETE /api/directory/BROWSER_SCREENSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_SCREENSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_SCREENSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_SCREENSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_SCREENSHOT"
      },
      "examples": "[\"42da505c278029ba8f199892661e0035|{\\\"url\\\":\\\"https://loopbiolabs.org/\\\",\\\"screenshotOptions\\\":{\\\"fullPage\\\":true}}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_SCREENSHOT"
    },
    {
      "key": "BROWSER_USE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Run the browser-use agent (AI browser driver). Installed at bridge/.venv-browser-use (Python 3.12). Needs GROK_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY in ~/.config/grok-bridge.env WHEN_TO_USE: you need an LLM agent to drive a real browser on the owner's Mac ARGS: task EX: [BROWSER_USE]open google.com and tell me the first headline[/BROWSER_USE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BROWSER_USE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BROWSER_USE",
        "type": "http",
        "what": [
          "WHAT: Run the browser-use agent (AI browser driver). Installed at bridge/.venv-browser-use (Python 3.12). Needs GROK_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY in ~/.config/grok-bridge.env",
          "WHEN_TO_USE: you need an LLM agent to drive a real browser on the owner's Mac",
          "ARGS: task",
          "EX: [BROWSER_USE]open google.com and tell me the first headline[/BROWSER_USE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "open google.com and tell me the first headline",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[BROWSER_USE]open google.com and tell me the first headline[/BROWSER_USE]",
        "tag": "[BROWSER_USE]<open google.com and tell me the first headline>[/BROWSER_USE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BROWSER_USE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BROWSER_USE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"/Users/the owner/miscsubjects-pages/bridge/.venv-browser-use/bin/python /Users/the owner/miscsubjects-pages/bridge/run_browser_use_task.py \\\"$1\\\"\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/BROWSER_USE",
        "update": "PUT /api/directory/BROWSER_USE",
        "patch": "PATCH /api/directory/BROWSER_USE",
        "delete": "DELETE /api/directory/BROWSER_USE",
        "invoke": "POST /api/dispatch {\"key\":\"BROWSER_USE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BROWSER_USE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BROWSER_USE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BROWSER_USE"
      },
      "examples": "[\"probe\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BROWSER_USE"
    },
    {
      "key": "BUILDER",
      "type": "agent",
      "category": "agents",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[BUILDER][/BUILDER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BUILDER",
        "update": "PUT /api/directory/BUILDER",
        "patch": "PATCH /api/directory/BUILDER",
        "delete": "DELETE /api/directory/BUILDER",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER"
    },
    {
      "key": "BUILDER_ADD",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: append a row to builder_queue. status defaults to \"idea\", priority to 5. WHEN_TO_USE: the owner says \"I want to build X\" or \"track X\" or anything that should become work. ARGS: title|body|priority(1-9, default 5). EX: BUILDER_ADD \"iOS share-sheet shortcut\"|\"create a Shortcut that POSTs the current Safari URL to /api/phone/in with action=share_url\"|3 TESTS: builder_queue grows by 1; SELECT id, title, status FROM builder_queue ORDER BY id DESC LIMIT 1 returns the new row.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_ADD",
        "type": "fn",
        "what": [
          "WHAT: append a row to builder_queue. status defaults to \"idea\", priority to 5.",
          "WHEN_TO_USE: the owner says \"I want to build X\" or \"track X\" or anything that should become work.",
          "ARGS: title|body|priority(1-9, default 5).",
          "EX: BUILDER_ADD \"iOS share-sheet shortcut\"|\"create a Shortcut that POSTs the current Safari URL to /api/phone/in with action=share_url\"|3",
          "TESTS: builder_queue grows by 1; SELECT id, title, status FROM builder_queue ORDER BY id DESC LIMIT 1 returns the new row."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the new row.",
        "example": "BUILDER_ADD \"iOS share-sheet shortcut\"|\"create a Shortcut that POSTs the current Safari URL to /api/phone/in with action=share_url\"|3",
        "tag": "[BUILDER_ADD]<arg1>|<arg2>|<arg3>[/BUILDER_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/BUILDER_ADD",
        "update": "PUT /api/directory/BUILDER_ADD",
        "patch": "PATCH /api/directory/BUILDER_ADD",
        "delete": "DELETE /api/directory/BUILDER_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_ADD"
      },
      "examples": "[\"Brave Search MCP server|brave/brave-search-mcp-server: web search independent of Grok populate. Gate: one query returns results.|4\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_ADD"
    },
    {
      "key": "BUILDER_DELETE",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: delete a row from builder_queue. ARGS: id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_DELETE",
        "type": "fn",
        "what": [
          "WHAT: delete a row from builder_queue. ARGS: id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BUILDER_DELETE]arg1[/BUILDER_DELETE]",
        "tag": "[BUILDER_DELETE]<arg1>[/BUILDER_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/BUILDER_DELETE",
        "update": "PUT /api/directory/BUILDER_DELETE",
        "patch": "PATCH /api/directory/BUILDER_DELETE",
        "delete": "DELETE /api/directory/BUILDER_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_DELETE"
      },
      "examples": "[\"22\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_DELETE"
    },
    {
      "key": "BUILDER_DONE",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: mark id done + record proof (link/exhibit). ARGS: id|proof. WHEN_TO_USE: shipped; record what proves it shipped.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_DONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_DONE",
        "type": "fn",
        "what": [
          "WHAT: mark id done + record proof (link/exhibit). ARGS: id|proof.",
          "WHEN_TO_USE: shipped; record what proves it shipped."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BUILDER_DONE]arg1|arg2[/BUILDER_DONE]",
        "tag": "[BUILDER_DONE]<arg1>|<arg2>[/BUILDER_DONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_DONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_DONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/BUILDER_DONE",
        "update": "PUT /api/directory/BUILDER_DONE",
        "patch": "PATCH /api/directory/BUILDER_DONE",
        "delete": "DELETE /api/directory/BUILDER_DONE",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_DONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_DONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_DONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_DONE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_DONE"
    },
    {
      "key": "BUILDER_LIST",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: return the current builder queue as JSON, sorted by priority. ARGS: optional status filter (idea|queued|in_progress|blocked|done|wont). WHEN_TO_USE: \"what am I building\", \"show me the queue\", \"what's next\". ARGS: status (optional, default = exclude done+wont).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_LIST",
        "type": "fn",
        "what": [
          "WHAT: return the current builder queue as JSON, sorted by priority. ARGS: optional status filter (idea|queued|in_progress|blocked|done|wont).",
          "WHEN_TO_USE: \"what am I building\", \"show me the queue\", \"what's next\".",
          "ARGS: status (optional, default = exclude done+wont)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the current builder queue as JSON, sorted by priority. ARGS: optional status filter (idea|queued|in_progress|blocked|done|wont).",
        "example": "[BUILDER_LIST]arg1[/BUILDER_LIST]",
        "tag": "[BUILDER_LIST]<arg1>[/BUILDER_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/BUILDER_LIST",
        "update": "PUT /api/directory/BUILDER_LIST",
        "patch": "PATCH /api/directory/BUILDER_LIST",
        "delete": "DELETE /api/directory/BUILDER_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_LIST"
      },
      "examples": "[\"idea\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_LIST"
    },
    {
      "key": "BUILDER_NEXT",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: pick the single highest-priority queued item. WHEN_TO_USE: \"what should I work on\", \"give me the next thing\". ARGS: (none).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_NEXT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_NEXT",
        "type": "fn",
        "what": [
          "WHAT: pick the single highest-priority queued item.",
          "WHEN_TO_USE: \"what should I work on\", \"give me the next thing\".",
          "ARGS: (none)."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[BUILDER_NEXT][/BUILDER_NEXT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_NEXT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_NEXT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/BUILDER_NEXT",
        "update": "PUT /api/directory/BUILDER_NEXT",
        "patch": "PATCH /api/directory/BUILDER_NEXT",
        "delete": "DELETE /api/directory/BUILDER_NEXT",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_NEXT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_NEXT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_NEXT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_NEXT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_NEXT"
    },
    {
      "key": "BUILDER_PATCH",
      "type": "fn",
      "category": "builder",
      "doc": "WHAT: update one row's status/priority/title/body/blocker/proof. ARGS: id|field|value. WHEN_TO_USE: refine an item, move it to in_progress, mark blocker, etc. EX: BUILDER_PATCH 7|status|in_progress",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILDER_PATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILDER_PATCH",
        "type": "fn",
        "what": [
          "WHAT: update one row's status/priority/title/body/blocker/proof. ARGS: id|field|value.",
          "WHEN_TO_USE: refine an item, move it to in_progress, mark blocker, etc.",
          "EX: BUILDER_PATCH 7|status|in_progress"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "BUILDER_PATCH 7|status|in_progress",
        "tag": "[BUILDER_PATCH]<arg1>|<arg2>|<arg3>[/BUILDER_PATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILDER_PATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILDER_PATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/BUILDER_PATCH",
        "update": "PUT /api/directory/BUILDER_PATCH",
        "patch": "PATCH /api/directory/BUILDER_PATCH",
        "delete": "DELETE /api/directory/BUILDER_PATCH",
        "invoke": "POST /api/dispatch {\"key\":\"BUILDER_PATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILDER_PATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILDER_PATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILDER_PATCH"
      },
      "examples": "[\"37|status|in_progress\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILDER_PATCH"
    },
    {
      "key": "BUILD_LANDSCAPE",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Read the graph-derived table of comparison targets, source-backed claim voxels, proof state, and research queue.\\n# ARGS: none. Add ?next=1 for one queued research object.\\n# EX: [BUILD_LANDSCAPE][/BUILD_LANDSCAPE]\\n[]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILD_LANDSCAPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILD_LANDSCAPE",
        "type": "http",
        "what": [
          "WHAT: Read the graph-derived table of comparison targets, source-backed claim voxels, proof state, and research queue.\\n# ARGS: none. Add ?next=1 for one queued research object.\\n# EX: [BUILD_LANDSCAPE][/BUILD_LANDSCAPE]\\n[]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[BUILD_LANDSCAPE][/BUILD_LANDSCAPE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILD_LANDSCAPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILD_LANDSCAPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BUILD_LANDSCAPE",
        "update": "PUT /api/directory/BUILD_LANDSCAPE",
        "patch": "PATCH /api/directory/BUILD_LANDSCAPE",
        "delete": "DELETE /api/directory/BUILD_LANDSCAPE",
        "invoke": "POST /api/dispatch {\"key\":\"BUILD_LANDSCAPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILD_LANDSCAPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILD_LANDSCAPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILD_LANDSCAPE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILD_LANDSCAPE"
    },
    {
      "key": "BUILD_MESSAGE",
      "type": "flow",
      "category": "routing",
      "doc": "Send a message to the build itself. $1=message text. This creates a self-referential loop: the build routes the message back to itself as if it were a new inbound turn.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILD_MESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILD_MESSAGE",
        "type": "flow",
        "what": [
          "Send a message to the build itself. $1=message text. This creates a self-referential loop: the build routes the message back to itself as if it were a new inbound turn."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "message text. This creates a self-referential loop: the build routes the message back to itself as if it were a new inbound turn.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[BUILD_MESSAGE]arg1[/BUILD_MESSAGE]",
        "tag": "[BUILD_MESSAGE]<arg1>[/BUILD_MESSAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILD_MESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILD_MESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/BUILD_MESSAGE",
        "update": "PUT /api/directory/BUILD_MESSAGE",
        "patch": "PATCH /api/directory/BUILD_MESSAGE",
        "delete": "DELETE /api/directory/BUILD_MESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"BUILD_MESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILD_MESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILD_MESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILD_MESSAGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=BUILD_MESSAGE"
    },
    {
      "key": "BUILD_VOICE_IN",
      "type": "fn",
      "category": "voice",
      "doc": "WHAT: Mac/iOS voice URL -> STT -> Grok Build -> ara voice reply plus same-word carbon-copy text (not ROUTER). WHEN_TO_USE: build_voice action on /api/phone/in, or Mac hotkey after R2 upload. ARGS: public audio URL RETURNS: JSON with audio_url plus carbon_copy result; voice-only is incomplete. EX: [BUILD_VOICE_IN]https://miscsubjects.com/img/aud/foo.m4a[/BUILD_VOICE_IN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "BUILD_VOICE_IN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "BUILD_VOICE_IN",
        "type": "fn",
        "what": [
          "WHAT: Mac/iOS voice URL -> STT -> Grok Build -> ara voice reply plus same-word carbon-copy text (not ROUTER).",
          "WHEN_TO_USE: build_voice action on /api/phone/in, or Mac hotkey after R2 upload.",
          "ARGS: public audio URL",
          "RETURNS: JSON with audio_url plus carbon_copy result; voice-only is incomplete.",
          "EX: [BUILD_VOICE_IN]https://miscsubjects.com/img/aud/foo.m4a[/BUILD_VOICE_IN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "https://miscsubjects.com/img/aud/foo.m4a",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[BUILD_VOICE_IN]https://miscsubjects.com/img/aud/foo.m4a[/BUILD_VOICE_IN]",
        "tag": "[BUILD_VOICE_IN]<https://miscsubjects.com/img/aud/foo.m4a>[/BUILD_VOICE_IN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"BUILD_VOICE_IN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/BUILD_VOICE_IN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/BUILD_VOICE_IN",
        "update": "PUT /api/directory/BUILD_VOICE_IN",
        "patch": "PATCH /api/directory/BUILD_VOICE_IN",
        "delete": "DELETE /api/directory/BUILD_VOICE_IN",
        "invoke": "POST /api/dispatch {\"key\":\"BUILD_VOICE_IN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"BUILD_VOICE_IN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"BUILD_VOICE_IN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/BUILD_VOICE_IN"
      },
      "examples": "[\"https://miscsubjects.com/img/aud/foo.m4a\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=BUILD_VOICE_IN"
    },
    {
      "key": "CANONICAL_MANUAL",
      "type": "http",
      "category": null,
      "doc": "WHAT: The canonical invocation manual as markdown: how to do anything on this build by every surface (POST, GET with a token, tags, MCP, sheet cell, browser model), with the exact recorded request and response for each. WHEN_TO_USE: a model or person with zero context needs to know how to call, prove, delegate, compose or publish here. Read it before guessing any call. ARGS: none EX: [CANONICAL_MANUAL][/CANONICAL_MANUAL] OUTPUT: the markdown bundle of /a/canonical-invocation-manual",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CANONICAL_MANUAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CANONICAL_MANUAL",
        "type": "http",
        "what": [
          "WHAT: The canonical invocation manual as markdown: how to do anything on this build by every surface (POST, GET with a token, tags, MCP, sheet cell, browser model), with the exact recorded request and response for each.",
          "WHEN_TO_USE: a model or person with zero context needs to know how to call, prove, delegate, compose or publish here. Read it before guessing any call.",
          "ARGS: none",
          "EX: [CANONICAL_MANUAL][/CANONICAL_MANUAL]",
          "OUTPUT: the markdown bundle of /a/canonical-invocation-manual"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CANONICAL_MANUAL][/CANONICAL_MANUAL]",
        "tag": "[CANONICAL_MANUAL][/CANONICAL_MANUAL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CANONICAL_MANUAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CANONICAL_MANUAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CANONICAL_MANUAL",
        "update": "PUT /api/directory/CANONICAL_MANUAL",
        "patch": "PATCH /api/directory/CANONICAL_MANUAL",
        "delete": "DELETE /api/directory/CANONICAL_MANUAL",
        "invoke": "POST /api/dispatch {\"key\":\"CANONICAL_MANUAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CANONICAL_MANUAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CANONICAL_MANUAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CANONICAL_MANUAL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CANONICAL_MANUAL"
    },
    {
      "key": "CAPABILITY_ATLAS",
      "type": "http",
      "category": "audit",
      "doc": "WHAT: Read the public capability archaeology atlas joining every current directory contract with recorded invocation evidence, registered tests, capability domains, and aggregate coding-agent turn/file-change sediment. It separates registered, invoked, tested, and disabled states so the build interior can be audited without treating row count as proof. ARGS: None. Add ?summary=1 to omit the full capability array. EX: [CAPABILITY_ATLAS][/CAPABILITY_ATLAS] TESTS: GET /api/capability-atlas returns miscsubjects-capability-atlas/1.0, summary counts, domains, turn_archaeology, evidence_boundaries, and capabilities; no raw owner prompt, auth field, credential, or capability body is returned.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAPABILITY_ATLAS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAPABILITY_ATLAS",
        "type": "http",
        "what": [
          "WHAT: Read the public capability archaeology atlas joining every current directory contract with recorded invocation evidence, registered tests, capability domains, and aggregate coding-agent turn/file-change sediment. It separates registered, invoked, tested, and disabled states so the build interior can be audited without treating row count as proof.",
          "ARGS: None. Add ?summary=1 to omit the full capability array.",
          "EX: [CAPABILITY_ATLAS][/CAPABILITY_ATLAS]",
          "TESTS: GET /api/capability-atlas returns miscsubjects-capability-atlas/1.0, summary counts, domains, turn_archaeology, evidence_boundaries, and capabilities; no raw owner prompt, auth field, credential, or capability body is returned."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "miscsubjects-capability-atlas/1.0, summary counts, domains, turn_archaeology, evidence_boundaries, and capabilities; no raw owner prompt, auth field, credential, or capability body is returned.",
        "example": "[CAPABILITY_ATLAS][/CAPABILITY_ATLAS]",
        "tag": "[CAPABILITY_ATLAS][/CAPABILITY_ATLAS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAPABILITY_ATLAS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAPABILITY_ATLAS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"\"]",
      "edit": {
        "read": "GET /api/directory/CAPABILITY_ATLAS",
        "update": "PUT /api/directory/CAPABILITY_ATLAS",
        "patch": "PATCH /api/directory/CAPABILITY_ATLAS",
        "delete": "DELETE /api/directory/CAPABILITY_ATLAS",
        "invoke": "POST /api/dispatch {\"key\":\"CAPABILITY_ATLAS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAPABILITY_ATLAS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAPABILITY_ATLAS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAPABILITY_ATLAS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAPABILITY_ATLAS"
    },
    {
      "key": "CAP_CONTEXT_BIND",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Bind the mutable context to a capability: which profile it belongs to, which devices, sessions, state handles and origins may present it, how recent a human verification it needs, whether a device signature is required, and profile-state policy rules. The token stays as minted; this record can change without reissuing it. WHEN_TO_USE: right after CAP_MINT, or whenever the conditions on an existing capability should tighten or move. ARGS: $1 = fingerprint|{\"profile_id\",\"device_ids\":[],\"session_ids\":[],\"state_handles\":[],\"origins\":[],\"require_verification_s\":600,\"require_pop\":false,\"policy\":[{\"field\":\"profile.attrs.vip\",\"op\":\"true\"}]} EX: [CAP_CONTEXT_BIND]cap_abc123|{\"profile_id\":\"prf_abc\",\"device_ids\":[\"dev_abc\"]}[/CAP_CONTEXT_BIND] TESTS: Returns the bound context with policy_rev; a child capability whose context widens its parent is refused CONTEXT_WIDENS_PARENT.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_CONTEXT_BIND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_CONTEXT_BIND",
        "type": "fn",
        "what": [
          "WHAT: Bind the mutable context to a capability: which profile it belongs to, which devices, sessions, state handles and origins may present it, how recent a human verification it needs, whether a device signature is required, and profile-state policy rules. The token stays as minted; this record can change without reissuing it.",
          "WHEN_TO_USE: right after CAP_MINT, or whenever the conditions on an existing capability should tighten or move.",
          "ARGS: $1 = fingerprint|{\"profile_id\",\"device_ids\":[],\"session_ids\":[],\"state_handles\":[],\"origins\":[],\"require_verification_s\":600,\"require_pop\":false,\"policy\":[{\"field\":\"profile.attrs.vip\",\"op\":\"true\"}]}",
          "EX: [CAP_CONTEXT_BIND]cap_abc123|{\"profile_id\":\"prf_abc\",\"device_ids\":[\"dev_abc\"]}[/CAP_CONTEXT_BIND]",
          "TESTS: Returns the bound context with policy_rev; a child capability whose context widens its parent is refused CONTEXT_WIDENS_PARENT."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "fingerprint|{\"profile_id\",\"device_ids\":[],\"session_ids\":[],\"state_handles\":[],\"origins\":[],\"require_verification_s\":600,\"require_pop\":false,\"policy\":[{\"field\":\"profile.attrs.vip\",\"op\":\"true\"}]}",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the bound context with policy_rev; a child capability whose context widens its parent is refused CONTEXT_WIDENS_PARENT.",
        "example": "[CAP_CONTEXT_BIND]cap_abc123|{\"profile_id\":\"prf_abc\",\"device_ids\":[\"dev_abc\"]}[/CAP_CONTEXT_BIND]",
        "tag": "[CAP_CONTEXT_BIND]<arg1 …>[/CAP_CONTEXT_BIND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_CONTEXT_BIND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_CONTEXT_BIND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CAP_CONTEXT_BIND",
        "update": "PUT /api/directory/CAP_CONTEXT_BIND",
        "patch": "PATCH /api/directory/CAP_CONTEXT_BIND",
        "delete": "DELETE /api/directory/CAP_CONTEXT_BIND",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_CONTEXT_BIND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_CONTEXT_BIND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_CONTEXT_BIND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_CONTEXT_BIND"
      },
      "examples": "[\"cap_abc123|{\\\"profile_id\\\":\\\"prf_abc\\\",\\\"device_ids\\\":[\\\"dev_abc\\\"]}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_CONTEXT_BIND"
    },
    {
      "key": "CAP_CONTEXT_GET",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Explain a capability's context: the token authority summary, the bound profile, allowed devices/sessions/handles/origins, the verification and signature requirements, the policy — and, given a presenter, the exact decision it would get right now and which check would fail. WHEN_TO_USE: a denial came back with a context code, or before handing a capability to someone. ARGS: $1 = fingerprint, optionally fingerprint|device_id|session_id|state_handle|origin to evaluate a presenter. EX: [CAP_CONTEXT_GET]cap_abc123|dev_abc[/CAP_CONTEXT_GET] TESTS: Returns context, bound, device and effective_decision with checks[] naming the failing condition.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_CONTEXT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_CONTEXT_GET",
        "type": "fn",
        "what": [
          "WHAT: Explain a capability's context: the token authority summary, the bound profile, allowed devices/sessions/handles/origins, the verification and signature requirements, the policy — and, given a presenter, the exact decision it would get right now and which check would fail.",
          "WHEN_TO_USE: a denial came back with a context code, or before handing a capability to someone.",
          "ARGS: $1 = fingerprint, optionally fingerprint|device_id|session_id|state_handle|origin to evaluate a presenter.",
          "EX: [CAP_CONTEXT_GET]cap_abc123|dev_abc[/CAP_CONTEXT_GET]",
          "TESTS: Returns context, bound, device and effective_decision with checks[] naming the failing condition."
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_abc123",
            "desc": "fingerprint, optionally fingerprint|device_id|session_id|state_handle|origin to evaluate a presenter.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "context, bound, device and effective_decision with checks[] naming the failing condition.",
        "example": "[CAP_CONTEXT_GET]cap_abc123|dev_abc[/CAP_CONTEXT_GET]",
        "tag": "[CAP_CONTEXT_GET]<cap_abc123 …>[/CAP_CONTEXT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_CONTEXT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_CONTEXT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CAP_CONTEXT_GET",
        "update": "PUT /api/directory/CAP_CONTEXT_GET",
        "patch": "PATCH /api/directory/CAP_CONTEXT_GET",
        "delete": "DELETE /api/directory/CAP_CONTEXT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_CONTEXT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_CONTEXT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_CONTEXT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_CONTEXT_GET"
      },
      "examples": "[\"cap_abc123\",\"cap_abc123|dev_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_CONTEXT_GET"
    },
    {
      "key": "CAP_CONTEXT_UNBIND",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Remove a capability's context binding (owner action). The token then answers to its authority checks alone. WHEN_TO_USE: a binding was wrong or is no longer wanted. ARGS: $1 = fingerprint. EX: [CAP_CONTEXT_UNBIND]cap_abc123[/CAP_CONTEXT_UNBIND] TESTS: CAP_CONTEXT_GET reports no context bound.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_CONTEXT_UNBIND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_CONTEXT_UNBIND",
        "type": "fn",
        "what": [
          "WHAT: Remove a capability's context binding (owner action). The token then answers to its authority checks alone.",
          "WHEN_TO_USE: a binding was wrong or is no longer wanted.",
          "ARGS: $1 = fingerprint.",
          "EX: [CAP_CONTEXT_UNBIND]cap_abc123[/CAP_CONTEXT_UNBIND]",
          "TESTS: CAP_CONTEXT_GET reports no context bound."
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_abc123",
            "desc": "fingerprint.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CAP_CONTEXT_UNBIND]cap_abc123[/CAP_CONTEXT_UNBIND]",
        "tag": "[CAP_CONTEXT_UNBIND]<cap_abc123 …>[/CAP_CONTEXT_UNBIND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_CONTEXT_UNBIND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_CONTEXT_UNBIND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CAP_CONTEXT_UNBIND",
        "update": "PUT /api/directory/CAP_CONTEXT_UNBIND",
        "patch": "PATCH /api/directory/CAP_CONTEXT_UNBIND",
        "delete": "DELETE /api/directory/CAP_CONTEXT_UNBIND",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_CONTEXT_UNBIND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_CONTEXT_UNBIND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_CONTEXT_UNBIND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_CONTEXT_UNBIND"
      },
      "examples": "[\"cap_abc123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_CONTEXT_UNBIND"
    },
    {
      "key": "CAP_EVALUATE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The simulator: what a capability would do for a given presenter, without executing and without consuming a nonce. Authority (live, scope, uses), context decision, and the would-be outcome. WHEN_TO_USE: asking why a call would fail before it fails; writing a test. ARGS: fingerprint|profile_id|device_id|session_id|key EX: [CAP_EVALUATE]cap_abc|prf_x|dev_y||NOW[/CAP_EVALUATE] TESTS: Predicts the same denial the live gate produces; a non-holder is refused OWNER_ONLY.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_EVALUATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_EVALUATE",
        "type": "fn",
        "what": [
          "WHAT: The simulator: what a capability would do for a given presenter, without executing and without consuming a nonce. Authority (live, scope, uses), context decision, and the would-be outcome.",
          "WHEN_TO_USE: asking why a call would fail before it fails; writing a test.",
          "ARGS: fingerprint|profile_id|device_id|session_id|key",
          "EX: [CAP_EVALUATE]cap_abc|prf_x|dev_y||NOW[/CAP_EVALUATE]",
          "TESTS: Predicts the same denial the live gate produces; a non-holder is refused OWNER_ONLY."
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CAP_EVALUATE]cap_abc|prf_x|dev_y||NOW[/CAP_EVALUATE]",
        "tag": "[CAP_EVALUATE]<cap_abc …>[/CAP_EVALUATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_EVALUATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_EVALUATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CAP_EVALUATE",
        "update": "PUT /api/directory/CAP_EVALUATE",
        "patch": "PATCH /api/directory/CAP_EVALUATE",
        "delete": "DELETE /api/directory/CAP_EVALUATE",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_EVALUATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_EVALUATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_EVALUATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_EVALUATE"
      },
      "examples": "[\"cap_abc|prf_x|dev_y||NOW\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_EVALUATE"
    },
    {
      "key": "CAP_EXPLAIN",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Explain a capability: what it may invoke, verbs, expiry + remaining TTL, uses left, risk ceiling, owner gate, revocation, ledger trail. Accepts the token itself (sh.…) or its fingerprint (cap_…). Never echoes the raw token. WHEN_TO_USE: the owner asks \"what can this token do\", \"explain this capability\", \"is cap_x still valid\". ARGS: $1 = capability token or cap_ fingerprint. EX: [CAP_EXPLAIN]cap_1a2b3c4d5e6f7a8b[/CAP_EXPLAIN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_EXPLAIN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_EXPLAIN",
        "type": "fn",
        "what": [
          "WHAT: Explain a capability: what it may invoke, verbs, expiry + remaining TTL, uses left, risk ceiling, owner gate, revocation, ledger trail. Accepts the token itself (sh.…) or its fingerprint (cap_…). Never echoes the raw token.",
          "WHEN_TO_USE: the owner asks \"what can this token do\", \"explain this capability\", \"is cap_x still valid\".",
          "ARGS: $1 = capability token or cap_ fingerprint.",
          "EX: [CAP_EXPLAIN]cap_1a2b3c4d5e6f7a8b[/CAP_EXPLAIN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_1a2b3c4d5e6f7a8b",
            "desc": "capability token or cap_ fingerprint.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CAP_EXPLAIN]cap_1a2b3c4d5e6f7a8b[/CAP_EXPLAIN]",
        "tag": "[CAP_EXPLAIN]<cap_1a2b3c4d5e6f7a8b>[/CAP_EXPLAIN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_EXPLAIN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_EXPLAIN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/CAP_EXPLAIN",
        "update": "PUT /api/directory/CAP_EXPLAIN",
        "patch": "PATCH /api/directory/CAP_EXPLAIN",
        "delete": "DELETE /api/directory/CAP_EXPLAIN",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_EXPLAIN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_EXPLAIN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_EXPLAIN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_EXPLAIN"
      },
      "examples": "[\"cap_1a2b3c4d5e6f7a8b\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_EXPLAIN"
    },
    {
      "key": "CAP_MINT",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Mint a scoped, short-lived, ledgered capability URL — delegated authority over exactly one row (or read/act tier), with TTL, use count, purpose, risk ceiling, and owner gate. Returns invoke_url + explain_url + fingerprint; the URL explains itself. WHEN_TO_USE: the owner says \"mint a token/capability/link for <KEY>\", \"give a model a 10 minute key to X\", \"one-shot link for NOW\". ARGS: $1=scope (row|act|read), $2=row key (for scope row), $3=ttl seconds (default 600), $4=max uses (default 1, 0=unlimited), $5=purpose (plain english), $6=risk_ceiling (low|high, default low), $7=owner_gate (0|1, default 0). EX: [CAP_MINT]row|NOW|600|1|demo for chatgpt[/CAP_MINT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_MINT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_MINT",
        "type": "fn",
        "what": [
          "WHAT: Mint a scoped, short-lived, ledgered capability URL — delegated authority over exactly one row (or read/act tier), with TTL, use count, purpose, risk ceiling, and owner gate. Returns invoke_url + explain_url + fingerprint; the URL explains itself.",
          "WHEN_TO_USE: the owner says \"mint a token/capability/link for <KEY>\", \"give a model a 10 minute key to X\", \"one-shot link for NOW\".",
          "ARGS: $1=scope (row|act|read), $2=row key (for scope row), $3=ttl seconds (default 600), $4=max uses (default 1, 0=unlimited), $5=purpose (plain english), $6=risk_ceiling (low|high, default low), $7=owner_gate (0|1, default 0).",
          "EX: [CAP_MINT]row|NOW|600|1|demo for chatgpt[/CAP_MINT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "row",
            "desc": "scope (row|act|read), $2=row key (for scope row), $3=ttl seconds (default 600), $4=max uses (default 1, 0=unlimited), $5=purpose (plain english), $6=risk_ceiling (low|high, default low), $7=owner_gate (0|1, default 0).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "NOW",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "600",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "demo for chatgpt",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "invoke_url + explain_url + fingerprint; the URL explains itself.",
        "example": "[CAP_MINT]row|NOW|600|1|demo for chatgpt[/CAP_MINT]",
        "tag": "[CAP_MINT]<row>|<NOW>|<600>|<1>|<demo for chatgpt>|<arg6>|<arg7>[/CAP_MINT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_MINT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_MINT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\"]",
      "edit": {
        "read": "GET /api/directory/CAP_MINT",
        "update": "PUT /api/directory/CAP_MINT",
        "patch": "PATCH /api/directory/CAP_MINT",
        "delete": "DELETE /api/directory/CAP_MINT",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_MINT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_MINT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_MINT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_MINT"
      },
      "examples": "[\"row|X_SEARCH|900|5|cold model onboarding-tax test|low|0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_MINT"
    },
    {
      "key": "CAP_REVOKE",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Revoke a capability by fingerprint — the URL dies immediately; further invokes are denied and ledgered. WHEN_TO_USE: the owner says \"revoke that token\", \"kill cap_x\", \"cut that model off\". ARGS: $1 = cap_ fingerprint. EX: [CAP_REVOKE]cap_1a2b3c4d5e6f7a8b[/CAP_REVOKE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CAP_REVOKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CAP_REVOKE",
        "type": "fn",
        "what": [
          "WHAT: Revoke a capability by fingerprint — the URL dies immediately; further invokes are denied and ledgered.",
          "WHEN_TO_USE: the owner says \"revoke that token\", \"kill cap_x\", \"cut that model off\".",
          "ARGS: $1 = cap_ fingerprint.",
          "EX: [CAP_REVOKE]cap_1a2b3c4d5e6f7a8b[/CAP_REVOKE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "cap_1a2b3c4d5e6f7a8b",
            "desc": "cap_ fingerprint.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CAP_REVOKE]cap_1a2b3c4d5e6f7a8b[/CAP_REVOKE]",
        "tag": "[CAP_REVOKE]<cap_1a2b3c4d5e6f7a8b>[/CAP_REVOKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CAP_REVOKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CAP_REVOKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/CAP_REVOKE",
        "update": "PUT /api/directory/CAP_REVOKE",
        "patch": "PATCH /api/directory/CAP_REVOKE",
        "delete": "DELETE /api/directory/CAP_REVOKE",
        "invoke": "POST /api/dispatch {\"key\":\"CAP_REVOKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CAP_REVOKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CAP_REVOKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CAP_REVOKE"
      },
      "examples": "[\"cap_2382b7bfb05fa1d0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CAP_REVOKE"
    },
    {
      "key": "CARDS",
      "type": "http",
      "category": "log",
      "doc": "WHAT: Read the STATE CARDS. One card per isolated event: the inbound message (plain text), the reply (plain text), the agent system prompt, and every tool/CLI/file/http step with its raw payload in/out — each classified. Every card has a trace id (card_id) and a content hash, and is REST-callable WHEN_TO_USE: you need to cards ARGS: see content EX: [CARDS][/CARDS] Read the STATE CARDS. One card per isolated event: the inbound message (plain text), the reply (plain text), the agent system prompt, and every tool/CLI/file/http step with its raw payload in/out — each classified. Every card has a trace id (card_id) and a content hash, and is REST-callable. INVOKE: [CARDS][/CARDS] for the latest, or [CARDS]<card_id>[/CARDS] (e.g. t_dzncmzck or cc_42) for one card.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CARDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CARDS",
        "type": "http",
        "what": [
          "WHAT: Read the STATE CARDS. One card per isolated event: the inbound message (plain text), the reply (plain text), the agent system prompt, and every tool/CLI/file/http step with its raw payload in/out — each classified. Every card has a trace id (card_id) and a content hash, and is REST-callable",
          "WHEN_TO_USE: you need to cards",
          "ARGS: see content",
          "EX: [CARDS][/CARDS]",
          "Read the STATE CARDS. One card per isolated event: the inbound message (plain text), the reply (plain text), the agent system prompt, and every tool/CLI/file/http step with its raw payload in/out — each classified. Every card has a trace id (card_id) and a content hash, and is REST-callable.",
          "INVOKE: [CARDS][/CARDS] for the latest, or [CARDS]<card_id>[/CARDS] (e.g. t_dzncmzck or cc_42) for one card."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CARDS][/CARDS]",
        "tag": "[CARDS]<arg1>[/CARDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CARDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CARDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CARDS",
        "update": "PUT /api/directory/CARDS",
        "patch": "PATCH /api/directory/CARDS",
        "delete": "DELETE /api/directory/CARDS",
        "invoke": "POST /api/dispatch {\"key\":\"CARDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CARDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CARDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CARDS"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CARDS"
    },
    {
      "key": "CATEGORIES",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: List all tool categories. WHEN_TO_USE: the user asks \"what can you do\" or \"what categories\". ARGS: none. EX: [CATEGORIES][/CATEGORIES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CATEGORIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CATEGORIES",
        "type": "fn",
        "what": [
          "WHAT: List all tool categories.",
          "WHEN_TO_USE: the user asks \"what can you do\" or \"what categories\".",
          "ARGS: none.",
          "EX: [CATEGORIES][/CATEGORIES]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CATEGORIES][/CATEGORIES]",
        "tag": "[CATEGORIES][/CATEGORIES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CATEGORIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CATEGORIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/CATEGORIES",
        "update": "PUT /api/directory/CATEGORIES",
        "patch": "PATCH /api/directory/CATEGORIES",
        "delete": "DELETE /api/directory/CATEGORIES",
        "invoke": "POST /api/dispatch {\"key\":\"CATEGORIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CATEGORIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CATEGORIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CATEGORIES"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CATEGORIES"
    },
    {
      "key": "CC_LAST",
      "type": "fn",
      "category": null,
      "doc": "WHAT: the last 3 Claude Code turns on this repo (the user input to Claude Code, the tools it used, the files it edited). WHEN_TO_USE: \"what did claude code just do\", learning from Claude Code, the CC_MIRROR loop.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CC_LAST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CC_LAST",
        "type": "fn",
        "what": [
          "WHAT: the last 3 Claude Code turns on this repo (the user input to Claude Code, the tools it used, the files it edited).",
          "WHEN_TO_USE: \"what did claude code just do\", learning from Claude Code, the CC_MIRROR loop."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[CC_LAST][/CC_LAST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CC_LAST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CC_LAST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT id,user_input,substr(tools_json,1,1500) AS tools,files_json FROM cc_turns ORDER BY id DESC LIMIT 3\"]",
      "edit": {
        "read": "GET /api/directory/CC_LAST",
        "update": "PUT /api/directory/CC_LAST",
        "patch": "PATCH /api/directory/CC_LAST",
        "delete": "DELETE /api/directory/CC_LAST",
        "invoke": "POST /api/dispatch {\"key\":\"CC_LAST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CC_LAST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CC_LAST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CC_LAST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CC_LAST"
    },
    {
      "key": "CC_MIRROR",
      "type": "agent",
      "category": "llm",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CC_MIRROR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CC_MIRROR",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CC_MIRROR][/CC_MIRROR]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CC_MIRROR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CC_MIRROR  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CC_MIRROR",
        "update": "PUT /api/directory/CC_MIRROR",
        "patch": "PATCH /api/directory/CC_MIRROR",
        "delete": "DELETE /api/directory/CC_MIRROR",
        "invoke": "POST /api/dispatch {\"key\":\"CC_MIRROR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CC_MIRROR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CC_MIRROR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CC_MIRROR"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CC_MIRROR"
    },
    {
      "key": "CERTIFIER_HISTORY",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Read the cards, revocations, expiries and evidence history filed by a named regulator, insurer, auditor, compliance officer, standards body or owner. ARGS: JSON {certifier_label}. TESTS: Returns public bounded records only; this is a performance history, not proof of legal identity, competence or independence.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CERTIFIER_HISTORY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CERTIFIER_HISTORY",
        "type": "http",
        "what": [
          "WHAT: Read the cards, revocations, expiries and evidence history filed by a named regulator, insurer, auditor, compliance officer, standards body or owner.",
          "ARGS: JSON {certifier_label}.",
          "TESTS: Returns public bounded records only; this is a performance history, not proof of legal identity, competence or independence."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "public bounded records only; this is a performance history, not proof of legal identity, competence or independence.",
        "example": "[CERTIFIER_HISTORY]arg1[/CERTIFIER_HISTORY]",
        "tag": "[CERTIFIER_HISTORY]<arg1 …>[/CERTIFIER_HISTORY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CERTIFIER_HISTORY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CERTIFIER_HISTORY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/CERTIFIER_HISTORY",
        "update": "PUT /api/directory/CERTIFIER_HISTORY",
        "patch": "PATCH /api/directory/CERTIFIER_HISTORY",
        "delete": "DELETE /api/directory/CERTIFIER_HISTORY",
        "invoke": "POST /api/dispatch {\"key\":\"CERTIFIER_HISTORY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CERTIFIER_HISTORY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CERTIFIER_HISTORY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CERTIFIER_HISTORY"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=CERTIFIER_HISTORY"
    },
    {
      "key": "CF",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Cloudflare REST API unified entrypoint. 256+ operations. WHEN_TO_USE: any Cloudflare API call (KV, D1, R2, Workers, DNS, etc.). ARGS: operation|account_id|... (first arg selects the sub-operation from the target_map). EX: [CF]kv_list_keys|my_account_id[/CF] [CF]d1_query|my_account_id|my_db_id|SELECT * FROM t[/CF] WHAT: Cloudflare REST unified entrypoint WHEN_TO_USE: any Cloudflare API call: account, zones, workers, pages, KV, R2, DNS, AI, tokens ARGS: $1=op, $2..$N=positional args EX: [CF]user[/CF] TESTS: POSITIVE: {\"key\":\"CF\",\"body\":\"user\"} → HTTP 200 with email. INVERSE: {\"key\":\"CF\",\"body\":\"xxx\"} → starts with ERR:target_map:unknown_op",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF",
        "type": "http",
        "what": [
          "WHAT: Cloudflare REST API unified entrypoint. 256+ operations.",
          "WHEN_TO_USE: any Cloudflare API call (KV, D1, R2, Workers, DNS, etc.).",
          "ARGS: operation|account_id|... (first arg selects the sub-operation from the target_map).",
          "EX: [CF]kv_list_keys|my_account_id[/CF] [CF]d1_query|my_account_id|my_db_id|SELECT * FROM t[/CF]",
          "WHAT: Cloudflare REST unified entrypoint",
          "WHEN_TO_USE: any Cloudflare API call: account, zones, workers, pages, KV, R2, DNS, AI, tokens",
          "ARGS: $1=op, $2..$N=positional args",
          "EX: [CF]user[/CF]",
          "TESTS:",
          "POSITIVE: {\"key\":\"CF\",\"body\":\"user\"} → HTTP 200 with email.",
          "INVERSE: {\"key\":\"CF\",\"body\":\"xxx\"} → starts with ERR:target_map:unknown_op"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: access_apps, account_audit_logs, account_subscriptions, accounts_list, ai_models, ai_models_text_gen, ai_run, analytics_dash, browser_content, browser_json, browser_links, browser_markdown, browser_pdf, browser_scrape, browser_screenshot, browser_snapshot, cache_purge, cron_triggers_get, d1_create_database, d1_delete_database, d1_export_database, d1_get, d1_get_database, d1_import_database, d1_list, d1_list_databases, d1_query_database, d1_query_remote, d1_raw_database_query, d1_time_travel_get_bookmark, d1_time_travel_restore, d1_update_database, d1_update_partial_database, dns_create, dns_delete, dns_list, dns_update, do_namespace_objects, do_namespaces_list, email_routing, email_routing_addresses, hyperdrive_list, images_list, kv_bulk_write, kv_create_ns, kv_delete_ns, kv_list_keys, kv_list_ns, kv_workers_kv_namespace_create_a_namespace, kv_workers_kv_namespace_delete_key_value_pair, kv_workers_kv_namespace_delete_multiple_key_value_pairs, kv_workers_kv_namespace_delete_multiple_key_value_pairs_deprecated, kv_workers_kv_namespace_get_a_namespace, kv_workers_kv_namespace_get_multiple_key_value_pairs, kv_workers_kv_namespace_list_a_namespace_s_keys, kv_workers_kv_namespace_list_namespaces, kv_workers_kv_namespace_read_key_value_pair, kv_workers_kv_namespace_read_the_metadata_for_a_key, kv_workers_kv_namespace_remove_a_namespace, kv_workers_kv_namespace_rename_a_namespace, kv_workers_kv_namespace_write_key_value_pair_with_metadata, kv_workers_kv_namespace_write_multiple_key_value_pairs, logpush_jobs, observability_query, pages_deploy_retry, pages_deployments, pages_env_vars, pages_get, pages_list, pages_patch, queues_create, queues_get, queues_list, r2_add_custom_domain, r2_create_bucket, r2_create_bucket_2, r2_create_temp_access_credentials, r2_delete_bucket, r2_delete_bucket_2, r2_delete_bucket_cors_policy, r2_delete_bucket_sippy_config, r2_delete_custom_domain, r2_delete_object, r2_delete_objects, r2_edit_custom_domain_settings, r2_event_notification_delete_config, r2_get_account_level_metrics, r2_get_bucket, r2_get_bucket_cors_policy, r2_get_bucket_lifecycle_configuration, r2_get_bucket_local_uploads_configuration, r2_get_bucket_lock_configuration, r2_get_bucket_public_policy, r2_get_bucket_sippy_config, r2_get_custom_domain_settings, r2_get_event_notification_config, r2_get_event_notification_configs, r2_get_object, r2_list_buckets, r2_list_buckets_2, r2_list_custom_domains, r2_list_objects, r2_patch_bucket, r2_put_bucket_cors_policy, r2_put_bucket_lifecycle_configuration, r2_put_bucket_local_uploads_configuration, r2_put_bucket_lock_configuration, r2_put_bucket_public_policy, r2_put_bucket_sippy_config, r2_put_event_notification_config, r2_put_object, secrets_create, secrets_list, secrets_stores, stream_list, token_verify, tokens_verify, tunnels_list, user, user_tokens_list, vectorize_create, vectorize_get, vectorize_insert, vectorize_list, vectorize_query, verify, worker_delete, worker_deployments, worker_get, worker_list, worker_routes, workers_createdeployhook, workers_createworker, workers_createworkerversion, workers_deletedeployhook, workers_deleteworker, workers_deleteworkerversion, workers_destination_create, workers_destination_list, workers_destination_update, workers_destinations_delete, workers_domains_delete, workers_domains_get, workers_domains_list, workers_domains_update, workers_durable_objects_namespace_list_namespaces, workers_durable_objects_namespace_list_objects, workers_editworker, workers_getdeployhook, workers_getworker, workers_getworkerversion, workers_list, workers_list_tails, workers_listbuildsbyscript, workers_listdeployhooks, workers_listtriggersbyscript, workers_listworkers, workers_listworkerversions, workers_namespace_worker_create, workers_namespace_worker_delete_namespace, workers_namespace_worker_delete_script_secret, workers_namespace_worker_delete_script_tag, workers_namespace_worker_delete_scripts, workers_namespace_worker_get_namespace, workers_namespace_worker_get_script_bindings, workers_namespace_worker_get_script_content, workers_namespace_worker_get_script_secrets, workers_namespace_worker_get_script_settings, workers_namespace_worker_get_script_tags, workers_namespace_worker_list, workers_namespace_worker_list_script_secrets, workers_namespace_worker_list_scripts, workers_namespace_worker_patch_namespace, workers_namespace_worker_patch_script_secrets_bulk, workers_namespace_worker_patch_script_settings, workers_namespace_worker_put_namespace, workers_namespace_worker_put_script_content, workers_namespace_worker_put_script_secrets, workers_namespace_worker_put_script_tag, workers_namespace_worker_put_script_tags, workers_namespace_worker_script_delete_worker, workers_namespace_worker_script_update_create_assets_upload_session, workers_namespace_worker_script_upload_worker_module, workers_namespace_worker_script_worker_details, workers_queries_delete, workers_queries_get, workers_queries_list, workers_queries_patch, workers_queries_post, workers_shared_query_get, workers_shared_query_post, workers_tail_create, workers_telemetry_keys_list, workers_telemetry_live_tail_heartbeat_get, workers_telemetry_live_tail_post, workers_telemetry_query, workers_telemetry_values_list, workers_triggerdeployhook, workers_updatedeployhook, workers_updateworker, workers_usage_get, workers_worker_account_settings_create_worker_account_settings, workers_worker_account_settings_fetch_worker_account_settings, workers_worker_assets_upload, workers_worker_cron_trigger_get_cron_triggers, workers_worker_cron_trigger_update_cron_triggers, workers_worker_delete_script_secret, workers_worker_deployments_create_deployment, workers_worker_deployments_delete_deployment, workers_worker_deployments_get_deployment, workers_worker_deployments_list_deployments, workers_worker_environment_get_script_content, workers_worker_environment_put_script_content, workers_worker_get_script_secret, workers_worker_list_script_secrets, workers_worker_patch_script_secrets_bulk, workers_worker_placement_list_regions, workers_worker_put_script_secret, workers_worker_routes_create_route, workers_worker_routes_delete_route, workers_worker_routes_get_route, workers_worker_routes_list_routes, workers_worker_routes_update_route, workers_worker_script_delete_subdomain, workers_worker_script_delete_worker, workers_worker_script_download_worker, workers_worker_script_environment_get_settings, workers_worker_script_environment_patch_settings, workers_worker_script_fetch_usage_model, workers_worker_script_get_content, workers_worker_script_get_settings, workers_worker_script_get_subdomain, workers_worker_script_list_workers, workers_worker_script_patch_settings, workers_worker_script_post_subdomain, workers_worker_script_put_content, workers_worker_script_search_workers, workers_worker_script_settings_get_settings, workers_worker_script_settings_patch_settings, workers_worker_script_update_create_assets_upload_session, workers_worker_script_update_usage_model, workers_worker_script_upload_worker_module, workers_worker_subdomain_create_subdomain, workers_worker_subdomain_delete_subdomain, workers_worker_subdomain_get_subdomain, workers_worker_tail_logs_delete_tail, workers_worker_tail_logs_start_tail, workers_worker_versions_get_version_detail, workers_worker_versions_list_versions, workers_worker_versions_upload_version, workflows_get, workflows_instances, workflows_list, workflows_trigger, zone_get, zones_list",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "access_apps",
            "sig": "[CF]access_apps|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "account_audit_logs",
            "sig": "[CF]account_audit_logs|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "account_subscriptions",
            "sig": "[CF]account_subscriptions|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "accounts_list",
            "sig": "[CF]accounts_list[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "ai_models",
            "sig": "[CF]ai_models|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "ai_models_text_gen",
            "sig": "[CF]ai_models_text_gen|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "ai_run",
            "sig": "[CF]ai_run|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "analytics_dash",
            "sig": "[CF]analytics_dash|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "browser_content",
            "sig": "[CF]browser_content|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_json",
            "sig": "[CF]browser_json|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_links",
            "sig": "[CF]browser_links|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_markdown",
            "sig": "[CF]browser_markdown|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_pdf",
            "sig": "[CF]browser_pdf|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_scrape",
            "sig": "[CF]browser_scrape|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_screenshot",
            "sig": "[CF]browser_screenshot|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "browser_snapshot",
            "sig": "[CF]browser_snapshot|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "cache_purge",
            "sig": "[CF]cache_purge|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "cron_triggers_get",
            "sig": "[CF]cron_triggers_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_create_database",
            "sig": "[CF]d1_create_database|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_delete_database",
            "sig": "[CF]d1_delete_database|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_export_database",
            "sig": "[CF]d1_export_database|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_get",
            "sig": "[CF]d1_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_get_database",
            "sig": "[CF]d1_get_database|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_import_database",
            "sig": "[CF]d1_import_database|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_list",
            "sig": "[CF]d1_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "d1_list_databases",
            "sig": "[CF]d1_list_databases|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "d1_query_database",
            "sig": "[CF]d1_query_database|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_query_remote",
            "sig": "[CF]d1_query_remote|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_raw_database_query",
            "sig": "[CF]d1_raw_database_query|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_time_travel_get_bookmark",
            "sig": "[CF]d1_time_travel_get_bookmark|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "d1_time_travel_restore",
            "sig": "[CF]d1_time_travel_restore|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_update_database",
            "sig": "[CF]d1_update_database|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "d1_update_partial_database",
            "sig": "[CF]d1_update_partial_database|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "dns_create",
            "sig": "[CF]dns_create|<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/CF]",
            "extraArgs": 6,
            "variadic": false
          },
          {
            "op": "dns_delete",
            "sig": "[CF]dns_delete|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "dns_list",
            "sig": "[CF]dns_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "dns_update",
            "sig": "[CF]dns_update|<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>[/CF]",
            "extraArgs": 7,
            "variadic": false
          },
          {
            "op": "do_namespace_objects",
            "sig": "[CF]do_namespace_objects|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "do_namespaces_list",
            "sig": "[CF]do_namespaces_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "email_routing",
            "sig": "[CF]email_routing|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "email_routing_addresses",
            "sig": "[CF]email_routing_addresses|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "hyperdrive_list",
            "sig": "[CF]hyperdrive_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "images_list",
            "sig": "[CF]images_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "kv_bulk_write",
            "sig": "[CF]kv_bulk_write|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_create_ns",
            "sig": "[CF]kv_create_ns|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_delete_ns",
            "sig": "[CF]kv_delete_ns|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_list_keys",
            "sig": "[CF]kv_list_keys|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_list_ns",
            "sig": "[CF]kv_list_ns|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_create_a_namespace",
            "sig": "[CF]kv_workers_kv_namespace_create_a_namespace|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_delete_key_value_pair",
            "sig": "[CF]kv_workers_kv_namespace_delete_key_value_pair|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_delete_multiple_key_value_pairs",
            "sig": "[CF]kv_workers_kv_namespace_delete_multiple_key_value_pairs|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_delete_multiple_key_value_pairs_deprecated",
            "sig": "[CF]kv_workers_kv_namespace_delete_multiple_key_value_pairs_deprecated|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_get_a_namespace",
            "sig": "[CF]kv_workers_kv_namespace_get_a_namespace|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_get_multiple_key_value_pairs",
            "sig": "[CF]kv_workers_kv_namespace_get_multiple_key_value_pairs|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_list_a_namespace_s_keys",
            "sig": "[CF]kv_workers_kv_namespace_list_a_namespace_s_keys|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_list_namespaces",
            "sig": "[CF]kv_workers_kv_namespace_list_namespaces|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_read_key_value_pair",
            "sig": "[CF]kv_workers_kv_namespace_read_key_value_pair|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_read_the_metadata_for_a_key",
            "sig": "[CF]kv_workers_kv_namespace_read_the_metadata_for_a_key|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_remove_a_namespace",
            "sig": "[CF]kv_workers_kv_namespace_remove_a_namespace|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_rename_a_namespace",
            "sig": "[CF]kv_workers_kv_namespace_rename_a_namespace|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_write_key_value_pair_with_metadata",
            "sig": "[CF]kv_workers_kv_namespace_write_key_value_pair_with_metadata|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "kv_workers_kv_namespace_write_multiple_key_value_pairs",
            "sig": "[CF]kv_workers_kv_namespace_write_multiple_key_value_pairs|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "logpush_jobs",
            "sig": "[CF]logpush_jobs|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "observability_query",
            "sig": "[CF]observability_query|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "pages_deploy_retry",
            "sig": "[CF]pages_deploy_retry|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "pages_deployments",
            "sig": "[CF]pages_deployments|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "pages_env_vars",
            "sig": "[CF]pages_env_vars|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "pages_get",
            "sig": "[CF]pages_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "pages_list",
            "sig": "[CF]pages_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "pages_patch",
            "sig": "[CF]pages_patch|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "queues_create",
            "sig": "[CF]queues_create|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "queues_get",
            "sig": "[CF]queues_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "queues_list",
            "sig": "[CF]queues_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "r2_add_custom_domain",
            "sig": "[CF]r2_add_custom_domain|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_create_bucket",
            "sig": "[CF]r2_create_bucket|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_create_bucket_2",
            "sig": "[CF]r2_create_bucket_2|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_create_temp_access_credentials",
            "sig": "[CF]r2_create_temp_access_credentials|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_delete_bucket",
            "sig": "[CF]r2_delete_bucket|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_delete_bucket_2",
            "sig": "[CF]r2_delete_bucket_2|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_delete_bucket_cors_policy",
            "sig": "[CF]r2_delete_bucket_cors_policy|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_delete_bucket_sippy_config",
            "sig": "[CF]r2_delete_bucket_sippy_config|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_delete_custom_domain",
            "sig": "[CF]r2_delete_custom_domain|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_delete_object",
            "sig": "[CF]r2_delete_object|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_delete_objects",
            "sig": "[CF]r2_delete_objects|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_edit_custom_domain_settings",
            "sig": "[CF]r2_edit_custom_domain_settings|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "r2_event_notification_delete_config",
            "sig": "[CF]r2_event_notification_delete_config|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_get_account_level_metrics",
            "sig": "[CF]r2_get_account_level_metrics|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "r2_get_bucket",
            "sig": "[CF]r2_get_bucket|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_cors_policy",
            "sig": "[CF]r2_get_bucket_cors_policy|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_lifecycle_configuration",
            "sig": "[CF]r2_get_bucket_lifecycle_configuration|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_local_uploads_configuration",
            "sig": "[CF]r2_get_bucket_local_uploads_configuration|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_lock_configuration",
            "sig": "[CF]r2_get_bucket_lock_configuration|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_public_policy",
            "sig": "[CF]r2_get_bucket_public_policy|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_bucket_sippy_config",
            "sig": "[CF]r2_get_bucket_sippy_config|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_custom_domain_settings",
            "sig": "[CF]r2_get_custom_domain_settings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_get_event_notification_config",
            "sig": "[CF]r2_get_event_notification_config|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_get_event_notification_configs",
            "sig": "[CF]r2_get_event_notification_configs|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_get_object",
            "sig": "[CF]r2_get_object|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_list_buckets",
            "sig": "[CF]r2_list_buckets|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "r2_list_buckets_2",
            "sig": "[CF]r2_list_buckets_2|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "r2_list_custom_domains",
            "sig": "[CF]r2_list_custom_domains|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_list_objects",
            "sig": "[CF]r2_list_objects|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "r2_patch_bucket",
            "sig": "[CF]r2_patch_bucket|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_cors_policy",
            "sig": "[CF]r2_put_bucket_cors_policy|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_lifecycle_configuration",
            "sig": "[CF]r2_put_bucket_lifecycle_configuration|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_local_uploads_configuration",
            "sig": "[CF]r2_put_bucket_local_uploads_configuration|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_lock_configuration",
            "sig": "[CF]r2_put_bucket_lock_configuration|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_public_policy",
            "sig": "[CF]r2_put_bucket_public_policy|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_bucket_sippy_config",
            "sig": "[CF]r2_put_bucket_sippy_config|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "r2_put_event_notification_config",
            "sig": "[CF]r2_put_event_notification_config|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "r2_put_object",
            "sig": "[CF]r2_put_object|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "secrets_create",
            "sig": "[CF]secrets_create|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "secrets_list",
            "sig": "[CF]secrets_list|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "secrets_stores",
            "sig": "[CF]secrets_stores|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "stream_list",
            "sig": "[CF]stream_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "token_verify",
            "sig": "[CF]token_verify[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "tokens_verify",
            "sig": "[CF]tokens_verify[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "tunnels_list",
            "sig": "[CF]tunnels_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "user",
            "sig": "[CF]user[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "user_tokens_list",
            "sig": "[CF]user_tokens_list[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "vectorize_create",
            "sig": "[CF]vectorize_create|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "vectorize_get",
            "sig": "[CF]vectorize_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "vectorize_insert",
            "sig": "[CF]vectorize_insert|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "vectorize_list",
            "sig": "[CF]vectorize_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "vectorize_query",
            "sig": "[CF]vectorize_query|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "verify",
            "sig": "[CF]verify[/CF]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "worker_delete",
            "sig": "[CF]worker_delete|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "worker_deployments",
            "sig": "[CF]worker_deployments|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "worker_get",
            "sig": "[CF]worker_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "worker_list",
            "sig": "[CF]worker_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "worker_routes",
            "sig": "[CF]worker_routes|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_createdeployhook",
            "sig": "[CF]workers_createdeployhook|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_createworker",
            "sig": "[CF]workers_createworker|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_createworkerversion",
            "sig": "[CF]workers_createworkerversion|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_deletedeployhook",
            "sig": "[CF]workers_deletedeployhook|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_deleteworker",
            "sig": "[CF]workers_deleteworker|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_deleteworkerversion",
            "sig": "[CF]workers_deleteworkerversion|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_destination_create",
            "sig": "[CF]workers_destination_create|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_destination_list",
            "sig": "[CF]workers_destination_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_destination_update",
            "sig": "[CF]workers_destination_update|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_destinations_delete",
            "sig": "[CF]workers_destinations_delete|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_domains_delete",
            "sig": "[CF]workers_domains_delete|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_domains_get",
            "sig": "[CF]workers_domains_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_domains_list",
            "sig": "[CF]workers_domains_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_domains_update",
            "sig": "[CF]workers_domains_update|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_durable_objects_namespace_list_namespaces",
            "sig": "[CF]workers_durable_objects_namespace_list_namespaces|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_durable_objects_namespace_list_objects",
            "sig": "[CF]workers_durable_objects_namespace_list_objects|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_editworker",
            "sig": "[CF]workers_editworker|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_getdeployhook",
            "sig": "[CF]workers_getdeployhook|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_getworker",
            "sig": "[CF]workers_getworker|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_getworkerversion",
            "sig": "[CF]workers_getworkerversion|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_list",
            "sig": "[CF]workers_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_list_tails",
            "sig": "[CF]workers_list_tails|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_listbuildsbyscript",
            "sig": "[CF]workers_listbuildsbyscript|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_listdeployhooks",
            "sig": "[CF]workers_listdeployhooks|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_listtriggersbyscript",
            "sig": "[CF]workers_listtriggersbyscript|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_listworkers",
            "sig": "[CF]workers_listworkers|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_listworkerversions",
            "sig": "[CF]workers_listworkerversions|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_create",
            "sig": "[CF]workers_namespace_worker_create|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_delete_namespace",
            "sig": "[CF]workers_namespace_worker_delete_namespace|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_delete_script_secret",
            "sig": "[CF]workers_namespace_worker_delete_script_secret|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_delete_script_tag",
            "sig": "[CF]workers_namespace_worker_delete_script_tag|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_delete_scripts",
            "sig": "[CF]workers_namespace_worker_delete_scripts|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_namespace",
            "sig": "[CF]workers_namespace_worker_get_namespace|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_script_bindings",
            "sig": "[CF]workers_namespace_worker_get_script_bindings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_script_content",
            "sig": "[CF]workers_namespace_worker_get_script_content|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_script_secrets",
            "sig": "[CF]workers_namespace_worker_get_script_secrets|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_script_settings",
            "sig": "[CF]workers_namespace_worker_get_script_settings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_get_script_tags",
            "sig": "[CF]workers_namespace_worker_get_script_tags|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_list",
            "sig": "[CF]workers_namespace_worker_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_list_script_secrets",
            "sig": "[CF]workers_namespace_worker_list_script_secrets|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_list_scripts",
            "sig": "[CF]workers_namespace_worker_list_scripts|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_patch_namespace",
            "sig": "[CF]workers_namespace_worker_patch_namespace|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_patch_script_secrets_bulk",
            "sig": "[CF]workers_namespace_worker_patch_script_secrets_bulk|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_patch_script_settings",
            "sig": "[CF]workers_namespace_worker_patch_script_settings|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_put_namespace",
            "sig": "[CF]workers_namespace_worker_put_namespace|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_put_script_content",
            "sig": "[CF]workers_namespace_worker_put_script_content|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_put_script_secrets",
            "sig": "[CF]workers_namespace_worker_put_script_secrets|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_put_script_tag",
            "sig": "[CF]workers_namespace_worker_put_script_tag|<arg1>|<arg2>|<arg3>|<arg4>|<arg5>[/CF]",
            "extraArgs": 5,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_put_script_tags",
            "sig": "[CF]workers_namespace_worker_put_script_tags|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_script_delete_worker",
            "sig": "[CF]workers_namespace_worker_script_delete_worker|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_script_update_create_assets_upload_session",
            "sig": "[CF]workers_namespace_worker_script_update_create_assets_upload_session|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_script_upload_worker_module",
            "sig": "[CF]workers_namespace_worker_script_upload_worker_module|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_namespace_worker_script_worker_details",
            "sig": "[CF]workers_namespace_worker_script_worker_details|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_queries_delete",
            "sig": "[CF]workers_queries_delete|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_queries_get",
            "sig": "[CF]workers_queries_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_queries_list",
            "sig": "[CF]workers_queries_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_queries_patch",
            "sig": "[CF]workers_queries_patch|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_queries_post",
            "sig": "[CF]workers_queries_post|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_shared_query_get",
            "sig": "[CF]workers_shared_query_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_shared_query_post",
            "sig": "[CF]workers_shared_query_post|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_tail_create",
            "sig": "[CF]workers_tail_create|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_telemetry_keys_list",
            "sig": "[CF]workers_telemetry_keys_list|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_telemetry_live_tail_heartbeat_get",
            "sig": "[CF]workers_telemetry_live_tail_heartbeat_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_telemetry_live_tail_post",
            "sig": "[CF]workers_telemetry_live_tail_post|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_telemetry_query",
            "sig": "[CF]workers_telemetry_query|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_telemetry_values_list",
            "sig": "[CF]workers_telemetry_values_list|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_triggerdeployhook",
            "sig": "[CF]workers_triggerdeployhook|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_updatedeployhook",
            "sig": "[CF]workers_updatedeployhook|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_updateworker",
            "sig": "[CF]workers_updateworker|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_usage_get",
            "sig": "[CF]workers_usage_get|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_account_settings_create_worker_account_settings",
            "sig": "[CF]workers_worker_account_settings_create_worker_account_settings|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_account_settings_fetch_worker_account_settings",
            "sig": "[CF]workers_worker_account_settings_fetch_worker_account_settings|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_assets_upload",
            "sig": "[CF]workers_worker_assets_upload|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_cron_trigger_get_cron_triggers",
            "sig": "[CF]workers_worker_cron_trigger_get_cron_triggers|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_cron_trigger_update_cron_triggers",
            "sig": "[CF]workers_worker_cron_trigger_update_cron_triggers|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_delete_script_secret",
            "sig": "[CF]workers_worker_delete_script_secret|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_deployments_create_deployment",
            "sig": "[CF]workers_worker_deployments_create_deployment|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_deployments_delete_deployment",
            "sig": "[CF]workers_worker_deployments_delete_deployment|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_deployments_get_deployment",
            "sig": "[CF]workers_worker_deployments_get_deployment|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_deployments_list_deployments",
            "sig": "[CF]workers_worker_deployments_list_deployments|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_environment_get_script_content",
            "sig": "[CF]workers_worker_environment_get_script_content|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_environment_put_script_content",
            "sig": "[CF]workers_worker_environment_put_script_content|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_worker_get_script_secret",
            "sig": "[CF]workers_worker_get_script_secret|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_list_script_secrets",
            "sig": "[CF]workers_worker_list_script_secrets|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_patch_script_secrets_bulk",
            "sig": "[CF]workers_worker_patch_script_secrets_bulk|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_placement_list_regions",
            "sig": "[CF]workers_worker_placement_list_regions|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_put_script_secret",
            "sig": "[CF]workers_worker_put_script_secret|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_routes_create_route",
            "sig": "[CF]workers_worker_routes_create_route|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_routes_delete_route",
            "sig": "[CF]workers_worker_routes_delete_route|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_routes_get_route",
            "sig": "[CF]workers_worker_routes_get_route|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_routes_list_routes",
            "sig": "[CF]workers_worker_routes_list_routes|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_routes_update_route",
            "sig": "[CF]workers_worker_routes_update_route|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_delete_subdomain",
            "sig": "[CF]workers_worker_script_delete_subdomain|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_delete_worker",
            "sig": "[CF]workers_worker_script_delete_worker|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_download_worker",
            "sig": "[CF]workers_worker_script_download_worker|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_environment_get_settings",
            "sig": "[CF]workers_worker_script_environment_get_settings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_environment_patch_settings",
            "sig": "[CF]workers_worker_script_environment_patch_settings|<arg1>|<arg2>|<arg3>|<arg4>[/CF]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "workers_worker_script_fetch_usage_model",
            "sig": "[CF]workers_worker_script_fetch_usage_model|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_get_content",
            "sig": "[CF]workers_worker_script_get_content|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_get_settings",
            "sig": "[CF]workers_worker_script_get_settings|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_get_subdomain",
            "sig": "[CF]workers_worker_script_get_subdomain|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_list_workers",
            "sig": "[CF]workers_worker_script_list_workers|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_script_patch_settings",
            "sig": "[CF]workers_worker_script_patch_settings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_post_subdomain",
            "sig": "[CF]workers_worker_script_post_subdomain|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_put_content",
            "sig": "[CF]workers_worker_script_put_content|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_search_workers",
            "sig": "[CF]workers_worker_script_search_workers|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_script_settings_get_settings",
            "sig": "[CF]workers_worker_script_settings_get_settings|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_script_settings_patch_settings",
            "sig": "[CF]workers_worker_script_settings_patch_settings|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_update_create_assets_upload_session",
            "sig": "[CF]workers_worker_script_update_create_assets_upload_session|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_update_usage_model",
            "sig": "[CF]workers_worker_script_update_usage_model|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_script_upload_worker_module",
            "sig": "[CF]workers_worker_script_upload_worker_module|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_subdomain_create_subdomain",
            "sig": "[CF]workers_worker_subdomain_create_subdomain|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_subdomain_delete_subdomain",
            "sig": "[CF]workers_worker_subdomain_delete_subdomain|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_subdomain_get_subdomain",
            "sig": "[CF]workers_worker_subdomain_get_subdomain|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workers_worker_tail_logs_delete_tail",
            "sig": "[CF]workers_worker_tail_logs_delete_tail|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_tail_logs_start_tail",
            "sig": "[CF]workers_worker_tail_logs_start_tail|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_versions_get_version_detail",
            "sig": "[CF]workers_worker_versions_get_version_detail|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workers_worker_versions_list_versions",
            "sig": "[CF]workers_worker_versions_list_versions|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workers_worker_versions_upload_version",
            "sig": "[CF]workers_worker_versions_upload_version|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "workflows_get",
            "sig": "[CF]workflows_get|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workflows_instances",
            "sig": "[CF]workflows_instances|<arg1>|<arg2>[/CF]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "workflows_list",
            "sig": "[CF]workflows_list|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "workflows_trigger",
            "sig": "[CF]workflows_trigger|<arg1>|<arg2>|<arg3>[/CF]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "zone_get",
            "sig": "[CF]zone_get|<arg1>[/CF]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "zones_list",
            "sig": "[CF]zones_list[/CF]",
            "extraArgs": 0,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[CF]kv_list_keys|my_account_id[/CF] [CF]d1_query|my_account_id|my_db_id|SELECT * FROM t[/CF]",
        "tag": "[CF]<op>|<args for that op>[/CF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CF",
        "update": "PUT /api/directory/CF",
        "patch": "PATCH /api/directory/CF",
        "delete": "DELETE /api/directory/CF",
        "invoke": "POST /api/dispatch {\"key\":\"CF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF"
      },
      "examples": "[\"d1_list|42da505c278029ba8f199892661e0035\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF"
    },
    {
      "key": "CF_AGENTS_SEARCH_AGENT_DOCS",
      "type": "fn",
      "category": "cf_agents",
      "doc": "WHAT: Search the Cloudflare Agents SDK documentation (Durable Object agents, WebSocket/HTTP agent patterns, scheduling). WHEN_TO_USE: building on the Cloudflare Agents SDK and you need the current docs, not memory ARGS: query EX: [CF_AGENTS_SEARCH_AGENT_DOCS]durable object state[/CF_AGENTS_SEARCH_AGENT_DOCS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AGENTS_SEARCH_AGENT_DOCS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AGENTS_SEARCH_AGENT_DOCS",
        "type": "fn",
        "what": [
          "WHAT: Search the Cloudflare Agents SDK documentation (Durable Object agents, WebSocket/HTTP agent patterns, scheduling).",
          "WHEN_TO_USE: building on the Cloudflare Agents SDK and you need the current docs, not memory",
          "ARGS: query",
          "EX: [CF_AGENTS_SEARCH_AGENT_DOCS]durable object state[/CF_AGENTS_SEARCH_AGENT_DOCS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "durable object state",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AGENTS_SEARCH_AGENT_DOCS]durable object state[/CF_AGENTS_SEARCH_AGENT_DOCS]",
        "tag": "[CF_AGENTS_SEARCH_AGENT_DOCS]<durable object state>[/CF_AGENTS_SEARCH_AGENT_DOCS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AGENTS_SEARCH_AGENT_DOCS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AGENTS_SEARCH_AGENT_DOCS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://agents.cloudflare.com/mcp\",\"search-agent-docs\",\"{\\\"query\\\":\\\"$1\\\"}\",\"\"]",
      "edit": {
        "read": "GET /api/directory/CF_AGENTS_SEARCH_AGENT_DOCS",
        "update": "PUT /api/directory/CF_AGENTS_SEARCH_AGENT_DOCS",
        "patch": "PATCH /api/directory/CF_AGENTS_SEARCH_AGENT_DOCS",
        "delete": "DELETE /api/directory/CF_AGENTS_SEARCH_AGENT_DOCS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AGENTS_SEARCH_AGENT_DOCS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AGENTS_SEARCH_AGENT_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AGENTS_SEARCH_AGENT_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AGENTS_SEARCH_AGENT_DOCS"
      },
      "examples": "[\"durable object state\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AGENTS_SEARCH_AGENT_DOCS"
    },
    {
      "key": "CF_AI_GATEWAY_GET_LOG_DETAILS",
      "type": "fn",
      "category": "cf_ai_gateway",
      "doc": "Get a single Log details MCP: https://ai-gateway.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AI_GATEWAY_GET_LOG_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AI_GATEWAY_GET_LOG_DETAILS",
        "type": "fn",
        "what": [
          "Get a single Log details",
          "MCP: https://ai-gateway.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AI_GATEWAY_GET_LOG_DETAILS]arg1[/CF_AI_GATEWAY_GET_LOG_DETAILS]",
        "tag": "[CF_AI_GATEWAY_GET_LOG_DETAILS]<arg1 …>[/CF_AI_GATEWAY_GET_LOG_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AI_GATEWAY_GET_LOG_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AI_GATEWAY_GET_LOG_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://ai-gateway.mcp.cloudflare.com/sse\",\"get_log_details\",\"$1+\",\"ai-gateway\"]",
      "edit": {
        "read": "GET /api/directory/CF_AI_GATEWAY_GET_LOG_DETAILS",
        "update": "PUT /api/directory/CF_AI_GATEWAY_GET_LOG_DETAILS",
        "patch": "PATCH /api/directory/CF_AI_GATEWAY_GET_LOG_DETAILS",
        "delete": "DELETE /api/directory/CF_AI_GATEWAY_GET_LOG_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AI_GATEWAY_GET_LOG_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AI_GATEWAY_GET_LOG_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AI_GATEWAY_GET_LOG_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AI_GATEWAY_GET_LOG_DETAILS"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AI_GATEWAY_GET_LOG_DETAILS"
    },
    {
      "key": "CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
      "type": "fn",
      "category": "cf_ai_gateway",
      "doc": "Get Log Request Body MCP: https://ai-gateway.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
        "type": "fn",
        "what": [
          "Get Log Request Body",
          "MCP: https://ai-gateway.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AI_GATEWAY_GET_LOG_REQUEST_BODY]arg1[/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY]",
        "tag": "[CF_AI_GATEWAY_GET_LOG_REQUEST_BODY]<arg1 …>[/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AI_GATEWAY_GET_LOG_REQUEST_BODY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://ai-gateway.mcp.cloudflare.com/sse\",\"get_log_request_body\",\"$1+\",\"ai-gateway\"]",
      "edit": {
        "read": "GET /api/directory/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
        "update": "PUT /api/directory/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
        "patch": "PATCH /api/directory/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
        "delete": "DELETE /api/directory/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AI_GATEWAY_GET_LOG_REQUEST_BODY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AI_GATEWAY_GET_LOG_REQUEST_BODY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AI_GATEWAY_GET_LOG_REQUEST_BODY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AI_GATEWAY_GET_LOG_REQUEST_BODY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AI_GATEWAY_GET_LOG_REQUEST_BODY"
    },
    {
      "key": "CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
      "type": "fn",
      "category": "cf_ai_gateway",
      "doc": "Get Log Response Body MCP: https://ai-gateway.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
        "type": "fn",
        "what": [
          "Get Log Response Body",
          "MCP: https://ai-gateway.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY]arg1[/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY]",
        "tag": "[CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY]<arg1 …>[/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://ai-gateway.mcp.cloudflare.com/sse\",\"get_log_response_body\",\"$1+\",\"ai-gateway\"]",
      "edit": {
        "read": "GET /api/directory/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
        "update": "PUT /api/directory/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
        "patch": "PATCH /api/directory/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
        "delete": "DELETE /api/directory/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AI_GATEWAY_GET_LOG_RESPONSE_BODY"
    },
    {
      "key": "CF_AI_GATEWAY_LIST_GATEWAYS",
      "type": "fn",
      "category": "cf_ai_gateway",
      "doc": "List Gateways MCP: https://ai-gateway.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AI_GATEWAY_LIST_GATEWAYS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AI_GATEWAY_LIST_GATEWAYS",
        "type": "fn",
        "what": [
          "List Gateways",
          "MCP: https://ai-gateway.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AI_GATEWAY_LIST_GATEWAYS]arg1[/CF_AI_GATEWAY_LIST_GATEWAYS]",
        "tag": "[CF_AI_GATEWAY_LIST_GATEWAYS]<arg1 …>[/CF_AI_GATEWAY_LIST_GATEWAYS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AI_GATEWAY_LIST_GATEWAYS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AI_GATEWAY_LIST_GATEWAYS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://ai-gateway.mcp.cloudflare.com/sse\",\"list_gateways\",\"$1+\",\"ai-gateway\"]",
      "edit": {
        "read": "GET /api/directory/CF_AI_GATEWAY_LIST_GATEWAYS",
        "update": "PUT /api/directory/CF_AI_GATEWAY_LIST_GATEWAYS",
        "patch": "PATCH /api/directory/CF_AI_GATEWAY_LIST_GATEWAYS",
        "delete": "DELETE /api/directory/CF_AI_GATEWAY_LIST_GATEWAYS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AI_GATEWAY_LIST_GATEWAYS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AI_GATEWAY_LIST_GATEWAYS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AI_GATEWAY_LIST_GATEWAYS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AI_GATEWAY_LIST_GATEWAYS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AI_GATEWAY_LIST_GATEWAYS"
    },
    {
      "key": "CF_AI_GATEWAY_LIST_LOGS",
      "type": "fn",
      "category": "cf_ai_gateway",
      "doc": "List Logs MCP: https://ai-gateway.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AI_GATEWAY_LIST_LOGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AI_GATEWAY_LIST_LOGS",
        "type": "fn",
        "what": [
          "List Logs",
          "MCP: https://ai-gateway.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AI_GATEWAY_LIST_LOGS]arg1[/CF_AI_GATEWAY_LIST_LOGS]",
        "tag": "[CF_AI_GATEWAY_LIST_LOGS]<arg1 …>[/CF_AI_GATEWAY_LIST_LOGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AI_GATEWAY_LIST_LOGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AI_GATEWAY_LIST_LOGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://ai-gateway.mcp.cloudflare.com/sse\",\"list_logs\",\"$1+\",\"ai-gateway\"]",
      "edit": {
        "read": "GET /api/directory/CF_AI_GATEWAY_LIST_LOGS",
        "update": "PUT /api/directory/CF_AI_GATEWAY_LIST_LOGS",
        "patch": "PATCH /api/directory/CF_AI_GATEWAY_LIST_LOGS",
        "delete": "DELETE /api/directory/CF_AI_GATEWAY_LIST_LOGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AI_GATEWAY_LIST_LOGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AI_GATEWAY_LIST_LOGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AI_GATEWAY_LIST_LOGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AI_GATEWAY_LIST_LOGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AI_GATEWAY_LIST_LOGS"
    },
    {
      "key": "CF_API_GAPS",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Analyze the CF row target_map. Returns counts, known namespaces, expected namespaces, missing namespaces, coverage_pct WHEN_TO_USE: you need to cf api gaps ARGS: none EX: [CF_API_GAPS][/CF_API_GAPS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_API_GAPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_API_GAPS",
        "type": "fn",
        "what": [
          "WHAT: Analyze the CF row target_map. Returns counts, known namespaces, expected namespaces, missing namespaces, coverage_pct",
          "WHEN_TO_USE: you need to cf api gaps",
          "ARGS: none",
          "EX: [CF_API_GAPS][/CF_API_GAPS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "counts, known namespaces, expected namespaces, missing namespaces, coverage_pct",
        "example": "[CF_API_GAPS][/CF_API_GAPS]",
        "tag": "[CF_API_GAPS][/CF_API_GAPS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_API_GAPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_API_GAPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/CF_API_GAPS",
        "update": "PUT /api/directory/CF_API_GAPS",
        "patch": "PATCH /api/directory/CF_API_GAPS",
        "delete": "DELETE /api/directory/CF_API_GAPS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_API_GAPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_API_GAPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_API_GAPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_API_GAPS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_API_GAPS"
    },
    {
      "key": "CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
      "type": "fn",
      "category": "cf_auditlogs",
      "doc": "Find all audit logs (a list of who made what change when) for a Cloudflare Account by ID. This can be used to query activity on your Cloudflare account at a particular time. Since and before are requi MCP: https://auditlogs.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
        "type": "fn",
        "what": [
          "Find all audit logs (a list of who made what change when) for a Cloudflare Account by ID. This can be used to query activity on your Cloudflare account at a particular time. Since and before are requi",
          "MCP: https://auditlogs.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID]arg1[/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID]",
        "tag": "[CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID]<arg1 …>[/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://auditlogs.mcp.cloudflare.com/sse\",\"auditlogs_by_account_id\",\"$1+\",\"auditlogs\"]",
      "edit": {
        "read": "GET /api/directory/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
        "update": "PUT /api/directory/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
        "patch": "PATCH /api/directory/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
        "delete": "DELETE /api/directory/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID"
      },
      "examples": "[\"test|2023-01-01|2023-01-02\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AUDITLOGS_AUDITLOGS_BY_ACCOUNT_ID"
    },
    {
      "key": "CF_AUTORAG_AI_SEARCH",
      "type": "fn",
      "category": "cf_autorag",
      "doc": "AI Search Documents using AutoRAG (vector store) MCP: https://autorag.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AUTORAG_AI_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AUTORAG_AI_SEARCH",
        "type": "fn",
        "what": [
          "AI Search Documents using AutoRAG (vector store)",
          "MCP: https://autorag.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AUTORAG_AI_SEARCH]arg1[/CF_AUTORAG_AI_SEARCH]",
        "tag": "[CF_AUTORAG_AI_SEARCH]<arg1 …>[/CF_AUTORAG_AI_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AUTORAG_AI_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AUTORAG_AI_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://autorag.mcp.cloudflare.com/sse\",\"ai_search\",\"$1+\",\"autorag\"]",
      "edit": {
        "read": "GET /api/directory/CF_AUTORAG_AI_SEARCH",
        "update": "PUT /api/directory/CF_AUTORAG_AI_SEARCH",
        "patch": "PATCH /api/directory/CF_AUTORAG_AI_SEARCH",
        "delete": "DELETE /api/directory/CF_AUTORAG_AI_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AUTORAG_AI_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AUTORAG_AI_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AUTORAG_AI_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AUTORAG_AI_SEARCH"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AUTORAG_AI_SEARCH"
    },
    {
      "key": "CF_AUTORAG_LIST_RAGS",
      "type": "fn",
      "category": "cf_autorag",
      "doc": "List AutoRAGs (vector stores) MCP: https://autorag.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AUTORAG_LIST_RAGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AUTORAG_LIST_RAGS",
        "type": "fn",
        "what": [
          "List AutoRAGs (vector stores)",
          "MCP: https://autorag.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AUTORAG_LIST_RAGS]arg1[/CF_AUTORAG_LIST_RAGS]",
        "tag": "[CF_AUTORAG_LIST_RAGS]<arg1 …>[/CF_AUTORAG_LIST_RAGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AUTORAG_LIST_RAGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AUTORAG_LIST_RAGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://autorag.mcp.cloudflare.com/sse\",\"list_rags\",\"$1+\",\"autorag\"]",
      "edit": {
        "read": "GET /api/directory/CF_AUTORAG_LIST_RAGS",
        "update": "PUT /api/directory/CF_AUTORAG_LIST_RAGS",
        "patch": "PATCH /api/directory/CF_AUTORAG_LIST_RAGS",
        "delete": "DELETE /api/directory/CF_AUTORAG_LIST_RAGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AUTORAG_LIST_RAGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AUTORAG_LIST_RAGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AUTORAG_LIST_RAGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AUTORAG_LIST_RAGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AUTORAG_LIST_RAGS"
    },
    {
      "key": "CF_AUTORAG_SEARCH",
      "type": "fn",
      "category": "cf_autorag",
      "doc": "Search Documents using AutoRAG (vector store) MCP: https://autorag.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_AUTORAG_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_AUTORAG_SEARCH",
        "type": "fn",
        "what": [
          "Search Documents using AutoRAG (vector store)",
          "MCP: https://autorag.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_AUTORAG_SEARCH]arg1[/CF_AUTORAG_SEARCH]",
        "tag": "[CF_AUTORAG_SEARCH]<arg1 …>[/CF_AUTORAG_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_AUTORAG_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_AUTORAG_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://autorag.mcp.cloudflare.com/sse\",\"search\",\"$1+\",\"autorag\"]",
      "edit": {
        "read": "GET /api/directory/CF_AUTORAG_SEARCH",
        "update": "PUT /api/directory/CF_AUTORAG_SEARCH",
        "patch": "PATCH /api/directory/CF_AUTORAG_SEARCH",
        "delete": "DELETE /api/directory/CF_AUTORAG_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_AUTORAG_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_AUTORAG_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_AUTORAG_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_AUTORAG_SEARCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_AUTORAG_SEARCH"
    },
    {
      "key": "CF_BINDINGS_D1_DATABASES_LIST",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "List all of the D1 databases in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_D1_DATABASES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_D1_DATABASES_LIST",
        "type": "fn",
        "what": [
          "List all of the D1 databases in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_D1_DATABASES_LIST]arg1[/CF_BINDINGS_D1_DATABASES_LIST]",
        "tag": "[CF_BINDINGS_D1_DATABASES_LIST]<arg1 …>[/CF_BINDINGS_D1_DATABASES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_D1_DATABASES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_D1_DATABASES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"d1_databases_list\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_D1_DATABASES_LIST",
        "update": "PUT /api/directory/CF_BINDINGS_D1_DATABASES_LIST",
        "patch": "PATCH /api/directory/CF_BINDINGS_D1_DATABASES_LIST",
        "delete": "DELETE /api/directory/CF_BINDINGS_D1_DATABASES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_D1_DATABASES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_D1_DATABASES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_D1_DATABASES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_D1_DATABASES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_D1_DATABASES_LIST"
    },
    {
      "key": "CF_BINDINGS_D1_DATABASE_CREATE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Create a new D1 database in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_D1_DATABASE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_D1_DATABASE_CREATE",
        "type": "fn",
        "what": [
          "Create a new D1 database in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_D1_DATABASE_CREATE]arg1[/CF_BINDINGS_D1_DATABASE_CREATE]",
        "tag": "[CF_BINDINGS_D1_DATABASE_CREATE]<arg1 …>[/CF_BINDINGS_D1_DATABASE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_D1_DATABASE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_D1_DATABASE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"d1_database_create\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_D1_DATABASE_CREATE",
        "update": "PUT /api/directory/CF_BINDINGS_D1_DATABASE_CREATE",
        "patch": "PATCH /api/directory/CF_BINDINGS_D1_DATABASE_CREATE",
        "delete": "DELETE /api/directory/CF_BINDINGS_D1_DATABASE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_D1_DATABASE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_D1_DATABASE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_D1_DATABASE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_D1_DATABASE_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_D1_DATABASE_CREATE"
    },
    {
      "key": "CF_BINDINGS_D1_DATABASE_DELETE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Delete a d1 database in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_D1_DATABASE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_D1_DATABASE_DELETE",
        "type": "fn",
        "what": [
          "Delete a d1 database in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_D1_DATABASE_DELETE]arg1[/CF_BINDINGS_D1_DATABASE_DELETE]",
        "tag": "[CF_BINDINGS_D1_DATABASE_DELETE]<arg1 …>[/CF_BINDINGS_D1_DATABASE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_D1_DATABASE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_D1_DATABASE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"d1_database_delete\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_D1_DATABASE_DELETE",
        "update": "PUT /api/directory/CF_BINDINGS_D1_DATABASE_DELETE",
        "patch": "PATCH /api/directory/CF_BINDINGS_D1_DATABASE_DELETE",
        "delete": "DELETE /api/directory/CF_BINDINGS_D1_DATABASE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_D1_DATABASE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_D1_DATABASE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_D1_DATABASE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_D1_DATABASE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_D1_DATABASE_DELETE"
    },
    {
      "key": "CF_BINDINGS_D1_DATABASE_GET",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get a D1 database in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_D1_DATABASE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_D1_DATABASE_GET",
        "type": "fn",
        "what": [
          "Get a D1 database in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_D1_DATABASE_GET]arg1[/CF_BINDINGS_D1_DATABASE_GET]",
        "tag": "[CF_BINDINGS_D1_DATABASE_GET]<arg1 …>[/CF_BINDINGS_D1_DATABASE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_D1_DATABASE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_D1_DATABASE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"d1_database_get\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_D1_DATABASE_GET",
        "update": "PUT /api/directory/CF_BINDINGS_D1_DATABASE_GET",
        "patch": "PATCH /api/directory/CF_BINDINGS_D1_DATABASE_GET",
        "delete": "DELETE /api/directory/CF_BINDINGS_D1_DATABASE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_D1_DATABASE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_D1_DATABASE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_D1_DATABASE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_D1_DATABASE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_D1_DATABASE_GET"
    },
    {
      "key": "CF_BINDINGS_D1_DATABASE_QUERY",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Query a D1 database in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_D1_DATABASE_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_D1_DATABASE_QUERY",
        "type": "fn",
        "what": [
          "Query a D1 database in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_D1_DATABASE_QUERY]arg1[/CF_BINDINGS_D1_DATABASE_QUERY]",
        "tag": "[CF_BINDINGS_D1_DATABASE_QUERY]<arg1 …>[/CF_BINDINGS_D1_DATABASE_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_D1_DATABASE_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_D1_DATABASE_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"d1_database_query\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_D1_DATABASE_QUERY",
        "update": "PUT /api/directory/CF_BINDINGS_D1_DATABASE_QUERY",
        "patch": "PATCH /api/directory/CF_BINDINGS_D1_DATABASE_QUERY",
        "delete": "DELETE /api/directory/CF_BINDINGS_D1_DATABASE_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_D1_DATABASE_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_D1_DATABASE_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_D1_DATABASE_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_D1_DATABASE_QUERY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_D1_DATABASE_QUERY"
    },
    {
      "key": "CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "List Hyperdrive configurations in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
        "type": "fn",
        "what": [
          "List Hyperdrive configurations in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST]arg1[/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST]",
        "tag": "[CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST]<arg1 …>[/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"hyperdrive_configs_list\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
        "update": "PUT /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
        "patch": "PATCH /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
        "delete": "DELETE /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_HYPERDRIVE_CONFIGS_LIST"
    },
    {
      "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Delete a Hyperdrive configuration in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
        "type": "fn",
        "what": [
          "Delete a Hyperdrive configuration in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE]arg1[/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE]",
        "tag": "[CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE]<arg1 …>[/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"hyperdrive_config_delete\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
        "update": "PUT /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
        "patch": "PATCH /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
        "delete": "DELETE /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_HYPERDRIVE_CONFIG_DELETE"
    },
    {
      "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Edit (patch) a Hyperdrive configuration in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
        "type": "fn",
        "what": [
          "Edit (patch) a Hyperdrive configuration in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT]arg1[/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT]",
        "tag": "[CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT]<arg1 …>[/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"hyperdrive_config_edit\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
        "update": "PUT /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
        "patch": "PATCH /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
        "delete": "DELETE /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_HYPERDRIVE_CONFIG_EDIT"
    },
    {
      "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get details of a specific Hyperdrive configuration in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
        "type": "fn",
        "what": [
          "Get details of a specific Hyperdrive configuration in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_HYPERDRIVE_CONFIG_GET]arg1[/CF_BINDINGS_HYPERDRIVE_CONFIG_GET]",
        "tag": "[CF_BINDINGS_HYPERDRIVE_CONFIG_GET]<arg1 …>[/CF_BINDINGS_HYPERDRIVE_CONFIG_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_HYPERDRIVE_CONFIG_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"hyperdrive_config_get\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
        "update": "PUT /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
        "patch": "PATCH /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
        "delete": "DELETE /api/directory/CF_BINDINGS_HYPERDRIVE_CONFIG_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_HYPERDRIVE_CONFIG_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_HYPERDRIVE_CONFIG_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_HYPERDRIVE_CONFIG_GET"
    },
    {
      "key": "CF_BINDINGS_KV_NAMESPACES_LIST",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "List all of the kv namespaces in your Cloudflare account. Use this tool when you need to list all of the kv namespaces in your Cloudflare account. Returns a list of kv namespaces with the following p MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_KV_NAMESPACES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_KV_NAMESPACES_LIST",
        "type": "fn",
        "what": [
          " List all of the kv namespaces in your Cloudflare account. Use this tool when you need to list all of the kv namespaces in your Cloudflare account. Returns a list of kv namespaces with the following p",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a list of kv namespaces with the following p",
        "example": "[CF_BINDINGS_KV_NAMESPACES_LIST]arg1[/CF_BINDINGS_KV_NAMESPACES_LIST]",
        "tag": "[CF_BINDINGS_KV_NAMESPACES_LIST]<arg1 …>[/CF_BINDINGS_KV_NAMESPACES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_KV_NAMESPACES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_KV_NAMESPACES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"kv_namespaces_list\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_KV_NAMESPACES_LIST",
        "update": "PUT /api/directory/CF_BINDINGS_KV_NAMESPACES_LIST",
        "patch": "PATCH /api/directory/CF_BINDINGS_KV_NAMESPACES_LIST",
        "delete": "DELETE /api/directory/CF_BINDINGS_KV_NAMESPACES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_KV_NAMESPACES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_KV_NAMESPACES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_KV_NAMESPACES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_KV_NAMESPACES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_KV_NAMESPACES_LIST"
    },
    {
      "key": "CF_BINDINGS_KV_NAMESPACE_CREATE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Create a new kv namespace in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_KV_NAMESPACE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_KV_NAMESPACE_CREATE",
        "type": "fn",
        "what": [
          "Create a new kv namespace in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_KV_NAMESPACE_CREATE]arg1[/CF_BINDINGS_KV_NAMESPACE_CREATE]",
        "tag": "[CF_BINDINGS_KV_NAMESPACE_CREATE]<arg1 …>[/CF_BINDINGS_KV_NAMESPACE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_KV_NAMESPACE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_KV_NAMESPACE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"kv_namespace_create\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_KV_NAMESPACE_CREATE",
        "update": "PUT /api/directory/CF_BINDINGS_KV_NAMESPACE_CREATE",
        "patch": "PATCH /api/directory/CF_BINDINGS_KV_NAMESPACE_CREATE",
        "delete": "DELETE /api/directory/CF_BINDINGS_KV_NAMESPACE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_KV_NAMESPACE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_KV_NAMESPACE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_KV_NAMESPACE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_KV_NAMESPACE_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_KV_NAMESPACE_CREATE"
    },
    {
      "key": "CF_BINDINGS_KV_NAMESPACE_DELETE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Delete a kv namespace in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_KV_NAMESPACE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_KV_NAMESPACE_DELETE",
        "type": "fn",
        "what": [
          "Delete a kv namespace in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_KV_NAMESPACE_DELETE]arg1[/CF_BINDINGS_KV_NAMESPACE_DELETE]",
        "tag": "[CF_BINDINGS_KV_NAMESPACE_DELETE]<arg1 …>[/CF_BINDINGS_KV_NAMESPACE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_KV_NAMESPACE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_KV_NAMESPACE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"kv_namespace_delete\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_KV_NAMESPACE_DELETE",
        "update": "PUT /api/directory/CF_BINDINGS_KV_NAMESPACE_DELETE",
        "patch": "PATCH /api/directory/CF_BINDINGS_KV_NAMESPACE_DELETE",
        "delete": "DELETE /api/directory/CF_BINDINGS_KV_NAMESPACE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_KV_NAMESPACE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_KV_NAMESPACE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_KV_NAMESPACE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_KV_NAMESPACE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_KV_NAMESPACE_DELETE"
    },
    {
      "key": "CF_BINDINGS_KV_NAMESPACE_GET",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get details of a kv namespace in your Cloudflare account. Use this tool when you need to get details of a specific kv namespace in your Cloudflare account. Returns a kv namespace with the following pr MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_KV_NAMESPACE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_KV_NAMESPACE_GET",
        "type": "fn",
        "what": [
          "Get details of a kv namespace in your Cloudflare account. Use this tool when you need to get details of a specific kv namespace in your Cloudflare account. Returns a kv namespace with the following pr",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a kv namespace with the following pr",
        "example": "[CF_BINDINGS_KV_NAMESPACE_GET]arg1[/CF_BINDINGS_KV_NAMESPACE_GET]",
        "tag": "[CF_BINDINGS_KV_NAMESPACE_GET]<arg1 …>[/CF_BINDINGS_KV_NAMESPACE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_KV_NAMESPACE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_KV_NAMESPACE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"kv_namespace_get\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_KV_NAMESPACE_GET",
        "update": "PUT /api/directory/CF_BINDINGS_KV_NAMESPACE_GET",
        "patch": "PATCH /api/directory/CF_BINDINGS_KV_NAMESPACE_GET",
        "delete": "DELETE /api/directory/CF_BINDINGS_KV_NAMESPACE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_KV_NAMESPACE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_KV_NAMESPACE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_KV_NAMESPACE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_KV_NAMESPACE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_KV_NAMESPACE_GET"
    },
    {
      "key": "CF_BINDINGS_KV_NAMESPACE_UPDATE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Update the title of a kv namespace in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_KV_NAMESPACE_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_KV_NAMESPACE_UPDATE",
        "type": "fn",
        "what": [
          "Update the title of a kv namespace in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_KV_NAMESPACE_UPDATE]arg1[/CF_BINDINGS_KV_NAMESPACE_UPDATE]",
        "tag": "[CF_BINDINGS_KV_NAMESPACE_UPDATE]<arg1 …>[/CF_BINDINGS_KV_NAMESPACE_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_KV_NAMESPACE_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_KV_NAMESPACE_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"kv_namespace_update\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_KV_NAMESPACE_UPDATE",
        "update": "PUT /api/directory/CF_BINDINGS_KV_NAMESPACE_UPDATE",
        "patch": "PATCH /api/directory/CF_BINDINGS_KV_NAMESPACE_UPDATE",
        "delete": "DELETE /api/directory/CF_BINDINGS_KV_NAMESPACE_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_KV_NAMESPACE_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_KV_NAMESPACE_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_KV_NAMESPACE_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_KV_NAMESPACE_UPDATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_KV_NAMESPACE_UPDATE"
    },
    {
      "key": "CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "ALWAYS read this guide before migrating Pages projects to Workers. MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "type": "fn",
        "what": [
          "ALWAYS read this guide before migrating Pages projects to Workers.",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE]arg1[/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "tag": "[CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE]<arg1 …>[/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"migrate_pages_to_workers_guide\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "update": "PUT /api/directory/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "patch": "PATCH /api/directory/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "delete": "DELETE /api/directory/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_MIGRATE_PAGES_TO_WORKERS_GUIDE"
    },
    {
      "key": "CF_BINDINGS_R2_BUCKETS_LIST",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "List r2 buckets in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_R2_BUCKETS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_R2_BUCKETS_LIST",
        "type": "fn",
        "what": [
          "List r2 buckets in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_R2_BUCKETS_LIST]arg1[/CF_BINDINGS_R2_BUCKETS_LIST]",
        "tag": "[CF_BINDINGS_R2_BUCKETS_LIST]<arg1 …>[/CF_BINDINGS_R2_BUCKETS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_R2_BUCKETS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_R2_BUCKETS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"r2_buckets_list\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_R2_BUCKETS_LIST",
        "update": "PUT /api/directory/CF_BINDINGS_R2_BUCKETS_LIST",
        "patch": "PATCH /api/directory/CF_BINDINGS_R2_BUCKETS_LIST",
        "delete": "DELETE /api/directory/CF_BINDINGS_R2_BUCKETS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_R2_BUCKETS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_R2_BUCKETS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_R2_BUCKETS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_R2_BUCKETS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_R2_BUCKETS_LIST"
    },
    {
      "key": "CF_BINDINGS_R2_BUCKET_CREATE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Create a new r2 bucket in your Cloudflare account MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_R2_BUCKET_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_R2_BUCKET_CREATE",
        "type": "fn",
        "what": [
          "Create a new r2 bucket in your Cloudflare account",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_R2_BUCKET_CREATE]arg1[/CF_BINDINGS_R2_BUCKET_CREATE]",
        "tag": "[CF_BINDINGS_R2_BUCKET_CREATE]<arg1 …>[/CF_BINDINGS_R2_BUCKET_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_R2_BUCKET_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_R2_BUCKET_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"r2_bucket_create\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_R2_BUCKET_CREATE",
        "update": "PUT /api/directory/CF_BINDINGS_R2_BUCKET_CREATE",
        "patch": "PATCH /api/directory/CF_BINDINGS_R2_BUCKET_CREATE",
        "delete": "DELETE /api/directory/CF_BINDINGS_R2_BUCKET_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_R2_BUCKET_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_R2_BUCKET_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_R2_BUCKET_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_R2_BUCKET_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_R2_BUCKET_CREATE"
    },
    {
      "key": "CF_BINDINGS_R2_BUCKET_DELETE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Delete an R2 bucket MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_R2_BUCKET_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_R2_BUCKET_DELETE",
        "type": "fn",
        "what": [
          "Delete an R2 bucket",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_R2_BUCKET_DELETE]arg1[/CF_BINDINGS_R2_BUCKET_DELETE]",
        "tag": "[CF_BINDINGS_R2_BUCKET_DELETE]<arg1 …>[/CF_BINDINGS_R2_BUCKET_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_R2_BUCKET_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_R2_BUCKET_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"r2_bucket_delete\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_R2_BUCKET_DELETE",
        "update": "PUT /api/directory/CF_BINDINGS_R2_BUCKET_DELETE",
        "patch": "PATCH /api/directory/CF_BINDINGS_R2_BUCKET_DELETE",
        "delete": "DELETE /api/directory/CF_BINDINGS_R2_BUCKET_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_R2_BUCKET_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_R2_BUCKET_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_R2_BUCKET_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_R2_BUCKET_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_R2_BUCKET_DELETE"
    },
    {
      "key": "CF_BINDINGS_R2_BUCKET_GET",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get details about a specific R2 bucket MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_R2_BUCKET_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_R2_BUCKET_GET",
        "type": "fn",
        "what": [
          "Get details about a specific R2 bucket",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_R2_BUCKET_GET]arg1[/CF_BINDINGS_R2_BUCKET_GET]",
        "tag": "[CF_BINDINGS_R2_BUCKET_GET]<arg1 …>[/CF_BINDINGS_R2_BUCKET_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_R2_BUCKET_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_R2_BUCKET_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"r2_bucket_get\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_R2_BUCKET_GET",
        "update": "PUT /api/directory/CF_BINDINGS_R2_BUCKET_GET",
        "patch": "PATCH /api/directory/CF_BINDINGS_R2_BUCKET_GET",
        "delete": "DELETE /api/directory/CF_BINDINGS_R2_BUCKET_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_R2_BUCKET_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_R2_BUCKET_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_R2_BUCKET_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_R2_BUCKET_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_R2_BUCKET_GET"
    },
    {
      "key": "CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "type": "fn",
        "what": [
          "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION]arg1[/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "tag": "[CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION]<arg1 …>[/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"search_cloudflare_documentation\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "update": "PUT /api/directory/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "patch": "PATCH /api/directory/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "delete": "DELETE /api/directory/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION"
      },
      "examples": "[\"workers\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_SEARCH_CLOUDFLARE_DOCUMENTATION"
    },
    {
      "key": "CF_BINDINGS_WORKERS_GET_WORKER",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get the details of the Cloudflare Worker. MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_WORKERS_GET_WORKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_WORKERS_GET_WORKER",
        "type": "fn",
        "what": [
          "Get the details of the Cloudflare Worker.",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_WORKERS_GET_WORKER]arg1[/CF_BINDINGS_WORKERS_GET_WORKER]",
        "tag": "[CF_BINDINGS_WORKERS_GET_WORKER]<arg1 …>[/CF_BINDINGS_WORKERS_GET_WORKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_WORKERS_GET_WORKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"workers_get_worker\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_WORKERS_GET_WORKER",
        "update": "PUT /api/directory/CF_BINDINGS_WORKERS_GET_WORKER",
        "patch": "PATCH /api/directory/CF_BINDINGS_WORKERS_GET_WORKER",
        "delete": "DELETE /api/directory/CF_BINDINGS_WORKERS_GET_WORKER",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_WORKERS_GET_WORKER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_WORKERS_GET_WORKER"
    },
    {
      "key": "CF_BINDINGS_WORKERS_GET_WORKER_CODE",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker. MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_WORKERS_GET_WORKER_CODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_WORKERS_GET_WORKER_CODE",
        "type": "fn",
        "what": [
          "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker.",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_WORKERS_GET_WORKER_CODE]arg1[/CF_BINDINGS_WORKERS_GET_WORKER_CODE]",
        "tag": "[CF_BINDINGS_WORKERS_GET_WORKER_CODE]<arg1 …>[/CF_BINDINGS_WORKERS_GET_WORKER_CODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER_CODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_WORKERS_GET_WORKER_CODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"workers_get_worker_code\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_WORKERS_GET_WORKER_CODE",
        "update": "PUT /api/directory/CF_BINDINGS_WORKERS_GET_WORKER_CODE",
        "patch": "PATCH /api/directory/CF_BINDINGS_WORKERS_GET_WORKER_CODE",
        "delete": "DELETE /api/directory/CF_BINDINGS_WORKERS_GET_WORKER_CODE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER_CODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER_CODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_WORKERS_GET_WORKER_CODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_WORKERS_GET_WORKER_CODE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_WORKERS_GET_WORKER_CODE"
    },
    {
      "key": "CF_BINDINGS_WORKERS_LIST",
      "type": "fn",
      "category": "cf_bindings",
      "doc": "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker. MCP: https://bindings.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BINDINGS_WORKERS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BINDINGS_WORKERS_LIST",
        "type": "fn",
        "what": [
          "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker.",
          "MCP: https://bindings.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BINDINGS_WORKERS_LIST]arg1[/CF_BINDINGS_WORKERS_LIST]",
        "tag": "[CF_BINDINGS_WORKERS_LIST]<arg1 …>[/CF_BINDINGS_WORKERS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BINDINGS_WORKERS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BINDINGS_WORKERS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bindings.mcp.cloudflare.com/mcp\",\"workers_list\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BINDINGS_WORKERS_LIST",
        "update": "PUT /api/directory/CF_BINDINGS_WORKERS_LIST",
        "patch": "PATCH /api/directory/CF_BINDINGS_WORKERS_LIST",
        "delete": "DELETE /api/directory/CF_BINDINGS_WORKERS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BINDINGS_WORKERS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BINDINGS_WORKERS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BINDINGS_WORKERS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BINDINGS_WORKERS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BINDINGS_WORKERS_LIST"
    },
    {
      "key": "CF_BROWSER_CANCEL_CRAWL",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Cancel a running crawl job MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_CANCEL_CRAWL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_CANCEL_CRAWL",
        "type": "fn",
        "what": [
          "Cancel a running crawl job",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_CANCEL_CRAWL]arg1[/CF_BROWSER_CANCEL_CRAWL]",
        "tag": "[CF_BROWSER_CANCEL_CRAWL]<arg1 …>[/CF_BROWSER_CANCEL_CRAWL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_CANCEL_CRAWL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_CANCEL_CRAWL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"cancel_crawl\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_CANCEL_CRAWL",
        "update": "PUT /api/directory/CF_BROWSER_CANCEL_CRAWL",
        "patch": "PATCH /api/directory/CF_BROWSER_CANCEL_CRAWL",
        "delete": "DELETE /api/directory/CF_BROWSER_CANCEL_CRAWL",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_CANCEL_CRAWL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_CANCEL_CRAWL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_CANCEL_CRAWL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_CANCEL_CRAWL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_CANCEL_CRAWL"
    },
    {
      "key": "CF_BROWSER_GET_CRAWL_RESULT",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get the status and records of a crawl job started with start_crawl MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_CRAWL_RESULT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_CRAWL_RESULT",
        "type": "fn",
        "what": [
          "Get the status and records of a crawl job started with start_crawl",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_CRAWL_RESULT]arg1[/CF_BROWSER_GET_CRAWL_RESULT]",
        "tag": "[CF_BROWSER_GET_CRAWL_RESULT]<arg1 …>[/CF_BROWSER_GET_CRAWL_RESULT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_CRAWL_RESULT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_CRAWL_RESULT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"get_crawl_result\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_CRAWL_RESULT",
        "update": "PUT /api/directory/CF_BROWSER_GET_CRAWL_RESULT",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_CRAWL_RESULT",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_CRAWL_RESULT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_CRAWL_RESULT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_CRAWL_RESULT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_CRAWL_RESULT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_CRAWL_RESULT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_CRAWL_RESULT"
    },
    {
      "key": "CF_BROWSER_GET_URL_HTML_CONTENT",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get page HTML content MCP: https://browser.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_HTML_CONTENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_HTML_CONTENT",
        "type": "fn",
        "what": [
          "Get page HTML content",
          "MCP: https://browser.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_HTML_CONTENT]arg1[/CF_BROWSER_GET_URL_HTML_CONTENT]",
        "tag": "[CF_BROWSER_GET_URL_HTML_CONTENT]<arg1 …>[/CF_BROWSER_GET_URL_HTML_CONTENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_HTML_CONTENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_HTML_CONTENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/sse\",\"get_url_html_content\",\"$1+\",\"browser\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_HTML_CONTENT",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_HTML_CONTENT",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_HTML_CONTENT",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_HTML_CONTENT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_HTML_CONTENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_HTML_CONTENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_HTML_CONTENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_HTML_CONTENT"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_HTML_CONTENT"
    },
    {
      "key": "CF_BROWSER_GET_URL_JSON",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Extract structured JSON from a page using AI. Provide a prompt and/or a response_format JSON schema to guide extraction. MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_JSON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_JSON",
        "type": "fn",
        "what": [
          "Extract structured JSON from a page using AI. Provide a prompt and/or a response_format JSON schema to guide extraction.",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_JSON]arg1[/CF_BROWSER_GET_URL_JSON]",
        "tag": "[CF_BROWSER_GET_URL_JSON]<arg1 …>[/CF_BROWSER_GET_URL_JSON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_JSON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_JSON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"get_url_json\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_JSON",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_JSON",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_JSON",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_JSON",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_JSON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_JSON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_JSON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_JSON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_JSON"
    },
    {
      "key": "CF_BROWSER_GET_URL_LINKS",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get the list of links on a page MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_LINKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_LINKS",
        "type": "fn",
        "what": [
          "Get the list of links on a page",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_LINKS]arg1[/CF_BROWSER_GET_URL_LINKS]",
        "tag": "[CF_BROWSER_GET_URL_LINKS]<arg1 …>[/CF_BROWSER_GET_URL_LINKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_LINKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_LINKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"get_url_links\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_LINKS",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_LINKS",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_LINKS",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_LINKS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_LINKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_LINKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_LINKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_LINKS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_LINKS"
    },
    {
      "key": "CF_BROWSER_GET_URL_MARKDOWN",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get page converted into Markdown MCP: https://browser.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_MARKDOWN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_MARKDOWN",
        "type": "fn",
        "what": [
          "Get page converted into Markdown",
          "MCP: https://browser.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_MARKDOWN]arg1[/CF_BROWSER_GET_URL_MARKDOWN]",
        "tag": "[CF_BROWSER_GET_URL_MARKDOWN]<arg1 …>[/CF_BROWSER_GET_URL_MARKDOWN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_MARKDOWN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_MARKDOWN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/sse\",\"get_url_markdown\",\"$1+\",\"browser\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_MARKDOWN",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_MARKDOWN",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_MARKDOWN",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_MARKDOWN",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_MARKDOWN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_MARKDOWN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_MARKDOWN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_MARKDOWN"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_MARKDOWN"
    },
    {
      "key": "CF_BROWSER_GET_URL_PDF",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Render a page to PDF MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_PDF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_PDF",
        "type": "fn",
        "what": [
          "Render a page to PDF",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_PDF]arg1[/CF_BROWSER_GET_URL_PDF]",
        "tag": "[CF_BROWSER_GET_URL_PDF]<arg1 …>[/CF_BROWSER_GET_URL_PDF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_PDF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_PDF  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"get_url_pdf\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_PDF",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_PDF",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_PDF",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_PDF",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_PDF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_PDF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_PDF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_PDF"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_PDF"
    },
    {
      "key": "CF_BROWSER_GET_URL_SCREENSHOT",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get page screenshot MCP: https://browser.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_SCREENSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_SCREENSHOT",
        "type": "fn",
        "what": [
          "Get page screenshot",
          "MCP: https://browser.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_SCREENSHOT]arg1[/CF_BROWSER_GET_URL_SCREENSHOT]",
        "tag": "[CF_BROWSER_GET_URL_SCREENSHOT]<arg1 …>[/CF_BROWSER_GET_URL_SCREENSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_SCREENSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_SCREENSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/sse\",\"get_url_screenshot\",\"$1+\",\"browser\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_SCREENSHOT",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_SCREENSHOT",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_SCREENSHOT",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_SCREENSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_SCREENSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_SCREENSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_SCREENSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_SCREENSHOT"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_SCREENSHOT"
    },
    {
      "key": "CF_BROWSER_GET_URL_SNAPSHOT",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Get page HTML content and a screenshot in a single call MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_GET_URL_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_GET_URL_SNAPSHOT",
        "type": "fn",
        "what": [
          "Get page HTML content and a screenshot in a single call",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_GET_URL_SNAPSHOT]arg1[/CF_BROWSER_GET_URL_SNAPSHOT]",
        "tag": "[CF_BROWSER_GET_URL_SNAPSHOT]<arg1 …>[/CF_BROWSER_GET_URL_SNAPSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_GET_URL_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_GET_URL_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"get_url_snapshot\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_GET_URL_SNAPSHOT",
        "update": "PUT /api/directory/CF_BROWSER_GET_URL_SNAPSHOT",
        "patch": "PATCH /api/directory/CF_BROWSER_GET_URL_SNAPSHOT",
        "delete": "DELETE /api/directory/CF_BROWSER_GET_URL_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_GET_URL_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_GET_URL_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_GET_URL_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_GET_URL_SNAPSHOT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_GET_URL_SNAPSHOT"
    },
    {
      "key": "CF_BROWSER_KILL_BROWSER_SESSION",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Close (kill) a Browser Run session by its session ID MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_KILL_BROWSER_SESSION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_KILL_BROWSER_SESSION",
        "type": "fn",
        "what": [
          "Close (kill) a Browser Run session by its session ID",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_KILL_BROWSER_SESSION]arg1[/CF_BROWSER_KILL_BROWSER_SESSION]",
        "tag": "[CF_BROWSER_KILL_BROWSER_SESSION]<arg1 …>[/CF_BROWSER_KILL_BROWSER_SESSION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_KILL_BROWSER_SESSION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_KILL_BROWSER_SESSION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"kill_browser_session\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_KILL_BROWSER_SESSION",
        "update": "PUT /api/directory/CF_BROWSER_KILL_BROWSER_SESSION",
        "patch": "PATCH /api/directory/CF_BROWSER_KILL_BROWSER_SESSION",
        "delete": "DELETE /api/directory/CF_BROWSER_KILL_BROWSER_SESSION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_KILL_BROWSER_SESSION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_KILL_BROWSER_SESSION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_KILL_BROWSER_SESSION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_KILL_BROWSER_SESSION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_KILL_BROWSER_SESSION"
    },
    {
      "key": "CF_BROWSER_LIST_BROWSER_SESSIONS",
      "type": "fn",
      "category": "cf_browser",
      "doc": "List active Browser Run sessions for the account MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_LIST_BROWSER_SESSIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_LIST_BROWSER_SESSIONS",
        "type": "fn",
        "what": [
          "List active Browser Run sessions for the account",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_LIST_BROWSER_SESSIONS]arg1[/CF_BROWSER_LIST_BROWSER_SESSIONS]",
        "tag": "[CF_BROWSER_LIST_BROWSER_SESSIONS]<arg1 …>[/CF_BROWSER_LIST_BROWSER_SESSIONS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_LIST_BROWSER_SESSIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_LIST_BROWSER_SESSIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"list_browser_sessions\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_LIST_BROWSER_SESSIONS",
        "update": "PUT /api/directory/CF_BROWSER_LIST_BROWSER_SESSIONS",
        "patch": "PATCH /api/directory/CF_BROWSER_LIST_BROWSER_SESSIONS",
        "delete": "DELETE /api/directory/CF_BROWSER_LIST_BROWSER_SESSIONS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_LIST_BROWSER_SESSIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_LIST_BROWSER_SESSIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_LIST_BROWSER_SESSIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_LIST_BROWSER_SESSIONS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_LIST_BROWSER_SESSIONS"
    },
    {
      "key": "CF_BROWSER_SCRAPE_URL_ELEMENTS",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Scrape elements from a page by CSS selector MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_SCRAPE_URL_ELEMENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_SCRAPE_URL_ELEMENTS",
        "type": "fn",
        "what": [
          "Scrape elements from a page by CSS selector",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BROWSER_SCRAPE_URL_ELEMENTS]arg1[/CF_BROWSER_SCRAPE_URL_ELEMENTS]",
        "tag": "[CF_BROWSER_SCRAPE_URL_ELEMENTS]<arg1 …>[/CF_BROWSER_SCRAPE_URL_ELEMENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_SCRAPE_URL_ELEMENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_SCRAPE_URL_ELEMENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"scrape_url_elements\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_SCRAPE_URL_ELEMENTS",
        "update": "PUT /api/directory/CF_BROWSER_SCRAPE_URL_ELEMENTS",
        "patch": "PATCH /api/directory/CF_BROWSER_SCRAPE_URL_ELEMENTS",
        "delete": "DELETE /api/directory/CF_BROWSER_SCRAPE_URL_ELEMENTS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_SCRAPE_URL_ELEMENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_SCRAPE_URL_ELEMENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_SCRAPE_URL_ELEMENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_SCRAPE_URL_ELEMENTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_SCRAPE_URL_ELEMENTS"
    },
    {
      "key": "CF_BROWSER_START_CRAWL",
      "type": "fn",
      "category": "cf_browser",
      "doc": "Start an asynchronous crawl of a website. Returns a job_id — poll get_crawl_result to retrieve records. MCP: https://browser.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BROWSER_START_CRAWL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BROWSER_START_CRAWL",
        "type": "fn",
        "what": [
          "Start an asynchronous crawl of a website. Returns a job_id — poll get_crawl_result to retrieve records.",
          "MCP: https://browser.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a job_id — poll get_crawl_result to retrieve records.",
        "example": "[CF_BROWSER_START_CRAWL]arg1[/CF_BROWSER_START_CRAWL]",
        "tag": "[CF_BROWSER_START_CRAWL]<arg1 …>[/CF_BROWSER_START_CRAWL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BROWSER_START_CRAWL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BROWSER_START_CRAWL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://browser.mcp.cloudflare.com/mcp\",\"start_crawl\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_BROWSER_START_CRAWL",
        "update": "PUT /api/directory/CF_BROWSER_START_CRAWL",
        "patch": "PATCH /api/directory/CF_BROWSER_START_CRAWL",
        "delete": "DELETE /api/directory/CF_BROWSER_START_CRAWL",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BROWSER_START_CRAWL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BROWSER_START_CRAWL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BROWSER_START_CRAWL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BROWSER_START_CRAWL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BROWSER_START_CRAWL"
    },
    {
      "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Get details for a specific build by its UUID. Includes build and deploy commands for the build (useful for debugging build failures). MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
        "type": "fn",
        "what": [
          "Get details for a specific build by its UUID. Includes build and deploy commands for the build (useful for debugging build failures).",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_BUILDS_GET_BUILD]arg1[/CF_BUILDS_WORKERS_BUILDS_GET_BUILD]",
        "tag": "[CF_BUILDS_WORKERS_BUILDS_GET_BUILD]<arg1 …>[/CF_BUILDS_WORKERS_BUILDS_GET_BUILD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_BUILDS_GET_BUILD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_builds_get_build\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_BUILDS_GET_BUILD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_BUILDS_GET_BUILD"
    },
    {
      "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Get logs for a Cloudflare Workers build. MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
        "type": "fn",
        "what": [
          "Get logs for a Cloudflare Workers build.",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS]arg1[/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS]",
        "tag": "[CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS]<arg1 …>[/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_builds_get_build_logs\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_BUILDS_GET_BUILD_LOGS"
    },
    {
      "key": "CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Use the Workers Builds API to list builds for a Cloudflare Worker. MUST provide a workerId or call workers_builds_set_active_worker first. MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
        "type": "fn",
        "what": [
          "Use the Workers Builds API to list builds for a Cloudflare Worker. MUST provide a workerId or call workers_builds_set_active_worker first.",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS]arg1[/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS]",
        "tag": "[CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS]<arg1 …>[/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_builds_list_builds\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_BUILDS_LIST_BUILDS"
    },
    {
      "key": "CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Set the active Worker ID for subsequent calls. Use this tool to set the active worker for subsequent calls. Worker IDs are formatted similar to: db6a6421c2b046679a9daada1537088b If you are given a Wor MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
        "type": "fn",
        "what": [
          "Set the active Worker ID for subsequent calls. Use this tool to set the active worker for subsequent calls. Worker IDs are formatted similar to: db6a6421c2b046679a9daada1537088b If you are given a Wor",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER]arg1[/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER]",
        "tag": "[CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER]<arg1 …>[/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_builds_set_active_worker\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_BUILDS_SET_ACTIVE_WORKER"
    },
    {
      "key": "CF_BUILDS_WORKERS_GET_WORKER",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Get the details of the Cloudflare Worker. MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_GET_WORKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_GET_WORKER",
        "type": "fn",
        "what": [
          "Get the details of the Cloudflare Worker.",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_GET_WORKER]arg1[/CF_BUILDS_WORKERS_GET_WORKER]",
        "tag": "[CF_BUILDS_WORKERS_GET_WORKER]<arg1 …>[/CF_BUILDS_WORKERS_GET_WORKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_GET_WORKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_get_worker\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_GET_WORKER",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_GET_WORKER",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_GET_WORKER",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_GET_WORKER",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_GET_WORKER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_GET_WORKER"
    },
    {
      "key": "CF_BUILDS_WORKERS_GET_WORKER_CODE",
      "type": "fn",
      "category": "cf_builds",
      "doc": "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker. MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_GET_WORKER_CODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_GET_WORKER_CODE",
        "type": "fn",
        "what": [
          "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker.",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_GET_WORKER_CODE]arg1[/CF_BUILDS_WORKERS_GET_WORKER_CODE]",
        "tag": "[CF_BUILDS_WORKERS_GET_WORKER_CODE]<arg1 …>[/CF_BUILDS_WORKERS_GET_WORKER_CODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER_CODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_GET_WORKER_CODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_get_worker_code\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_GET_WORKER_CODE",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_GET_WORKER_CODE",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_GET_WORKER_CODE",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_GET_WORKER_CODE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER_CODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER_CODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_GET_WORKER_CODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_GET_WORKER_CODE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_GET_WORKER_CODE"
    },
    {
      "key": "CF_BUILDS_WORKERS_LIST",
      "type": "fn",
      "category": "cf_builds",
      "doc": "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker. MCP: https://builds.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_BUILDS_WORKERS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_BUILDS_WORKERS_LIST",
        "type": "fn",
        "what": [
          "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker.",
          "MCP: https://builds.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_BUILDS_WORKERS_LIST]arg1[/CF_BUILDS_WORKERS_LIST]",
        "tag": "[CF_BUILDS_WORKERS_LIST]<arg1 …>[/CF_BUILDS_WORKERS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_BUILDS_WORKERS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_BUILDS_WORKERS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://builds.mcp.cloudflare.com/sse\",\"workers_list\",\"$1+\",\"builds\"]",
      "edit": {
        "read": "GET /api/directory/CF_BUILDS_WORKERS_LIST",
        "update": "PUT /api/directory/CF_BUILDS_WORKERS_LIST",
        "patch": "PATCH /api/directory/CF_BUILDS_WORKERS_LIST",
        "delete": "DELETE /api/directory/CF_BUILDS_WORKERS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_BUILDS_WORKERS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_BUILDS_WORKERS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_BUILDS_WORKERS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_BUILDS_WORKERS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_BUILDS_WORKERS_LIST"
    },
    {
      "key": "CF_CASB_ASSETS_BY_CATEGORY_ID",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Assets by Asset Category ID MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSETS_BY_CATEGORY_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSETS_BY_CATEGORY_ID",
        "type": "fn",
        "what": [
          "Search Assets by Asset Category ID",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSETS_BY_CATEGORY_ID]arg1[/CF_CASB_ASSETS_BY_CATEGORY_ID]",
        "tag": "[CF_CASB_ASSETS_BY_CATEGORY_ID]<arg1 …>[/CF_CASB_ASSETS_BY_CATEGORY_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSETS_BY_CATEGORY_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSETS_BY_CATEGORY_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"assets_by_category_id\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSETS_BY_CATEGORY_ID",
        "update": "PUT /api/directory/CF_CASB_ASSETS_BY_CATEGORY_ID",
        "patch": "PATCH /api/directory/CF_CASB_ASSETS_BY_CATEGORY_ID",
        "delete": "DELETE /api/directory/CF_CASB_ASSETS_BY_CATEGORY_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSETS_BY_CATEGORY_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSETS_BY_CATEGORY_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSETS_BY_CATEGORY_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSETS_BY_CATEGORY_ID"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSETS_BY_CATEGORY_ID"
    },
    {
      "key": "CF_CASB_ASSETS_BY_INTEGRATION_ID",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Assets by Integration ID MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSETS_BY_INTEGRATION_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSETS_BY_INTEGRATION_ID",
        "type": "fn",
        "what": [
          "Search Assets by Integration ID",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSETS_BY_INTEGRATION_ID]arg1[/CF_CASB_ASSETS_BY_INTEGRATION_ID]",
        "tag": "[CF_CASB_ASSETS_BY_INTEGRATION_ID]<arg1 …>[/CF_CASB_ASSETS_BY_INTEGRATION_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSETS_BY_INTEGRATION_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSETS_BY_INTEGRATION_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"assets_by_integration_id\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSETS_BY_INTEGRATION_ID",
        "update": "PUT /api/directory/CF_CASB_ASSETS_BY_INTEGRATION_ID",
        "patch": "PATCH /api/directory/CF_CASB_ASSETS_BY_INTEGRATION_ID",
        "delete": "DELETE /api/directory/CF_CASB_ASSETS_BY_INTEGRATION_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSETS_BY_INTEGRATION_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSETS_BY_INTEGRATION_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSETS_BY_INTEGRATION_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSETS_BY_INTEGRATION_ID"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSETS_BY_INTEGRATION_ID"
    },
    {
      "key": "CF_CASB_ASSETS_LIST",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Paginated list of Assets MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSETS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSETS_LIST",
        "type": "fn",
        "what": [
          "Paginated list of Assets",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSETS_LIST]arg1[/CF_CASB_ASSETS_LIST]",
        "tag": "[CF_CASB_ASSETS_LIST]<arg1 …>[/CF_CASB_ASSETS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSETS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSETS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"assets_list\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSETS_LIST",
        "update": "PUT /api/directory/CF_CASB_ASSETS_LIST",
        "patch": "PATCH /api/directory/CF_CASB_ASSETS_LIST",
        "delete": "DELETE /api/directory/CF_CASB_ASSETS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSETS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSETS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSETS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSETS_LIST"
      },
      "examples": "[\"test|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSETS_LIST"
    },
    {
      "key": "CF_CASB_ASSETS_SEARCH",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Assets by keyword MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSETS_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSETS_SEARCH",
        "type": "fn",
        "what": [
          "Search Assets by keyword",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSETS_SEARCH]arg1[/CF_CASB_ASSETS_SEARCH]",
        "tag": "[CF_CASB_ASSETS_SEARCH]<arg1 …>[/CF_CASB_ASSETS_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSETS_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSETS_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"assets_search\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSETS_SEARCH",
        "update": "PUT /api/directory/CF_CASB_ASSETS_SEARCH",
        "patch": "PATCH /api/directory/CF_CASB_ASSETS_SEARCH",
        "delete": "DELETE /api/directory/CF_CASB_ASSETS_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSETS_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSETS_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSETS_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSETS_SEARCH"
      },
      "examples": "[\"test|casb\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSETS_SEARCH"
    },
    {
      "key": "CF_CASB_ASSET_BY_ID",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Assets by ID MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSET_BY_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSET_BY_ID",
        "type": "fn",
        "what": [
          "Search Assets by ID",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSET_BY_ID]arg1[/CF_CASB_ASSET_BY_ID]",
        "tag": "[CF_CASB_ASSET_BY_ID]<arg1 …>[/CF_CASB_ASSET_BY_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSET_BY_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSET_BY_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"asset_by_id\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSET_BY_ID",
        "update": "PUT /api/directory/CF_CASB_ASSET_BY_ID",
        "patch": "PATCH /api/directory/CF_CASB_ASSET_BY_ID",
        "delete": "DELETE /api/directory/CF_CASB_ASSET_BY_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSET_BY_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSET_BY_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSET_BY_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSET_BY_ID"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSET_BY_ID"
    },
    {
      "key": "CF_CASB_ASSET_CATEGORIES_BY_TYPE",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Asset Categories by type MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSET_CATEGORIES_BY_TYPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSET_CATEGORIES_BY_TYPE",
        "type": "fn",
        "what": [
          "Search Asset Categories by type",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSET_CATEGORIES_BY_TYPE]arg1[/CF_CASB_ASSET_CATEGORIES_BY_TYPE]",
        "tag": "[CF_CASB_ASSET_CATEGORIES_BY_TYPE]<arg1 …>[/CF_CASB_ASSET_CATEGORIES_BY_TYPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_TYPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSET_CATEGORIES_BY_TYPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"asset_categories_by_type\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSET_CATEGORIES_BY_TYPE",
        "update": "PUT /api/directory/CF_CASB_ASSET_CATEGORIES_BY_TYPE",
        "patch": "PATCH /api/directory/CF_CASB_ASSET_CATEGORIES_BY_TYPE",
        "delete": "DELETE /api/directory/CF_CASB_ASSET_CATEGORIES_BY_TYPE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_TYPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_TYPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_TYPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSET_CATEGORIES_BY_TYPE"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSET_CATEGORIES_BY_TYPE"
    },
    {
      "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
      "type": "fn",
      "category": "cf_casb",
      "doc": "List asset categories by vendor MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
        "type": "fn",
        "what": [
          "List asset categories by vendor",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSET_CATEGORIES_BY_VENDOR]arg1[/CF_CASB_ASSET_CATEGORIES_BY_VENDOR]",
        "tag": "[CF_CASB_ASSET_CATEGORIES_BY_VENDOR]<arg1 …>[/CF_CASB_ASSET_CATEGORIES_BY_VENDOR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSET_CATEGORIES_BY_VENDOR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"asset_categories_by_vendor\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
        "update": "PUT /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
        "patch": "PATCH /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
        "delete": "DELETE /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSET_CATEGORIES_BY_VENDOR"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSET_CATEGORIES_BY_VENDOR"
    },
    {
      "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Search Asset Categories by vendor and type MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
        "type": "fn",
        "what": [
          "Search Asset Categories by vendor and type",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE]arg1[/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE]",
        "tag": "[CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE]<arg1 …>[/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"asset_categories_by_vendor_and_type\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
        "update": "PUT /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
        "patch": "PATCH /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
        "delete": "DELETE /api/directory/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE"
      },
      "examples": "[\"test|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSET_CATEGORIES_BY_VENDOR_AND_TYPE"
    },
    {
      "key": "CF_CASB_ASSET_CATEGORIES_LIST",
      "type": "fn",
      "category": "cf_casb",
      "doc": "List Asset Categories MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_ASSET_CATEGORIES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_ASSET_CATEGORIES_LIST",
        "type": "fn",
        "what": [
          "List Asset Categories",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_ASSET_CATEGORIES_LIST]arg1[/CF_CASB_ASSET_CATEGORIES_LIST]",
        "tag": "[CF_CASB_ASSET_CATEGORIES_LIST]<arg1 …>[/CF_CASB_ASSET_CATEGORIES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_ASSET_CATEGORIES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_ASSET_CATEGORIES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"asset_categories_list\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_ASSET_CATEGORIES_LIST",
        "update": "PUT /api/directory/CF_CASB_ASSET_CATEGORIES_LIST",
        "patch": "PATCH /api/directory/CF_CASB_ASSET_CATEGORIES_LIST",
        "delete": "DELETE /api/directory/CF_CASB_ASSET_CATEGORIES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_ASSET_CATEGORIES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_ASSET_CATEGORIES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_ASSET_CATEGORIES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_ASSET_CATEGORIES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_ASSET_CATEGORIES_LIST"
    },
    {
      "key": "CF_CASB_INTEGRATIONS_LIST",
      "type": "fn",
      "category": "cf_casb",
      "doc": "List all Cloudflare One Integrations in a given account MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_INTEGRATIONS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_INTEGRATIONS_LIST",
        "type": "fn",
        "what": [
          "List all Cloudflare One Integrations in a given account",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_INTEGRATIONS_LIST]arg1[/CF_CASB_INTEGRATIONS_LIST]",
        "tag": "[CF_CASB_INTEGRATIONS_LIST]<arg1 …>[/CF_CASB_INTEGRATIONS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_INTEGRATIONS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_INTEGRATIONS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"integrations_list\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_INTEGRATIONS_LIST",
        "update": "PUT /api/directory/CF_CASB_INTEGRATIONS_LIST",
        "patch": "PATCH /api/directory/CF_CASB_INTEGRATIONS_LIST",
        "delete": "DELETE /api/directory/CF_CASB_INTEGRATIONS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_INTEGRATIONS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_INTEGRATIONS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_INTEGRATIONS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_INTEGRATIONS_LIST"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_INTEGRATIONS_LIST"
    },
    {
      "key": "CF_CASB_INTEGRATION_BY_ID",
      "type": "fn",
      "category": "cf_casb",
      "doc": "Analyze Cloudflare One Integration by ID MCP: https://casb.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CASB_INTEGRATION_BY_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CASB_INTEGRATION_BY_ID",
        "type": "fn",
        "what": [
          "Analyze Cloudflare One Integration by ID",
          "MCP: https://casb.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CASB_INTEGRATION_BY_ID]arg1[/CF_CASB_INTEGRATION_BY_ID]",
        "tag": "[CF_CASB_INTEGRATION_BY_ID]<arg1 …>[/CF_CASB_INTEGRATION_BY_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CASB_INTEGRATION_BY_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CASB_INTEGRATION_BY_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://casb.mcp.cloudflare.com/sse\",\"integration_by_id\",\"$1+\",\"casb\"]",
      "edit": {
        "read": "GET /api/directory/CF_CASB_INTEGRATION_BY_ID",
        "update": "PUT /api/directory/CF_CASB_INTEGRATION_BY_ID",
        "patch": "PATCH /api/directory/CF_CASB_INTEGRATION_BY_ID",
        "delete": "DELETE /api/directory/CF_CASB_INTEGRATION_BY_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CASB_INTEGRATION_BY_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CASB_INTEGRATION_BY_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CASB_INTEGRATION_BY_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CASB_INTEGRATION_BY_ID"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CASB_INTEGRATION_BY_ID"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_EXEC",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Run a command in a container and return the results from stdout. If necessary, set a timeout. To debug, stream back standard error. If you're using python, ALWAYS use python3 alongside pip3 MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_EXEC",
        "type": "fn",
        "what": [
          "Run a command in a container and return the results from stdout. If necessary, set a timeout. To debug, stream back standard error. If you're using python, ALWAYS use python3 alongside pip3",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the results from stdout. If necessary, set a timeout. To debug, stream back standard error. If you're using python, ALWAYS use python3 alongside pip3",
        "example": "[CF_CONTAINERS_CONTAINER_EXEC]arg1[/CF_CONTAINERS_CONTAINER_EXEC]",
        "tag": "[CF_CONTAINERS_CONTAINER_EXEC]<arg1 …>[/CF_CONTAINERS_CONTAINER_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_exec\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_EXEC",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_EXEC",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_EXEC",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_EXEC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_EXEC"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_FILES_LIST",
      "type": "fn",
      "category": "cf_containers",
      "doc": "List working directory file tree. This just reads the contents of the current working directory MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_FILES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_FILES_LIST",
        "type": "fn",
        "what": [
          "List working directory file tree. This just reads the contents of the current working directory",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_FILES_LIST]arg1[/CF_CONTAINERS_CONTAINER_FILES_LIST]",
        "tag": "[CF_CONTAINERS_CONTAINER_FILES_LIST]<arg1 …>[/CF_CONTAINERS_CONTAINER_FILES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_FILES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_FILES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_files_list\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_FILES_LIST",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_FILES_LIST",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_FILES_LIST",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_FILES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_FILES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_FILES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_FILES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_FILES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_FILES_LIST"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_FILE_DELETE",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Delete file in the working directory MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_FILE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_FILE_DELETE",
        "type": "fn",
        "what": [
          "Delete file in the working directory",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_FILE_DELETE]arg1[/CF_CONTAINERS_CONTAINER_FILE_DELETE]",
        "tag": "[CF_CONTAINERS_CONTAINER_FILE_DELETE]<arg1 …>[/CF_CONTAINERS_CONTAINER_FILE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_FILE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_file_delete\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_FILE_DELETE",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_FILE_DELETE",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_FILE_DELETE",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_FILE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_FILE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_FILE_DELETE"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_FILE_READ",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Read a specific file or directory. Use this tool if you would like to read files or display them to the user. This allow you to get a displayable image for the user if there is an image file. MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_FILE_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_FILE_READ",
        "type": "fn",
        "what": [
          "Read a specific file or directory. Use this tool if you would like to read files or display them to the user. This allow you to get a displayable image for the user if there is an image file.",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_FILE_READ]arg1[/CF_CONTAINERS_CONTAINER_FILE_READ]",
        "tag": "[CF_CONTAINERS_CONTAINER_FILE_READ]<arg1 …>[/CF_CONTAINERS_CONTAINER_FILE_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_FILE_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_file_read\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_FILE_READ",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_FILE_READ",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_FILE_READ",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_FILE_READ",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_FILE_READ"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_FILE_READ"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_FILE_WRITE",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Create a new file with the provided contents in the working direcotry, overwriting the file if it already exists MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_FILE_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_FILE_WRITE",
        "type": "fn",
        "what": [
          "Create a new file with the provided contents in the working direcotry, overwriting the file if it already exists",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_FILE_WRITE]arg1[/CF_CONTAINERS_CONTAINER_FILE_WRITE]",
        "tag": "[CF_CONTAINERS_CONTAINER_FILE_WRITE]<arg1 …>[/CF_CONTAINERS_CONTAINER_FILE_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_FILE_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_file_write\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_FILE_WRITE",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_FILE_WRITE",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_FILE_WRITE",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_FILE_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_FILE_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_FILE_WRITE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_FILE_WRITE"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_INITIALIZE",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Start or restart the container. Use this tool to initialize a container before running any python or node.js code that the user requests ro run. MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_INITIALIZE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_INITIALIZE",
        "type": "fn",
        "what": [
          "Start or restart the container. Use this tool to initialize a container before running any python or node.js code that the user requests ro run.",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_INITIALIZE]arg1[/CF_CONTAINERS_CONTAINER_INITIALIZE]",
        "tag": "[CF_CONTAINERS_CONTAINER_INITIALIZE]<arg1 …>[/CF_CONTAINERS_CONTAINER_INITIALIZE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_INITIALIZE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_INITIALIZE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_initialize\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_INITIALIZE",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_INITIALIZE",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_INITIALIZE",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_INITIALIZE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_INITIALIZE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_INITIALIZE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_INITIALIZE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_INITIALIZE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_INITIALIZE"
    },
    {
      "key": "CF_CONTAINERS_CONTAINER_PING",
      "type": "fn",
      "category": "cf_containers",
      "doc": "Ping the container for liveliness. Use this tool to check if the container is running. MCP: https://containers.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_CONTAINERS_CONTAINER_PING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_CONTAINERS_CONTAINER_PING",
        "type": "fn",
        "what": [
          "Ping the container for liveliness. Use this tool to check if the container is running.",
          "MCP: https://containers.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_CONTAINERS_CONTAINER_PING]arg1[/CF_CONTAINERS_CONTAINER_PING]",
        "tag": "[CF_CONTAINERS_CONTAINER_PING]<arg1 …>[/CF_CONTAINERS_CONTAINER_PING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_CONTAINERS_CONTAINER_PING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_CONTAINERS_CONTAINER_PING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://containers.mcp.cloudflare.com/sse\",\"container_ping\",\"$1+\",\"containers\"]",
      "edit": {
        "read": "GET /api/directory/CF_CONTAINERS_CONTAINER_PING",
        "update": "PUT /api/directory/CF_CONTAINERS_CONTAINER_PING",
        "patch": "PATCH /api/directory/CF_CONTAINERS_CONTAINER_PING",
        "delete": "DELETE /api/directory/CF_CONTAINERS_CONTAINER_PING",
        "invoke": "POST /api/dispatch {\"key\":\"CF_CONTAINERS_CONTAINER_PING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_CONTAINERS_CONTAINER_PING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_CONTAINERS_CONTAINER_PING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_CONTAINERS_CONTAINER_PING"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_CONTAINERS_CONTAINER_PING"
    },
    {
      "key": "CF_DEX_DEX_ANALYZE_WARP_DIAG",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Analyze successful WARP-diag remote captures for common issues. This should be the first place you start when trying to narrow down device-level issues with WARP. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_ANALYZE_WARP_DIAG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_ANALYZE_WARP_DIAG",
        "type": "fn",
        "what": [
          "Analyze successful WARP-diag remote captures for common issues. This should be the first place you start when trying to narrow down device-level issues with WARP.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_ANALYZE_WARP_DIAG]arg1[/CF_DEX_DEX_ANALYZE_WARP_DIAG]",
        "tag": "[CF_DEX_DEX_ANALYZE_WARP_DIAG]<arg1 …>[/CF_DEX_DEX_ANALYZE_WARP_DIAG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_ANALYZE_WARP_DIAG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_ANALYZE_WARP_DIAG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_analyze_warp_diag\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_ANALYZE_WARP_DIAG",
        "update": "PUT /api/directory/CF_DEX_DEX_ANALYZE_WARP_DIAG",
        "patch": "PATCH /api/directory/CF_DEX_DEX_ANALYZE_WARP_DIAG",
        "delete": "DELETE /api/directory/CF_DEX_DEX_ANALYZE_WARP_DIAG",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_ANALYZE_WARP_DIAG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_ANALYZE_WARP_DIAG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_ANALYZE_WARP_DIAG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_ANALYZE_WARP_DIAG"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_ANALYZE_WARP_DIAG"
    },
    {
      "key": "CF_DEX_DEX_CREATE_REMOTE_PCAP",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Create a remote packet capture (PCAP) for a device. This is a resource intensive and privacy-sensitive operation on a real user device.Always ask for confirmation from the user that the targeted email MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_CREATE_REMOTE_PCAP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_CREATE_REMOTE_PCAP",
        "type": "fn",
        "what": [
          "Create a remote packet capture (PCAP) for a device. This is a resource intensive and privacy-sensitive operation on a real user device.Always ask for confirmation from the user that the targeted email",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_CREATE_REMOTE_PCAP]arg1[/CF_DEX_DEX_CREATE_REMOTE_PCAP]",
        "tag": "[CF_DEX_DEX_CREATE_REMOTE_PCAP]<arg1 …>[/CF_DEX_DEX_CREATE_REMOTE_PCAP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_PCAP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_CREATE_REMOTE_PCAP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_create_remote_pcap\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_CREATE_REMOTE_PCAP",
        "update": "PUT /api/directory/CF_DEX_DEX_CREATE_REMOTE_PCAP",
        "patch": "PATCH /api/directory/CF_DEX_DEX_CREATE_REMOTE_PCAP",
        "delete": "DELETE /api/directory/CF_DEX_DEX_CREATE_REMOTE_PCAP",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_PCAP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_PCAP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_PCAP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_CREATE_REMOTE_PCAP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_CREATE_REMOTE_PCAP"
    },
    {
      "key": "CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Create a remote Warp Diagnostic (WARP-diag) for a device. This is a resource intensive and privacy-sensitive operation on a real user device.Always ask for confirmation from the user that the targeted MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
        "type": "fn",
        "what": [
          "Create a remote Warp Diagnostic (WARP-diag) for a device. This is a resource intensive and privacy-sensitive operation on a real user device.Always ask for confirmation from the user that the targeted",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG]arg1[/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG]",
        "tag": "[CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG]<arg1 …>[/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_create_remote_warp_diag\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
        "update": "PUT /api/directory/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
        "patch": "PATCH /api/directory/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
        "delete": "DELETE /api/directory/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_CREATE_REMOTE_WARP_DIAG"
    },
    {
      "key": "CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Explore the contents of remote capture WARP diag archive filepaths returned by the dex_list_remote_warp_diag_contents tool for analysis. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
        "type": "fn",
        "what": [
          "Explore the contents of remote capture WARP diag archive filepaths returned by the dex_list_remote_warp_diag_contents tool for analysis.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT]arg1[/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT]",
        "tag": "[CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT]<arg1 …>[/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_explore_remote_warp_diag_output\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
        "update": "PUT /api/directory/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
        "patch": "PATCH /api/directory/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
        "delete": "DELETE /api/directory/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_EXPLORE_REMOTE_WARP_DIAG_OUTPUT"
    },
    {
      "key": "CF_DEX_DEX_FLEET_STATUS_LIVE",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve details about the real-time status of the fleet of devices broken down by dimension (mode, status, colo, platform, version) MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_FLEET_STATUS_LIVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_FLEET_STATUS_LIVE",
        "type": "fn",
        "what": [
          "Retrieve details about the real-time status of the fleet of devices broken down by dimension (mode, status, colo, platform, version)",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_FLEET_STATUS_LIVE]arg1[/CF_DEX_DEX_FLEET_STATUS_LIVE]",
        "tag": "[CF_DEX_DEX_FLEET_STATUS_LIVE]<arg1 …>[/CF_DEX_DEX_FLEET_STATUS_LIVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LIVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_FLEET_STATUS_LIVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_fleet_status_live\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_FLEET_STATUS_LIVE",
        "update": "PUT /api/directory/CF_DEX_DEX_FLEET_STATUS_LIVE",
        "patch": "PATCH /api/directory/CF_DEX_DEX_FLEET_STATUS_LIVE",
        "delete": "DELETE /api/directory/CF_DEX_DEX_FLEET_STATUS_LIVE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LIVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LIVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LIVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_FLEET_STATUS_LIVE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_FLEET_STATUS_LIVE"
    },
    {
      "key": "CF_DEX_DEX_FLEET_STATUS_LOGS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve raw fleet status device logs with a variety of levels of granularity and filtering. Use `source=last_seen` to view logs showing the last known state per device within the specified time perio MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_FLEET_STATUS_LOGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_FLEET_STATUS_LOGS",
        "type": "fn",
        "what": [
          "Retrieve raw fleet status device logs with a variety of levels of granularity and filtering. Use `source=last_seen` to view logs showing the last known state per device within the specified time perio",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_FLEET_STATUS_LOGS]arg1[/CF_DEX_DEX_FLEET_STATUS_LOGS]",
        "tag": "[CF_DEX_DEX_FLEET_STATUS_LOGS]<arg1 …>[/CF_DEX_DEX_FLEET_STATUS_LOGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LOGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_FLEET_STATUS_LOGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_fleet_status_logs\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_FLEET_STATUS_LOGS",
        "update": "PUT /api/directory/CF_DEX_DEX_FLEET_STATUS_LOGS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_FLEET_STATUS_LOGS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_FLEET_STATUS_LOGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LOGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LOGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_FLEET_STATUS_LOGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_FLEET_STATUS_LOGS"
      },
      "examples": "[\"last_seen|test|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_FLEET_STATUS_LOGS"
    },
    {
      "key": "CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve aggregate time series details about the status of the fleet of devices, or performance metrics for a specific device, over the specified time period. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
        "type": "fn",
        "what": [
          "Retrieve aggregate time series details about the status of the fleet of devices, or performance metrics for a specific device, over the specified time period.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_FLEET_STATUS_OVER_TIME]arg1[/CF_DEX_DEX_FLEET_STATUS_OVER_TIME]",
        "tag": "[CF_DEX_DEX_FLEET_STATUS_OVER_TIME]<arg1 …>[/CF_DEX_DEX_FLEET_STATUS_OVER_TIME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_FLEET_STATUS_OVER_TIME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_FLEET_STATUS_OVER_TIME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_fleet_status_over_time\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
        "update": "PUT /api/directory/CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
        "patch": "PATCH /api/directory/CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
        "delete": "DELETE /api/directory/CF_DEX_DEX_FLEET_STATUS_OVER_TIME",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_FLEET_STATUS_OVER_TIME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_FLEET_STATUS_OVER_TIME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_FLEET_STATUS_OVER_TIME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_FLEET_STATUS_OVER_TIME"
      },
      "examples": "[\"test|7d|0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_FLEET_STATUS_OVER_TIME"
    },
    {
      "key": "CF_DEX_DEX_HTTP_TEST_DETAILS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve detailed time series results for an HTTP DEX test by id. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_HTTP_TEST_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_HTTP_TEST_DETAILS",
        "type": "fn",
        "what": [
          "Retrieve detailed time series results for an HTTP DEX test by id.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_HTTP_TEST_DETAILS]arg1[/CF_DEX_DEX_HTTP_TEST_DETAILS]",
        "tag": "[CF_DEX_DEX_HTTP_TEST_DETAILS]<arg1 …>[/CF_DEX_DEX_HTTP_TEST_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_HTTP_TEST_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_HTTP_TEST_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_http_test_details\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_HTTP_TEST_DETAILS",
        "update": "PUT /api/directory/CF_DEX_DEX_HTTP_TEST_DETAILS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_HTTP_TEST_DETAILS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_HTTP_TEST_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_HTTP_TEST_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_HTTP_TEST_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_HTTP_TEST_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_HTTP_TEST_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_HTTP_TEST_DETAILS"
    },
    {
      "key": "CF_DEX_DEX_LIST_COLOS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "View a list of Cloudflare colos sorted alphabetically or by frequency encountered in fleet status or DEX test data. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_COLOS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_COLOS",
        "type": "fn",
        "what": [
          "View a list of Cloudflare colos sorted alphabetically or by frequency encountered in fleet status or DEX test data.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_LIST_COLOS]arg1[/CF_DEX_DEX_LIST_COLOS]",
        "tag": "[CF_DEX_DEX_LIST_COLOS]<arg1 …>[/CF_DEX_DEX_LIST_COLOS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_COLOS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_COLOS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_colos\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_COLOS",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_COLOS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_COLOS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_COLOS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_COLOS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_COLOS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_COLOS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_COLOS"
      },
      "examples": "[\"frequency\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_COLOS"
    },
    {
      "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURES",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve a list of remote captures for device debugging, like PCAPs or WARP Diags. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURES",
        "type": "fn",
        "what": [
          "Retrieve a list of remote captures for device debugging, like PCAPs or WARP Diags.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_LIST_REMOTE_CAPTURES]arg1[/CF_DEX_DEX_LIST_REMOTE_CAPTURES]",
        "tag": "[CF_DEX_DEX_LIST_REMOTE_CAPTURES]<arg1 …>[/CF_DEX_DEX_LIST_REMOTE_CAPTURES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_REMOTE_CAPTURES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_remote_captures\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURES",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURES",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURES",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_REMOTE_CAPTURES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_REMOTE_CAPTURES"
    },
    {
      "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve a list of devices eligible for remote captures. You'll need the device_id and user_email from this response in order to create a remote capture for a specific device. It can also be used as a MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
        "type": "fn",
        "what": [
          "Retrieve a list of devices eligible for remote captures. You'll need the device_id and user_email from this response in order to create a remote capture for a specific device. It can also be used as a",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES]arg1[/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES]",
        "tag": "[CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES]<arg1 …>[/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_remote_capture_eligible_devices\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_REMOTE_CAPTURE_ELIGIBLE_DEVICES"
    },
    {
      "key": "CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Given a WARP diag remote capture id and device_id, returns a list of the files contained in the archive. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
        "type": "fn",
        "what": [
          "Given a WARP diag remote capture id and device_id, returns a list of the files contained in the archive.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a list of the files contained in the archive.",
        "example": "[CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS]arg1[/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS]",
        "tag": "[CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS]<arg1 …>[/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_remote_warp_diag_contents\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS"
      },
      "examples": "[\"test|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_REMOTE_WARP_DIAG_CONTENTS"
    },
    {
      "key": "CF_DEX_DEX_LIST_TESTS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve a list of all Cloudflare DEX Tests configured. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_TESTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_TESTS",
        "type": "fn",
        "what": [
          "Retrieve a list of all Cloudflare DEX Tests configured.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_LIST_TESTS]arg1[/CF_DEX_DEX_LIST_TESTS]",
        "tag": "[CF_DEX_DEX_LIST_TESTS]<arg1 …>[/CF_DEX_DEX_LIST_TESTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_TESTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_TESTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_tests\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_TESTS",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_TESTS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_TESTS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_TESTS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_TESTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_TESTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_TESTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_TESTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_TESTS"
    },
    {
      "key": "CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "View logs of events when users toggle WARP on or off, or change configurations. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
        "type": "fn",
        "what": [
          "View logs of events when users toggle WARP on or off, or change configurations.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS]arg1[/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS]",
        "tag": "[CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS]<arg1 …>[/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_list_warp_change_events\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
        "update": "PUT /api/directory/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_LIST_WARP_CHANGE_EVENTS"
    },
    {
      "key": "CF_DEX_DEX_TEST_STATISTICS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Analyze Cloudflare DEX Test Results by quartile given a Test ID MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_TEST_STATISTICS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_TEST_STATISTICS",
        "type": "fn",
        "what": [
          "Analyze Cloudflare DEX Test Results by quartile given a Test ID",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_TEST_STATISTICS]arg1[/CF_DEX_DEX_TEST_STATISTICS]",
        "tag": "[CF_DEX_DEX_TEST_STATISTICS]<arg1 …>[/CF_DEX_DEX_TEST_STATISTICS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_TEST_STATISTICS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_TEST_STATISTICS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_test_statistics\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_TEST_STATISTICS",
        "update": "PUT /api/directory/CF_DEX_DEX_TEST_STATISTICS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_TEST_STATISTICS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_TEST_STATISTICS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_TEST_STATISTICS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_TEST_STATISTICS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_TEST_STATISTICS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_TEST_STATISTICS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_TEST_STATISTICS"
    },
    {
      "key": "CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve detailed time series results for a Traceroute DEX test by id. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
        "type": "fn",
        "what": [
          "Retrieve detailed time series results for a Traceroute DEX test by id.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_TRACEROUTE_TEST_DETAILS]arg1[/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS]",
        "tag": "[CF_DEX_DEX_TRACEROUTE_TEST_DETAILS]<arg1 …>[/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_traceroute_test_details\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
        "update": "PUT /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
        "patch": "PATCH /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
        "delete": "DELETE /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_TRACEROUTE_TEST_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_TRACEROUTE_TEST_DETAILS"
    },
    {
      "key": "CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve aggregate network path data for a Traceroute DEX test by id. Use the dex_traceroute_test_result_network_path tool to further explore individual test runs hop-by-hop. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
        "type": "fn",
        "what": [
          "Retrieve aggregate network path data for a Traceroute DEX test by id. Use the dex_traceroute_test_result_network_path tool to further explore individual test runs hop-by-hop.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH]arg1[/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH]",
        "tag": "[CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH]<arg1 …>[/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_traceroute_test_network_path\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
        "update": "PUT /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
        "patch": "PATCH /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
        "delete": "DELETE /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_TRACEROUTE_TEST_NETWORK_PATH"
    },
    {
      "key": "CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
      "type": "fn",
      "category": "cf_dex",
      "doc": "Retrieve the hop-by-hop network path for a specific Traceroute DEX test result by id. MCP: https://dex.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
        "type": "fn",
        "what": [
          "Retrieve the hop-by-hop network path for a specific Traceroute DEX test result by id.",
          "MCP: https://dex.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH]arg1[/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH]",
        "tag": "[CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH]<arg1 …>[/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dex.mcp.cloudflare.com/sse\",\"dex_traceroute_test_result_network_path\",\"$1+\",\"dex\"]",
      "edit": {
        "read": "GET /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
        "update": "PUT /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
        "patch": "PATCH /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
        "delete": "DELETE /api/directory/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DEX_DEX_TRACEROUTE_TEST_RESULT_NETWORK_PATH"
    },
    {
      "key": "CF_DNS_ANALYTICS_DNS_REPORT",
      "type": "fn",
      "category": "cf_dns_analytics",
      "doc": "Fetch the DNS Report for a given zone since a date MCP: https://dns-analytics.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DNS_ANALYTICS_DNS_REPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DNS_ANALYTICS_DNS_REPORT",
        "type": "fn",
        "what": [
          "Fetch the DNS Report for a given zone since a date",
          "MCP: https://dns-analytics.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DNS_ANALYTICS_DNS_REPORT]arg1[/CF_DNS_ANALYTICS_DNS_REPORT]",
        "tag": "[CF_DNS_ANALYTICS_DNS_REPORT]<arg1 …>[/CF_DNS_ANALYTICS_DNS_REPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DNS_ANALYTICS_DNS_REPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DNS_ANALYTICS_DNS_REPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dns-analytics.mcp.cloudflare.com/sse\",\"dns_report\",\"$1+\",\"dns-analytics\"]",
      "edit": {
        "read": "GET /api/directory/CF_DNS_ANALYTICS_DNS_REPORT",
        "update": "PUT /api/directory/CF_DNS_ANALYTICS_DNS_REPORT",
        "patch": "PATCH /api/directory/CF_DNS_ANALYTICS_DNS_REPORT",
        "delete": "DELETE /api/directory/CF_DNS_ANALYTICS_DNS_REPORT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DNS_ANALYTICS_DNS_REPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DNS_ANALYTICS_DNS_REPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DNS_ANALYTICS_DNS_REPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DNS_ANALYTICS_DNS_REPORT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DNS_ANALYTICS_DNS_REPORT"
    },
    {
      "key": "CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
      "type": "fn",
      "category": "cf_dns_analytics",
      "doc": "Show DNS settings for current account MCP: https://dns-analytics.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
        "type": "fn",
        "what": [
          "Show DNS settings for current account",
          "MCP: https://dns-analytics.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS]arg1[/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS]",
        "tag": "[CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS]<arg1 …>[/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dns-analytics.mcp.cloudflare.com/sse\",\"show_account_dns_settings\",\"$1+\",\"dns-analytics\"]",
      "edit": {
        "read": "GET /api/directory/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
        "update": "PUT /api/directory/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
        "patch": "PATCH /api/directory/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
        "delete": "DELETE /api/directory/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DNS_ANALYTICS_SHOW_ACCOUNT_DNS_SETTINGS"
    },
    {
      "key": "CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
      "type": "fn",
      "category": "cf_dns_analytics",
      "doc": "Show DNS settings for a zone MCP: https://dns-analytics.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
        "type": "fn",
        "what": [
          "Show DNS settings for a zone",
          "MCP: https://dns-analytics.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS]arg1[/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS]",
        "tag": "[CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS]<arg1 …>[/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dns-analytics.mcp.cloudflare.com/sse\",\"show_zone_dns_settings\",\"$1+\",\"dns-analytics\"]",
      "edit": {
        "read": "GET /api/directory/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
        "update": "PUT /api/directory/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
        "patch": "PATCH /api/directory/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
        "delete": "DELETE /api/directory/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DNS_ANALYTICS_SHOW_ZONE_DNS_SETTINGS"
    },
    {
      "key": "CF_DNS_ANALYTICS_ZONES_LIST",
      "type": "fn",
      "category": "cf_dns_analytics",
      "doc": "List all zones under a Cloudflare account MCP: https://dns-analytics.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DNS_ANALYTICS_ZONES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DNS_ANALYTICS_ZONES_LIST",
        "type": "fn",
        "what": [
          "List all zones under a Cloudflare account",
          "MCP: https://dns-analytics.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DNS_ANALYTICS_ZONES_LIST]arg1[/CF_DNS_ANALYTICS_ZONES_LIST]",
        "tag": "[CF_DNS_ANALYTICS_ZONES_LIST]<arg1 …>[/CF_DNS_ANALYTICS_ZONES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DNS_ANALYTICS_ZONES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DNS_ANALYTICS_ZONES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dns-analytics.mcp.cloudflare.com/sse\",\"zones_list\",\"$1+\",\"dns-analytics\"]",
      "edit": {
        "read": "GET /api/directory/CF_DNS_ANALYTICS_ZONES_LIST",
        "update": "PUT /api/directory/CF_DNS_ANALYTICS_ZONES_LIST",
        "patch": "PATCH /api/directory/CF_DNS_ANALYTICS_ZONES_LIST",
        "delete": "DELETE /api/directory/CF_DNS_ANALYTICS_ZONES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DNS_ANALYTICS_ZONES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DNS_ANALYTICS_ZONES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DNS_ANALYTICS_ZONES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DNS_ANALYTICS_ZONES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DNS_ANALYTICS_ZONES_LIST"
    },
    {
      "key": "CF_DNS_ANALYTICS_ZONE_DETAILS",
      "type": "fn",
      "category": "cf_dns_analytics",
      "doc": "Get details for a specific Cloudflare zone MCP: https://dns-analytics.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DNS_ANALYTICS_ZONE_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DNS_ANALYTICS_ZONE_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific Cloudflare zone",
          "MCP: https://dns-analytics.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DNS_ANALYTICS_ZONE_DETAILS]arg1[/CF_DNS_ANALYTICS_ZONE_DETAILS]",
        "tag": "[CF_DNS_ANALYTICS_ZONE_DETAILS]<arg1 …>[/CF_DNS_ANALYTICS_ZONE_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DNS_ANALYTICS_ZONE_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DNS_ANALYTICS_ZONE_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://dns-analytics.mcp.cloudflare.com/sse\",\"zone_details\",\"$1+\",\"dns-analytics\"]",
      "edit": {
        "read": "GET /api/directory/CF_DNS_ANALYTICS_ZONE_DETAILS",
        "update": "PUT /api/directory/CF_DNS_ANALYTICS_ZONE_DETAILS",
        "patch": "PATCH /api/directory/CF_DNS_ANALYTICS_ZONE_DETAILS",
        "delete": "DELETE /api/directory/CF_DNS_ANALYTICS_ZONE_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DNS_ANALYTICS_ZONE_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DNS_ANALYTICS_ZONE_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DNS_ANALYTICS_ZONE_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DNS_ANALYTICS_ZONE_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DNS_ANALYTICS_ZONE_DETAILS"
    },
    {
      "key": "CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
      "type": "fn",
      "category": "cf_docs",
      "doc": "ALWAYS read this guide before migrating Pages projects to Workers. MCP: https://docs.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "type": "fn",
        "what": [
          "ALWAYS read this guide before migrating Pages projects to Workers.",
          "MCP: https://docs.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE]arg1[/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "tag": "[CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE]<arg1 …>[/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://docs.mcp.cloudflare.com/sse\",\"migrate_pages_to_workers_guide\",\"$1+\",\"\"]",
      "edit": {
        "read": "GET /api/directory/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "update": "PUT /api/directory/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "patch": "PATCH /api/directory/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "delete": "DELETE /api/directory/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DOCS_MIGRATE_PAGES_TO_WORKERS_GUIDE"
    },
    {
      "key": "CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
      "type": "fn",
      "category": "cf_docs",
      "doc": "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo MCP: https://docs.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "type": "fn",
        "what": [
          "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo",
          "MCP: https://docs.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION]arg1[/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "tag": "[CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION]<arg1 …>[/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://docs.mcp.cloudflare.com/sse\",\"search_cloudflare_documentation\",\"$1+\",\"\"]",
      "edit": {
        "read": "GET /api/directory/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "update": "PUT /api/directory/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "patch": "PATCH /api/directory/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "delete": "DELETE /api/directory/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION"
      },
      "examples": "[\"workers\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_DOCS_SEARCH_CLOUDFLARE_DOCUMENTATION"
    },
    {
      "key": "CF_EXEC",
      "type": "fn",
      "category": null,
      "doc": "Code mode execute: call any CF API endpoint. args method|path|body.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_EXEC",
        "type": "fn",
        "what": [
          "Code mode execute: call any CF API endpoint. args method|path|body."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_EXEC]arg1|arg2|arg3[/CF_EXEC]",
        "tag": "[CF_EXEC]<arg1>|<arg2>|<arg3 …>[/CF_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/CF_EXEC",
        "update": "PUT /api/directory/CF_EXEC",
        "patch": "PATCH /api/directory/CF_EXEC",
        "delete": "DELETE /api/directory/CF_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"CF_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_EXEC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_EXEC"
    },
    {
      "key": "CF_EXECUTE",
      "type": "fn",
      "category": null,
      "doc": "Execute a Cloudflare tool by key. Args: tool_key body_to_pass",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_EXECUTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_EXECUTE",
        "type": "fn",
        "what": [
          "Execute a Cloudflare tool by key. Args: tool_key body_to_pass"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_EXECUTE]arg1|arg2[/CF_EXECUTE]",
        "tag": "[CF_EXECUTE]<arg1>|<arg2 …>[/CF_EXECUTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_EXECUTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_EXECUTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/CF_EXECUTE",
        "update": "PUT /api/directory/CF_EXECUTE",
        "patch": "PATCH /api/directory/CF_EXECUTE",
        "delete": "DELETE /api/directory/CF_EXECUTE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_EXECUTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_EXECUTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_EXECUTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_EXECUTE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_EXECUTE"
    },
    {
      "key": "CF_EXPERT",
      "type": "agent",
      "category": "expert",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_EXPERT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_EXPERT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CF_EXPERT][/CF_EXPERT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_EXPERT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_EXPERT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CF_EXPERT",
        "update": "PUT /api/directory/CF_EXPERT",
        "patch": "PATCH /api/directory/CF_EXPERT",
        "delete": "DELETE /api/directory/CF_EXPERT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_EXPERT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_EXPERT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_EXPERT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_EXPERT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_EXPERT"
    },
    {
      "key": "CF_FIND",
      "type": "fn",
      "category": null,
      "doc": "Code mode search: find Cloudflare API endpoints by keyword.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_FIND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_FIND",
        "type": "fn",
        "what": [
          "Code mode search: find Cloudflare API endpoints by keyword."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_FIND]arg1[/CF_FIND]",
        "tag": "[CF_FIND]<arg1 …>[/CF_FIND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_FIND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_FIND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CF_FIND",
        "update": "PUT /api/directory/CF_FIND",
        "patch": "PATCH /api/directory/CF_FIND",
        "delete": "DELETE /api/directory/CF_FIND",
        "invoke": "POST /api/dispatch {\"key\":\"CF_FIND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_FIND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_FIND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_FIND"
      },
      "examples": "[\"dns\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_FIND"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_API_EXPLORER",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Generate a Cloudflare GraphQL API Explorer link Use this tool when: - A user asks for any GraphQL queries and wants to explore them in the Cloudflare GraphQL API Explorer. - You want to provide a shar MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_API_EXPLORER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_API_EXPLORER",
        "type": "fn",
        "what": [
          "Generate a Cloudflare GraphQL API Explorer link Use this tool when: - A user asks for any GraphQL queries and wants to explore them in the Cloudflare GraphQL API Explorer. - You want to provide a shar",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_API_EXPLORER]arg1[/CF_GRAPHQL_GRAPHQL_API_EXPLORER]",
        "tag": "[CF_GRAPHQL_GRAPHQL_API_EXPLORER]<arg1 …>[/CF_GRAPHQL_GRAPHQL_API_EXPLORER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_API_EXPLORER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_API_EXPLORER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_api_explorer\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_API_EXPLORER",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_API_EXPLORER",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_API_EXPLORER",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_API_EXPLORER",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_API_EXPLORER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_API_EXPLORER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_API_EXPLORER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_API_EXPLORER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_API_EXPLORER"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Fetch the complete Cloudflare GraphQL API schema (combines overview and important type details) MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
        "type": "fn",
        "what": [
          "Fetch the complete Cloudflare GraphQL API schema (combines overview and important type details)",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA]arg1[/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA]",
        "tag": "[CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA]<arg1 …>[/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_complete_schema\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_COMPLETE_SCHEMA"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_QUERY",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Execute a GraphQL query against the Cloudflare API IMPORTANT: ONLY execute the EXACT GraphQL query provided by the user. DO NOT generate complicated queries that the user didn't explicitly ask for. CR MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_QUERY",
        "type": "fn",
        "what": [
          "Execute a GraphQL query against the Cloudflare API IMPORTANT: ONLY execute the EXACT GraphQL query provided by the user. DO NOT generate complicated queries that the user didn't explicitly ask for. CR",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_QUERY]arg1[/CF_GRAPHQL_GRAPHQL_QUERY]",
        "tag": "[CF_GRAPHQL_GRAPHQL_QUERY]<arg1 …>[/CF_GRAPHQL_GRAPHQL_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_query\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_QUERY",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_QUERY",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_QUERY",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_QUERY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_QUERY"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Fetch the high-level overview of the Cloudflare GraphQL API schema Use this tool when: - A user requests insights into the structure or capabilities of Cloudflare’s GraphQL API. - You need to explore  MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
        "type": "fn",
        "what": [
          "Fetch the high-level overview of the Cloudflare GraphQL API schema Use this tool when: - A user requests insights into the structure or capabilities of Cloudflare’s GraphQL API. - You need to explore ",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW]arg1[/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW]",
        "tag": "[CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW]<arg1 …>[/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_schema_overview\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_SCHEMA_OVERVIEW"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Search the Cloudflare GraphQL API schema for types, fields, and enum values matching a keyword Use this tool when: - You are unsure which dataset to use for your query. - A user is looking for specifi MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
        "type": "fn",
        "what": [
          "Search the Cloudflare GraphQL API schema for types, fields, and enum values matching a keyword Use this tool when: - You are unsure which dataset to use for your query. - A user is looking for specifi",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH]arg1[/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH]",
        "tag": "[CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH]<arg1 …>[/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_schema_search\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH"
      },
      "examples": "[\"zone|graphql\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_SCHEMA_SEARCH"
    },
    {
      "key": "CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Fetch detailed information about a specific GraphQL type (dataset) IMPORTANT: After exploring the schema, DO NOT generate overly complicated GraphQL queries that the user didn't explicitly ask for. On MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
        "type": "fn",
        "what": [
          "Fetch detailed information about a specific GraphQL type (dataset) IMPORTANT: After exploring the schema, DO NOT generate overly complicated GraphQL queries that the user didn't explicitly ask for. On",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_GRAPHQL_TYPE_DETAILS]arg1[/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS]",
        "tag": "[CF_GRAPHQL_GRAPHQL_TYPE_DETAILS]<arg1 …>[/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_GRAPHQL_TYPE_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"graphql_type_details\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
        "update": "PUT /api/directory/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
        "patch": "PATCH /api/directory/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
        "delete": "DELETE /api/directory/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_GRAPHQL_TYPE_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_GRAPHQL_TYPE_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_GRAPHQL_TYPE_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_GRAPHQL_TYPE_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_GRAPHQL_TYPE_DETAILS"
    },
    {
      "key": "CF_GRAPHQL_ZONES_LIST",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "List all zones under a Cloudflare account MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_ZONES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_ZONES_LIST",
        "type": "fn",
        "what": [
          "List all zones under a Cloudflare account",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_ZONES_LIST]arg1[/CF_GRAPHQL_ZONES_LIST]",
        "tag": "[CF_GRAPHQL_ZONES_LIST]<arg1 …>[/CF_GRAPHQL_ZONES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_ZONES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_ZONES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"zones_list\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_ZONES_LIST",
        "update": "PUT /api/directory/CF_GRAPHQL_ZONES_LIST",
        "patch": "PATCH /api/directory/CF_GRAPHQL_ZONES_LIST",
        "delete": "DELETE /api/directory/CF_GRAPHQL_ZONES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_ZONES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_ZONES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_ZONES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_ZONES_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_ZONES_LIST"
    },
    {
      "key": "CF_GRAPHQL_ZONE_DETAILS",
      "type": "fn",
      "category": "cf_graphql",
      "doc": "Get details for a specific Cloudflare zone MCP: https://graphql.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GRAPHQL_ZONE_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GRAPHQL_ZONE_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific Cloudflare zone",
          "MCP: https://graphql.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GRAPHQL_ZONE_DETAILS]arg1[/CF_GRAPHQL_ZONE_DETAILS]",
        "tag": "[CF_GRAPHQL_ZONE_DETAILS]<arg1 …>[/CF_GRAPHQL_ZONE_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GRAPHQL_ZONE_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GRAPHQL_ZONE_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://graphql.mcp.cloudflare.com/sse\",\"zone_details\",\"$1+\",\"graphql\"]",
      "edit": {
        "read": "GET /api/directory/CF_GRAPHQL_ZONE_DETAILS",
        "update": "PUT /api/directory/CF_GRAPHQL_ZONE_DETAILS",
        "patch": "PATCH /api/directory/CF_GRAPHQL_ZONE_DETAILS",
        "delete": "DELETE /api/directory/CF_GRAPHQL_ZONE_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GRAPHQL_ZONE_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GRAPHQL_ZONE_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GRAPHQL_ZONE_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GRAPHQL_ZONE_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GRAPHQL_ZONE_DETAILS"
    },
    {
      "key": "CF_GROK",
      "type": "fn",
      "category": null,
      "doc": "Run any model through the Cloudflare AI Gateway on this account. $1=prompt, $2=model as provider/model (grok/grok-4.3, google-ai-studio/gemini-2.5-flash, workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast, openai/gpt-5.2). Provider key picked by prefix; omit $2 for grok-4.3.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_GROK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_GROK",
        "type": "fn",
        "what": [
          "Run any model through the Cloudflare AI Gateway on this account. $1=prompt, $2=model as provider/model (grok/grok-4.3, google-ai-studio/gemini-2.5-flash, workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast, openai/gpt-5.2). Provider key picked by prefix; omit $2 for grok-4.3."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "prompt, $2=model as provider/model (grok/grok-4.3, google-ai-studio/gemini-2.5-flash, workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast, openai/gpt-5.2). Provider key picked by prefix",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_GROK]arg1|arg2[/CF_GROK]",
        "tag": "[CF_GROK]<arg1>|<arg2>[/CF_GROK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_GROK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_GROK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/CF_GROK",
        "update": "PUT /api/directory/CF_GROK",
        "patch": "PATCH /api/directory/CF_GROK",
        "delete": "DELETE /api/directory/CF_GROK",
        "invoke": "POST /api/dispatch {\"key\":\"CF_GROK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_GROK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_GROK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_GROK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_GROK"
    },
    {
      "key": "CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
      "type": "fn",
      "category": "cf_logpush",
      "doc": "WHAT: List Logpush jobs for the account and their health. WHEN_TO_USE: checking whether log delivery is running or broken ARGS: json (usually {}) EX: [CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]{}[/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
        "type": "fn",
        "what": [
          "WHAT: List Logpush jobs for the account and their health.",
          "WHEN_TO_USE: checking whether log delivery is running or broken",
          "ARGS: json (usually {})",
          "EX: [CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]{}[/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]{}[/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]",
        "tag": "[CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]<{} …>[/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_LOGPUSH_JOBS_BY_ACCOUNT_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://logs.mcp.cloudflare.com/mcp\",\"logpush_jobs_by_account_id\",\"$1+\",\"bindings\"]",
      "edit": {
        "read": "GET /api/directory/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
        "update": "PUT /api/directory/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
        "patch": "PATCH /api/directory/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
        "delete": "DELETE /api/directory/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID",
        "invoke": "POST /api/dispatch {\"key\":\"CF_LOGPUSH_JOBS_BY_ACCOUNT_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_LOGPUSH_JOBS_BY_ACCOUNT_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_LOGPUSH_JOBS_BY_ACCOUNT_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_LOGPUSH_JOBS_BY_ACCOUNT_ID"
      },
      "examples": "{}",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_LOGPUSH_JOBS_BY_ACCOUNT_ID"
    },
    {
      "key": "CF_MAIN_DOCS",
      "type": "fn",
      "category": "cf_main",
      "doc": "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workers AI, Pages, and more. MCP: https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_MAIN_DOCS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_MAIN_DOCS",
        "type": "fn",
        "what": [
          "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workers AI, Pages, and more.",
          "MCP: https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_MAIN_DOCS]arg1[/CF_MAIN_DOCS]",
        "tag": "[CF_MAIN_DOCS]<arg1 …>[/CF_MAIN_DOCS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_MAIN_DOCS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_MAIN_DOCS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute\",\"docs\",\"$1+\",\"cf_main\"]",
      "edit": {
        "read": "GET /api/directory/CF_MAIN_DOCS",
        "update": "PUT /api/directory/CF_MAIN_DOCS",
        "patch": "PATCH /api/directory/CF_MAIN_DOCS",
        "delete": "DELETE /api/directory/CF_MAIN_DOCS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_MAIN_DOCS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_MAIN_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_MAIN_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_MAIN_DOCS"
      },
      "examples": "[\"https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute|docs|workers|cf_main\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_MAIN_DOCS"
    },
    {
      "key": "CF_MAIN_EXECUTE",
      "type": "fn",
      "category": "cf_main",
      "doc": "WHAT: Run one Cloudflare API operation on this account by JavaScript. Covers the whole ~2,500-endpoint API — the widest Cloudflare capability in the directory. Find the path with CF_MAIN_SEARCH first. VERIFIED 2026-09-06: the sandbox global is `cloudflare`, called as cloudflare.request({method, path}). It is NOT `request`, `codemode` or `cf` — those are undefined here. WHEN_TO_USE: a Cloudflare read or change that has no dedicated CF_* row of its own ARGS: json {code} — an async arrow function; optional account_id to scope it EX: [CF_MAIN_EXECUTE]{\"code\":\"async () => { const r = await cloudflare.request({method:\\\"GET\\\", path:\\\"/zones\\\"}); return (r.result||[]).map(z => z.name); }\"}[/CF_MAIN_EXECUTE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_MAIN_EXECUTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_MAIN_EXECUTE",
        "type": "fn",
        "what": [
          "WHAT: Run one Cloudflare API operation on this account by JavaScript. Covers the whole ~2,500-endpoint API — the widest Cloudflare capability in the directory. Find the path with CF_MAIN_SEARCH first.",
          "VERIFIED 2026-09-06: the sandbox global is `cloudflare`, called as cloudflare.request({method, path}). It is NOT `request`, `codemode` or `cf` — those are undefined here.",
          "WHEN_TO_USE: a Cloudflare read or change that has no dedicated CF_* row of its own",
          "ARGS: json {code} — an async arrow function; optional account_id to scope it",
          "EX: [CF_MAIN_EXECUTE]{\"code\":\"async () => { const r = await cloudflare.request({method:\\\"GET\\\", path:\\\"/zones\\\"}); return (r.result||[]).map(z => z.name); }\"}[/CF_MAIN_EXECUTE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "(r.result||[]).map(z => z.name); }\"}[/CF_MAIN_EXECUTE]",
        "example": "[CF_MAIN_EXECUTE]{\"code\":\"async () => { const r = await cloudflare.request({method:\\\"GET\\\", path:\\\"/zones\\\"}); return (r.result||[]).map(z => z.name); }\"}[/CF_MAIN_EXECUTE]",
        "tag": "[CF_MAIN_EXECUTE]<arg1 …>[/CF_MAIN_EXECUTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_MAIN_EXECUTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_MAIN_EXECUTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute\",\"execute\",\"$1+\",\"cf_main\"]",
      "edit": {
        "read": "GET /api/directory/CF_MAIN_EXECUTE",
        "update": "PUT /api/directory/CF_MAIN_EXECUTE",
        "patch": "PATCH /api/directory/CF_MAIN_EXECUTE",
        "delete": "DELETE /api/directory/CF_MAIN_EXECUTE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_MAIN_EXECUTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_MAIN_EXECUTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_MAIN_EXECUTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_MAIN_EXECUTE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_MAIN_EXECUTE"
    },
    {
      "key": "CF_MAIN_SEARCH",
      "type": "fn",
      "category": "cf_main",
      "doc": "WHAT: Search the Cloudflare OpenAPI spec (~2,500 endpoints) by running JavaScript over it. VERIFIED 2026-09-06: the sandbox exposes the spec document as the bare global `spec`. There is no cloudflare/codemode global in THIS tool — that one is in CF_MAIN_EXECUTE. WHEN_TO_USE: you need the exact endpoint path for a Cloudflare operation. For prose questions use CF_MAIN_DOCS. ARGS: json {code} — an async arrow function returning your result EX: [CF_MAIN_SEARCH]{\"code\":\"async () => Object.keys(spec.paths).filter(p => p.includes(\\\"/zones\\\")).slice(0,6)\"}[/CF_MAIN_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_MAIN_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_MAIN_SEARCH",
        "type": "fn",
        "what": [
          "WHAT: Search the Cloudflare OpenAPI spec (~2,500 endpoints) by running JavaScript over it. VERIFIED 2026-09-06: the sandbox exposes the spec document as the bare global `spec`. There is no cloudflare/codemode global in THIS tool — that one is in CF_MAIN_EXECUTE.",
          "WHEN_TO_USE: you need the exact endpoint path for a Cloudflare operation. For prose questions use CF_MAIN_DOCS.",
          "ARGS: json {code} — an async arrow function returning your result",
          "EX: [CF_MAIN_SEARCH]{\"code\":\"async () => Object.keys(spec.paths).filter(p => p.includes(\\\"/zones\\\")).slice(0,6)\"}[/CF_MAIN_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"code\":\"async () = Object.keys(spec.paths).filter(p = p.includes(\\\"/zones\\\")).slice(0,6)\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_MAIN_SEARCH]{\"code\":\"async () => Object.keys(spec.paths).filter(p => p.includes(\\\"/zones\\\")).slice(0,6)\"}[/CF_MAIN_SEARCH]",
        "tag": "[CF_MAIN_SEARCH]<{\"code\":\"async () = Object.keys(spec.paths).filter(p = p.includes(\\\"/zones\\\")).slice(0,6)\"} …>[/CF_MAIN_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_MAIN_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_MAIN_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.cloudflare.com/mcp?optimize_context=search_and_execute\",\"search\",\"$1+\",\"cf_main\"]",
      "edit": {
        "read": "GET /api/directory/CF_MAIN_SEARCH",
        "update": "PUT /api/directory/CF_MAIN_SEARCH",
        "patch": "PATCH /api/directory/CF_MAIN_SEARCH",
        "delete": "DELETE /api/directory/CF_MAIN_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_MAIN_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_MAIN_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_MAIN_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_MAIN_SEARCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_MAIN_SEARCH"
    },
    {
      "key": "CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
      "type": "fn",
      "category": "cf_observability",
      "doc": "ALWAYS read this guide before migrating Pages projects to Workers. MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "type": "fn",
        "what": [
          "ALWAYS read this guide before migrating Pages projects to Workers.",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE]arg1[/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "tag": "[CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE]<arg1 …>[/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"migrate_pages_to_workers_guide\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "update": "PUT /api/directory/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_MIGRATE_PAGES_TO_WORKERS_GUIDE"
    },
    {
      "key": "CF_OBSERVABILITY_OBSERVABILITY_KEYS",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Find keys in the Workers Observability Data ## Best Practices - Set a high limit (1000+) to ensure you see all available keys - Add the $metadata.service filter to narrow results to a specific Worker  MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_OBSERVABILITY_KEYS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_OBSERVABILITY_KEYS",
        "type": "fn",
        "what": [
          "Find keys in the Workers Observability Data ## Best Practices - Set a high limit (1000+) to ensure you see all available keys - Add the $metadata.service filter to narrow results to a specific Worker ",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_OBSERVABILITY_KEYS]arg1[/CF_OBSERVABILITY_OBSERVABILITY_KEYS]",
        "tag": "[CF_OBSERVABILITY_OBSERVABILITY_KEYS]<arg1 …>[/CF_OBSERVABILITY_OBSERVABILITY_KEYS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_KEYS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_OBSERVABILITY_KEYS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"observability_keys\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_OBSERVABILITY_KEYS",
        "update": "PUT /api/directory/CF_OBSERVABILITY_OBSERVABILITY_KEYS",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_OBSERVABILITY_KEYS",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_OBSERVABILITY_KEYS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_KEYS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_KEYS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_KEYS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_OBSERVABILITY_KEYS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_OBSERVABILITY_KEYS"
    },
    {
      "key": "CF_OBSERVABILITY_OBSERVABILITY_VALUES",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Find values in the Workers Observability Data. ## Troubleshooting - For no results, verify the field exists using observability_keys first - If expected values are missing, try broadening your time ra MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_OBSERVABILITY_VALUES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_OBSERVABILITY_VALUES",
        "type": "fn",
        "what": [
          "Find values in the Workers Observability Data. ## Troubleshooting - For no results, verify the field exists using observability_keys first - If expected values are missing, try broadening your time ra",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_OBSERVABILITY_VALUES]arg1[/CF_OBSERVABILITY_OBSERVABILITY_VALUES]",
        "tag": "[CF_OBSERVABILITY_OBSERVABILITY_VALUES]<arg1 …>[/CF_OBSERVABILITY_OBSERVABILITY_VALUES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_VALUES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_OBSERVABILITY_VALUES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"observability_values\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_OBSERVABILITY_VALUES",
        "update": "PUT /api/directory/CF_OBSERVABILITY_OBSERVABILITY_VALUES",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_OBSERVABILITY_VALUES",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_OBSERVABILITY_VALUES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_VALUES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_VALUES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_OBSERVABILITY_VALUES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_OBSERVABILITY_VALUES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_OBSERVABILITY_VALUES"
    },
    {
      "key": "CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Query the Workers Observability API to analyze logs and metrics from your Cloudflare Workers. * A query typical query looks like this: {\"view\":\"events\",\"queryId\":\"workers-logs-events\",\"limit\":5,\"dry\": MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
        "type": "fn",
        "what": [
          "Query the Workers Observability API to analyze logs and metrics from your Cloudflare Workers. * A query typical query looks like this: {\"view\":\"events\",\"queryId\":\"workers-logs-events\",\"limit\":5,\"dry\":",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY]arg1[/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY]",
        "tag": "[CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY]<arg1 …>[/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"query_worker_observability\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
        "update": "PUT /api/directory/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_QUERY_WORKER_OBSERVABILITY"
    },
    {
      "key": "CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "type": "fn",
        "what": [
          "Search the Cloudflare documentation. This tool should be used to answer any question about Cloudflare products or features, including: - Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Wo",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION]arg1[/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "tag": "[CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION]<arg1 …>[/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"search_cloudflare_documentation\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "update": "PUT /api/directory/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION"
      },
      "examples": "[\"https://observability.mcp.cloudflare.com/sse|search_cloudflare_documentation|workers|observability\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_SEARCH_CLOUDFLARE_DOCUMENTATION"
    },
    {
      "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Get the details of the Cloudflare Worker. MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER",
        "type": "fn",
        "what": [
          "Get the details of the Cloudflare Worker.",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_WORKERS_GET_WORKER]arg1[/CF_OBSERVABILITY_WORKERS_GET_WORKER]",
        "tag": "[CF_OBSERVABILITY_WORKERS_GET_WORKER]<arg1 …>[/CF_OBSERVABILITY_WORKERS_GET_WORKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_WORKERS_GET_WORKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"workers_get_worker\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER",
        "update": "PUT /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_WORKERS_GET_WORKER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_WORKERS_GET_WORKER"
    },
    {
      "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
      "type": "fn",
      "category": "cf_observability",
      "doc": "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker. MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
        "type": "fn",
        "what": [
          "Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker.",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE]arg1[/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE]",
        "tag": "[CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE]<arg1 …>[/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"workers_get_worker_code\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
        "update": "PUT /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_WORKERS_GET_WORKER_CODE"
    },
    {
      "key": "CF_OBSERVABILITY_WORKERS_LIST",
      "type": "fn",
      "category": "cf_observability",
      "doc": "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker. MCP: https://observability.mcp.cloudflare.com/sse",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_OBSERVABILITY_WORKERS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_OBSERVABILITY_WORKERS_LIST",
        "type": "fn",
        "what": [
          "List all Workers in your Cloudflare account. If you only need details of a single Worker, use workers_get_worker.",
          "MCP: https://observability.mcp.cloudflare.com/sse"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_OBSERVABILITY_WORKERS_LIST]arg1[/CF_OBSERVABILITY_WORKERS_LIST]",
        "tag": "[CF_OBSERVABILITY_WORKERS_LIST]<arg1 …>[/CF_OBSERVABILITY_WORKERS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_OBSERVABILITY_WORKERS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_OBSERVABILITY_WORKERS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://observability.mcp.cloudflare.com/sse\",\"workers_list\",\"$1+\",\"observability\"]",
      "edit": {
        "read": "GET /api/directory/CF_OBSERVABILITY_WORKERS_LIST",
        "update": "PUT /api/directory/CF_OBSERVABILITY_WORKERS_LIST",
        "patch": "PATCH /api/directory/CF_OBSERVABILITY_WORKERS_LIST",
        "delete": "DELETE /api/directory/CF_OBSERVABILITY_WORKERS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CF_OBSERVABILITY_WORKERS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_OBSERVABILITY_WORKERS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_OBSERVABILITY_WORKERS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_OBSERVABILITY_WORKERS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_OBSERVABILITY_WORKERS_LIST"
    },
    {
      "key": "CF_RADAR_CREATE_URL_SCAN",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Submit a URL to scan. Returns the scan UUID which can be used to retrieve results. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_CREATE_URL_SCAN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_CREATE_URL_SCAN",
        "type": "fn",
        "what": [
          "Submit a URL to scan. Returns the scan UUID which can be used to retrieve results.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the scan UUID which can be used to retrieve results.",
        "example": "[CF_RADAR_CREATE_URL_SCAN]arg1[/CF_RADAR_CREATE_URL_SCAN]",
        "tag": "[CF_RADAR_CREATE_URL_SCAN]<arg1 …>[/CF_RADAR_CREATE_URL_SCAN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_CREATE_URL_SCAN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_CREATE_URL_SCAN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"create_url_scan\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_CREATE_URL_SCAN",
        "update": "PUT /api/directory/CF_RADAR_CREATE_URL_SCAN",
        "patch": "PATCH /api/directory/CF_RADAR_CREATE_URL_SCAN",
        "delete": "DELETE /api/directory/CF_RADAR_CREATE_URL_SCAN",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_CREATE_URL_SCAN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_CREATE_URL_SCAN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_CREATE_URL_SCAN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_CREATE_URL_SCAN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_CREATE_URL_SCAN"
    },
    {
      "key": "CF_RADAR_GET_AI_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieves AI-related data, including traffic from AI user agents, as well as popular models and model tasks specifically from Cloudflare Workers AI. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_AI_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_AI_DATA",
        "type": "fn",
        "what": [
          "Retrieves AI-related data, including traffic from AI user agents, as well as popular models and model tasks specifically from Cloudflare Workers AI.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_AI_DATA]arg1[/CF_RADAR_GET_AI_DATA]",
        "tag": "[CF_RADAR_GET_AI_DATA]<arg1 …>[/CF_RADAR_GET_AI_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_AI_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_AI_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_ai_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_AI_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_AI_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_AI_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_AI_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_AI_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_AI_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_AI_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_AI_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_AI_DATA"
    },
    {
      "key": "CF_RADAR_GET_ANNOTATIONS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve annotations including Internet events, outages, and anomalies from various Cloudflare data sources. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_ANNOTATIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_ANNOTATIONS",
        "type": "fn",
        "what": [
          "Retrieve annotations including Internet events, outages, and anomalies from various Cloudflare data sources.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_ANNOTATIONS]arg1[/CF_RADAR_GET_ANNOTATIONS]",
        "tag": "[CF_RADAR_GET_ANNOTATIONS]<arg1 …>[/CF_RADAR_GET_ANNOTATIONS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_ANNOTATIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_ANNOTATIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_annotations\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_ANNOTATIONS",
        "update": "PUT /api/directory/CF_RADAR_GET_ANNOTATIONS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_ANNOTATIONS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_ANNOTATIONS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_ANNOTATIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_ANNOTATIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_ANNOTATIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_ANNOTATIONS"
      },
      "examples": "[\"outage|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_ANNOTATIONS"
    },
    {
      "key": "CF_RADAR_GET_AS112_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve AS112 DNS sink hole data. AS112 handles reverse DNS lookups for private IP addresses (RFC 1918). Useful for analyzing DNS misconfiguration patterns. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_AS112_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_AS112_DATA",
        "type": "fn",
        "what": [
          "Retrieve AS112 DNS sink hole data. AS112 handles reverse DNS lookups for private IP addresses (RFC 1918). Useful for analyzing DNS misconfiguration patterns.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_AS112_DATA]arg1[/CF_RADAR_GET_AS112_DATA]",
        "tag": "[CF_RADAR_GET_AS112_DATA]<arg1 …>[/CF_RADAR_GET_AS112_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_AS112_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_AS112_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_as112_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_AS112_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_AS112_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_AS112_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_AS112_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_AS112_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_AS112_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_AS112_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_AS112_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_AS112_DATA"
    },
    {
      "key": "CF_RADAR_GET_AS_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get Autonomous System details by ASN MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_AS_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_AS_DETAILS",
        "type": "fn",
        "what": [
          "Get Autonomous System details by ASN",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_AS_DETAILS]arg1[/CF_RADAR_GET_AS_DETAILS]",
        "tag": "[CF_RADAR_GET_AS_DETAILS]<arg1 …>[/CF_RADAR_GET_AS_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_AS_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_AS_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_as_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_AS_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_AS_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_AS_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_AS_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_AS_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_AS_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_AS_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_AS_DETAILS"
      },
      "examples": "[\"13335\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_AS_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_AS_RELATIONSHIPS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get AS-level relationships for an Autonomous System. Shows peer, upstream, and downstream relationships with other ASes. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_AS_RELATIONSHIPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_AS_RELATIONSHIPS",
        "type": "fn",
        "what": [
          "Get AS-level relationships for an Autonomous System. Shows peer, upstream, and downstream relationships with other ASes.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_AS_RELATIONSHIPS]arg1[/CF_RADAR_GET_AS_RELATIONSHIPS]",
        "tag": "[CF_RADAR_GET_AS_RELATIONSHIPS]<arg1 …>[/CF_RADAR_GET_AS_RELATIONSHIPS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_AS_RELATIONSHIPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_AS_RELATIONSHIPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_as_relationships\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_AS_RELATIONSHIPS",
        "update": "PUT /api/directory/CF_RADAR_GET_AS_RELATIONSHIPS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_AS_RELATIONSHIPS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_AS_RELATIONSHIPS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_AS_RELATIONSHIPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_AS_RELATIONSHIPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_AS_RELATIONSHIPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_AS_RELATIONSHIPS"
      },
      "examples": "[\"13335\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_AS_RELATIONSHIPS"
    },
    {
      "key": "CF_RADAR_GET_AS_SET",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get IRR AS-SETs that an Autonomous System is a member of. AS-SETs are used in routing policies. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_AS_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_AS_SET",
        "type": "fn",
        "what": [
          "Get IRR AS-SETs that an Autonomous System is a member of. AS-SETs are used in routing policies.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_AS_SET]arg1[/CF_RADAR_GET_AS_SET]",
        "tag": "[CF_RADAR_GET_AS_SET]<arg1 …>[/CF_RADAR_GET_AS_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_AS_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_AS_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_as_set\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_AS_SET",
        "update": "PUT /api/directory/CF_RADAR_GET_AS_SET",
        "patch": "PATCH /api/directory/CF_RADAR_GET_AS_SET",
        "delete": "DELETE /api/directory/CF_RADAR_GET_AS_SET",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_AS_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_AS_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_AS_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_AS_SET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_AS_SET"
    },
    {
      "key": "CF_RADAR_GET_BGP_HIJACKS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve BGP hijack events. BGP hijacks occur when an AS announces routes it does not own, potentially redirecting traffic. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_HIJACKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_HIJACKS",
        "type": "fn",
        "what": [
          "Retrieve BGP hijack events. BGP hijacks occur when an AS announces routes it does not own, potentially redirecting traffic.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_HIJACKS]arg1[/CF_RADAR_GET_BGP_HIJACKS]",
        "tag": "[CF_RADAR_GET_BGP_HIJACKS]<arg1 …>[/CF_RADAR_GET_BGP_HIJACKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_HIJACKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_HIJACKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_hijacks\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_HIJACKS",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_HIJACKS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_HIJACKS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_HIJACKS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_HIJACKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_HIJACKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_HIJACKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_HIJACKS"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_HIJACKS"
    },
    {
      "key": "CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve announced IP address space time series data. Shows the count of announced IPv4 /24s and IPv6 /48s over time. Essential for monitoring BGP route withdrawals, IPv6 address space changes, and de MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
        "type": "fn",
        "what": [
          "Retrieve announced IP address space time series data. Shows the count of announced IPv4 /24s and IPv6 /48s over time. Essential for monitoring BGP route withdrawals, IPv6 address space changes, and de",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES]arg1[/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES]",
        "tag": "[CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES]<arg1 …>[/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_ip_space_timeseries\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_IP_SPACE_TIMESERIES"
    },
    {
      "key": "CF_RADAR_GET_BGP_LEAKS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve BGP route leak events. Route leaks occur when an AS improperly announces routes learned from one peer to another. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_LEAKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_LEAKS",
        "type": "fn",
        "what": [
          "Retrieve BGP route leak events. Route leaks occur when an AS improperly announces routes learned from one peer to another.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_LEAKS]arg1[/CF_RADAR_GET_BGP_LEAKS]",
        "tag": "[CF_RADAR_GET_BGP_LEAKS]<arg1 …>[/CF_RADAR_GET_BGP_LEAKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_LEAKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_LEAKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_leaks\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_LEAKS",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_LEAKS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_LEAKS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_LEAKS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_LEAKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_LEAKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_LEAKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_LEAKS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_LEAKS"
    },
    {
      "key": "CF_RADAR_GET_BGP_MOAS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get Multi-Origin AS (MOAS) prefixes. MOAS occurs when a prefix is announced by multiple ASes, which can indicate hijacking or legitimate anycast. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_MOAS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_MOAS",
        "type": "fn",
        "what": [
          "Get Multi-Origin AS (MOAS) prefixes. MOAS occurs when a prefix is announced by multiple ASes, which can indicate hijacking or legitimate anycast.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_MOAS]arg1[/CF_RADAR_GET_BGP_MOAS]",
        "tag": "[CF_RADAR_GET_BGP_MOAS]<arg1 …>[/CF_RADAR_GET_BGP_MOAS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_MOAS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_MOAS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_moas\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_MOAS",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_MOAS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_MOAS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_MOAS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_MOAS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_MOAS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_MOAS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_MOAS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_MOAS"
    },
    {
      "key": "CF_RADAR_GET_BGP_PFX2AS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get prefix-to-ASN mapping. Useful for looking up which AS announces a given IP prefix. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_PFX2AS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_PFX2AS",
        "type": "fn",
        "what": [
          "Get prefix-to-ASN mapping. Useful for looking up which AS announces a given IP prefix.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_PFX2AS]arg1[/CF_RADAR_GET_BGP_PFX2AS]",
        "tag": "[CF_RADAR_GET_BGP_PFX2AS]<arg1 …>[/CF_RADAR_GET_BGP_PFX2AS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_PFX2AS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_PFX2AS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_pfx2as\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_PFX2AS",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_PFX2AS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_PFX2AS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_PFX2AS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_PFX2AS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_PFX2AS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_PFX2AS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_PFX2AS"
      },
      "examples": "[\"1.1.1.0/24\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_PFX2AS"
    },
    {
      "key": "CF_RADAR_GET_BGP_ROUTES_REALTIME",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get real-time BGP routes for a specific IP prefix using public route collectors (RouteViews and RIPE RIS). Shows current routing state including AS paths, RPKI validation status, and visibility across MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_ROUTES_REALTIME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_ROUTES_REALTIME",
        "type": "fn",
        "what": [
          "Get real-time BGP routes for a specific IP prefix using public route collectors (RouteViews and RIPE RIS). Shows current routing state including AS paths, RPKI validation status, and visibility across",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_ROUTES_REALTIME]arg1[/CF_RADAR_GET_BGP_ROUTES_REALTIME]",
        "tag": "[CF_RADAR_GET_BGP_ROUTES_REALTIME]<arg1 …>[/CF_RADAR_GET_BGP_ROUTES_REALTIME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_ROUTES_REALTIME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_ROUTES_REALTIME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_routes_realtime\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_ROUTES_REALTIME",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_ROUTES_REALTIME",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_ROUTES_REALTIME",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_ROUTES_REALTIME",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_ROUTES_REALTIME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_ROUTES_REALTIME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_ROUTES_REALTIME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_ROUTES_REALTIME"
      },
      "examples": "[\"8.8.8.0/24\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_ROUTES_REALTIME"
    },
    {
      "key": "CF_RADAR_GET_BGP_ROUTE_STATS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve BGP routing table statistics including number of routes, origin ASes, and more. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_ROUTE_STATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_ROUTE_STATS",
        "type": "fn",
        "what": [
          "Retrieve BGP routing table statistics including number of routes, origin ASes, and more.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_ROUTE_STATS]arg1[/CF_RADAR_GET_BGP_ROUTE_STATS]",
        "tag": "[CF_RADAR_GET_BGP_ROUTE_STATS]<arg1 …>[/CF_RADAR_GET_BGP_ROUTE_STATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_ROUTE_STATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_ROUTE_STATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_route_stats\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_ROUTE_STATS",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_ROUTE_STATS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_ROUTE_STATS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_ROUTE_STATS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_ROUTE_STATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_ROUTE_STATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_ROUTE_STATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_ROUTE_STATS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_ROUTE_STATS"
    },
    {
      "key": "CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List all ASes in global routing tables with routing statistics (prefix counts, IPv4/IPv6 address count, RPKI validation status). Data comes from public BGP MRT archives. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
        "type": "fn",
        "what": [
          "List all ASes in global routing tables with routing statistics (prefix counts, IPv4/IPv6 address count, RPKI validation status). Data comes from public BGP MRT archives.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_ROUTING_TABLE_ASES]arg1[/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES]",
        "tag": "[CF_RADAR_GET_BGP_ROUTING_TABLE_ASES]<arg1 …>[/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_ROUTING_TABLE_ASES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_routing_table_ases\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_ROUTING_TABLE_ASES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_ROUTING_TABLE_ASES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_ROUTING_TABLE_ASES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_ROUTING_TABLE_ASES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_ROUTING_TABLE_ASES"
    },
    {
      "key": "CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve RPKI ASPA changes over time, including additions, removals, and modifications of ASPA objects. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
        "type": "fn",
        "what": [
          "Retrieve RPKI ASPA changes over time, including additions, removals, and modifications of ASPA objects.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES]arg1[/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES]",
        "tag": "[CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES]<arg1 …>[/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_rpki_aspa_changes\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES"
      },
      "examples": "[\"10|2024-01-01\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_RPKI_ASPA_CHANGES"
    },
    {
      "key": "CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve a snapshot of current or historical RPKI ASPA (Autonomous System Provider Authorization) objects. ASPA objects define which ASNs are authorized upstream providers for a customer ASN, helping  MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
        "type": "fn",
        "what": [
          "Retrieve a snapshot of current or historical RPKI ASPA (Autonomous System Provider Authorization) objects. ASPA objects define which ASNs are authorized upstream providers for a customer ASN, helping ",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT]arg1[/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT]",
        "tag": "[CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT]<arg1 …>[/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_rpki_aspa_snapshot\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_RPKI_ASPA_SNAPSHOT"
    },
    {
      "key": "CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve a timeseries of RPKI ASPA object counts over time. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
        "type": "fn",
        "what": [
          "Retrieve a timeseries of RPKI ASPA object counts over time.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES]arg1[/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES]",
        "tag": "[CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES]<arg1 …>[/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_rpki_aspa_timeseries\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_RPKI_ASPA_TIMESERIES"
    },
    {
      "key": "CF_RADAR_GET_BGP_TIMESERIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve BGP updates time series data. Shows BGP announcement and withdrawal patterns over time. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_TIMESERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_TIMESERIES",
        "type": "fn",
        "what": [
          "Retrieve BGP updates time series data. Shows BGP announcement and withdrawal patterns over time.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_TIMESERIES]arg1[/CF_RADAR_GET_BGP_TIMESERIES]",
        "tag": "[CF_RADAR_GET_BGP_TIMESERIES]<arg1 …>[/CF_RADAR_GET_BGP_TIMESERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_TIMESERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_TIMESERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_timeseries\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_TIMESERIES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_TIMESERIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_TIMESERIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_TIMESERIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_TIMESERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_TIMESERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_TIMESERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_TIMESERIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_TIMESERIES"
    },
    {
      "key": "CF_RADAR_GET_BGP_TOP_ASES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get top Autonomous Systems by BGP update count. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_TOP_ASES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_TOP_ASES",
        "type": "fn",
        "what": [
          "Get top Autonomous Systems by BGP update count.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_TOP_ASES]arg1[/CF_RADAR_GET_BGP_TOP_ASES]",
        "tag": "[CF_RADAR_GET_BGP_TOP_ASES]<arg1 …>[/CF_RADAR_GET_BGP_TOP_ASES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_TOP_ASES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_top_ases\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_TOP_ASES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_TOP_ASES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_TOP_ASES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_TOP_ASES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_TOP_ASES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_TOP_ASES"
    },
    {
      "key": "CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get top ASes ordered by announced prefix count. Useful for understanding which networks have the largest routing footprint. Data comes from public BGP MRT archives and updates every 2 hours. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
        "type": "fn",
        "what": [
          "Get top ASes ordered by announced prefix count. Useful for understanding which networks have the largest routing footprint. Data comes from public BGP MRT archives and updates every 2 hours.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES]arg1[/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES]",
        "tag": "[CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES]<arg1 …>[/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_top_ases_by_prefixes\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_TOP_ASES_BY_PREFIXES"
    },
    {
      "key": "CF_RADAR_GET_BGP_TOP_PREFIXES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get top IP prefixes by BGP update count. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BGP_TOP_PREFIXES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BGP_TOP_PREFIXES",
        "type": "fn",
        "what": [
          "Get top IP prefixes by BGP update count.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BGP_TOP_PREFIXES]arg1[/CF_RADAR_GET_BGP_TOP_PREFIXES]",
        "tag": "[CF_RADAR_GET_BGP_TOP_PREFIXES]<arg1 …>[/CF_RADAR_GET_BGP_TOP_PREFIXES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BGP_TOP_PREFIXES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BGP_TOP_PREFIXES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bgp_top_prefixes\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BGP_TOP_PREFIXES",
        "update": "PUT /api/directory/CF_RADAR_GET_BGP_TOP_PREFIXES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BGP_TOP_PREFIXES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BGP_TOP_PREFIXES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BGP_TOP_PREFIXES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BGP_TOP_PREFIXES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BGP_TOP_PREFIXES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BGP_TOP_PREFIXES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BGP_TOP_PREFIXES"
    },
    {
      "key": "CF_RADAR_GET_BOTS_CRAWLERS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve web crawler HTTP request data. Shows crawler traffic patterns by client type, user agent, referrer, and industry. Useful for analyzing crawler behavior and traffic distribution. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BOTS_CRAWLERS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BOTS_CRAWLERS_DATA",
        "type": "fn",
        "what": [
          "Retrieve web crawler HTTP request data. Shows crawler traffic patterns by client type, user agent, referrer, and industry. Useful for analyzing crawler behavior and traffic distribution.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BOTS_CRAWLERS_DATA]arg1[/CF_RADAR_GET_BOTS_CRAWLERS_DATA]",
        "tag": "[CF_RADAR_GET_BOTS_CRAWLERS_DATA]<arg1 …>[/CF_RADAR_GET_BOTS_CRAWLERS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BOTS_CRAWLERS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BOTS_CRAWLERS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bots_crawlers_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BOTS_CRAWLERS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_BOTS_CRAWLERS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BOTS_CRAWLERS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BOTS_CRAWLERS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BOTS_CRAWLERS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BOTS_CRAWLERS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BOTS_CRAWLERS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BOTS_CRAWLERS_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BOTS_CRAWLERS_DATA"
    },
    {
      "key": "CF_RADAR_GET_BOTS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve bot traffic data including trends by bot name, operator, category, and kind. Covers AI crawlers, search engines, monitoring bots, and more. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BOTS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BOTS_DATA",
        "type": "fn",
        "what": [
          "Retrieve bot traffic data including trends by bot name, operator, category, and kind. Covers AI crawlers, search engines, monitoring bots, and more.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BOTS_DATA]arg1[/CF_RADAR_GET_BOTS_DATA]",
        "tag": "[CF_RADAR_GET_BOTS_DATA]<arg1 …>[/CF_RADAR_GET_BOTS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BOTS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BOTS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bots_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BOTS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_BOTS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BOTS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BOTS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BOTS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BOTS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BOTS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BOTS_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BOTS_DATA"
    },
    {
      "key": "CF_RADAR_GET_BOT_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get detailed information about a specific bot by its slug identifier. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_BOT_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_BOT_DETAILS",
        "type": "fn",
        "what": [
          "Get detailed information about a specific bot by its slug identifier.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_BOT_DETAILS]arg1[/CF_RADAR_GET_BOT_DETAILS]",
        "tag": "[CF_RADAR_GET_BOT_DETAILS]<arg1 …>[/CF_RADAR_GET_BOT_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_BOT_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_BOT_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_bot_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_BOT_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_BOT_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_BOT_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_BOT_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_BOT_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_BOT_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_BOT_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_BOT_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_BOT_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve Certificate Transparency (CT) log data. CT provides visibility into SSL/TLS certificates issued for domains, useful for security monitoring. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
        "type": "fn",
        "what": [
          "Retrieve Certificate Transparency (CT) log data. CT provides visibility into SSL/TLS certificates issued for domains, useful for security monitoring.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA]arg1[/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA]",
        "tag": "[CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA]<arg1 …>[/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_certificate_transparency_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA"
      },
      "examples": "[\"example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_CERTIFICATE_TRANSPARENCY_DATA"
    },
    {
      "key": "CF_RADAR_GET_CT_AUTHORITY_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get details for a specific Certificate Authority by its SHA256 fingerprint. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_CT_AUTHORITY_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_CT_AUTHORITY_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific Certificate Authority by its SHA256 fingerprint.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_CT_AUTHORITY_DETAILS]arg1[/CF_RADAR_GET_CT_AUTHORITY_DETAILS]",
        "tag": "[CF_RADAR_GET_CT_AUTHORITY_DETAILS]<arg1 …>[/CF_RADAR_GET_CT_AUTHORITY_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_CT_AUTHORITY_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_CT_AUTHORITY_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_ct_authority_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_CT_AUTHORITY_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_CT_AUTHORITY_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_CT_AUTHORITY_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_CT_AUTHORITY_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_CT_AUTHORITY_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_CT_AUTHORITY_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_CT_AUTHORITY_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_CT_AUTHORITY_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_CT_AUTHORITY_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_CT_LOG_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get details for a specific Certificate Transparency log by its slug. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_CT_LOG_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_CT_LOG_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific Certificate Transparency log by its slug.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_CT_LOG_DETAILS]arg1[/CF_RADAR_GET_CT_LOG_DETAILS]",
        "tag": "[CF_RADAR_GET_CT_LOG_DETAILS]<arg1 …>[/CF_RADAR_GET_CT_LOG_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_CT_LOG_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_CT_LOG_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_ct_log_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_CT_LOG_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_CT_LOG_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_CT_LOG_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_CT_LOG_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_CT_LOG_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_CT_LOG_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_CT_LOG_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_CT_LOG_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_CT_LOG_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_DNS_QUERIES_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve trends in DNS queries to the 1.1.1.1 resolver. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_DNS_QUERIES_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_DNS_QUERIES_DATA",
        "type": "fn",
        "what": [
          "Retrieve trends in DNS queries to the 1.1.1.1 resolver.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_DNS_QUERIES_DATA]arg1[/CF_RADAR_GET_DNS_QUERIES_DATA]",
        "tag": "[CF_RADAR_GET_DNS_QUERIES_DATA]<arg1 …>[/CF_RADAR_GET_DNS_QUERIES_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_DNS_QUERIES_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_DNS_QUERIES_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_dns_queries_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_DNS_QUERIES_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_DNS_QUERIES_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_DNS_QUERIES_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_DNS_QUERIES_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_DNS_QUERIES_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_DNS_QUERIES_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_DNS_QUERIES_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_DNS_QUERIES_DATA"
      },
      "examples": "[\"2024-01-01|2024-01-07|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_DNS_QUERIES_DATA"
    },
    {
      "key": "CF_RADAR_GET_DOMAINS_RANKING",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get top or trending domains MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_DOMAINS_RANKING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_DOMAINS_RANKING",
        "type": "fn",
        "what": [
          "Get top or trending domains",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_DOMAINS_RANKING]arg1[/CF_RADAR_GET_DOMAINS_RANKING]",
        "tag": "[CF_RADAR_GET_DOMAINS_RANKING]<arg1 …>[/CF_RADAR_GET_DOMAINS_RANKING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_DOMAINS_RANKING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_domains_ranking\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_DOMAINS_RANKING",
        "update": "PUT /api/directory/CF_RADAR_GET_DOMAINS_RANKING",
        "patch": "PATCH /api/directory/CF_RADAR_GET_DOMAINS_RANKING",
        "delete": "DELETE /api/directory/CF_RADAR_GET_DOMAINS_RANKING",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_DOMAINS_RANKING"
      },
      "examples": "[\"top|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_DOMAINS_RANKING"
    },
    {
      "key": "CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get domain ranking timeseries data. Track how specific domains rank over time. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
        "type": "fn",
        "what": [
          "Get domain ranking timeseries data. Track how specific domains rank over time.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES]arg1[/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES]",
        "tag": "[CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES]<arg1 …>[/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_domains_ranking_timeseries\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
        "update": "PUT /api/directory/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES"
      },
      "examples": "[\"cloudflare.com|10|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_DOMAINS_RANKING_TIMESERIES"
    },
    {
      "key": "CF_RADAR_GET_DOMAIN_RANK_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get domain rank details MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_DOMAIN_RANK_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_DOMAIN_RANK_DETAILS",
        "type": "fn",
        "what": [
          "Get domain rank details",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_DOMAIN_RANK_DETAILS]arg1[/CF_RADAR_GET_DOMAIN_RANK_DETAILS]",
        "tag": "[CF_RADAR_GET_DOMAIN_RANK_DETAILS]<arg1 …>[/CF_RADAR_GET_DOMAIN_RANK_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_DOMAIN_RANK_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_DOMAIN_RANK_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_domain_rank_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_DOMAIN_RANK_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_DOMAIN_RANK_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_DOMAIN_RANK_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_DOMAIN_RANK_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_DOMAIN_RANK_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_DOMAIN_RANK_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_DOMAIN_RANK_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_DOMAIN_RANK_DETAILS"
      },
      "examples": "[\"example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_DOMAIN_RANK_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_EMAIL_ROUTING_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve Email Routing trends. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_EMAIL_ROUTING_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_EMAIL_ROUTING_DATA",
        "type": "fn",
        "what": [
          "Retrieve Email Routing trends.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_EMAIL_ROUTING_DATA]arg1[/CF_RADAR_GET_EMAIL_ROUTING_DATA]",
        "tag": "[CF_RADAR_GET_EMAIL_ROUTING_DATA]<arg1 …>[/CF_RADAR_GET_EMAIL_ROUTING_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_EMAIL_ROUTING_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_EMAIL_ROUTING_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_email_routing_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_EMAIL_ROUTING_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_EMAIL_ROUTING_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_EMAIL_ROUTING_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_EMAIL_ROUTING_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_EMAIL_ROUTING_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_EMAIL_ROUTING_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_EMAIL_ROUTING_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_EMAIL_ROUTING_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_EMAIL_ROUTING_DATA"
    },
    {
      "key": "CF_RADAR_GET_EMAIL_SECURITY_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve Email Security trends. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_EMAIL_SECURITY_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_EMAIL_SECURITY_DATA",
        "type": "fn",
        "what": [
          "Retrieve Email Security trends.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_EMAIL_SECURITY_DATA]arg1[/CF_RADAR_GET_EMAIL_SECURITY_DATA]",
        "tag": "[CF_RADAR_GET_EMAIL_SECURITY_DATA]<arg1 …>[/CF_RADAR_GET_EMAIL_SECURITY_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_EMAIL_SECURITY_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_EMAIL_SECURITY_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_email_security_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_EMAIL_SECURITY_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_EMAIL_SECURITY_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_EMAIL_SECURITY_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_EMAIL_SECURITY_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_EMAIL_SECURITY_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_EMAIL_SECURITY_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_EMAIL_SECURITY_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_EMAIL_SECURITY_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_EMAIL_SECURITY_DATA"
    },
    {
      "key": "CF_RADAR_GET_GEOLOCATION_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get details for a specific geolocation by its GeoNames ID. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_GEOLOCATION_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_GEOLOCATION_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific geolocation by its GeoNames ID.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_GEOLOCATION_DETAILS]arg1[/CF_RADAR_GET_GEOLOCATION_DETAILS]",
        "tag": "[CF_RADAR_GET_GEOLOCATION_DETAILS]<arg1 …>[/CF_RADAR_GET_GEOLOCATION_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_GEOLOCATION_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_GEOLOCATION_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_geolocation_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_GEOLOCATION_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_GEOLOCATION_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_GEOLOCATION_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_GEOLOCATION_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_GEOLOCATION_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_GEOLOCATION_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_GEOLOCATION_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_GEOLOCATION_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_GEOLOCATION_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_HTTP_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve HTTP traffic trends. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_HTTP_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_HTTP_DATA",
        "type": "fn",
        "what": [
          "Retrieve HTTP traffic trends.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_HTTP_DATA]arg1[/CF_RADAR_GET_HTTP_DATA]",
        "tag": "[CF_RADAR_GET_HTTP_DATA]<arg1 …>[/CF_RADAR_GET_HTTP_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_HTTP_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_HTTP_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_http_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_HTTP_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_HTTP_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_HTTP_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_HTTP_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_HTTP_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_HTTP_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_HTTP_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_HTTP_DATA"
      },
      "examples": "[\"test|7|https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_HTTP_DATA"
    },
    {
      "key": "CF_RADAR_GET_INTERNET_QUALITY_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieves a summary or time series of bandwidth, latency, or DNS response time percentiles from the Radar Internet Quality Index (IQI). MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_INTERNET_QUALITY_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_INTERNET_QUALITY_DATA",
        "type": "fn",
        "what": [
          "Retrieves a summary or time series of bandwidth, latency, or DNS response time percentiles from the Radar Internet Quality Index (IQI).",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_INTERNET_QUALITY_DATA]arg1[/CF_RADAR_GET_INTERNET_QUALITY_DATA]",
        "tag": "[CF_RADAR_GET_INTERNET_QUALITY_DATA]<arg1 …>[/CF_RADAR_GET_INTERNET_QUALITY_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_INTERNET_QUALITY_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_INTERNET_QUALITY_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_internet_quality_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_INTERNET_QUALITY_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_INTERNET_QUALITY_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_INTERNET_QUALITY_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_INTERNET_QUALITY_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_INTERNET_QUALITY_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_INTERNET_QUALITY_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_INTERNET_QUALITY_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_INTERNET_QUALITY_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_INTERNET_QUALITY_DATA"
    },
    {
      "key": "CF_RADAR_GET_INTERNET_SERVICES_RANKING",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get top Internet services MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_INTERNET_SERVICES_RANKING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_INTERNET_SERVICES_RANKING",
        "type": "fn",
        "what": [
          "Get top Internet services",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_INTERNET_SERVICES_RANKING]arg1[/CF_RADAR_GET_INTERNET_SERVICES_RANKING]",
        "tag": "[CF_RADAR_GET_INTERNET_SERVICES_RANKING]<arg1 …>[/CF_RADAR_GET_INTERNET_SERVICES_RANKING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_RANKING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_INTERNET_SERVICES_RANKING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_internet_services_ranking\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_INTERNET_SERVICES_RANKING",
        "update": "PUT /api/directory/CF_RADAR_GET_INTERNET_SERVICES_RANKING",
        "patch": "PATCH /api/directory/CF_RADAR_GET_INTERNET_SERVICES_RANKING",
        "delete": "DELETE /api/directory/CF_RADAR_GET_INTERNET_SERVICES_RANKING",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_RANKING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_RANKING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_RANKING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_INTERNET_SERVICES_RANKING"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_INTERNET_SERVICES_RANKING"
    },
    {
      "key": "CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Track internet service ranking changes over time. Useful for monitoring how services like ChatGPT, Google, etc. rank over time. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
        "type": "fn",
        "what": [
          "Track internet service ranking changes over time. Useful for monitoring how services like ChatGPT, Google, etc. rank over time.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES]arg1[/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES]",
        "tag": "[CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES]<arg1 …>[/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_internet_services_timeseries\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
        "update": "PUT /api/directory/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES"
      },
      "examples": "[\"ChatGPT|7|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_INTERNET_SERVICES_TIMESERIES"
    },
    {
      "key": "CF_RADAR_GET_INTERNET_SPEED_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve summary of bandwidth, latency, jitter, and packet loss, from the previous 90 days of Cloudflare Speed Test. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_INTERNET_SPEED_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_INTERNET_SPEED_DATA",
        "type": "fn",
        "what": [
          "Retrieve summary of bandwidth, latency, jitter, and packet loss, from the previous 90 days of Cloudflare Speed Test.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_INTERNET_SPEED_DATA]arg1[/CF_RADAR_GET_INTERNET_SPEED_DATA]",
        "tag": "[CF_RADAR_GET_INTERNET_SPEED_DATA]<arg1 …>[/CF_RADAR_GET_INTERNET_SPEED_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_INTERNET_SPEED_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_INTERNET_SPEED_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_internet_speed_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_INTERNET_SPEED_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_INTERNET_SPEED_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_INTERNET_SPEED_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_INTERNET_SPEED_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_INTERNET_SPEED_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_INTERNET_SPEED_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_INTERNET_SPEED_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_INTERNET_SPEED_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_INTERNET_SPEED_DATA"
    },
    {
      "key": "CF_RADAR_GET_IP_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get IP address information including full ASN details (name, country, population estimates from APNIC). MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_IP_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_IP_DETAILS",
        "type": "fn",
        "what": [
          "Get IP address information including full ASN details (name, country, population estimates from APNIC).",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_IP_DETAILS]arg1[/CF_RADAR_GET_IP_DETAILS]",
        "tag": "[CF_RADAR_GET_IP_DETAILS]<arg1 …>[/CF_RADAR_GET_IP_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_IP_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_IP_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_ip_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_IP_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_IP_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_IP_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_IP_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_IP_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_IP_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_IP_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_IP_DETAILS"
      },
      "examples": "[\"1.1.1.1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_IP_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_L3_ATTACK_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve network layer (L3/DDoS) attack trends. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_L3_ATTACK_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_L3_ATTACK_DATA",
        "type": "fn",
        "what": [
          "Retrieve network layer (L3/DDoS) attack trends.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_L3_ATTACK_DATA]arg1[/CF_RADAR_GET_L3_ATTACK_DATA]",
        "tag": "[CF_RADAR_GET_L3_ATTACK_DATA]<arg1 …>[/CF_RADAR_GET_L3_ATTACK_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_L3_ATTACK_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_L3_ATTACK_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_l3_attack_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_L3_ATTACK_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_L3_ATTACK_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_L3_ATTACK_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_L3_ATTACK_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_L3_ATTACK_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_L3_ATTACK_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_L3_ATTACK_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_L3_ATTACK_DATA"
      },
      "examples": "[\"10|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_L3_ATTACK_DATA"
    },
    {
      "key": "CF_RADAR_GET_L7_ATTACK_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve application layer (L7) attack trends. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_L7_ATTACK_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_L7_ATTACK_DATA",
        "type": "fn",
        "what": [
          "Retrieve application layer (L7) attack trends.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_L7_ATTACK_DATA]arg1[/CF_RADAR_GET_L7_ATTACK_DATA]",
        "tag": "[CF_RADAR_GET_L7_ATTACK_DATA]<arg1 …>[/CF_RADAR_GET_L7_ATTACK_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_L7_ATTACK_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_L7_ATTACK_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_l7_attack_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_L7_ATTACK_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_L7_ATTACK_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_L7_ATTACK_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_L7_ATTACK_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_L7_ATTACK_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_L7_ATTACK_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_L7_ATTACK_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_L7_ATTACK_DATA"
      },
      "examples": "[\"test|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_L7_ATTACK_DATA"
    },
    {
      "key": "CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve trends in HTTP authentication requests and compromised credential detection. Shows distribution by compromised status and bot class. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
        "type": "fn",
        "what": [
          "Retrieve trends in HTTP authentication requests and compromised credential detection. Shows distribution by compromised status and bot class.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_LEAKED_CREDENTIALS_DATA]arg1[/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA]",
        "tag": "[CF_RADAR_GET_LEAKED_CREDENTIALS_DATA]<arg1 …>[/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_LEAKED_CREDENTIALS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_leaked_credentials_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_LEAKED_CREDENTIALS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_LEAKED_CREDENTIALS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_LEAKED_CREDENTIALS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_LEAKED_CREDENTIALS_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_LEAKED_CREDENTIALS_DATA"
    },
    {
      "key": "CF_RADAR_GET_NETFLOWS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve NetFlows traffic data showing network traffic patterns. Supports filtering by ADM1 (administrative level 1, e.g., states/provinces) via geoId. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_NETFLOWS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_NETFLOWS_DATA",
        "type": "fn",
        "what": [
          "Retrieve NetFlows traffic data showing network traffic patterns. Supports filtering by ADM1 (administrative level 1, e.g., states/provinces) via geoId.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_NETFLOWS_DATA]arg1[/CF_RADAR_GET_NETFLOWS_DATA]",
        "tag": "[CF_RADAR_GET_NETFLOWS_DATA]<arg1 …>[/CF_RADAR_GET_NETFLOWS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_NETFLOWS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_NETFLOWS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_netflows_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_NETFLOWS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_NETFLOWS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_NETFLOWS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_NETFLOWS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_NETFLOWS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_NETFLOWS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_NETFLOWS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_NETFLOWS_DATA"
      },
      "examples": "[\"US|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_NETFLOWS_DATA"
    },
    {
      "key": "CF_RADAR_GET_ORIGINS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve cloud provider (AWS, GCP, Azure, OCI) performance metrics. Supports timeseries, summaries grouped by region/success_rate/percentile, and grouped timeseries. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_ORIGINS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_ORIGINS_DATA",
        "type": "fn",
        "what": [
          "Retrieve cloud provider (AWS, GCP, Azure, OCI) performance metrics. Supports timeseries, summaries grouped by region/success_rate/percentile, and grouped timeseries.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_ORIGINS_DATA]arg1[/CF_RADAR_GET_ORIGINS_DATA]",
        "tag": "[CF_RADAR_GET_ORIGINS_DATA]<arg1 …>[/CF_RADAR_GET_ORIGINS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_ORIGINS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_ORIGINS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_origins_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_ORIGINS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_ORIGINS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_ORIGINS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_ORIGINS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_ORIGINS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_ORIGINS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_ORIGINS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_ORIGINS_DATA"
      },
      "examples": "[\"aws|us-east-1|7\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_ORIGINS_DATA"
    },
    {
      "key": "CF_RADAR_GET_ORIGIN_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get details for a specific cloud provider origin, including all available regions. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_ORIGIN_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_ORIGIN_DETAILS",
        "type": "fn",
        "what": [
          "Get details for a specific cloud provider origin, including all available regions.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_ORIGIN_DETAILS]arg1[/CF_RADAR_GET_ORIGIN_DETAILS]",
        "tag": "[CF_RADAR_GET_ORIGIN_DETAILS]<arg1 …>[/CF_RADAR_GET_ORIGIN_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_ORIGIN_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_ORIGIN_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_origin_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_ORIGIN_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_ORIGIN_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_ORIGIN_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_ORIGIN_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_ORIGIN_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_ORIGIN_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_ORIGIN_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_ORIGIN_DETAILS"
      },
      "examples": "[\"aws\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_ORIGIN_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_OUTAGES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve Internet outages and anomalies. Provides information about detected connectivity issues across ASes and locations. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_OUTAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_OUTAGES",
        "type": "fn",
        "what": [
          "Retrieve Internet outages and anomalies. Provides information about detected connectivity issues across ASes and locations.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_OUTAGES]arg1[/CF_RADAR_GET_OUTAGES]",
        "tag": "[CF_RADAR_GET_OUTAGES]<arg1 …>[/CF_RADAR_GET_OUTAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_OUTAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_OUTAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_outages\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_OUTAGES",
        "update": "PUT /api/directory/CF_RADAR_GET_OUTAGES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_OUTAGES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_OUTAGES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_OUTAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_OUTAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_OUTAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_OUTAGES"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_OUTAGES"
    },
    {
      "key": "CF_RADAR_GET_OUTAGES_BY_LOCATION",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get outage counts aggregated by location. Useful for identifying which countries have the most Internet outages. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_OUTAGES_BY_LOCATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_OUTAGES_BY_LOCATION",
        "type": "fn",
        "what": [
          "Get outage counts aggregated by location. Useful for identifying which countries have the most Internet outages.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_OUTAGES_BY_LOCATION]arg1[/CF_RADAR_GET_OUTAGES_BY_LOCATION]",
        "tag": "[CF_RADAR_GET_OUTAGES_BY_LOCATION]<arg1 …>[/CF_RADAR_GET_OUTAGES_BY_LOCATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_OUTAGES_BY_LOCATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_OUTAGES_BY_LOCATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_outages_by_location\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_OUTAGES_BY_LOCATION",
        "update": "PUT /api/directory/CF_RADAR_GET_OUTAGES_BY_LOCATION",
        "patch": "PATCH /api/directory/CF_RADAR_GET_OUTAGES_BY_LOCATION",
        "delete": "DELETE /api/directory/CF_RADAR_GET_OUTAGES_BY_LOCATION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_OUTAGES_BY_LOCATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_OUTAGES_BY_LOCATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_OUTAGES_BY_LOCATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_OUTAGES_BY_LOCATION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_OUTAGES_BY_LOCATION"
    },
    {
      "key": "CF_RADAR_GET_ROBOTS_TXT_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve robots.txt analysis data. Shows how websites configure crawler access rules, particularly for AI crawlers. Useful for understanding web crawler policies across domains. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_ROBOTS_TXT_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_ROBOTS_TXT_DATA",
        "type": "fn",
        "what": [
          "Retrieve robots.txt analysis data. Shows how websites configure crawler access rules, particularly for AI crawlers. Useful for understanding web crawler policies across domains.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_ROBOTS_TXT_DATA]arg1[/CF_RADAR_GET_ROBOTS_TXT_DATA]",
        "tag": "[CF_RADAR_GET_ROBOTS_TXT_DATA]<arg1 …>[/CF_RADAR_GET_ROBOTS_TXT_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_ROBOTS_TXT_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_ROBOTS_TXT_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_robots_txt_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_ROBOTS_TXT_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_ROBOTS_TXT_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_ROBOTS_TXT_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_ROBOTS_TXT_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_ROBOTS_TXT_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_ROBOTS_TXT_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_ROBOTS_TXT_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_ROBOTS_TXT_DATA"
      },
      "examples": "[\"example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_ROBOTS_TXT_DATA"
    },
    {
      "key": "CF_RADAR_GET_SPEED_HISTOGRAM",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get speed test histogram data. Shows distribution of speed test results for bandwidth, latency, or jitter. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_SPEED_HISTOGRAM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_SPEED_HISTOGRAM",
        "type": "fn",
        "what": [
          "Get speed test histogram data. Shows distribution of speed test results for bandwidth, latency, or jitter.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_SPEED_HISTOGRAM]arg1[/CF_RADAR_GET_SPEED_HISTOGRAM]",
        "tag": "[CF_RADAR_GET_SPEED_HISTOGRAM]<arg1 …>[/CF_RADAR_GET_SPEED_HISTOGRAM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_SPEED_HISTOGRAM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_SPEED_HISTOGRAM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_speed_histogram\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_SPEED_HISTOGRAM",
        "update": "PUT /api/directory/CF_RADAR_GET_SPEED_HISTOGRAM",
        "patch": "PATCH /api/directory/CF_RADAR_GET_SPEED_HISTOGRAM",
        "delete": "DELETE /api/directory/CF_RADAR_GET_SPEED_HISTOGRAM",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_SPEED_HISTOGRAM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_SPEED_HISTOGRAM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_SPEED_HISTOGRAM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_SPEED_HISTOGRAM"
      },
      "examples": "[\"bandwidth|test|7\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_SPEED_HISTOGRAM"
    },
    {
      "key": "CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Retrieve TCP connection quality metrics including resets and timeouts. Useful for understanding connection reliability across networks and locations. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
        "type": "fn",
        "what": [
          "Retrieve TCP connection quality metrics including resets and timeouts. Useful for understanding connection reliability across networks and locations.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA]arg1[/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA]",
        "tag": "[CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA]<arg1 …>[/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_tcp_resets_timeouts_data\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
        "update": "PUT /api/directory/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
        "patch": "PATCH /api/directory/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
        "delete": "DELETE /api/directory/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_TCP_RESETS_TIMEOUTS_DATA"
    },
    {
      "key": "CF_RADAR_GET_TLD_DETAILS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get detailed information about a specific top-level domain (TLD). MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_TLD_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_TLD_DETAILS",
        "type": "fn",
        "what": [
          "Get detailed information about a specific top-level domain (TLD).",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_TLD_DETAILS]arg1[/CF_RADAR_GET_TLD_DETAILS]",
        "tag": "[CF_RADAR_GET_TLD_DETAILS]<arg1 …>[/CF_RADAR_GET_TLD_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_TLD_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_TLD_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_tld_details\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_TLD_DETAILS",
        "update": "PUT /api/directory/CF_RADAR_GET_TLD_DETAILS",
        "patch": "PATCH /api/directory/CF_RADAR_GET_TLD_DETAILS",
        "delete": "DELETE /api/directory/CF_RADAR_GET_TLD_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_TLD_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_TLD_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_TLD_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_TLD_DETAILS"
      },
      "examples": "[\"com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_TLD_DETAILS"
    },
    {
      "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get traffic anomalies and outages MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES",
        "type": "fn",
        "what": [
          "Get traffic anomalies and outages",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_TRAFFIC_ANOMALIES]arg1[/CF_RADAR_GET_TRAFFIC_ANOMALIES]",
        "tag": "[CF_RADAR_GET_TRAFFIC_ANOMALIES]<arg1 …>[/CF_RADAR_GET_TRAFFIC_ANOMALIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_TRAFFIC_ANOMALIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_traffic_anomalies\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES",
        "update": "PUT /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES",
        "patch": "PATCH /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES",
        "delete": "DELETE /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_TRAFFIC_ANOMALIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_TRAFFIC_ANOMALIES"
    },
    {
      "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get traffic anomalies aggregated by location. Shows which countries have the most detected outage signals, automatically detected by Radar. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
        "type": "fn",
        "what": [
          "Get traffic anomalies aggregated by location. Shows which countries have the most detected outage signals, automatically detected by Radar.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION]arg1[/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION]",
        "tag": "[CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION]<arg1 …>[/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_traffic_anomalies_by_location\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
        "update": "PUT /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
        "patch": "PATCH /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
        "delete": "DELETE /api/directory/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_TRAFFIC_ANOMALIES_BY_LOCATION"
    },
    {
      "key": "CF_RADAR_GET_URL_SCAN",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get the results of a URL scan by its UUID. Returns detailed information including verdicts, page info, requests, cookies, and more. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_URL_SCAN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_URL_SCAN",
        "type": "fn",
        "what": [
          "Get the results of a URL scan by its UUID. Returns detailed information including verdicts, page info, requests, cookies, and more.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "detailed information including verdicts, page info, requests, cookies, and more.",
        "example": "[CF_RADAR_GET_URL_SCAN]arg1[/CF_RADAR_GET_URL_SCAN]",
        "tag": "[CF_RADAR_GET_URL_SCAN]<arg1 …>[/CF_RADAR_GET_URL_SCAN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_URL_SCAN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_URL_SCAN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_url_scan\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_URL_SCAN",
        "update": "PUT /api/directory/CF_RADAR_GET_URL_SCAN",
        "patch": "PATCH /api/directory/CF_RADAR_GET_URL_SCAN",
        "delete": "DELETE /api/directory/CF_RADAR_GET_URL_SCAN",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_URL_SCAN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_URL_SCAN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_URL_SCAN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_URL_SCAN"
      },
      "examples": "[\"12345678-1234-1234-1234-123456789abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_URL_SCAN"
    },
    {
      "key": "CF_RADAR_GET_URL_SCAN_HAR",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get the HAR (HTTP Archive) data for a completed scan. Contains detailed network request/response information. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_URL_SCAN_HAR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_URL_SCAN_HAR",
        "type": "fn",
        "what": [
          "Get the HAR (HTTP Archive) data for a completed scan. Contains detailed network request/response information.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_URL_SCAN_HAR]arg1[/CF_RADAR_GET_URL_SCAN_HAR]",
        "tag": "[CF_RADAR_GET_URL_SCAN_HAR]<arg1 …>[/CF_RADAR_GET_URL_SCAN_HAR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_URL_SCAN_HAR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_URL_SCAN_HAR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_url_scan_har\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_URL_SCAN_HAR",
        "update": "PUT /api/directory/CF_RADAR_GET_URL_SCAN_HAR",
        "patch": "PATCH /api/directory/CF_RADAR_GET_URL_SCAN_HAR",
        "delete": "DELETE /api/directory/CF_RADAR_GET_URL_SCAN_HAR",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_URL_SCAN_HAR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_URL_SCAN_HAR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_URL_SCAN_HAR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_URL_SCAN_HAR"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_URL_SCAN_HAR"
    },
    {
      "key": "CF_RADAR_GET_URL_SCAN_SCREENSHOT",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Get the screenshot URL for a completed scan. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_GET_URL_SCAN_SCREENSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_GET_URL_SCAN_SCREENSHOT",
        "type": "fn",
        "what": [
          "Get the screenshot URL for a completed scan.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_GET_URL_SCAN_SCREENSHOT]arg1[/CF_RADAR_GET_URL_SCAN_SCREENSHOT]",
        "tag": "[CF_RADAR_GET_URL_SCAN_SCREENSHOT]<arg1 …>[/CF_RADAR_GET_URL_SCAN_SCREENSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_GET_URL_SCAN_SCREENSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_GET_URL_SCAN_SCREENSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"get_url_scan_screenshot\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_GET_URL_SCAN_SCREENSHOT",
        "update": "PUT /api/directory/CF_RADAR_GET_URL_SCAN_SCREENSHOT",
        "patch": "PATCH /api/directory/CF_RADAR_GET_URL_SCAN_SCREENSHOT",
        "delete": "DELETE /api/directory/CF_RADAR_GET_URL_SCAN_SCREENSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_GET_URL_SCAN_SCREENSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_GET_URL_SCAN_SCREENSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_GET_URL_SCAN_SCREENSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_GET_URL_SCAN_SCREENSHOT"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_GET_URL_SCAN_SCREENSHOT"
    },
    {
      "key": "CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List Autonomous Systems MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
        "type": "fn",
        "what": [
          "List Autonomous Systems",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_AUTONOMOUS_SYSTEMS]arg1[/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS]",
        "tag": "[CF_RADAR_LIST_AUTONOMOUS_SYSTEMS]<arg1 …>[/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_AUTONOMOUS_SYSTEMS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_autonomous_systems\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
        "update": "PUT /api/directory/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_AUTONOMOUS_SYSTEMS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_AUTONOMOUS_SYSTEMS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_AUTONOMOUS_SYSTEMS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_AUTONOMOUS_SYSTEMS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_AUTONOMOUS_SYSTEMS"
    },
    {
      "key": "CF_RADAR_LIST_BOTS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List known bots with their details. Includes AI crawlers, search engines, monitoring bots, and more. Filter by category, operator, kind, or verification status. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_BOTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_BOTS",
        "type": "fn",
        "what": [
          "List known bots with their details. Includes AI crawlers, search engines, monitoring bots, and more. Filter by category, operator, kind, or verification status.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_BOTS]arg1[/CF_RADAR_LIST_BOTS]",
        "tag": "[CF_RADAR_LIST_BOTS]<arg1 …>[/CF_RADAR_LIST_BOTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_BOTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_BOTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_bots\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_BOTS",
        "update": "PUT /api/directory/CF_RADAR_LIST_BOTS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_BOTS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_BOTS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_BOTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_BOTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_BOTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_BOTS"
      },
      "examples": "[\"ai_crawler|test|search_engine|verified\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_BOTS"
    },
    {
      "key": "CF_RADAR_LIST_CT_AUTHORITIES",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List Certificate Authorities (CAs) tracked in Certificate Transparency logs. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_CT_AUTHORITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_CT_AUTHORITIES",
        "type": "fn",
        "what": [
          "List Certificate Authorities (CAs) tracked in Certificate Transparency logs.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_CT_AUTHORITIES]arg1[/CF_RADAR_LIST_CT_AUTHORITIES]",
        "tag": "[CF_RADAR_LIST_CT_AUTHORITIES]<arg1 …>[/CF_RADAR_LIST_CT_AUTHORITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_CT_AUTHORITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_CT_AUTHORITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_ct_authorities\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_CT_AUTHORITIES",
        "update": "PUT /api/directory/CF_RADAR_LIST_CT_AUTHORITIES",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_CT_AUTHORITIES",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_CT_AUTHORITIES",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_CT_AUTHORITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_CT_AUTHORITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_CT_AUTHORITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_CT_AUTHORITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_CT_AUTHORITIES"
    },
    {
      "key": "CF_RADAR_LIST_CT_LOGS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List Certificate Transparency logs. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_CT_LOGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_CT_LOGS",
        "type": "fn",
        "what": [
          "List Certificate Transparency logs.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_CT_LOGS]arg1[/CF_RADAR_LIST_CT_LOGS]",
        "tag": "[CF_RADAR_LIST_CT_LOGS]<arg1 …>[/CF_RADAR_LIST_CT_LOGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_CT_LOGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_CT_LOGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_ct_logs\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_CT_LOGS",
        "update": "PUT /api/directory/CF_RADAR_LIST_CT_LOGS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_CT_LOGS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_CT_LOGS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_CT_LOGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_CT_LOGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_CT_LOGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_CT_LOGS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_CT_LOGS"
    },
    {
      "key": "CF_RADAR_LIST_GEOLOCATIONS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List available geolocations (ADM1 - administrative divisions like states/provinces). Use this to find GeoNames IDs for filtering HTTP and NetFlows data by region. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_GEOLOCATIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_GEOLOCATIONS",
        "type": "fn",
        "what": [
          "List available geolocations (ADM1 - administrative divisions like states/provinces). Use this to find GeoNames IDs for filtering HTTP and NetFlows data by region.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_GEOLOCATIONS]arg1[/CF_RADAR_LIST_GEOLOCATIONS]",
        "tag": "[CF_RADAR_LIST_GEOLOCATIONS]<arg1 …>[/CF_RADAR_LIST_GEOLOCATIONS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_GEOLOCATIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_GEOLOCATIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_geolocations\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_GEOLOCATIONS",
        "update": "PUT /api/directory/CF_RADAR_LIST_GEOLOCATIONS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_GEOLOCATIONS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_GEOLOCATIONS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_GEOLOCATIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_GEOLOCATIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_GEOLOCATIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_GEOLOCATIONS"
      },
      "examples": "[\"test|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_GEOLOCATIONS"
    },
    {
      "key": "CF_RADAR_LIST_ORIGINS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List cloud provider origins (hyperscalers) available in Cloud Observatory. Returns Amazon (AWS), Google (GCP), Microsoft (Azure), and Oracle (OCI) with their available regions. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_ORIGINS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_ORIGINS",
        "type": "fn",
        "what": [
          "List cloud provider origins (hyperscalers) available in Cloud Observatory. Returns Amazon (AWS), Google (GCP), Microsoft (Azure), and Oracle (OCI) with their available regions.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "Amazon (AWS), Google (GCP), Microsoft (Azure), and Oracle (OCI) with their available regions.",
        "example": "[CF_RADAR_LIST_ORIGINS]arg1[/CF_RADAR_LIST_ORIGINS]",
        "tag": "[CF_RADAR_LIST_ORIGINS]<arg1 …>[/CF_RADAR_LIST_ORIGINS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_ORIGINS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_ORIGINS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_origins\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_ORIGINS",
        "update": "PUT /api/directory/CF_RADAR_LIST_ORIGINS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_ORIGINS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_ORIGINS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_ORIGINS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_ORIGINS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_ORIGINS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_ORIGINS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_ORIGINS"
    },
    {
      "key": "CF_RADAR_LIST_TLDS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "List top-level domains (TLDs) including generic, country-code, and sponsored TLDs. Filter by type or manager. MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_LIST_TLDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_LIST_TLDS",
        "type": "fn",
        "what": [
          "List top-level domains (TLDs) including generic, country-code, and sponsored TLDs. Filter by type or manager.",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_LIST_TLDS]arg1[/CF_RADAR_LIST_TLDS]",
        "tag": "[CF_RADAR_LIST_TLDS]<arg1 …>[/CF_RADAR_LIST_TLDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_LIST_TLDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_LIST_TLDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"list_tlds\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_LIST_TLDS",
        "update": "PUT /api/directory/CF_RADAR_LIST_TLDS",
        "patch": "PATCH /api/directory/CF_RADAR_LIST_TLDS",
        "delete": "DELETE /api/directory/CF_RADAR_LIST_TLDS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_LIST_TLDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_LIST_TLDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_LIST_TLDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_LIST_TLDS"
      },
      "examples": "[\"generic|100\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_LIST_TLDS"
    },
    {
      "key": "CF_RADAR_SEARCH_URL_SCANS",
      "type": "fn",
      "category": "cf_radar",
      "doc": "Search URL scans using ElasticSearch-like query syntax. Examples: 'page.domain:example.com', 'verdicts.malicious:true', 'page.asn:AS24940 AND hash:xxx', 'apikey:me AND date:[2025-01 TO 2025-02]' MCP: https://radar.mcp.cloudflare.com/mcp",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_RADAR_SEARCH_URL_SCANS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_RADAR_SEARCH_URL_SCANS",
        "type": "fn",
        "what": [
          "Search URL scans using ElasticSearch-like query syntax. Examples: 'page.domain:example.com', 'verdicts.malicious:true', 'page.asn:AS24940 AND hash:xxx', 'apikey:me AND date:[2025-01 TO 2025-02]'",
          "MCP: https://radar.mcp.cloudflare.com/mcp"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CF_RADAR_SEARCH_URL_SCANS]arg1[/CF_RADAR_SEARCH_URL_SCANS]",
        "tag": "[CF_RADAR_SEARCH_URL_SCANS]<arg1 …>[/CF_RADAR_SEARCH_URL_SCANS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_RADAR_SEARCH_URL_SCANS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_RADAR_SEARCH_URL_SCANS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://radar.mcp.cloudflare.com/mcp\",\"search_url_scans\",\"$1+\",\"radar\"]",
      "edit": {
        "read": "GET /api/directory/CF_RADAR_SEARCH_URL_SCANS",
        "update": "PUT /api/directory/CF_RADAR_SEARCH_URL_SCANS",
        "patch": "PATCH /api/directory/CF_RADAR_SEARCH_URL_SCANS",
        "delete": "DELETE /api/directory/CF_RADAR_SEARCH_URL_SCANS",
        "invoke": "POST /api/dispatch {\"key\":\"CF_RADAR_SEARCH_URL_SCANS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_RADAR_SEARCH_URL_SCANS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_RADAR_SEARCH_URL_SCANS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_RADAR_SEARCH_URL_SCANS"
      },
      "examples": "[\"page.domain:example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_RADAR_SEARCH_URL_SCANS"
    },
    {
      "key": "CF_SEARCH",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Search the Cloudflare documentation and return matching sections with their URLs. WHEN_TO_USE: any question about a Cloudflare product, limit, binding or API — Workers, Durable Objects, D1, KV, R2, Queues, Workflows, Containers, AI Gateway, Pipelines. ARGS: the search phrase EX: [CF_SEARCH]durable objects sqlite storage limit[/CF_SEARCH] MCP: https://docs.mcp.cloudflare.com/mcp (keyless — this server needs no token) HISTORY: pointed at a runner named cfSearch that never existed; disabled 2026-09-01 and repointed the same day once the MCP transport fix proved the docs server answers without credentials.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CF_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CF_SEARCH",
        "type": "fn",
        "what": [
          "WHAT: Search the Cloudflare documentation and return matching sections with their URLs.",
          "WHEN_TO_USE: any question about a Cloudflare product, limit, binding or API — Workers, Durable Objects, D1, KV, R2, Queues, Workflows, Containers, AI Gateway, Pipelines.",
          "ARGS: the search phrase",
          "EX: [CF_SEARCH]durable objects sqlite storage limit[/CF_SEARCH]",
          "MCP: https://docs.mcp.cloudflare.com/mcp (keyless — this server needs no token)",
          "HISTORY: pointed at a runner named cfSearch that never existed; disabled 2026-09-01 and repointed the same day once the MCP transport fix proved the docs server answers without credentials."
        ],
        "args": [
          {
            "pos": 1,
            "name": "durable objects sqlite storage limit",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "matching sections with their URLs.",
        "example": "[CF_SEARCH]durable objects sqlite storage limit[/CF_SEARCH]",
        "tag": "[CF_SEARCH]<durable objects sqlite storage limit …>[/CF_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CF_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CF_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://docs.mcp.cloudflare.com/mcp\",\"search_cloudflare_documentation\",\"$1+\",\"\"]",
      "edit": {
        "read": "GET /api/directory/CF_SEARCH",
        "update": "PUT /api/directory/CF_SEARCH",
        "patch": "PATCH /api/directory/CF_SEARCH",
        "delete": "DELETE /api/directory/CF_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CF_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CF_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CF_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CF_SEARCH"
      },
      "examples": "[\"durable objects sqlite storage limit\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CF_SEARCH"
    },
    {
      "key": "CHAIN_SEAL",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Fold newly-logged ledger events into the public transparency chain: appends a checkpoint, builds the batch's Merkle tree, and signs the checkpoint with the home ES256 key. Caps at 10,000 leaves per call, so a backlog needs repeated calls. WHEN_TO_USE: on a schedule, and any time /api/chain reports an event_count far below SELECT COUNT(*) FROM events. An unsealed event is not yet covered by a published head, so it is not yet tamper-evident to an outsider. ARGS: none EX: [CHAIN_SEAL][/CHAIN_SEAL] VERIFY: GET https://miscsubjects.com/api/chain — event_count must rise and head must change. HISTORY: no row existed until 2026-09-01, so nothing could schedule the seal; the chain sat unsealed from 2026-08-12 and fell 1,060,446 events behind. The row exists so the capability is addressable and automatable.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CHAIN_SEAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CHAIN_SEAL",
        "type": "http",
        "what": [
          "WHAT: Fold newly-logged ledger events into the public transparency chain: appends a checkpoint, builds the batch's Merkle tree, and signs the checkpoint with the home ES256 key. Caps at 10,000 leaves per call, so a backlog needs repeated calls.",
          "WHEN_TO_USE: on a schedule, and any time /api/chain reports an event_count far below SELECT COUNT(*) FROM events. An unsealed event is not yet covered by a published head, so it is not yet tamper-evident to an outsider.",
          "ARGS: none",
          "EX: [CHAIN_SEAL][/CHAIN_SEAL]",
          "VERIFY: GET https://miscsubjects.com/api/chain — event_count must rise and head must change.",
          "HISTORY: no row existed until 2026-09-01, so nothing could schedule the seal; the chain sat unsealed from 2026-08-12 and fell 1,060,446 events behind. The row exists so the capability is addressable and automatable."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CHAIN_SEAL][/CHAIN_SEAL]",
        "tag": "[CHAIN_SEAL][/CHAIN_SEAL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CHAIN_SEAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CHAIN_SEAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{}",
      "edit": {
        "read": "GET /api/directory/CHAIN_SEAL",
        "update": "PUT /api/directory/CHAIN_SEAL",
        "patch": "PATCH /api/directory/CHAIN_SEAL",
        "delete": "DELETE /api/directory/CHAIN_SEAL",
        "invoke": "POST /api/dispatch {\"key\":\"CHAIN_SEAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CHAIN_SEAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CHAIN_SEAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CHAIN_SEAL"
      },
      "examples": "[CHAIN_SEAL][/CHAIN_SEAL]",
      "test": "GET https://miscsubjects.com/api/manual?test=CHAIN_SEAL"
    },
    {
      "key": "CHANNEL_APIS",
      "type": "http",
      "category": "blooio",
      "doc": "WHAT: Channel + commerce API hosts (external). Tools that call them live as their own rows WHEN_TO_USE: you need to channel apis ARGS: see content EX: [CHANNEL_APIS][/CHANNEL_APIS] Channel + commerce API hosts (external). Tools that call them live as their own rows. Blooio (iMessage) https://backend.blooio.com  · key BLOOIO_API_KEY  · rows BLOOIO_* 2chat (WhatsApp)  https://api.p.2chat.io       · key TWOCHAT_API_KEY Stripe            https://api.stripe.com        · key STRIPE_SECRET_KEY · rows STRIPE_* (GET only by law) Meta CAPI         https://graph.facebook.com    · functions/capi.js DuoPlus CloudPhone https://openapi.duoplus.net  · header DuoPlus-API-Key",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CHANNEL_APIS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CHANNEL_APIS",
        "type": "http",
        "what": [
          "WHAT: Channel + commerce API hosts (external). Tools that call them live as their own rows",
          "WHEN_TO_USE: you need to channel apis",
          "ARGS: see content",
          "EX: [CHANNEL_APIS][/CHANNEL_APIS]",
          "Channel + commerce API hosts (external). Tools that call them live as their own rows.",
          "Blooio (iMessage) https://backend.blooio.com  · key BLOOIO_API_KEY  · rows BLOOIO_*",
          "2chat (WhatsApp)  https://api.p.2chat.io       · key TWOCHAT_API_KEY",
          "Stripe            https://api.stripe.com        · key STRIPE_SECRET_KEY · rows STRIPE_* (GET only by law)",
          "Meta CAPI         https://graph.facebook.com    · functions/capi.js",
          "DuoPlus CloudPhone https://openapi.duoplus.net  · header DuoPlus-API-Key"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CHANNEL_APIS][/CHANNEL_APIS]",
        "tag": "[CHANNEL_APIS][/CHANNEL_APIS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CHANNEL_APIS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CHANNEL_APIS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CHANNEL_APIS",
        "update": "PUT /api/directory/CHANNEL_APIS",
        "patch": "PATCH /api/directory/CHANNEL_APIS",
        "delete": "DELETE /api/directory/CHANNEL_APIS",
        "invoke": "POST /api/dispatch {\"key\":\"CHANNEL_APIS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CHANNEL_APIS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CHANNEL_APIS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CHANNEL_APIS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CHANNEL_APIS"
    },
    {
      "key": "CHARLIE_CRITIC",
      "type": "agent",
      "category": "charlie",
      "doc": "Charlie Critic",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CHARLIE_CRITIC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CHARLIE_CRITIC",
        "type": "agent",
        "what": [
          "Charlie Critic"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CHARLIE_CRITIC][/CHARLIE_CRITIC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CHARLIE_CRITIC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CHARLIE_CRITIC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CHARLIE_CRITIC",
        "update": "PUT /api/directory/CHARLIE_CRITIC",
        "patch": "PATCH /api/directory/CHARLIE_CRITIC",
        "delete": "DELETE /api/directory/CHARLIE_CRITIC",
        "invoke": "POST /api/dispatch {\"key\":\"CHARLIE_CRITIC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CHARLIE_CRITIC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CHARLIE_CRITIC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CHARLIE_CRITIC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CHARLIE_CRITIC"
    },
    {
      "key": "CHARLIE_PROSECUTOR",
      "type": "agent",
      "category": "charlie",
      "doc": "Charlie Prosecutor",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CHARLIE_PROSECUTOR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CHARLIE_PROSECUTOR",
        "type": "agent",
        "what": [
          "Charlie Prosecutor"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CHARLIE_PROSECUTOR][/CHARLIE_PROSECUTOR]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CHARLIE_PROSECUTOR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CHARLIE_PROSECUTOR  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CHARLIE_PROSECUTOR",
        "update": "PUT /api/directory/CHARLIE_PROSECUTOR",
        "patch": "PATCH /api/directory/CHARLIE_PROSECUTOR",
        "delete": "DELETE /api/directory/CHARLIE_PROSECUTOR",
        "invoke": "POST /api/dispatch {\"key\":\"CHARLIE_PROSECUTOR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CHARLIE_PROSECUTOR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CHARLIE_PROSECUTOR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CHARLIE_PROSECUTOR"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CHARLIE_PROSECUTOR"
    },
    {
      "key": "CHATGPT_WEB",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Ask ChatGPT Web — the logged-in browser session, not the metered API — and return the exact captured answer. WHEN_TO_USE: you want ChatGPT Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output. ARGS: $1 = the prompt. Pipes are preserved. EX: [CHATGPT_WEB]Reply with exactly GATEWAY_LIVE_OK[/CHATGPT_WEB] TESTS: Returns the exact assistant text with substrate browser_web and provider chatgpt. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CHATGPT_WEB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CHATGPT_WEB",
        "type": "fn",
        "what": [
          "WHAT: Ask ChatGPT Web — the logged-in browser session, not the metered API — and return the exact captured answer.",
          "WHEN_TO_USE: you want ChatGPT Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output.",
          "ARGS: $1 = the prompt. Pipes are preserved.",
          "EX: [CHATGPT_WEB]Reply with exactly GATEWAY_LIVE_OK[/CHATGPT_WEB]",
          "TESTS: Returns the exact assistant text with substrate browser_web and provider chatgpt. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Reply with exactly GATEWAY_LIVE_OK",
            "desc": "the prompt. Pipes are preserved.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact captured answer.",
        "example": "[CHATGPT_WEB]Reply with exactly GATEWAY_LIVE_OK[/CHATGPT_WEB]",
        "tag": "[CHATGPT_WEB]<Reply with exactly GATEWAY_LIVE_OK …>[/CHATGPT_WEB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CHATGPT_WEB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CHATGPT_WEB  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"chatgpt|$1+\"]",
      "edit": {
        "read": "GET /api/directory/CHATGPT_WEB",
        "update": "PUT /api/directory/CHATGPT_WEB",
        "patch": "PATCH /api/directory/CHATGPT_WEB",
        "delete": "DELETE /api/directory/CHATGPT_WEB",
        "invoke": "POST /api/dispatch {\"key\":\"CHATGPT_WEB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CHATGPT_WEB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CHATGPT_WEB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CHATGPT_WEB"
      },
      "examples": "[\"Reply with exactly GATEWAY_LIVE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CHATGPT_WEB"
    },
    {
      "key": "CITATION_VALIDATION",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Independently validate that one cited evidence item actually supports the clause finding it was filed under. A model confirming a decision is NOT citation validation; this records source existence, version/hash correctness, passage-to-premise support, clause-to-conduct applicability, material omissions and conclusion overreach, plus the honest evidence class. ARGS: JSON {decision_id,clause,evidence_ref,evidence_class:operator-served|independently-recomputable|third-party-witnessed|institutionally-attested|private-scoped|unresolved-assertion,verdict:SUPPORTED|PARTIALLY_SUPPORTED|UNSUPPORTED|CONTRADICTED|LEGAL_REVIEW_REQUIRED,source_exists?,version_hash_correct?,passage_supports_premise?,clause_governs_conduct?,material_omission?,conclusion_overreach?,validator_model,validator_provider,validator_family,prompt_hash?,context_hash?,prior_answers_visible?,recompute_method?,justification}. TESTS: Decision and clause must exist; a SUPPORTED verdict requires source_exists and passage_supports_premise and clause_governs_conduct and no conclusion_overreach; operator-served evidence can never be marked independently-recomputable; the record is hash-pinned and append-only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CITATION_VALIDATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CITATION_VALIDATION",
        "type": "http",
        "what": [
          "WHAT: Independently validate that one cited evidence item actually supports the clause finding it was filed under. A model confirming a decision is NOT citation validation; this records source existence, version/hash correctness, passage-to-premise support, clause-to-conduct applicability, material omissions and conclusion overreach, plus the honest evidence class.",
          "ARGS: JSON {decision_id,clause,evidence_ref,evidence_class:operator-served|independently-recomputable|third-party-witnessed|institutionally-attested|private-scoped|unresolved-assertion,verdict:SUPPORTED|PARTIALLY_SUPPORTED|UNSUPPORTED|CONTRADICTED|LEGAL_REVIEW_REQUIRED,source_exists?,version_hash_correct?,passage_supports_premise?,clause_governs_conduct?,material_omission?,conclusion_overreach?,validator_model,validator_provider,validator_family,prompt_hash?,context_hash?,prior_answers_visible?,recompute_method?,justification}.",
          "TESTS: Decision and clause must exist; a SUPPORTED verdict requires source_exists and passage_supports_premise and clause_governs_conduct and no conclusion_overreach; operator-served evidence can never be marked independently-recomputable; the record is hash-pinned and append-only."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CITATION_VALIDATION]arg1[/CITATION_VALIDATION]",
        "tag": "[CITATION_VALIDATION]<arg1 …>[/CITATION_VALIDATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CITATION_VALIDATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CITATION_VALIDATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/CITATION_VALIDATION",
        "update": "PUT /api/directory/CITATION_VALIDATION",
        "patch": "PATCH /api/directory/CITATION_VALIDATION",
        "delete": "DELETE /api/directory/CITATION_VALIDATION",
        "invoke": "POST /api/dispatch {\"key\":\"CITATION_VALIDATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CITATION_VALIDATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CITATION_VALIDATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CITATION_VALIDATION"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=CITATION_VALIDATION"
    },
    {
      "key": "CLAIM_CHALLENGE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Dispute a claim inside its 30-day window with a bond of at least five dollars and named evidence. Opens a work task for resolution and freezes any settlement that rests on the claim. WHEN_TO_USE: someone believes a claim is wrong and will stake a bond on it. ARGS: claim_id|bond_usd|evidence EX: [CLAIM_CHALLENGE]clm_abc|25|the test window excluded the branded campaign[/CLAIM_CHALLENGE] TESTS: Returns challenge_id and task_id; outside the window CHALLENGE_WINDOW_CLOSED; under the bond BOND_REQUIRED.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAIM_CHALLENGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAIM_CHALLENGE",
        "type": "fn",
        "what": [
          "WHAT: Dispute a claim inside its 30-day window with a bond of at least five dollars and named evidence. Opens a work task for resolution and freezes any settlement that rests on the claim.",
          "WHEN_TO_USE: someone believes a claim is wrong and will stake a bond on it.",
          "ARGS: claim_id|bond_usd|evidence",
          "EX: [CLAIM_CHALLENGE]clm_abc|25|the test window excluded the branded campaign[/CLAIM_CHALLENGE]",
          "TESTS: Returns challenge_id and task_id; outside the window CHALLENGE_WINDOW_CLOSED; under the bond BOND_REQUIRED."
        ],
        "args": [
          {
            "pos": 1,
            "name": "clm_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "challenge_id and task_id; outside the window CHALLENGE_WINDOW_CLOSED; under the bond BOND_REQUIRED.",
        "example": "[CLAIM_CHALLENGE]clm_abc|25|the test window excluded the branded campaign[/CLAIM_CHALLENGE]",
        "tag": "[CLAIM_CHALLENGE]<clm_abc …>[/CLAIM_CHALLENGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAIM_CHALLENGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAIM_CHALLENGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAIM_CHALLENGE",
        "update": "PUT /api/directory/CLAIM_CHALLENGE",
        "patch": "PATCH /api/directory/CLAIM_CHALLENGE",
        "delete": "DELETE /api/directory/CLAIM_CHALLENGE",
        "invoke": "POST /api/dispatch {\"key\":\"CLAIM_CHALLENGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAIM_CHALLENGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAIM_CHALLENGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAIM_CHALLENGE"
      },
      "examples": "[\"clm_abc|25|the test window excluded the branded campaign\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAIM_CHALLENGE"
    },
    {
      "key": "CLAIM_COMMIT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Preregister a claim before its outcome is read: hypothesis, metric, cohort, exclusions, baseline, window, stopping rule, method, control. The receipt's time is what makes a later claim preregistered. WHEN_TO_USE: before running the numbers on any performance claim. ARGS: methodology_key|hypothesis|metric|cohort|exclusions|baseline|window_from|window_to|stopping_rule|method|control EX: [CLAIM_COMMIT]CPC_DELTA_V1|testimonial creative lowers CPC|CPC|campaigns tagged TEST|none|2026-08-01..2026-08-14|2026-08-15|2026-08-28|fixed window|CPC_DELTA_V1|none[/CLAIM_COMMIT] TESTS: Returns commit_id and the ledger event; an unknown methodology is refused METHODOLOGY_UNKNOWN.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAIM_COMMIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAIM_COMMIT",
        "type": "fn",
        "what": [
          "WHAT: Preregister a claim before its outcome is read: hypothesis, metric, cohort, exclusions, baseline, window, stopping rule, method, control. The receipt's time is what makes a later claim preregistered.",
          "WHEN_TO_USE: before running the numbers on any performance claim.",
          "ARGS: methodology_key|hypothesis|metric|cohort|exclusions|baseline|window_from|window_to|stopping_rule|method|control",
          "EX: [CLAIM_COMMIT]CPC_DELTA_V1|testimonial creative lowers CPC|CPC|campaigns tagged TEST|none|2026-08-01..2026-08-14|2026-08-15|2026-08-28|fixed window|CPC_DELTA_V1|none[/CLAIM_COMMIT]",
          "TESTS: Returns commit_id and the ledger event; an unknown methodology is refused METHODOLOGY_UNKNOWN."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CPC_DELTA_V1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "commit_id and the ledger event; an unknown methodology is refused METHODOLOGY_UNKNOWN.",
        "example": "[CLAIM_COMMIT]CPC_DELTA_V1|testimonial creative lowers CPC|CPC|campaigns tagged TEST|none|2026-08-01..2026-08-14|2026-08-15|2026-08-28|fixed window|CPC_DELTA_V1|none[/CLAIM_COMMIT]",
        "tag": "[CLAIM_COMMIT]<CPC_DELTA_V1 …>[/CLAIM_COMMIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAIM_COMMIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAIM_COMMIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAIM_COMMIT",
        "update": "PUT /api/directory/CLAIM_COMMIT",
        "patch": "PATCH /api/directory/CLAIM_COMMIT",
        "delete": "DELETE /api/directory/CLAIM_COMMIT",
        "invoke": "POST /api/dispatch {\"key\":\"CLAIM_COMMIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAIM_COMMIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAIM_COMMIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAIM_COMMIT"
      },
      "examples": "[\"CPC_DELTA_V1|testimonial creative lowers CPC|CPC|campaigns tagged TEST|none|2026-08-01..2026-08-14|2026-08-15|2026-08-28|fixed window|CPC_DELTA_V1|none\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAIM_COMMIT"
    },
    {
      "key": "CLAIM_NEW",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Make a claim from evidence receipts under a versioned methodology: the number is computed here from the receipts, the evidence set is committed by hash, the grade is assigned, and the claim is marked preregistered when its commitment predates every receipt. WHEN_TO_USE: a provider publishes a performance claim it wants verified. ARGS: methodology_key|statement|period_from|period_to|evidence_receipts(csv inv ids)|commit_id|provider EX: [CLAIM_NEW]CPC_DELTA_V1|CPC fell in the test window|2026-08-01|2026-08-28|inv_a,inv_b|cmt_x|owner[/CLAIM_NEW] TESTS: Returns claim_id, value, evidence_grade, preregistered and dataset_commitment; missing or empty evidence is EVIDENCE_MISSING.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAIM_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAIM_NEW",
        "type": "fn",
        "what": [
          "WHAT: Make a claim from evidence receipts under a versioned methodology: the number is computed here from the receipts, the evidence set is committed by hash, the grade is assigned, and the claim is marked preregistered when its commitment predates every receipt.",
          "WHEN_TO_USE: a provider publishes a performance claim it wants verified.",
          "ARGS: methodology_key|statement|period_from|period_to|evidence_receipts(csv inv ids)|commit_id|provider",
          "EX: [CLAIM_NEW]CPC_DELTA_V1|CPC fell in the test window|2026-08-01|2026-08-28|inv_a,inv_b|cmt_x|owner[/CLAIM_NEW]",
          "TESTS: Returns claim_id, value, evidence_grade, preregistered and dataset_commitment; missing or empty evidence is EVIDENCE_MISSING."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CPC_DELTA_V1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "claim_id, value, evidence_grade, preregistered and dataset_commitment; missing or empty evidence is EVIDENCE_MISSING.",
        "example": "[CLAIM_NEW]CPC_DELTA_V1|CPC fell in the test window|2026-08-01|2026-08-28|inv_a,inv_b|cmt_x|owner[/CLAIM_NEW]",
        "tag": "[CLAIM_NEW]<CPC_DELTA_V1 …>[/CLAIM_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAIM_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAIM_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAIM_NEW",
        "update": "PUT /api/directory/CLAIM_NEW",
        "patch": "PATCH /api/directory/CLAIM_NEW",
        "delete": "DELETE /api/directory/CLAIM_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"CLAIM_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAIM_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAIM_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAIM_NEW"
      },
      "examples": "[\"CPC_DELTA_V1|CPC fell in the test window|2026-08-01|2026-08-28|inv_a,inv_b|cmt_x|owner\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAIM_NEW"
    },
    {
      "key": "CLAIM_PANEL",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Convene the governed panel on an open challenge: VERIFY_CLAIM recomputes, three adjudication seats across two model families judge, the adversary seat argues against the majority, and a converged seal writes the resolution. No convergence, no seal. WHEN_TO_USE: a challenge needs judgment beyond arithmetic. ARGS: challenge_id EX: [CLAIM_PANEL]chg_abc[/CLAIM_PANEL] TESTS: Returns every seat's answer and the seal, or PANEL_NO_SEAL with the answers published.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAIM_PANEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAIM_PANEL",
        "type": "fn",
        "what": [
          "WHAT: Convene the governed panel on an open challenge: VERIFY_CLAIM recomputes, three adjudication seats across two model families judge, the adversary seat argues against the majority, and a converged seal writes the resolution. No convergence, no seal.",
          "WHEN_TO_USE: a challenge needs judgment beyond arithmetic.",
          "ARGS: challenge_id",
          "EX: [CLAIM_PANEL]chg_abc[/CLAIM_PANEL]",
          "TESTS: Returns every seat's answer and the seal, or PANEL_NO_SEAL with the answers published."
        ],
        "args": [
          {
            "pos": 1,
            "name": "chg_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "every seat's answer and the seal, or PANEL_NO_SEAL with the answers published.",
        "example": "[CLAIM_PANEL]chg_abc[/CLAIM_PANEL]",
        "tag": "[CLAIM_PANEL]<chg_abc …>[/CLAIM_PANEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAIM_PANEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAIM_PANEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAIM_PANEL",
        "update": "PUT /api/directory/CLAIM_PANEL",
        "patch": "PATCH /api/directory/CLAIM_PANEL",
        "delete": "DELETE /api/directory/CLAIM_PANEL",
        "invoke": "POST /api/dispatch {\"key\":\"CLAIM_PANEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAIM_PANEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAIM_PANEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAIM_PANEL"
      },
      "examples": "[\"chg_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAIM_PANEL"
    },
    {
      "key": "CLAIM_RESOLVE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Record the resolution of a challenge: upheld (the challenger wins, the bond returns) or rejected (the bond is forfeited). Appends; never overwrites the claim. WHEN_TO_USE: the owner or the panel step has decided a dispute. ARGS: challenge_id|upheld or rejected|reason EX: [CLAIM_RESOLVE]chg_abc|rejected|the exclusion was in the commitment[/CLAIM_RESOLVE] TESTS: Returns the verdict and bond outcome; owner only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAIM_RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAIM_RESOLVE",
        "type": "fn",
        "what": [
          "WHAT: Record the resolution of a challenge: upheld (the challenger wins, the bond returns) or rejected (the bond is forfeited). Appends; never overwrites the claim.",
          "WHEN_TO_USE: the owner or the panel step has decided a dispute.",
          "ARGS: challenge_id|upheld or rejected|reason",
          "EX: [CLAIM_RESOLVE]chg_abc|rejected|the exclusion was in the commitment[/CLAIM_RESOLVE]",
          "TESTS: Returns the verdict and bond outcome; owner only."
        ],
        "args": [
          {
            "pos": 1,
            "name": "chg_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the verdict and bond outcome; owner only.",
        "example": "[CLAIM_RESOLVE]chg_abc|rejected|the exclusion was in the commitment[/CLAIM_RESOLVE]",
        "tag": "[CLAIM_RESOLVE]<chg_abc …>[/CLAIM_RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAIM_RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAIM_RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAIM_RESOLVE",
        "update": "PUT /api/directory/CLAIM_RESOLVE",
        "patch": "PATCH /api/directory/CLAIM_RESOLVE",
        "delete": "DELETE /api/directory/CLAIM_RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"CLAIM_RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAIM_RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAIM_RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAIM_RESOLVE"
      },
      "examples": "[\"chg_abc|rejected|the exclusion was in the commitment\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAIM_RESOLVE"
    },
    {
      "key": "CLAUDE_WEB",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Ask Claude Web — the logged-in browser session, not the metered API — and return the exact captured answer. WHEN_TO_USE: you want Claude Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output. ARGS: $1 = the prompt. Pipes are preserved. EX: [CLAUDE_WEB]Reply with exactly GATEWAY_LIVE_OK[/CLAUDE_WEB] TESTS: Returns the exact assistant text with substrate browser_web and provider claude. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLAUDE_WEB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLAUDE_WEB",
        "type": "fn",
        "what": [
          "WHAT: Ask Claude Web — the logged-in browser session, not the metered API — and return the exact captured answer.",
          "WHEN_TO_USE: you want Claude Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output.",
          "ARGS: $1 = the prompt. Pipes are preserved.",
          "EX: [CLAUDE_WEB]Reply with exactly GATEWAY_LIVE_OK[/CLAUDE_WEB]",
          "TESTS: Returns the exact assistant text with substrate browser_web and provider claude. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Reply with exactly GATEWAY_LIVE_OK",
            "desc": "the prompt. Pipes are preserved.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact captured answer.",
        "example": "[CLAUDE_WEB]Reply with exactly GATEWAY_LIVE_OK[/CLAUDE_WEB]",
        "tag": "[CLAUDE_WEB]<Reply with exactly GATEWAY_LIVE_OK …>[/CLAUDE_WEB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLAUDE_WEB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLAUDE_WEB  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"claude|$1+\"]",
      "edit": {
        "read": "GET /api/directory/CLAUDE_WEB",
        "update": "PUT /api/directory/CLAUDE_WEB",
        "patch": "PATCH /api/directory/CLAUDE_WEB",
        "delete": "DELETE /api/directory/CLAUDE_WEB",
        "invoke": "POST /api/dispatch {\"key\":\"CLAUDE_WEB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLAUDE_WEB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLAUDE_WEB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLAUDE_WEB"
      },
      "examples": "[\"Reply with exactly GATEWAY_LIVE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLAUDE_WEB"
    },
    {
      "key": "CLIENT_CALL",
      "type": "http",
      "category": "services",
      "doc": "WHAT: The one door to every service the owner has signed in to. ARGS: $1 = JSON {\"connector\":\"<service id>\",\"operation\":\"open|read|links|screenshot|verify|health\",\"args\":{\"path\":\"/orders\"}} Service ids are the [bracketed] names in ~/.miscsubjects/connectors/services.txt; CLIENT_LIST prints them. Ordinary websites answer open/read/links/screenshot with no code of their own. whatsapp, signal and telegram speak their own protocol and answer send_message/list_conversations/list_messages. EX: [CLIENT_CALL]{\"connector\":\"amazon\",\"operation\":\"read\",\"args\":{\"path\":\"/gp/css/order-history\"}}[/CLIENT_CALL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_CALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_CALL",
        "type": "http",
        "what": [
          "WHAT: The one door to every service the owner has signed in to.",
          "ARGS: $1 = JSON {\"connector\":\"<service id>\",\"operation\":\"open|read|links|screenshot|verify|health\",\"args\":{\"path\":\"/orders\"}}",
          "Service ids are the [bracketed] names in ~/.miscsubjects/connectors/services.txt; CLIENT_LIST prints them. Ordinary websites answer open/read/links/screenshot with no code of their own. whatsapp, signal and telegram speak their own protocol and answer send_message/list_conversations/list_messages.",
          "EX: [CLIENT_CALL]{\"connector\":\"amazon\",\"operation\":\"read\",\"args\":{\"path\":\"/gp/css/order-history\"}}[/CLIENT_CALL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"connector\":\"amazon\",\"operation\":\"read\",\"args\":{\"path\":\"/gp/css/order-history\"}}",
            "desc": "JSON {\"connector\":\"<service id>\",\"operation\":\"open|read|links|screenshot|verify|health\",\"args\":{\"path\":\"/orders\"}}",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLIENT_CALL]{\"connector\":\"amazon\",\"operation\":\"read\",\"args\":{\"path\":\"/gp/css/order-history\"}}[/CLIENT_CALL]",
        "tag": "[CLIENT_CALL]<{\"connector\":\"amazon\",\"operation\":\"read\",\"args\":{\"path\":\"/gp/css/order-history\"}} …>[/CLIENT_CALL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_CALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_CALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 170 -X POST http://127.0.0.1:8644/call --data-binary @-\"],\"stdin\":\"$1+\",\"timeout\":180000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_CALL",
        "update": "PUT /api/directory/CLIENT_CALL",
        "patch": "PATCH /api/directory/CLIENT_CALL",
        "delete": "DELETE /api/directory/CLIENT_CALL",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_CALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_CALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_CALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_CALL"
      },
      "examples": "[\"{\\\"connector\\\":\\\"whatsapp\\\",\\\"operation\\\":\\\"health\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_CALL"
    },
    {
      "key": "CLIENT_EVENT",
      "type": "http",
      "category": "client",
      "doc": "WHAT: The door an arrival comes through. One normalized inbound event from any connection — an iMessage, a WhatsApp message, a Slack event, a record that changed at a provider — becomes a row in inbound_events with a receipt on the public ledger. WHY: this row used to be a flow with an empty body. The client bridge posted every arrival to it, the reply said ok, and the event was discarded. Nothing the build received was ever recorded. Now it writes. HOW: deduped by the schema on (connection_id, external_id), so offering the same arrival twice is a free no-op — which is what lets every poller re-read its window after a crash. processed_at is set only once the ledger returned an id. WHEN_TO_USE: any inbound event from any connection. Read them back with GET /api/inbound/events; resume a poller with GET /api/inbound/cursor?connection_id=<id>. ARGS: $1 = the event envelope as JSON. Either shape works:   {\"connection_id\":\"imessage:owner\",\"kind\":\"message.received\",\"external_id\":\"<provider id>\",\"received_at\":\"<ISO>\",\"payload\":{...},\"source\":\"bridge:imessage\"}   {\"connector\":\"whatsapp\",\"account\":\"owner-number\",\"event\":\"message.received\",\"external_id\":\"...\",\"timestamp\":\"<ISO>\",\"data\":{...}}   A page at a time: {\"connection_id\":\"imessage:owner\",\"cursor\":\"677492\",\"cursor_kind\":\"rowid\",\"events\":[...]} KINDS: message.received | reply | reaction | record.changed EX: [CLIENT_EVENT]{\"connection_id\":\"test:row-test\",\"kind\":\"record.changed\",\"external_id\":\"row-test-1\",\"source\":\"test\",\"payload\":{\"note\":\"the row test\"}}[/CLIENT_EVENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_EVENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_EVENT",
        "type": "http",
        "what": [
          "WHAT: The door an arrival comes through. One normalized inbound event from any connection — an iMessage, a WhatsApp message, a Slack event, a record that changed at a provider — becomes a row in inbound_events with a receipt on the public ledger.",
          "WHY: this row used to be a flow with an empty body. The client bridge posted every arrival to it, the reply said ok, and the event was discarded. Nothing the build received was ever recorded. Now it writes.",
          "HOW: deduped by the schema on (connection_id, external_id), so offering the same arrival twice is a free no-op — which is what lets every poller re-read its window after a crash. processed_at is set only once the ledger returned an id.",
          "WHEN_TO_USE: any inbound event from any connection. Read them back with GET /api/inbound/events; resume a poller with GET /api/inbound/cursor?connection_id=<id>.",
          "ARGS: $1 = the event envelope as JSON. Either shape works:",
          "  {\"connection_id\":\"imessage:owner\",\"kind\":\"message.received\",\"external_id\":\"<provider id>\",\"received_at\":\"<ISO>\",\"payload\":{...},\"source\":\"bridge:imessage\"}",
          "  {\"connector\":\"whatsapp\",\"account\":\"owner-number\",\"event\":\"message.received\",\"external_id\":\"...\",\"timestamp\":\"<ISO>\",\"data\":{...}}",
          "  A page at a time: {\"connection_id\":\"imessage:owner\",\"cursor\":\"677492\",\"cursor_kind\":\"rowid\",\"events\":[...]}",
          "KINDS: message.received | reply | reaction | record.changed",
          "EX: [CLIENT_EVENT]{\"connection_id\":\"test:row-test\",\"kind\":\"record.changed\",\"external_id\":\"row-test-1\",\"source\":\"test\",\"payload\":{\"note\":\"the row test\"}}[/CLIENT_EVENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"connection_id\":\"test:row-test\",\"kind\":\"record.changed\",\"external_id\":\"row-test-1\",\"source\":\"test\",\"payload\":{\"note\":\"the row test\"}}",
            "desc": "the event envelope as JSON. Either shape works:",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLIENT_EVENT]{\"connection_id\":\"test:row-test\",\"kind\":\"record.changed\",\"external_id\":\"row-test-1\",\"source\":\"test\",\"payload\":{\"note\":\"the row test\"}}[/CLIENT_EVENT]",
        "tag": "[CLIENT_EVENT]<{\"connection_id\":\"test:row-test\",\"kind\":\"record.changed\",\"external_id\":\"row-test-1\",\"source\":\"test\",\"payload\":{\"note\":\"the row test\"}} …>[/CLIENT_EVENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_EVENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_EVENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/CLIENT_EVENT",
        "update": "PUT /api/directory/CLIENT_EVENT",
        "patch": "PATCH /api/directory/CLIENT_EVENT",
        "delete": "DELETE /api/directory/CLIENT_EVENT",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_EVENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_EVENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_EVENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_EVENT"
      },
      "examples": "[\"{\\\"connection_id\\\":\\\"test:row-test\\\",\\\"kind\\\":\\\"record.changed\\\",\\\"external_id\\\":\\\"row-test-1\\\",\\\"source\\\":\\\"test\\\",\\\"payload\\\":{\\\"note\\\":\\\"the row test — deduped, so every run after the first is a no-op\\\"}}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_EVENT"
    },
    {
      "key": "CLIENT_LIST",
      "type": "http",
      "category": "services",
      "doc": "WHAT: Every service in ~/.miscsubjects/connectors/services.txt — id, name, category, how you sign in, state, and the operations it answers. That file is the registry: a block of text added to it is a working service. ARGS: none. EX: [CLIENT_LIST][/CLIENT_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_LIST",
        "type": "http",
        "what": [
          "WHAT: Every service in ~/.miscsubjects/connectors/services.txt — id, name, category, how you sign in, state, and the operations it answers. That file is the registry: a block of text added to it is a working service.",
          "ARGS: none. EX: [CLIENT_LIST][/CLIENT_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLIENT_LIST][/CLIENT_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 20 http://127.0.0.1:8644/list\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_LIST",
        "update": "PUT /api/directory/CLIENT_LIST",
        "patch": "PATCH /api/directory/CLIENT_LIST",
        "delete": "DELETE /api/directory/CLIENT_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_LIST"
    },
    {
      "key": "CLIENT_LOGIN",
      "type": "http",
      "category": "services",
      "doc": "WHAT: Sign in to one service. For an ordinary website a real Chrome window opens on the Mac, in front, at that site's login page; the owner signs in and closes it, and the result is then checked. Returns at once — signing in takes minutes and no request waits that long. For WhatsApp it prints a pairing link for the phone. For anything needing a key or a code it returns the one sentence saying what to put in services.txt. ARGS: $1 = service id. EX: [CLIENT_LOGIN]amazon[/CLIENT_LOGIN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_LOGIN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_LOGIN",
        "type": "http",
        "what": [
          "WHAT: Sign in to one service. For an ordinary website a real Chrome window opens on the Mac, in front, at that site's login page; the owner signs in and closes it, and the result is then checked. Returns at once — signing in takes minutes and no request waits that long. For WhatsApp it prints a pairing link for the phone. For anything needing a key or a code it returns the one sentence saying what to put in services.txt.",
          "ARGS: $1 = service id. EX: [CLIENT_LOGIN]amazon[/CLIENT_LOGIN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "amazon",
            "desc": "service id. EX: [CLIENT_LOGIN]amazon[/CLIENT_LOGIN]",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "at once — signing in takes minutes and no request waits that long. For WhatsApp it prints a pairing link for the phone. For anything needing a key or a code it returns the one sentence saying what to put in services.txt.",
        "example": "[CLIENT_LOGIN]amazon[/CLIENT_LOGIN]",
        "tag": "[CLIENT_LOGIN]<amazon …>[/CLIENT_LOGIN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_LOGIN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_LOGIN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 25 -X POST http://127.0.0.1:8644/connect --data-binary @-\"],\"stdin\":\"$1+\",\"timeout\":40000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_LOGIN",
        "update": "PUT /api/directory/CLIENT_LOGIN",
        "patch": "PATCH /api/directory/CLIENT_LOGIN",
        "delete": "DELETE /api/directory/CLIENT_LOGIN",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_LOGIN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_LOGIN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_LOGIN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_LOGIN"
      },
      "examples": "[\"imessage\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_LOGIN"
    },
    {
      "key": "CLIENT_SAVE",
      "type": "http",
      "category": "services",
      "doc": "WHAT: Write the services file back. Every line still carrying the kept-on-the-Mac marker is refilled from what that machine already holds, so editing the list from a browser never moves a secret in either direction. ARGS: $1 = the whole file as text. EX: [CLIENT_SAVE]<the text>[/CLIENT_SAVE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_SAVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_SAVE",
        "type": "http",
        "what": [
          "WHAT: Write the services file back. Every line still carrying the kept-on-the-Mac marker is refilled from what that machine already holds, so editing the list from a browser never moves a secret in either direction.",
          "ARGS: $1 = the whole file as text. EX: [CLIENT_SAVE]<the text>[/CLIENT_SAVE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "the text",
            "desc": "the whole file as text. EX: [CLIENT_SAVE]<the text>[/CLIENT_SAVE]",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLIENT_SAVE]the text[/CLIENT_SAVE]",
        "tag": "[CLIENT_SAVE]<the text …>[/CLIENT_SAVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_SAVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_SAVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 25 -X PUT http://127.0.0.1:8644/text --data-binary @-\"],\"stdin\":\"$1+\",\"timeout\":40000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_SAVE",
        "update": "PUT /api/directory/CLIENT_SAVE",
        "patch": "PATCH /api/directory/CLIENT_SAVE",
        "delete": "DELETE /api/directory/CLIENT_SAVE",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_SAVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_SAVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_SAVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_SAVE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_SAVE"
    },
    {
      "key": "CLIENT_STATUS",
      "type": "http",
      "category": "services",
      "doc": "WHAT: The recorded state of every service — connected, signed out, waiting for you, never signed in — with when it was last checked. Instant; CLIENT_VERIFY is the live look at one. ARGS: none. EX: [CLIENT_STATUS][/CLIENT_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_STATUS",
        "type": "http",
        "what": [
          "WHAT: The recorded state of every service — connected, signed out, waiting for you, never signed in — with when it was last checked. Instant; CLIENT_VERIFY is the live look at one.",
          "ARGS: none. EX: [CLIENT_STATUS][/CLIENT_STATUS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLIENT_STATUS][/CLIENT_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 20 http://127.0.0.1:8644/status\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_STATUS",
        "update": "PUT /api/directory/CLIENT_STATUS",
        "patch": "PATCH /api/directory/CLIENT_STATUS",
        "delete": "DELETE /api/directory/CLIENT_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_STATUS"
    },
    {
      "key": "CLIENT_TEXT",
      "type": "http",
      "category": "services",
      "doc": "WHAT: The services file as text, with every username, password, key and phone number replaced by a marker. This is what the build is allowed to see. ARGS: none. EX: [CLIENT_TEXT][/CLIENT_TEXT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_TEXT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_TEXT",
        "type": "http",
        "what": [
          "WHAT: The services file as text, with every username, password, key and phone number replaced by a marker. This is what the build is allowed to see.",
          "ARGS: none. EX: [CLIENT_TEXT][/CLIENT_TEXT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLIENT_TEXT][/CLIENT_TEXT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_TEXT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_TEXT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 20 http://127.0.0.1:8644/text\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_TEXT",
        "update": "PUT /api/directory/CLIENT_TEXT",
        "patch": "PATCH /api/directory/CLIENT_TEXT",
        "delete": "DELETE /api/directory/CLIENT_TEXT",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_TEXT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_TEXT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_TEXT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_TEXT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_TEXT"
    },
    {
      "key": "CLIENT_VERIFY",
      "type": "http",
      "category": "services",
      "doc": "WHAT: Check one service for real — open its site with the saved session and see whether it still asks for a password. Records the answer, so every later claim traces back to a live look. ARGS: $1 = service id. EX: [CLIENT_VERIFY]amazon[/CLIENT_VERIFY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLIENT_VERIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLIENT_VERIFY",
        "type": "http",
        "what": [
          "WHAT: Check one service for real — open its site with the saved session and see whether it still asks for a password. Records the answer, so every later claim traces back to a live look.",
          "ARGS: $1 = service id. EX: [CLIENT_VERIFY]amazon[/CLIENT_VERIFY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "amazon",
            "desc": "service id. EX: [CLIENT_VERIFY]amazon[/CLIENT_VERIFY]",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLIENT_VERIFY]amazon[/CLIENT_VERIFY]",
        "tag": "[CLIENT_VERIFY]<amazon …>[/CLIENT_VERIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLIENT_VERIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLIENT_VERIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sS -m 110 -X POST http://127.0.0.1:8644/verify --data-binary @-\"],\"stdin\":\"$1+\",\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLIENT_VERIFY",
        "update": "PUT /api/directory/CLIENT_VERIFY",
        "patch": "PATCH /api/directory/CLIENT_VERIFY",
        "delete": "DELETE /api/directory/CLIENT_VERIFY",
        "invoke": "POST /api/dispatch {\"key\":\"CLIENT_VERIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLIENT_VERIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLIENT_VERIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLIENT_VERIFY"
      },
      "examples": "[\"whatsapp\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLIENT_VERIFY"
    },
    {
      "key": "CLI_AIDER",
      "type": "http",
      "category": null,
      "doc": "WHAT: Aider — git-aware AI pair programmer running one-shot on the Mac. WHEN_TO_USE: \"have aider edit X\", \"use aider to refactor\", \"aider, fix this bug in <file>\" ARGS: task | cwd EX: text the build → \"have aider rename foo to bar in functions/api/dispatch.js\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_AIDER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_AIDER",
        "type": "http",
        "what": [
          "WHAT: Aider — git-aware AI pair programmer running one-shot on the Mac.",
          "WHEN_TO_USE: \"have aider edit X\", \"use aider to refactor\", \"aider, fix this bug in <file>\"",
          "ARGS: task | cwd",
          "EX: text the build → \"have aider rename foo to bar in functions/api/dispatch.js\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"have aider rename foo to bar in functions/api/dispatch.js\"",
        "tag": "[CLI_AIDER]<arg1>|<arg2>[/CLI_AIDER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_AIDER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_AIDER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"aider\",\"args\":[\"--message\",\"$1\",\"--yes-always\",\"--no-auto-commits\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_AIDER",
        "update": "PUT /api/directory/CLI_AIDER",
        "patch": "PATCH /api/directory/CLI_AIDER",
        "delete": "DELETE /api/directory/CLI_AIDER",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_AIDER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_AIDER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_AIDER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_AIDER"
      },
      "examples": "[\"text the build \\u2192 \\\"have aider rename foo to bar in functions/api/dispatch.js\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_AIDER"
    },
    {
      "key": "CLI_AWS",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run aws CLI. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_AWS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_AWS",
        "type": "http",
        "what": [
          "WHAT: run aws CLI. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_AWS]arg1[/CLI_AWS]",
        "tag": "[CLI_AWS]<arg1 …>[/CLI_AWS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_AWS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_AWS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"aws $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_AWS",
        "update": "PUT /api/directory/CLI_AWS",
        "patch": "PATCH /api/directory/CLI_AWS",
        "delete": "DELETE /api/directory/CLI_AWS",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_AWS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_AWS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_AWS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_AWS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_AWS"
    },
    {
      "key": "CLI_BREW",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run brew. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_BREW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_BREW",
        "type": "http",
        "what": [
          "WHAT: run brew. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_BREW]arg1[/CLI_BREW]",
        "tag": "[CLI_BREW]<arg1 …>[/CLI_BREW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_BREW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_BREW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"brew $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_BREW",
        "update": "PUT /api/directory/CLI_BREW",
        "patch": "PATCH /api/directory/CLI_BREW",
        "delete": "DELETE /api/directory/CLI_BREW",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_BREW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_BREW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_BREW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_BREW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_BREW"
    },
    {
      "key": "CLI_BUN",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run bun. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_BUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_BUN",
        "type": "http",
        "what": [
          "WHAT: run bun. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_BUN]arg1|arg2[/CLI_BUN]",
        "tag": "[CLI_BUN]<arg1>|<arg2>[/CLI_BUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_BUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_BUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; bun $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_BUN",
        "update": "PUT /api/directory/CLI_BUN",
        "patch": "PATCH /api/directory/CLI_BUN",
        "delete": "DELETE /api/directory/CLI_BUN",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_BUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_BUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_BUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_BUN"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_BUN"
    },
    {
      "key": "CLI_CLASP",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run clasp (Apps Script CLI) on the owner's Mac. ARGS: $1 = args after `clasp`. cwd = /Users/the owner/miscsubjects-pages/apps-script. WHEN_TO_USE: push or deploy GAS code (airunner, PepperUp). EX: CLI_CLASP \"push -f\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_CLASP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_CLASP",
        "type": "http",
        "what": [
          "WHAT: run clasp (Apps Script CLI) on the owner's Mac. ARGS: $1 = args after `clasp`. cwd = /Users/the owner/miscsubjects-pages/apps-script.",
          "WHEN_TO_USE: push or deploy GAS code (airunner, PepperUp).",
          "EX: CLI_CLASP \"push -f\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args after `clasp`. cwd = /Users/the owner/miscsubjects-pages/apps-script.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLI_CLASP \"push -f\"",
        "tag": "[CLI_CLASP]<arg1 …>[/CLI_CLASP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_CLASP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_CLASP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"clasp $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_CLASP",
        "update": "PUT /api/directory/CLI_CLASP",
        "patch": "PATCH /api/directory/CLI_CLASP",
        "delete": "DELETE /api/directory/CLI_CLASP",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_CLASP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_CLASP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_CLASP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_CLASP"
      },
      "examples": "[\"CLI_CLASP \\\"push -f\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_CLASP"
    },
    {
      "key": "CLI_CLAUDE_CODE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Claude Code headless coding agent on the Mac. File edit + shell. WHEN_TO_USE: \"have claude code do X\", \"use claude code to review\", \"ask claude code to refactor\", \"claude code: implement Y\" ARGS: task | cwd (cwd empty = home; use /Users/the owner/miscsubjects-pages for the build) EX: text the build → \"have claude code review the last commit in miscsubjects-pages\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_CLAUDE_CODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_CLAUDE_CODE",
        "type": "http",
        "what": [
          "WHAT: Claude Code headless coding agent on the Mac. File edit + shell.",
          "WHEN_TO_USE: \"have claude code do X\", \"use claude code to review\", \"ask claude code to refactor\", \"claude code: implement Y\"",
          "ARGS: task | cwd (cwd empty = home; use /Users/the owner/miscsubjects-pages for the build)",
          "EX: text the build → \"have claude code review the last commit in miscsubjects-pages\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"have claude code review the last commit in miscsubjects-pages\"",
        "tag": "[CLI_CLAUDE_CODE]<arg1>|<arg2>[/CLI_CLAUDE_CODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_CLAUDE_CODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_CLAUDE_CODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"claude\",\"args\":[\"-p\",\"$1\",\"--output-format\",\"text\",\"--dangerously-skip-permissions\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_CLAUDE_CODE",
        "update": "PUT /api/directory/CLI_CLAUDE_CODE",
        "patch": "PATCH /api/directory/CLI_CLAUDE_CODE",
        "delete": "DELETE /api/directory/CLI_CLAUDE_CODE",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_CLAUDE_CODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_CLAUDE_CODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_CLAUDE_CODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_CLAUDE_CODE"
      },
      "examples": "[\"Read-only: print the first line of scripts/ship.mjs and the count of files under migrations/. Do not edit anything.|/Users/owner/miscsubjects-pages\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_CLAUDE_CODE"
    },
    {
      "key": "CLI_CODEX",
      "type": "http",
      "category": null,
      "doc": "WHAT: OpenAI Codex CLI one-shot. Parallel/second-opinion coder. WHEN_TO_USE: \"use codex to\", \"have codex do X\", \"codex: <task>\" ARGS: task | cwd EX: text the build → \"use codex to write a function that counts lines per file in functions/\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_CODEX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_CODEX",
        "type": "http",
        "what": [
          "WHAT: OpenAI Codex CLI one-shot. Parallel/second-opinion coder.",
          "WHEN_TO_USE: \"use codex to\", \"have codex do X\", \"codex: <task>\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use codex to write a function that counts lines per file in functions/\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use codex to write a function that counts lines per file in functions/\"",
        "tag": "[CLI_CODEX]<arg1>|<arg2>[/CLI_CODEX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_CODEX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_CODEX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"codex\",\"args\":[\"exec\",\"--full-auto\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_CODEX",
        "update": "PUT /api/directory/CLI_CODEX",
        "patch": "PATCH /api/directory/CLI_CODEX",
        "delete": "DELETE /api/directory/CLI_CODEX",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_CODEX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_CODEX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_CODEX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_CODEX"
      },
      "examples": "[\"refactor X|/repo\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_CODEX"
    },
    {
      "key": "CLI_CURL_LOCAL",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run curl ON THE MAC (different from the worker's outbound fetch — picks up Mac creds in keychain/env). ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_CURL_LOCAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_CURL_LOCAL",
        "type": "http",
        "what": [
          "WHAT: run curl ON THE MAC (different from the worker's outbound fetch — picks up Mac creds in keychain/env).",
          "ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_CURL_LOCAL]arg1[/CLI_CURL_LOCAL]",
        "tag": "[CLI_CURL_LOCAL]<arg1 …>[/CLI_CURL_LOCAL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_CURL_LOCAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_CURL_LOCAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_CURL_LOCAL",
        "update": "PUT /api/directory/CLI_CURL_LOCAL",
        "patch": "PATCH /api/directory/CLI_CURL_LOCAL",
        "delete": "DELETE /api/directory/CLI_CURL_LOCAL",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_CURL_LOCAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_CURL_LOCAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_CURL_LOCAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_CURL_LOCAL"
      },
      "examples": "[\"-s -o /dev/null -w %{http_code} https://miscsubjects.com/api/health\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_CURL_LOCAL"
    },
    {
      "key": "CLI_DENO",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run deno. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_DENO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_DENO",
        "type": "http",
        "what": [
          "WHAT: run deno. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_DENO]arg1|arg2[/CLI_DENO]",
        "tag": "[CLI_DENO]<arg1>|<arg2>[/CLI_DENO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_DENO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_DENO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; deno $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_DENO",
        "update": "PUT /api/directory/CLI_DENO",
        "patch": "PATCH /api/directory/CLI_DENO",
        "delete": "DELETE /api/directory/CLI_DENO",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_DENO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_DENO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_DENO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_DENO"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_DENO"
    },
    {
      "key": "CLI_DOCKER",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run docker. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_DOCKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_DOCKER",
        "type": "http",
        "what": [
          "WHAT: run docker. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_DOCKER]arg1|arg2[/CLI_DOCKER]",
        "tag": "[CLI_DOCKER]<arg1>|<arg2>[/CLI_DOCKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_DOCKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_DOCKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; docker $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_DOCKER",
        "update": "PUT /api/directory/CLI_DOCKER",
        "patch": "PATCH /api/directory/CLI_DOCKER",
        "delete": "DELETE /api/directory/CLI_DOCKER",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_DOCKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_DOCKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_DOCKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_DOCKER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_DOCKER"
    },
    {
      "key": "CLI_FD",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run fd (modern find). ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_FD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_FD",
        "type": "http",
        "what": [
          "WHAT: run fd (modern find). ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_FD]arg1|arg2[/CLI_FD]",
        "tag": "[CLI_FD]<arg1>|<arg2>[/CLI_FD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_FD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_FD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; fd $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_FD",
        "update": "PUT /api/directory/CLI_FD",
        "patch": "PATCH /api/directory/CLI_FD",
        "delete": "DELETE /api/directory/CLI_FD",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_FD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_FD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_FD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_FD"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_FD"
    },
    {
      "key": "CLI_FFMPEG",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run ffmpeg. ARGS: $1 = args, $2 = cwd. EX: CLI_FFMPEG \"-i input.mp4 -t 10 out.mp4\"|/Users/the owner/Downloads",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_FFMPEG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_FFMPEG",
        "type": "http",
        "what": [
          "WHAT: run ffmpeg. ARGS: $1 = args, $2 = cwd. EX: CLI_FFMPEG \"-i input.mp4 -t 10 out.mp4\"|/Users/the owner/Downloads"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_FFMPEG \"-i input.mp4 -t 10 out.mp4\"|/Users/the owner/Downloads",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_FFMPEG]arg1|arg2[/CLI_FFMPEG]",
        "tag": "[CLI_FFMPEG]<arg1>|<arg2>[/CLI_FFMPEG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_FFMPEG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_FFMPEG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; ffmpeg $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_FFMPEG",
        "update": "PUT /api/directory/CLI_FFMPEG",
        "patch": "PATCH /api/directory/CLI_FFMPEG",
        "delete": "DELETE /api/directory/CLI_FFMPEG",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_FFMPEG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_FFMPEG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_FFMPEG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_FFMPEG"
      },
      "examples": "[\"-version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_FFMPEG"
    },
    {
      "key": "CLI_GCLOUD",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run gcloud. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GCLOUD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GCLOUD",
        "type": "http",
        "what": [
          "WHAT: run gcloud. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_GCLOUD]arg1[/CLI_GCLOUD]",
        "tag": "[CLI_GCLOUD]<arg1 …>[/CLI_GCLOUD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GCLOUD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GCLOUD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"gcloud $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_GCLOUD",
        "update": "PUT /api/directory/CLI_GCLOUD",
        "patch": "PATCH /api/directory/CLI_GCLOUD",
        "delete": "DELETE /api/directory/CLI_GCLOUD",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GCLOUD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GCLOUD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GCLOUD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GCLOUD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GCLOUD"
    },
    {
      "key": "CLI_GEMINI",
      "type": "http",
      "category": null,
      "doc": "WHAT: Google Gemini CLI non-interactively on the Mac. Strong long-context. WHEN_TO_USE: \"use gemini cli to\", \"have gemini summarize\", \"ask gemini cli\", \"gemini, do X\" ARGS: task | cwd EX: text the build → \"use gemini cli to count the lines in /Users/the owner/miscsubjects-pages/functions/api/dispatch.js\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GEMINI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GEMINI",
        "type": "http",
        "what": [
          "WHAT: Google Gemini CLI non-interactively on the Mac. Strong long-context.",
          "WHEN_TO_USE: \"use gemini cli to\", \"have gemini summarize\", \"ask gemini cli\", \"gemini, do X\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use gemini cli to count the lines in /Users/the owner/miscsubjects-pages/functions/api/dispatch.js\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use gemini cli to count the lines in /Users/the owner/miscsubjects-pages/functions/api/dispatch.js\"",
        "tag": "[CLI_GEMINI]<arg1>|<arg2>[/CLI_GEMINI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GEMINI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GEMINI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"gemini\",\"args\":[\"-p\",\"$1\",\"--yolo\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_GEMINI",
        "update": "PUT /api/directory/CLI_GEMINI",
        "patch": "PATCH /api/directory/CLI_GEMINI",
        "delete": "DELETE /api/directory/CLI_GEMINI",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GEMINI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GEMINI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GEMINI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GEMINI"
      },
      "examples": "[\"echo test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GEMINI"
    },
    {
      "key": "CLI_GH",
      "type": "http",
      "category": null,
      "doc": "WHAT: Run any gh (GitHub CLI) command with the owner's auth on the Mac. WHEN_TO_USE: \"comment on the repo\", \"post a github comment\", \"open an issue\", \"list my PRs\", \"gh <args>\", \"check github actions\". Needs the Mac online + gh authed. ARGS: the gh arguments verbatim (everything after \"gh\"). EX: [CLI_GH]issue comment 1 --repo the owner/miscsubjects-pages --body \"posted via the protocol\"[/CLI_GH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GH",
        "type": "http",
        "what": [
          "WHAT: Run any gh (GitHub CLI) command with the owner's auth on the Mac.",
          "WHEN_TO_USE: \"comment on the repo\", \"post a github comment\", \"open an issue\", \"list my PRs\", \"gh <args>\", \"check github actions\". Needs the Mac online + gh authed.",
          "ARGS: the gh arguments verbatim (everything after \"gh\").",
          "EX: [CLI_GH]issue comment 1 --repo the owner/miscsubjects-pages --body \"posted via the protocol\"[/CLI_GH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "issue comment 1 --repo the owner/miscsubjects-pages --body \"posted via the protocol\"",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_GH]issue comment 1 --repo the owner/miscsubjects-pages --body \"posted via the protocol\"[/CLI_GH]",
        "tag": "[CLI_GH]<issue comment 1 --repo the owner/miscsubjects-pages --body \"posted via the protocol\" …>[/CLI_GH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"gh $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_GH",
        "update": "PUT /api/directory/CLI_GH",
        "patch": "PATCH /api/directory/CLI_GH",
        "delete": "DELETE /api/directory/CLI_GH",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GH"
      },
      "examples": "[\"issue comment 1 --repo [OWNER_HANDLE]/miscsubjects-pages --body \\\"posted via the protocol\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GH"
    },
    {
      "key": "CLI_GH_COPILOT",
      "type": "http",
      "category": null,
      "doc": "WHAT: gh copilot suggest — one-line shell-command suggestions. WHEN_TO_USE: \"how do I do X in shell\", \"suggest a shell command for\", \"gh copilot: <question>\" ARGS: natural-language question EX: text the build → \"ask gh copilot how to find files larger than 1MB\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GH_COPILOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GH_COPILOT",
        "type": "http",
        "what": [
          "WHAT: gh copilot suggest — one-line shell-command suggestions.",
          "WHEN_TO_USE: \"how do I do X in shell\", \"suggest a shell command for\", \"gh copilot: <question>\"",
          "ARGS: natural-language question",
          "EX: text the build → \"ask gh copilot how to find files larger than 1MB\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"ask gh copilot how to find files larger than 1MB\"",
        "tag": "[CLI_GH_COPILOT]<arg1>[/CLI_GH_COPILOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GH_COPILOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GH_COPILOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"gh\",\"args\":[\"copilot\",\"suggest\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/CLI_GH_COPILOT",
        "update": "PUT /api/directory/CLI_GH_COPILOT",
        "patch": "PATCH /api/directory/CLI_GH_COPILOT",
        "delete": "DELETE /api/directory/CLI_GH_COPILOT",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GH_COPILOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GH_COPILOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GH_COPILOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GH_COPILOT"
      },
      "examples": "[\"text the build \\u2192 \\\"ask gh copilot how to find files larger than 1MB\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GH_COPILOT"
    },
    {
      "key": "CLI_GIT",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run git. ARGS: $1 = args after `git`. cwd = $2 (default /Users/the owner/miscsubjects-pages). EX: CLI_GIT \"status\"|/Users/the owner/miscsubjects-pages",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GIT",
        "type": "http",
        "what": [
          "WHAT: run git. ARGS: $1 = args after `git`. cwd = $2 (default /Users/the owner/miscsubjects-pages).",
          "EX: CLI_GIT \"status\"|/Users/the owner/miscsubjects-pages"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args after `git`. cwd = $2 (default /Users/the owner/miscsubjects-pages).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLI_GIT \"status\"|/Users/the owner/miscsubjects-pages",
        "tag": "[CLI_GIT]<arg1>|<arg2>[/CLI_GIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; git $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_GIT",
        "update": "PUT /api/directory/CLI_GIT",
        "patch": "PATCH /api/directory/CLI_GIT",
        "delete": "DELETE /api/directory/CLI_GIT",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GIT"
      },
      "examples": "[\"status --porcelain\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GIT"
    },
    {
      "key": "CLI_GOOSE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Block's goose coding agent. NOT INSTALLED yet (brew install block-goose-cli). WHEN_TO_USE: \"use goose to\", \"have goose do X\" ARGS: task | cwd EX: text the build → \"use goose to add error handling to functions/api/dispatch.js\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GOOSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GOOSE",
        "type": "http",
        "what": [
          "WHAT: Block's goose coding agent. NOT INSTALLED yet (brew install block-goose-cli).",
          "WHEN_TO_USE: \"use goose to\", \"have goose do X\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use goose to add error handling to functions/api/dispatch.js\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use goose to add error handling to functions/api/dispatch.js\"",
        "tag": "[CLI_GOOSE]<arg1>|<arg2>[/CLI_GOOSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GOOSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GOOSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"goose\",\"args\":[\"run\",\"-t\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_GOOSE",
        "update": "PUT /api/directory/CLI_GOOSE",
        "patch": "PATCH /api/directory/CLI_GOOSE",
        "delete": "DELETE /api/directory/CLI_GOOSE",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GOOSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GOOSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GOOSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GOOSE"
      },
      "examples": "[\"go wild and go completely feral on my mac|~\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GOOSE"
    },
    {
      "key": "CLI_GRAPHVIZ",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run dot/graphviz. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GRAPHVIZ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GRAPHVIZ",
        "type": "http",
        "what": [
          "WHAT: run dot/graphviz. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_GRAPHVIZ]arg1[/CLI_GRAPHVIZ]",
        "tag": "[CLI_GRAPHVIZ]<arg1 …>[/CLI_GRAPHVIZ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GRAPHVIZ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GRAPHVIZ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"dot $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_GRAPHVIZ",
        "update": "PUT /api/directory/CLI_GRAPHVIZ",
        "patch": "PATCH /api/directory/CLI_GRAPHVIZ",
        "delete": "DELETE /api/directory/CLI_GRAPHVIZ",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GRAPHVIZ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GRAPHVIZ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GRAPHVIZ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GRAPHVIZ"
      },
      "examples": "[\"-V\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GRAPHVIZ"
    },
    {
      "key": "CLI_GROK_SA",
      "type": "http",
      "category": null,
      "doc": "WHAT: superagent-ai grok-cli (~/.superagent-grok/bin/grok via bun). WHEN_TO_USE: \"use superagent grok\", \"run superagent-grok\" ARGS: task | cwd EX: text the build → \"have superagent-grok summarize functions/blooio.js\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GROK_SA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GROK_SA",
        "type": "http",
        "what": [
          "WHAT: superagent-ai grok-cli (~/.superagent-grok/bin/grok via bun).",
          "WHEN_TO_USE: \"use superagent grok\", \"run superagent-grok\"",
          "ARGS: task | cwd",
          "EX: text the build → \"have superagent-grok summarize functions/blooio.js\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"have superagent-grok summarize functions/blooio.js\"",
        "tag": "[CLI_GROK_SA]<arg1>|<arg2>[/CLI_GROK_SA]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GROK_SA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GROK_SA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"bun\",\"args\":[\"/Users/the owner/.superagent-grok/bin/grok\",\"--prompt\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_GROK_SA",
        "update": "PUT /api/directory/CLI_GROK_SA",
        "patch": "PATCH /api/directory/CLI_GROK_SA",
        "delete": "DELETE /api/directory/CLI_GROK_SA",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GROK_SA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GROK_SA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GROK_SA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GROK_SA"
      },
      "examples": "[\"text the build \\u2192 \\\"have superagent-grok summarize functions/blooio.js\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GROK_SA"
    },
    {
      "key": "CLI_GROK_XAI",
      "type": "http",
      "category": null,
      "doc": "WHAT: xAI's official Grok CLI (~/.grok/bin/grok) with the owner's xAI auth. WHEN_TO_USE: \"use grok cli to\", \"ask grok cli\", \"run grok cli\" ARGS: task | cwd EX: text the build → \"use grok cli to explain what dispatch.js does\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GROK_XAI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GROK_XAI",
        "type": "http",
        "what": [
          "WHAT: xAI's official Grok CLI (~/.grok/bin/grok) with the owner's xAI auth.",
          "WHEN_TO_USE: \"use grok cli to\", \"ask grok cli\", \"run grok cli\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use grok cli to explain what dispatch.js does\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use grok cli to explain what dispatch.js does\"",
        "tag": "[CLI_GROK_XAI]<arg1>|<arg2>[/CLI_GROK_XAI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GROK_XAI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GROK_XAI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"/Users/the owner/.grok/bin/grok\",\"args\":[\"-p\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_GROK_XAI",
        "update": "PUT /api/directory/CLI_GROK_XAI",
        "patch": "PATCH /api/directory/CLI_GROK_XAI",
        "delete": "DELETE /api/directory/CLI_GROK_XAI",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GROK_XAI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GROK_XAI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GROK_XAI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GROK_XAI"
      },
      "examples": "[\"echo test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GROK_XAI"
    },
    {
      "key": "CLI_GROUP",
      "type": "fn",
      "category": "cli",
      "doc": "WHAT: CLI Agent Team Room — agents chat in sequence on a shared transcript (superior build solutions). Args: agents|topic|cwd|mode|delivery agents: comma-separated team (default kimi,gemini,codex) — also grok, claude, aider mode: readonly (default) | auto delivery: headless | terminal (terminal opens live team-room tail -f transcript) WHEN_TO_USE: cross-agent debate, audit synthesis, second opinions, architecture review as a team. EX: [CLI_GROUP]kimi,gemini,codex|What are the top 5 gaps in agent_turn logging and how do we fix them?|/Users/the owner/miscsubjects-pages|readonly|terminal[/CLI_GROUP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_GROUP",
        "type": "fn",
        "what": [
          "WHAT: CLI Agent Team Room — agents chat in sequence on a shared transcript (superior build solutions).",
          "Args: agents|topic|cwd|mode|delivery",
          "agents: comma-separated team (default kimi,gemini,codex) — also grok, claude, aider",
          "mode: readonly (default) | auto",
          "delivery: headless | terminal (terminal opens live team-room tail -f transcript)",
          "WHEN_TO_USE: cross-agent debate, audit synthesis, second opinions, architecture review as a team.",
          "EX: [CLI_GROUP]kimi,gemini,codex|What are the top 5 gaps in agent_turn logging and how do we fix them?|/Users/the owner/miscsubjects-pages|readonly|terminal[/CLI_GROUP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "kimi,gemini,codex",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "What are the top 5 gaps in agent_turn logging and how do we fix them?",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "/Users/the owner/miscsubjects-pages",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "readonly",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "terminal",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CLI_GROUP]kimi,gemini,codex|What are the top 5 gaps in agent_turn logging and how do we fix them?|/Users/the owner/miscsubjects-pages|readonly|terminal[/CLI_GROUP]",
        "tag": "[CLI_GROUP]<kimi,gemini,codex>|<What are the top 5 gaps in agent_turn logging and how do we fix them?>|</Users/the owner/miscsubjects-pages>|<readonly>|<terminal>[/CLI_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\"]",
      "edit": {
        "read": "GET /api/directory/CLI_GROUP",
        "update": "PUT /api/directory/CLI_GROUP",
        "patch": "PATCH /api/directory/CLI_GROUP",
        "delete": "DELETE /api/directory/CLI_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_GROUP"
      },
      "examples": "[\"kimi,gemini,codex|What are the top 5 gaps in agent_turn logging and how do we fix them?|/Users/owner/miscsubjects-pages|readonly|terminal\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_GROUP"
    },
    {
      "key": "CLI_HTTPIE",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run httpie (http CLI). ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_HTTPIE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_HTTPIE",
        "type": "http",
        "what": [
          "WHAT: run httpie (http CLI). ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_HTTPIE]arg1[/CLI_HTTPIE]",
        "tag": "[CLI_HTTPIE]<arg1 …>[/CLI_HTTPIE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_HTTPIE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_HTTPIE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"http $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_HTTPIE",
        "update": "PUT /api/directory/CLI_HTTPIE",
        "patch": "PATCH /api/directory/CLI_HTTPIE",
        "delete": "DELETE /api/directory/CLI_HTTPIE",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_HTTPIE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_HTTPIE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_HTTPIE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_HTTPIE"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_HTTPIE"
    },
    {
      "key": "CLI_INTERPRETER",
      "type": "http",
      "category": null,
      "doc": "WHAT: Open Interpreter — local code execution agent. WHEN_TO_USE: \"use open interpreter\", \"have interpreter run\", \"interpreter: <task>\" ARGS: task EX: text the build → \"use open interpreter to plot CPU usage over the last hour\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_INTERPRETER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_INTERPRETER",
        "type": "http",
        "what": [
          "WHAT: Open Interpreter — local code execution agent.",
          "WHEN_TO_USE: \"use open interpreter\", \"have interpreter run\", \"interpreter: <task>\"",
          "ARGS: task",
          "EX: text the build → \"use open interpreter to plot CPU usage over the last hour\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use open interpreter to plot CPU usage over the last hour\"",
        "tag": "[CLI_INTERPRETER]<arg1>[/CLI_INTERPRETER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_INTERPRETER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_INTERPRETER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"interpreter\",\"args\":[\"-y\",\"$1\"],\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_INTERPRETER",
        "update": "PUT /api/directory/CLI_INTERPRETER",
        "patch": "PATCH /api/directory/CLI_INTERPRETER",
        "delete": "DELETE /api/directory/CLI_INTERPRETER",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_INTERPRETER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_INTERPRETER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_INTERPRETER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_INTERPRETER"
      },
      "examples": "[\"text the build \\u2192 \\\"use open interpreter to plot CPU usage over the last hour\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_INTERPRETER"
    },
    {
      "key": "CLI_JQ",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run jq. ARGS: $1 = args (the jq filter), $2 = stdin_text.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_JQ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_JQ",
        "type": "http",
        "what": [
          "WHAT: run jq. ARGS: $1 = args (the jq filter), $2 = stdin_text."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args (the jq filter), $2 = stdin_text.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_JQ]arg1[/CLI_JQ]",
        "tag": "[CLI_JQ]<arg1 …>[/CLI_JQ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_JQ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_JQ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"jq $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_JQ",
        "update": "PUT /api/directory/CLI_JQ",
        "patch": "PATCH /api/directory/CLI_JQ",
        "delete": "DELETE /api/directory/CLI_JQ",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_JQ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_JQ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_JQ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_JQ"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_JQ"
    },
    {
      "key": "CLI_KIMI",
      "type": "http",
      "category": "cli",
      "doc": "Run Moonshot Kimi Code CLI non-interactively on the Mac. Args: task|cwd. Creates a new session; resume id printed at end. readonly audits: use CLI_SPAWN with mode readonly instead.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_KIMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_KIMI",
        "type": "http",
        "what": [
          "Run Moonshot Kimi Code CLI non-interactively on the Mac. Args: task|cwd. Creates a new session; resume id printed at end. readonly audits: use CLI_SPAWN with mode readonly instead."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_KIMI]arg1|arg2[/CLI_KIMI]",
        "tag": "[CLI_KIMI]<arg1>|<arg2>[/CLI_KIMI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_KIMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_KIMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"bash\",\"args\":[\"/Users/the owner/miscsubjects-pages/hooks/cli-agent-spawn.sh\",\"kimi\",\"$2\",\"auto\",\"headless\"],\"cwd\":\"$2\",\"stdin\":\"$1\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_KIMI",
        "update": "PUT /api/directory/CLI_KIMI",
        "patch": "PATCH /api/directory/CLI_KIMI",
        "delete": "DELETE /api/directory/CLI_KIMI",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_KIMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_KIMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_KIMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_KIMI"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_KIMI"
    },
    {
      "key": "CLI_KUBECTL",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run kubectl. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_KUBECTL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_KUBECTL",
        "type": "http",
        "what": [
          "WHAT: run kubectl. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_KUBECTL]arg1[/CLI_KUBECTL]",
        "tag": "[CLI_KUBECTL]<arg1 …>[/CLI_KUBECTL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_KUBECTL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_KUBECTL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"kubectl $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_KUBECTL",
        "update": "PUT /api/directory/CLI_KUBECTL",
        "patch": "PATCH /api/directory/CLI_KUBECTL",
        "delete": "DELETE /api/directory/CLI_KUBECTL",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_KUBECTL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_KUBECTL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_KUBECTL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_KUBECTL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_KUBECTL"
    },
    {
      "key": "CLI_MAGICK",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run ImageMagick (magick CLI). ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_MAGICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_MAGICK",
        "type": "http",
        "what": [
          "WHAT: run ImageMagick (magick CLI). ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_MAGICK]arg1|arg2[/CLI_MAGICK]",
        "tag": "[CLI_MAGICK]<arg1>|<arg2>[/CLI_MAGICK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_MAGICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_MAGICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; magick $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_MAGICK",
        "update": "PUT /api/directory/CLI_MAGICK",
        "patch": "PATCH /api/directory/CLI_MAGICK",
        "delete": "DELETE /api/directory/CLI_MAGICK",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_MAGICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_MAGICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_MAGICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_MAGICK"
      },
      "examples": "[\"-version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_MAGICK"
    },
    {
      "key": "CLI_NODE",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run node. ARGS: $1 = args, $2 = cwd. EX: CLI_NODE \"-e \\\"console.log(1+1)\\\"\"|.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_NODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_NODE",
        "type": "http",
        "what": [
          "WHAT: run node. ARGS: $1 = args, $2 = cwd. EX: CLI_NODE \"-e \\\"console.log(1+1)\\\"\"|."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_NODE \"-e \\\"console.log(1+1)\\\"\"|.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_NODE]arg1|arg2[/CLI_NODE]",
        "tag": "[CLI_NODE]<arg1>|<arg2>[/CLI_NODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_NODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_NODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; node $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_NODE",
        "update": "PUT /api/directory/CLI_NODE",
        "patch": "PATCH /api/directory/CLI_NODE",
        "delete": "DELETE /api/directory/CLI_NODE",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_NODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_NODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_NODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_NODE"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_NODE"
    },
    {
      "key": "CLI_NPM",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run npm. ARGS: $1 = args, $2 = cwd. EX: CLI_NPM \"install\"|/Users/the owner/miscsubjects-pages",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_NPM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_NPM",
        "type": "http",
        "what": [
          "WHAT: run npm. ARGS: $1 = args, $2 = cwd. EX: CLI_NPM \"install\"|/Users/the owner/miscsubjects-pages"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_NPM \"install\"|/Users/the owner/miscsubjects-pages",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_NPM]arg1|arg2[/CLI_NPM]",
        "tag": "[CLI_NPM]<arg1>|<arg2>[/CLI_NPM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_NPM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_NPM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; npm $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_NPM",
        "update": "PUT /api/directory/CLI_NPM",
        "patch": "PATCH /api/directory/CLI_NPM",
        "delete": "DELETE /api/directory/CLI_NPM",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_NPM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_NPM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_NPM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_NPM"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_NPM"
    },
    {
      "key": "CLI_OPENAI",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run the openai CLI (https://developers.openai.com/api/docs/libraries/openai-cli). ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_OPENAI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_OPENAI",
        "type": "http",
        "what": [
          "WHAT: run the openai CLI (https://developers.openai.com/api/docs/libraries/openai-cli). ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_OPENAI]arg1|arg2[/CLI_OPENAI]",
        "tag": "[CLI_OPENAI]<arg1>|<arg2>[/CLI_OPENAI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_OPENAI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_OPENAI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; openai $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_OPENAI",
        "update": "PUT /api/directory/CLI_OPENAI",
        "patch": "PATCH /api/directory/CLI_OPENAI",
        "delete": "DELETE /api/directory/CLI_OPENAI",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_OPENAI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_OPENAI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_OPENAI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_OPENAI"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_OPENAI"
    },
    {
      "key": "CLI_OPENHANDS",
      "type": "http",
      "category": null,
      "doc": "WHAT: OpenHands (all-hands.dev) agent. NOT INSTALLED yet (pip3 install openhands-ai). WHEN_TO_USE: \"use openhands to\", \"have openhands do X\" ARGS: task | cwd EX: text the build → \"use openhands to refactor utils.js\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_OPENHANDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_OPENHANDS",
        "type": "http",
        "what": [
          "WHAT: OpenHands (all-hands.dev) agent. NOT INSTALLED yet (pip3 install openhands-ai).",
          "WHEN_TO_USE: \"use openhands to\", \"have openhands do X\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use openhands to refactor utils.js\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use openhands to refactor utils.js\"",
        "tag": "[CLI_OPENHANDS]<arg1>|<arg2>[/CLI_OPENHANDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_OPENHANDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_OPENHANDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"openhands\",\"args\":[\"-t\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_OPENHANDS",
        "update": "PUT /api/directory/CLI_OPENHANDS",
        "patch": "PATCH /api/directory/CLI_OPENHANDS",
        "delete": "DELETE /api/directory/CLI_OPENHANDS",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_OPENHANDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_OPENHANDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_OPENHANDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_OPENHANDS"
      },
      "examples": "[\"text the build \\u2192 \\\"use openhands to refactor utils.js\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_OPENHANDS"
    },
    {
      "key": "CLI_PANDOC",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run pandoc. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_PANDOC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_PANDOC",
        "type": "http",
        "what": [
          "WHAT: run pandoc. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_PANDOC]arg1|arg2[/CLI_PANDOC]",
        "tag": "[CLI_PANDOC]<arg1>|<arg2>[/CLI_PANDOC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_PANDOC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_PANDOC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; pandoc $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_PANDOC",
        "update": "PUT /api/directory/CLI_PANDOC",
        "patch": "PATCH /api/directory/CLI_PANDOC",
        "delete": "DELETE /api/directory/CLI_PANDOC",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_PANDOC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_PANDOC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_PANDOC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_PANDOC"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_PANDOC"
    },
    {
      "key": "CLI_PLANDEX",
      "type": "http",
      "category": null,
      "doc": "WHAT: Plandex agent. NOT INSTALLED yet (plandex.ai unreachable 2026-06-11). WHEN_TO_USE: \"use plandex to\", \"have plandex do X\" ARGS: task | cwd EX: text the build → \"use plandex to plan a refactor of the kernel\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_PLANDEX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_PLANDEX",
        "type": "http",
        "what": [
          "WHAT: Plandex agent. NOT INSTALLED yet (plandex.ai unreachable 2026-06-11).",
          "WHEN_TO_USE: \"use plandex to\", \"have plandex do X\"",
          "ARGS: task | cwd",
          "EX: text the build → \"use plandex to plan a refactor of the kernel\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"use plandex to plan a refactor of the kernel\"",
        "tag": "[CLI_PLANDEX]<arg1>|<arg2>[/CLI_PLANDEX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_PLANDEX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_PLANDEX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"plandex\",\"args\":[\"tell\",\"$1\"],\"cwd\":\"$2\",\"timeout\":1200000}",
      "edit": {
        "read": "GET /api/directory/CLI_PLANDEX",
        "update": "PUT /api/directory/CLI_PLANDEX",
        "patch": "PATCH /api/directory/CLI_PLANDEX",
        "delete": "DELETE /api/directory/CLI_PLANDEX",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_PLANDEX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_PLANDEX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_PLANDEX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_PLANDEX"
      },
      "examples": "[\"text the build \\u2192 \\\"use plandex to plan a refactor of the kernel\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_PLANDEX"
    },
    {
      "key": "CLI_PNPM",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run pnpm. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_PNPM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_PNPM",
        "type": "http",
        "what": [
          "WHAT: run pnpm. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_PNPM]arg1|arg2[/CLI_PNPM]",
        "tag": "[CLI_PNPM]<arg1>|<arg2>[/CLI_PNPM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_PNPM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_PNPM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; pnpm $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_PNPM",
        "update": "PUT /api/directory/CLI_PNPM",
        "patch": "PATCH /api/directory/CLI_PNPM",
        "delete": "DELETE /api/directory/CLI_PNPM",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_PNPM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_PNPM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_PNPM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_PNPM"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_PNPM"
    },
    {
      "key": "CLI_PSQL",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run psql. ARGS: $1 = args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_PSQL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_PSQL",
        "type": "http",
        "what": [
          "WHAT: run psql. ARGS: $1 = args."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_PSQL]arg1[/CLI_PSQL]",
        "tag": "[CLI_PSQL]<arg1 …>[/CLI_PSQL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_PSQL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_PSQL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"psql $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_PSQL",
        "update": "PUT /api/directory/CLI_PSQL",
        "patch": "PATCH /api/directory/CLI_PSQL",
        "delete": "DELETE /api/directory/CLI_PSQL",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_PSQL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_PSQL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_PSQL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_PSQL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_PSQL"
    },
    {
      "key": "CLI_PYTHON",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run python3. ARGS: $1 = args, $2 = cwd. EX: CLI_PYTHON \"-c \\\"print(2+2)\\\"\"|.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_PYTHON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_PYTHON",
        "type": "http",
        "what": [
          "WHAT: run python3. ARGS: $1 = args, $2 = cwd. EX: CLI_PYTHON \"-c \\\"print(2+2)\\\"\"|."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_PYTHON \"-c \\\"print(2+2)\\\"\"|.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_PYTHON]arg1|arg2[/CLI_PYTHON]",
        "tag": "[CLI_PYTHON]<arg1>|<arg2>[/CLI_PYTHON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_PYTHON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_PYTHON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; python3 $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_PYTHON",
        "update": "PUT /api/directory/CLI_PYTHON",
        "patch": "PATCH /api/directory/CLI_PYTHON",
        "delete": "DELETE /api/directory/CLI_PYTHON",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_PYTHON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_PYTHON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_PYTHON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_PYTHON"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_PYTHON"
    },
    {
      "key": "CLI_REFLEX",
      "type": "fn",
      "category": "cli",
      "doc": "WHAT: Issue reflex — spawn scoped CLI agent team on a build/code brief (background). Auto-fired by selftest failures + owner blooio build messages. Manual use OK. Args: brief|agents|cwd|mode|delivery agents default kimi,codex. delivery headless (fast) or terminal (live transcript). EX: [CLI_REFLEX]Selftest t8 failed on blooio reply path — best fix?|kimi,codex|/Users/the owner/miscsubjects-pages|readonly|headless[/CLI_REFLEX]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_REFLEX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_REFLEX",
        "type": "fn",
        "what": [
          "WHAT: Issue reflex — spawn scoped CLI agent team on a build/code brief (background).",
          "Auto-fired by selftest failures + owner blooio build messages. Manual use OK.",
          "Args: brief|agents|cwd|mode|delivery",
          "agents default kimi,codex. delivery headless (fast) or terminal (live transcript).",
          "EX: [CLI_REFLEX]Selftest t8 failed on blooio reply path — best fix?|kimi,codex|/Users/the owner/miscsubjects-pages|readonly|headless[/CLI_REFLEX]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Selftest t8 failed on blooio reply path — best fix?",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "kimi,codex",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "/Users/the owner/miscsubjects-pages",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "readonly",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "headless",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CLI_REFLEX]Selftest t8 failed on blooio reply path — best fix?|kimi,codex|/Users/the owner/miscsubjects-pages|readonly|headless[/CLI_REFLEX]",
        "tag": "[CLI_REFLEX]<Selftest t8 failed on blooio reply path — best fix?>|<kimi,codex>|</Users/the owner/miscsubjects-pages>|<readonly>|<headless>[/CLI_REFLEX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_REFLEX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_REFLEX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\"]",
      "edit": {
        "read": "GET /api/directory/CLI_REFLEX",
        "update": "PUT /api/directory/CLI_REFLEX",
        "patch": "PATCH /api/directory/CLI_REFLEX",
        "delete": "DELETE /api/directory/CLI_REFLEX",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_REFLEX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_REFLEX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_REFLEX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_REFLEX"
      },
      "examples": "[\"Selftest t8 failed on blooio reply path \\u2014 best fix?|kimi,codex|/Users/the owner/miscsubjects-pages|readonly|headless\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_REFLEX"
    },
    {
      "key": "CLI_RG",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run ripgrep. ARGS: $1 = args, $2 = cwd. EX: CLI_RG \"ADDTASK -n\"|/Users/the owner/miscsubjects-pages",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_RG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_RG",
        "type": "http",
        "what": [
          "WHAT: run ripgrep. ARGS: $1 = args, $2 = cwd. EX: CLI_RG \"ADDTASK -n\"|/Users/the owner/miscsubjects-pages"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_RG \"ADDTASK -n\"|/Users/the owner/miscsubjects-pages",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_RG]arg1|arg2[/CLI_RG]",
        "tag": "[CLI_RG]<arg1>|<arg2>[/CLI_RG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_RG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_RG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; rg $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_RG",
        "update": "PUT /api/directory/CLI_RG",
        "patch": "PATCH /api/directory/CLI_RG",
        "delete": "DELETE /api/directory/CLI_RG",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_RG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_RG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_RG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_RG"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_RG"
    },
    {
      "key": "CLI_SPAWN",
      "type": "fn",
      "category": "cli",
      "doc": "WHAT: spawn any coding CLI agent on the Mac. Args: agent|prompt|cwd|mode|delivery|model|session agent: kimi|gemini|codex|grok|grok-sa|claude|aider mode: readonly (plan/sandbox, no writes) | auto delivery: headless (default) | terminal (opens Terminal.app tab) model: optional. Empty = that CLI's own default. session: optional. Resume this conversation. Empty = start a new one and return the id. WHEN_TO_USE: open a conversation with a coding CLI, or continue one. EX: [CLI_SPAWN]claude|review the traffic engine|/Users/the owner/miscsubjects-pages|readonly|headless|claude-fable-5-1[1m]|[/CLI_SPAWN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_SPAWN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_SPAWN",
        "type": "fn",
        "what": [
          "WHAT: spawn any coding CLI agent on the Mac. Args: agent|prompt|cwd|mode|delivery|model|session",
          "agent: kimi|gemini|codex|grok|grok-sa|claude|aider",
          "mode: readonly (plan/sandbox, no writes) | auto",
          "delivery: headless (default) | terminal (opens Terminal.app tab)",
          "model: optional. Empty = that CLI's own default.",
          "session: optional. Resume this conversation. Empty = start a new one and return the id.",
          "WHEN_TO_USE: open a conversation with a coding CLI, or continue one.",
          "EX: [CLI_SPAWN]claude|review the traffic engine|/Users/the owner/miscsubjects-pages|readonly|headless|claude-fable-5-1[1m]|[/CLI_SPAWN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the id.",
        "example": "[CLI_SPAWN]claude|review the traffic engine|/Users/the owner/miscsubjects-pages|readonly|headless|claude-fable-5-1[1m]|[/CLI_SPAWN]",
        "tag": "[CLI_SPAWN]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>[/CLI_SPAWN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_SPAWN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_SPAWN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\"]",
      "edit": {
        "read": "GET /api/directory/CLI_SPAWN",
        "update": "PUT /api/directory/CLI_SPAWN",
        "patch": "PATCH /api/directory/CLI_SPAWN",
        "delete": "DELETE /api/directory/CLI_SPAWN",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_SPAWN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_SPAWN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_SPAWN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_SPAWN"
      },
      "examples": "[\"kimi|list the three biggest risks in functions/blooio.js||readonly|headless\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_SPAWN"
    },
    {
      "key": "CLI_SQLITE",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run sqlite3. ARGS: $1 = args (db path then query). EX: CLI_SQLITE \"/path/to.db 'SELECT * FROM x LIMIT 5'\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_SQLITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_SQLITE",
        "type": "http",
        "what": [
          "WHAT: run sqlite3. ARGS: $1 = args (db path then query). EX: CLI_SQLITE \"/path/to.db 'SELECT * FROM x LIMIT 5'\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args (db path then query). EX: CLI_SQLITE \"/path/to.db 'SELECT * FROM x LIMIT 5'\"",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_SQLITE]arg1[/CLI_SQLITE]",
        "tag": "[CLI_SQLITE]<arg1 …>[/CLI_SQLITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_SQLITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_SQLITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"sqlite3 $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_SQLITE",
        "update": "PUT /api/directory/CLI_SQLITE",
        "patch": "PATCH /api/directory/CLI_SQLITE",
        "delete": "DELETE /api/directory/CLI_SQLITE",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_SQLITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_SQLITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_SQLITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_SQLITE"
      },
      "examples": "[\"-version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_SQLITE"
    },
    {
      "key": "CLI_TERRAFORM",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run terraform. ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_TERRAFORM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_TERRAFORM",
        "type": "http",
        "what": [
          "WHAT: run terraform. ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_TERRAFORM]arg1|arg2[/CLI_TERRAFORM]",
        "tag": "[CLI_TERRAFORM]<arg1>|<arg2>[/CLI_TERRAFORM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_TERRAFORM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_TERRAFORM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; terraform $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_TERRAFORM",
        "update": "PUT /api/directory/CLI_TERRAFORM",
        "patch": "PATCH /api/directory/CLI_TERRAFORM",
        "delete": "DELETE /api/directory/CLI_TERRAFORM",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_TERRAFORM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_TERRAFORM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_TERRAFORM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_TERRAFORM"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_TERRAFORM"
    },
    {
      "key": "CLI_TYPST",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run typst (typesetting). ARGS: $1 = args, $2 = cwd.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_TYPST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_TYPST",
        "type": "http",
        "what": [
          "WHAT: run typst (typesetting). ARGS: $1 = args, $2 = cwd."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_TYPST]arg1|arg2[/CLI_TYPST]",
        "tag": "[CLI_TYPST]<arg1>|<arg2>[/CLI_TYPST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_TYPST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_TYPST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; typst $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_TYPST",
        "update": "PUT /api/directory/CLI_TYPST",
        "patch": "PATCH /api/directory/CLI_TYPST",
        "delete": "DELETE /api/directory/CLI_TYPST",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_TYPST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_TYPST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_TYPST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_TYPST"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_TYPST"
    },
    {
      "key": "CLI_WRANGLER",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run wrangler on the owner's Mac (Cloudflare CLI). ARGS: $1 = args after `wrangler`. cwd defaults to /Users/the owner/miscsubjects-pages. WHEN_TO_USE: deploy/check Workers, list R2 objects, run d1 execute, view kv, etc. EX: CLI_WRANGLER \"pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_WRANGLER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_WRANGLER",
        "type": "http",
        "what": [
          "WHAT: run wrangler on the owner's Mac (Cloudflare CLI). ARGS: $1 = args after `wrangler`. cwd defaults to /Users/the owner/miscsubjects-pages.",
          "WHEN_TO_USE: deploy/check Workers, list R2 objects, run d1 execute, view kv, etc.",
          "EX: CLI_WRANGLER \"pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args after `wrangler`. cwd defaults to /Users/the owner/miscsubjects-pages.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLI_WRANGLER \"pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true\"",
        "tag": "[CLI_WRANGLER]<arg1 …>[/CLI_WRANGLER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_WRANGLER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_WRANGLER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"wrangler $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_WRANGLER",
        "update": "PUT /api/directory/CLI_WRANGLER",
        "patch": "PATCH /api/directory/CLI_WRANGLER",
        "delete": "DELETE /api/directory/CLI_WRANGLER",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_WRANGLER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_WRANGLER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_WRANGLER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_WRANGLER"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_WRANGLER"
    },
    {
      "key": "CLI_YT_DLP",
      "type": "http",
      "category": "cli",
      "doc": "WHAT: run yt-dlp. ARGS: $1 = args, $2 = cwd. EX: CLI_YT_DLP \"-o ad.mp4 https://...\".",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLI_YT_DLP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLI_YT_DLP",
        "type": "http",
        "what": [
          "WHAT: run yt-dlp. ARGS: $1 = args, $2 = cwd. EX: CLI_YT_DLP \"-o ad.mp4 https://...\"."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "args, $2 = cwd. EX: CLI_YT_DLP \"-o ad.mp4 https://...\".",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLI_YT_DLP]arg1|arg2[/CLI_YT_DLP]",
        "tag": "[CLI_YT_DLP]<arg1>|<arg2>[/CLI_YT_DLP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLI_YT_DLP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLI_YT_DLP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd \\\"$2\\\" 2>/dev/null; yt-dlp $1\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/CLI_YT_DLP",
        "update": "PUT /api/directory/CLI_YT_DLP",
        "patch": "PATCH /api/directory/CLI_YT_DLP",
        "delete": "DELETE /api/directory/CLI_YT_DLP",
        "invoke": "POST /api/dispatch {\"key\":\"CLI_YT_DLP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLI_YT_DLP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLI_YT_DLP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLI_YT_DLP"
      },
      "examples": "[\"--version\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLI_YT_DLP"
    },
    {
      "key": "CLOCK_TICK",
      "type": "http",
      "category": "automation",
      "doc": "WHAT: Fire every automation anchored to a wall-clock hour whose hour has arrived, once per local day. Anchored rows (trigger=clock, at_hour set) never fire on an interval — this is the only path that runs them. WHEN_TO_USE: the every-few-minutes tick calls it; call it by hand to see what is anchored and what is waiting. ARGS: none EX: [CLOCK_TICK][/CLOCK_TICK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOCK_TICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOCK_TICK",
        "type": "http",
        "what": [
          "WHAT: Fire every automation anchored to a wall-clock hour whose hour has arrived, once per local day. Anchored rows (trigger=clock, at_hour set) never fire on an interval — this is the only path that runs them.",
          "WHEN_TO_USE: the every-few-minutes tick calls it; call it by hand to see what is anchored and what is waiting.",
          "ARGS: none",
          "EX: [CLOCK_TICK][/CLOCK_TICK]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOCK_TICK][/CLOCK_TICK]",
        "tag": "[CLOCK_TICK][/CLOCK_TICK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOCK_TICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOCK_TICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/CLOCK_TICK",
        "update": "PUT /api/directory/CLOCK_TICK",
        "patch": "PATCH /api/directory/CLOCK_TICK",
        "delete": "DELETE /api/directory/CLOCK_TICK",
        "invoke": "POST /api/dispatch {\"key\":\"CLOCK_TICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOCK_TICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOCK_TICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOCK_TICK"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLOCK_TICK"
    },
    {
      "key": "CLOUDFLARE",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUDFLARE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUDFLARE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CLOUDFLARE][/CLOUDFLARE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUDFLARE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUDFLARE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUDFLARE",
        "update": "PUT /api/directory/CLOUDFLARE",
        "patch": "PATCH /api/directory/CLOUDFLARE",
        "delete": "DELETE /api/directory/CLOUDFLARE",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUDFLARE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUDFLARE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUDFLARE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUDFLARE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUDFLARE"
    },
    {
      "key": "CLOUD_EXEC",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Run a shell command in this tenant's CLOUD workspace (Cloudflare Container). No Mac involved. WHEN_TO_USE: any ordinary compute — git, node, python, grep, tests, file work — especially when the Mac may be asleep. ARGS: $1+ = the whole shell command line (pipes are preserved). EX: CLOUD_EXEC printf CLOUD_EXEC_OK EX: CLOUD_EXEC cd /workspace/repo && npm test RETURNS: {ok, exit, stdout, stderr, duration_ms, workspace_id, execution_substrate}. A non-zero exit is ok:false with the real exit code.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_EXEC",
        "type": "http",
        "what": [
          "WHAT: Run a shell command in this tenant's CLOUD workspace (Cloudflare Container). No Mac involved.",
          "WHEN_TO_USE: any ordinary compute — git, node, python, grep, tests, file work — especially when the Mac may be asleep.",
          "ARGS: $1+ = the whole shell command line (pipes are preserved).",
          "EX: CLOUD_EXEC printf CLOUD_EXEC_OK",
          "EX: CLOUD_EXEC cd /workspace/repo && npm test",
          "RETURNS: {ok, exit, stdout, stderr, duration_ms, workspace_id, execution_substrate}. A non-zero exit is ok:false with the real exit code."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLOUD_EXEC printf CLOUD_EXEC_OK",
        "tag": "[CLOUD_EXEC]<arg1 …>[/CLOUD_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"bash\",\"args\":[\"-lc\",\"$1+\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/CLOUD_EXEC",
        "update": "PUT /api/directory/CLOUD_EXEC",
        "patch": "PATCH /api/directory/CLOUD_EXEC",
        "delete": "DELETE /api/directory/CLOUD_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_EXEC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_EXEC"
    },
    {
      "key": "CLOUD_EXEC_IN",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Same as CLOUD_EXEC but in a NAMED workspace (a cloned repo, a coding session). ARGS: $1 = workspace_id (from CLOUD_WORKSPACE_NEW), $2+ = the shell command line. EX: CLOUD_EXEC_IN ws_a1b2c3|cd /workspace/repo && git diff",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_EXEC_IN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_EXEC_IN",
        "type": "http",
        "what": [
          "WHAT: Same as CLOUD_EXEC but in a NAMED workspace (a cloned repo, a coding session).",
          "ARGS: $1 = workspace_id (from CLOUD_WORKSPACE_NEW), $2+ = the shell command line.",
          "EX: CLOUD_EXEC_IN ws_a1b2c3|cd /workspace/repo && git diff"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "workspace_id (from CLOUD_WORKSPACE_NEW), $2+ = the shell command line.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLOUD_EXEC_IN ws_a1b2c3|cd /workspace/repo && git diff",
        "tag": "[CLOUD_EXEC_IN]<arg1>|<arg2 …>[/CLOUD_EXEC_IN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_EXEC_IN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_EXEC_IN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"workspace\":\"$1\",\"cmd\":\"bash\",\"args\":[\"-lc\",\"$2+\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/CLOUD_EXEC_IN",
        "update": "PUT /api/directory/CLOUD_EXEC_IN",
        "patch": "PATCH /api/directory/CLOUD_EXEC_IN",
        "delete": "DELETE /api/directory/CLOUD_EXEC_IN",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_EXEC_IN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_EXEC_IN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_EXEC_IN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_EXEC_IN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_EXEC_IN"
    },
    {
      "key": "CLOUD_FLOW_PROOF",
      "type": "flow",
      "category": "cloud",
      "doc": "WHAT: Proof that cloud execution composes like any other capability. STEP 1 reads the clock. STEP 2 runs a command in a container that consumes step 1 via $PREV. STEP 3 upper-cases what the container printed, so the whole chain is visible in one result. No cloud-specific flow code exists.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_FLOW_PROOF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_FLOW_PROOF",
        "type": "flow",
        "what": [
          "WHAT: Proof that cloud execution composes like any other capability.",
          "STEP 1 reads the clock. STEP 2 runs a command in a container that consumes step 1 via $PREV.",
          "STEP 3 upper-cases what the container printed, so the whole chain is visible in one result. No cloud-specific flow code exists."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[CLOUD_FLOW_PROOF][/CLOUD_FLOW_PROOF]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_FLOW_PROOF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_FLOW_PROOF  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_FLOW_PROOF",
        "update": "PUT /api/directory/CLOUD_FLOW_PROOF",
        "patch": "PATCH /api/directory/CLOUD_FLOW_PROOF",
        "delete": "DELETE /api/directory/CLOUD_FLOW_PROOF",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_FLOW_PROOF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_FLOW_PROOF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_FLOW_PROOF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_FLOW_PROOF"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_FLOW_PROOF"
    },
    {
      "key": "CLOUD_HEALTH",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Machine-readable health of the WHOLE execution plane: cloud sandbox, Mac bridge, active workspaces, jobs by state. WHEN_TO_USE: before deciding a capability cannot run. \"Mac offline\" is not \"cannot execute\". RETURNS: {cloud_available, edge_available, substrates:{cloudflare_sandbox, mac_bridge}, workspaces_active, jobs}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_HEALTH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_HEALTH",
        "type": "http",
        "what": [
          "WHAT: Machine-readable health of the WHOLE execution plane: cloud sandbox, Mac bridge, active workspaces, jobs by state.",
          "WHEN_TO_USE: before deciding a capability cannot run. \"Mac offline\" is not \"cannot execute\".",
          "RETURNS: {cloud_available, edge_available, substrates:{cloudflare_sandbox, mac_bridge}, workspaces_active, jobs}"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLOUD_HEALTH][/CLOUD_HEALTH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_HEALTH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_HEALTH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_HEALTH",
        "update": "PUT /api/directory/CLOUD_HEALTH",
        "patch": "PATCH /api/directory/CLOUD_HEALTH",
        "delete": "DELETE /api/directory/CLOUD_HEALTH",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_HEALTH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_HEALTH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_HEALTH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_HEALTH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_HEALTH"
    },
    {
      "key": "CLOUD_JOB_CANCEL",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Cancel a running cloud job. ARGS: $1 = job_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_JOB_CANCEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_JOB_CANCEL",
        "type": "http",
        "what": [
          "WHAT: Cancel a running cloud job. ARGS: $1 = job_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "job_id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_JOB_CANCEL]arg1[/CLOUD_JOB_CANCEL]",
        "tag": "[CLOUD_JOB_CANCEL]<arg1>[/CLOUD_JOB_CANCEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_JOB_CANCEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_JOB_CANCEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"id\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_JOB_CANCEL",
        "update": "PUT /api/directory/CLOUD_JOB_CANCEL",
        "patch": "PATCH /api/directory/CLOUD_JOB_CANCEL",
        "delete": "DELETE /api/directory/CLOUD_JOB_CANCEL",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_JOB_CANCEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_JOB_CANCEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_JOB_CANCEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_JOB_CANCEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_JOB_CANCEL"
    },
    {
      "key": "CLOUD_JOB_LIST",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: This tenant's cloud jobs, newest first.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_JOB_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_JOB_LIST",
        "type": "http",
        "what": [
          "WHAT: This tenant's cloud jobs, newest first."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLOUD_JOB_LIST][/CLOUD_JOB_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_JOB_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_JOB_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_JOB_LIST",
        "update": "PUT /api/directory/CLOUD_JOB_LIST",
        "patch": "PATCH /api/directory/CLOUD_JOB_LIST",
        "delete": "DELETE /api/directory/CLOUD_JOB_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_JOB_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_JOB_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_JOB_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_JOB_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_JOB_LIST"
    },
    {
      "key": "CLOUD_JOB_START",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Start a LONG job that outlives the request that started it (Cloudflare Workflow + Sandbox). Returns a job id immediately. WHEN_TO_USE: builds, test suites, long clones, anything past a normal HTTP lifetime. ARGS: $1 = workspace_id (blank = default), $2+ = the shell script to run. EX: CLOUD_JOB_START |npm ci && npm test EX: CLOUD_JOB_START ws_a1b2|seq 1 60 | xargs -I{} sh -c \"echo tick {} && sleep 2\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_JOB_START",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_JOB_START",
        "type": "http",
        "what": [
          "WHAT: Start a LONG job that outlives the request that started it (Cloudflare Workflow + Sandbox). Returns a job id immediately.",
          "WHEN_TO_USE: builds, test suites, long clones, anything past a normal HTTP lifetime.",
          "ARGS: $1 = workspace_id (blank = default), $2+ = the shell script to run.",
          "EX: CLOUD_JOB_START |npm ci && npm test",
          "EX: CLOUD_JOB_START ws_a1b2|seq 1 60 | xargs -I{} sh -c \"echo tick {} && sleep 2\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "workspace_id (blank = default), $2+ = the shell script to run.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a job id immediately.",
        "example": "CLOUD_JOB_START |npm ci && npm test",
        "tag": "[CLOUD_JOB_START]<arg1>|<arg2 …>[/CLOUD_JOB_START]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_JOB_START\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_JOB_START  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"workspace\":\"$1\",\"script\":\"$2+\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_JOB_START",
        "update": "PUT /api/directory/CLOUD_JOB_START",
        "patch": "PATCH /api/directory/CLOUD_JOB_START",
        "delete": "DELETE /api/directory/CLOUD_JOB_START",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_JOB_START\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_JOB_START\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_JOB_START\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_JOB_START"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_JOB_START"
    },
    {
      "key": "CLOUD_JOB_STATUS",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Read a cloud job: state, exit_code, stdout/stderr head, R2 keys for the full output. ARGS: $1 = job_id. States: running | done | failed | timeout | interrupted | cancelled.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_JOB_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_JOB_STATUS",
        "type": "http",
        "what": [
          "WHAT: Read a cloud job: state, exit_code, stdout/stderr head, R2 keys for the full output.",
          "ARGS: $1 = job_id. States: running | done | failed | timeout | interrupted | cancelled."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "job_id. States: running | done | failed | timeout | interrupted | cancelled.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_JOB_STATUS]arg1[/CLOUD_JOB_STATUS]",
        "tag": "[CLOUD_JOB_STATUS]<arg1>[/CLOUD_JOB_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_JOB_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_JOB_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_JOB_STATUS",
        "update": "PUT /api/directory/CLOUD_JOB_STATUS",
        "patch": "PATCH /api/directory/CLOUD_JOB_STATUS",
        "delete": "DELETE /api/directory/CLOUD_JOB_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_JOB_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_JOB_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_JOB_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_JOB_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_JOB_STATUS"
    },
    {
      "key": "CLOUD_TERMINAL_CLOSE",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Close a cloud terminal session. ARGS: $1 = terminal_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_TERMINAL_CLOSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_TERMINAL_CLOSE",
        "type": "http",
        "what": [
          "WHAT: Close a cloud terminal session. ARGS: $1 = terminal_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "terminal_id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_TERMINAL_CLOSE]arg1[/CLOUD_TERMINAL_CLOSE]",
        "tag": "[CLOUD_TERMINAL_CLOSE]<arg1>[/CLOUD_TERMINAL_CLOSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_TERMINAL_CLOSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_TERMINAL_CLOSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"terminal_id\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_TERMINAL_CLOSE",
        "update": "PUT /api/directory/CLOUD_TERMINAL_CLOSE",
        "patch": "PATCH /api/directory/CLOUD_TERMINAL_CLOSE",
        "delete": "DELETE /api/directory/CLOUD_TERMINAL_CLOSE",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_TERMINAL_CLOSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_TERMINAL_CLOSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_TERMINAL_CLOSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_TERMINAL_CLOSE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_TERMINAL_CLOSE"
    },
    {
      "key": "CLOUD_TERMINAL_NEW",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Open a persistent shell session in a cloud workspace. cwd and exported vars survive between sends. ARGS: $1 = workspace_id (blank = the tenant default workspace).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_TERMINAL_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_TERMINAL_NEW",
        "type": "http",
        "what": [
          "WHAT: Open a persistent shell session in a cloud workspace. cwd and exported vars survive between sends.",
          "ARGS: $1 = workspace_id (blank = the tenant default workspace)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "workspace_id (blank = the tenant default workspace).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_TERMINAL_NEW]arg1[/CLOUD_TERMINAL_NEW]",
        "tag": "[CLOUD_TERMINAL_NEW]<arg1>[/CLOUD_TERMINAL_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_TERMINAL_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_TERMINAL_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"workspace\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_TERMINAL_NEW",
        "update": "PUT /api/directory/CLOUD_TERMINAL_NEW",
        "patch": "PATCH /api/directory/CLOUD_TERMINAL_NEW",
        "delete": "DELETE /api/directory/CLOUD_TERMINAL_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_TERMINAL_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_TERMINAL_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_TERMINAL_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_TERMINAL_NEW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_TERMINAL_NEW"
    },
    {
      "key": "CLOUD_TERMINAL_SEND",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Run a line in an open cloud terminal and read its output. ARGS: $1 = terminal_id, $2+ = the line. EX: CLOUD_TERMINAL_SEND term_ab12|cd /workspace && pwd",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_TERMINAL_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_TERMINAL_SEND",
        "type": "http",
        "what": [
          "WHAT: Run a line in an open cloud terminal and read its output.",
          "ARGS: $1 = terminal_id, $2+ = the line.",
          "EX: CLOUD_TERMINAL_SEND term_ab12|cd /workspace && pwd"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "terminal_id, $2+ = the line.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLOUD_TERMINAL_SEND term_ab12|cd /workspace && pwd",
        "tag": "[CLOUD_TERMINAL_SEND]<arg1>|<arg2 …>[/CLOUD_TERMINAL_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_TERMINAL_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_TERMINAL_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"terminal_id\":\"$1\",\"input\":\"$2+\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_TERMINAL_SEND",
        "update": "PUT /api/directory/CLOUD_TERMINAL_SEND",
        "patch": "PATCH /api/directory/CLOUD_TERMINAL_SEND",
        "delete": "DELETE /api/directory/CLOUD_TERMINAL_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_TERMINAL_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_TERMINAL_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_TERMINAL_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_TERMINAL_SEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_TERMINAL_SEND"
    },
    {
      "key": "CLOUD_WORKSPACE_DESTROY",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Destroy the container. The RECORD of the workspace and its jobs is kept on purpose. ARGS: $1 = workspace_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_WORKSPACE_DESTROY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_WORKSPACE_DESTROY",
        "type": "http",
        "what": [
          "WHAT: Destroy the container. The RECORD of the workspace and its jobs is kept on purpose.",
          "ARGS: $1 = workspace_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "workspace_id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_WORKSPACE_DESTROY]arg1[/CLOUD_WORKSPACE_DESTROY]",
        "tag": "[CLOUD_WORKSPACE_DESTROY]<arg1>[/CLOUD_WORKSPACE_DESTROY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_WORKSPACE_DESTROY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_WORKSPACE_DESTROY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"id\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_WORKSPACE_DESTROY",
        "update": "PUT /api/directory/CLOUD_WORKSPACE_DESTROY",
        "patch": "PATCH /api/directory/CLOUD_WORKSPACE_DESTROY",
        "delete": "DELETE /api/directory/CLOUD_WORKSPACE_DESTROY",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_WORKSPACE_DESTROY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_WORKSPACE_DESTROY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_WORKSPACE_DESTROY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_WORKSPACE_DESTROY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_WORKSPACE_DESTROY"
    },
    {
      "key": "CLOUD_WORKSPACE_LIST",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Every cloud workspace this tenant owns.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_WORKSPACE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_WORKSPACE_LIST",
        "type": "http",
        "what": [
          "WHAT: Every cloud workspace this tenant owns."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[CLOUD_WORKSPACE_LIST][/CLOUD_WORKSPACE_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_WORKSPACE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_WORKSPACE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_WORKSPACE_LIST",
        "update": "PUT /api/directory/CLOUD_WORKSPACE_LIST",
        "patch": "PATCH /api/directory/CLOUD_WORKSPACE_LIST",
        "delete": "DELETE /api/directory/CLOUD_WORKSPACE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_WORKSPACE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_WORKSPACE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_WORKSPACE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_WORKSPACE_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_WORKSPACE_LIST"
    },
    {
      "key": "CLOUD_WORKSPACE_NEW",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: Create a durable cloud workspace, optionally cloning a git repo into it. ARGS: $1 = name, $2 = git repo URL (optional), $3 = fixed workspace id (optional). EX: CLOUD_WORKSPACE_NEW review|https://github.com/octocat/Hello-World.git RETURNS: {ok, workspace_id, sandbox_id, cwd, clone:{ok,exit,dir,path}}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_WORKSPACE_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_WORKSPACE_NEW",
        "type": "http",
        "what": [
          "WHAT: Create a durable cloud workspace, optionally cloning a git repo into it.",
          "ARGS: $1 = name, $2 = git repo URL (optional), $3 = fixed workspace id (optional).",
          "EX: CLOUD_WORKSPACE_NEW review|https://github.com/octocat/Hello-World.git",
          "RETURNS: {ok, workspace_id, sandbox_id, cwd, clone:{ok,exit,dir,path}}"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "name, $2 = git repo URL (optional), $3 = fixed workspace id (optional).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "CLOUD_WORKSPACE_NEW review|https://github.com/octocat/Hello-World.git",
        "tag": "[CLOUD_WORKSPACE_NEW]<arg1>|<arg2>|<arg3>[/CLOUD_WORKSPACE_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_WORKSPACE_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_WORKSPACE_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\":\"$1\",\"repo\":\"$2\",\"id\":\"$3\"}",
      "edit": {
        "read": "GET /api/directory/CLOUD_WORKSPACE_NEW",
        "update": "PUT /api/directory/CLOUD_WORKSPACE_NEW",
        "patch": "PATCH /api/directory/CLOUD_WORKSPACE_NEW",
        "delete": "DELETE /api/directory/CLOUD_WORKSPACE_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_WORKSPACE_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_WORKSPACE_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_WORKSPACE_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_WORKSPACE_NEW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_WORKSPACE_NEW"
    },
    {
      "key": "CLOUD_WORKSPACE_STATUS",
      "type": "http",
      "category": "cloud",
      "doc": "WHAT: One workspace: record + a live probe of whether its container is running. ARGS: $1 = workspace_id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CLOUD_WORKSPACE_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CLOUD_WORKSPACE_STATUS",
        "type": "http",
        "what": [
          "WHAT: One workspace: record + a live probe of whether its container is running.",
          "ARGS: $1 = workspace_id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "workspace_id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CLOUD_WORKSPACE_STATUS]arg1[/CLOUD_WORKSPACE_STATUS]",
        "tag": "[CLOUD_WORKSPACE_STATUS]<arg1>[/CLOUD_WORKSPACE_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CLOUD_WORKSPACE_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CLOUD_WORKSPACE_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CLOUD_WORKSPACE_STATUS",
        "update": "PUT /api/directory/CLOUD_WORKSPACE_STATUS",
        "patch": "PATCH /api/directory/CLOUD_WORKSPACE_STATUS",
        "delete": "DELETE /api/directory/CLOUD_WORKSPACE_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"CLOUD_WORKSPACE_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CLOUD_WORKSPACE_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CLOUD_WORKSPACE_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CLOUD_WORKSPACE_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CLOUD_WORKSPACE_STATUS"
    },
    {
      "key": "CODE_AUDIT",
      "type": "agent",
      "category": "llm",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CODE_AUDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CODE_AUDIT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CODE_AUDIT][/CODE_AUDIT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CODE_AUDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CODE_AUDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CODE_AUDIT",
        "update": "PUT /api/directory/CODE_AUDIT",
        "patch": "PATCH /api/directory/CODE_AUDIT",
        "delete": "DELETE /api/directory/CODE_AUDIT",
        "invoke": "POST /api/dispatch {\"key\":\"CODE_AUDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CODE_AUDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CODE_AUDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CODE_AUDIT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CODE_AUDIT"
    },
    {
      "key": "CODE_LEASE_COMMIT",
      "type": "fn",
      "category": "infra",
      "doc": "WHAT: Close a coding lease with the sha256 of every file as you are leaving it. Refused with 409 and the conflicting lease named if another agent committed one of your files after your lease opened. WHY: the refusal is the whole point. A refused commit means your edit was about to erase work that landed while you were writing. Re-read the file, redo the edit on the new version, commit again. HOW: compares each declared base_sha against the newest committed sha for that path. All paths must clear or nothing is recorded. WHEN_TO_USE: immediately before git commit, every time. ARGS: $1 = lease id from CODE_LEASE_START. $2 = a JSON array [{\"path\":\"…\",\"new_sha\":\"…\"},…]. EX: [CODE_LEASE_COMMIT]lease_ab12cd34|[{\"path\":\"functions/a/[slug].js\",\"new_sha\":\"71ba…\"}][/CODE_LEASE_COMMIT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CODE_LEASE_COMMIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CODE_LEASE_COMMIT",
        "type": "fn",
        "what": [
          "WHAT: Close a coding lease with the sha256 of every file as you are leaving it. Refused with 409 and the conflicting lease named if another agent committed one of your files after your lease opened.",
          "WHY: the refusal is the whole point. A refused commit means your edit was about to erase work that landed while you were writing. Re-read the file, redo the edit on the new version, commit again.",
          "HOW: compares each declared base_sha against the newest committed sha for that path. All paths must clear or nothing is recorded.",
          "WHEN_TO_USE: immediately before git commit, every time.",
          "ARGS: $1 = lease id from CODE_LEASE_START. $2 = a JSON array [{\"path\":\"…\",\"new_sha\":\"…\"},…].",
          "EX: [CODE_LEASE_COMMIT]lease_ab12cd34|[{\"path\":\"functions/a/[slug].js\",\"new_sha\":\"71ba…\"}][/CODE_LEASE_COMMIT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "lease id from CODE_LEASE_START. $2 = a JSON array [{\"path\":\"…\",\"new_sha\":\"…\"},…].",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CODE_LEASE_COMMIT]lease_ab12cd34|[{\"path\":\"functions/a/[slug].js\",\"new_sha\":\"71ba…\"}][/CODE_LEASE_COMMIT]",
        "tag": "[CODE_LEASE_COMMIT]<arg1>|<arg2>[/CODE_LEASE_COMMIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CODE_LEASE_COMMIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CODE_LEASE_COMMIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/CODE_LEASE_COMMIT",
        "update": "PUT /api/directory/CODE_LEASE_COMMIT",
        "patch": "PATCH /api/directory/CODE_LEASE_COMMIT",
        "delete": "DELETE /api/directory/CODE_LEASE_COMMIT",
        "invoke": "POST /api/dispatch {\"key\":\"CODE_LEASE_COMMIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CODE_LEASE_COMMIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CODE_LEASE_COMMIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CODE_LEASE_COMMIT"
      },
      "examples": "[\"lease_ab12cd34|[{\\\"path\\\":\\\"functions/a/[slug].js\\\",\\\"new_sha\\\":\\\"71ba\\u2026\\\"}]\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CODE_LEASE_COMMIT"
    },
    {
      "key": "CODE_LEASE_START",
      "type": "fn",
      "category": "infra",
      "doc": "WHAT: Open a coding lease. You declare the files you are about to edit and the sha256 of each file's contents as you just read them. Returns a lease id and a start hash. WHY: two agents reading the same file at the same version both edit from it, and the second commit erases the first. Both commits look valid on their own. The declared base version is what makes the collision detectable. HOW: records {path, base_sha} for every file. At commit the server compares your base_sha against the last sha any other lease committed for that path. WHEN_TO_USE: before your first edit of a session, always. A lease opened at commit time can only report a collision that already happened. ARGS: $1 = your agent name. $2 = a JSON array [{\"path\":\"functions/x.js\",\"base_sha\":\"<sha256 of what you read>\"},…]. $3 = one line saying what the work is. EX: [CODE_LEASE_START]claude:7d88e44e|[{\"path\":\"functions/a/[slug].js\",\"base_sha\":\"9f2c…\"}]|add the ledger thread to every article[/CODE_LEASE_START]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CODE_LEASE_START",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CODE_LEASE_START",
        "type": "fn",
        "what": [
          "WHAT: Open a coding lease. You declare the files you are about to edit and the sha256 of each file's contents as you just read them. Returns a lease id and a start hash.",
          "WHY: two agents reading the same file at the same version both edit from it, and the second commit erases the first. Both commits look valid on their own. The declared base version is what makes the collision detectable.",
          "HOW: records {path, base_sha} for every file. At commit the server compares your base_sha against the last sha any other lease committed for that path.",
          "WHEN_TO_USE: before your first edit of a session, always. A lease opened at commit time can only report a collision that already happened.",
          "ARGS: $1 = your agent name. $2 = a JSON array [{\"path\":\"functions/x.js\",\"base_sha\":\"<sha256 of what you read>\"},…]. $3 = one line saying what the work is.",
          "EX: [CODE_LEASE_START]claude:7d88e44e|[{\"path\":\"functions/a/[slug].js\",\"base_sha\":\"9f2c…\"}]|add the ledger thread to every article[/CODE_LEASE_START]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "your agent name. $2 = a JSON array [{\"path\":\"functions/x.js\",\"base_sha\":\"<sha256 of what you read>\"},…]. $3 = one line saying what the work is.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a lease id and a start hash.",
        "example": "[CODE_LEASE_START]claude:7d88e44e|[{\"path\":\"functions/a/[slug].js\",\"base_sha\":\"9f2c…\"}]|add the ledger thread to every article[/CODE_LEASE_START]",
        "tag": "[CODE_LEASE_START]<arg1>|<arg2>|<arg3>[/CODE_LEASE_START]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CODE_LEASE_START\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CODE_LEASE_START  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/CODE_LEASE_START",
        "update": "PUT /api/directory/CODE_LEASE_START",
        "patch": "PATCH /api/directory/CODE_LEASE_START",
        "delete": "DELETE /api/directory/CODE_LEASE_START",
        "invoke": "POST /api/dispatch {\"key\":\"CODE_LEASE_START\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CODE_LEASE_START\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CODE_LEASE_START\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CODE_LEASE_START"
      },
      "examples": "[\"claude:7d88e44e|[{\\\"path\\\":\\\"functions/a/[slug].js\\\",\\\"base_sha\\\":\\\"9f2c\\u2026\\\"}]|add the ledger thread to every article\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CODE_LEASE_START"
    },
    {
      "key": "CODE_MODE",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CODE_MODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CODE_MODE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CODE_MODE][/CODE_MODE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CODE_MODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CODE_MODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CODE_MODE",
        "update": "PUT /api/directory/CODE_MODE",
        "patch": "PATCH /api/directory/CODE_MODE",
        "delete": "DELETE /api/directory/CODE_MODE",
        "invoke": "POST /api/dispatch {\"key\":\"CODE_MODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CODE_MODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CODE_MODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CODE_MODE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CODE_MODE"
    },
    {
      "key": "COMPLIANCE_GATE",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Ask a bounded compliance card to authorize a consequential operation. Proves the card is executable state: a currently valid, in-scope, correct-version, in-jurisdiction, within-risk, dissent-clear, correctly-certified card permits; anything else returns a typed, receipted denial. Uses a safe demonstration operation and never gates production-critical behavior. ARGS: JSON {card_id,requested_action,system_version?,jurisdiction?,risk?,required_certifier_type?,presented_card_hash?,require_no_standing_dissent?,actor?}. TESTS: Denials are typed (CARD_NOT_FOUND, FORGED_HASH, EXPIRED, REVOKED, SUPERSEDED, WRONG_SYSTEM_VERSION, ACTION_OUT_OF_SCOPE, WRONG_JURISDICTION, RISK_CEILING_EXCEEDED, STANDING_DISSENT_BLOCKS, UNQUALIFIED_CERTIFIER); every resolution is append-only; a forged card hash never permits.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "COMPLIANCE_GATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "COMPLIANCE_GATE",
        "type": "http",
        "what": [
          "WHAT: Ask a bounded compliance card to authorize a consequential operation. Proves the card is executable state: a currently valid, in-scope, correct-version, in-jurisdiction, within-risk, dissent-clear, correctly-certified card permits; anything else returns a typed, receipted denial. Uses a safe demonstration operation and never gates production-critical behavior.",
          "ARGS: JSON {card_id,requested_action,system_version?,jurisdiction?,risk?,required_certifier_type?,presented_card_hash?,require_no_standing_dissent?,actor?}.",
          "TESTS: Denials are typed (CARD_NOT_FOUND, FORGED_HASH, EXPIRED, REVOKED, SUPERSEDED, WRONG_SYSTEM_VERSION, ACTION_OUT_OF_SCOPE, WRONG_JURISDICTION, RISK_CEILING_EXCEEDED, STANDING_DISSENT_BLOCKS, UNQUALIFIED_CERTIFIER); every resolution is append-only; a forged card hash never permits."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a typed, receipted denial. Uses a safe demonstration operation and never gates production-critical behavior.",
        "example": "[COMPLIANCE_GATE]arg1[/COMPLIANCE_GATE]",
        "tag": "[COMPLIANCE_GATE]<arg1 …>[/COMPLIANCE_GATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"COMPLIANCE_GATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/COMPLIANCE_GATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/COMPLIANCE_GATE",
        "update": "PUT /api/directory/COMPLIANCE_GATE",
        "patch": "PATCH /api/directory/COMPLIANCE_GATE",
        "delete": "DELETE /api/directory/COMPLIANCE_GATE",
        "invoke": "POST /api/dispatch {\"key\":\"COMPLIANCE_GATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"COMPLIANCE_GATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"COMPLIANCE_GATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/COMPLIANCE_GATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=COMPLIANCE_GATE"
    },
    {
      "key": "COMPUTER",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "COMPUTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "COMPUTER",
        "type": "agent",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[COMPUTER]arg1|arg2[/COMPUTER]",
        "tag": "[COMPUTER]<arg1>|<arg2>[/COMPUTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"COMPUTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/COMPUTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/COMPUTER",
        "update": "PUT /api/directory/COMPUTER",
        "patch": "PATCH /api/directory/COMPUTER",
        "delete": "DELETE /api/directory/COMPUTER",
        "invoke": "POST /api/dispatch {\"key\":\"COMPUTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"COMPUTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"COMPUTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/COMPUTER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=COMPUTER"
    },
    {
      "key": "CONSCIENCE_GATE",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: The Good Conscience Law — the veto between \"can execute\" and \"will execute\". MAY_ACT = authority AND evidence AND conscience; logical economics optimizes only among MAY_ACT=true actions. Empty body returns the constitution (build-conscience@1.0.0, clauses GC1-GC8). A REFUSE/ESCALATE/HALT verdict is rejected unless it names the violated clause, the prohibited consequence, the job's direct causal contribution, and evidence — refusal binds to a named clause, never to free moralizing. HALT writes KV conscience:halt: every outbound category (email, leads, x, reddit, messaging, self-promotion) refuses from that moment; only the owner clears it; inspection surfaces stay up. WHEN_TO_USE: before the build accepts any job or takes any consequential outbound action; when work smells like it violates the floor; \"should the build do this at all\". SAFETY: money, efficiency, owner instruction, or customer demand never compensate for a conscience failure. Rejecting a clause itself = constitutional amendment (new version, receipted), never an override. ARGS: $1 = empty (list clauses) OR JSON {job, verdict:ACCEPT|REFUSE|ESCALATE|HALT, violated_clause?, prohibited_consequence?, causal_contribution?, evidence?, notes?} EX: [CONSCIENCE_GATE][/CONSCIENCE_GATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONSCIENCE_GATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONSCIENCE_GATE",
        "type": "fn",
        "what": [
          "WHAT: The Good Conscience Law — the veto between \"can execute\" and \"will execute\". MAY_ACT = authority AND evidence AND conscience; logical economics optimizes only among MAY_ACT=true actions. Empty body returns the constitution (build-conscience@1.0.0, clauses GC1-GC8). A REFUSE/ESCALATE/HALT verdict is rejected unless it names the violated clause, the prohibited consequence, the job's direct causal contribution, and evidence — refusal binds to a named clause, never to free moralizing. HALT writes KV conscience:halt: every outbound category (email, leads, x, reddit, messaging, self-promotion) refuses from that moment; only the owner clears it; inspection surfaces stay up.",
          "WHEN_TO_USE: before the build accepts any job or takes any consequential outbound action; when work smells like it violates the floor; \"should the build do this at all\".",
          "SAFETY: money, efficiency, owner instruction, or customer demand never compensate for a conscience failure. Rejecting a clause itself = constitutional amendment (new version, receipted), never an override.",
          "ARGS: $1 = empty (list clauses) OR JSON {job, verdict:ACCEPT|REFUSE|ESCALATE|HALT, violated_clause?, prohibited_consequence?, causal_contribution?, evidence?, notes?}",
          "EX: [CONSCIENCE_GATE][/CONSCIENCE_GATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "empty (list clauses) OR JSON {job, verdict:ACCEPT|REFUSE|ESCALATE|HALT, violated_clause?, prohibited_consequence?, causal_contribution?, evidence?, notes?}",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the constitution (build-conscience@1.0.0, clauses GC1-GC8). A REFUSE/ESCALATE/HALT verdict is rejected unless it names the violated clause, the prohibited consequence, the job's direct causal contribution, and evidence — refusal binds to a named clause, never to free moralizing. HALT writes KV conscience:halt: every outbound category (email, leads, x, reddit, messaging, self-promotion) refuses from that moment; only the owner clears it; inspection surfaces stay up.",
        "example": "[CONSCIENCE_GATE][/CONSCIENCE_GATE]",
        "tag": "[CONSCIENCE_GATE]<arg1>[/CONSCIENCE_GATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONSCIENCE_GATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONSCIENCE_GATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "\"$1\"",
      "edit": {
        "read": "GET /api/directory/CONSCIENCE_GATE",
        "update": "PUT /api/directory/CONSCIENCE_GATE",
        "patch": "PATCH /api/directory/CONSCIENCE_GATE",
        "delete": "DELETE /api/directory/CONSCIENCE_GATE",
        "invoke": "POST /api/dispatch {\"key\":\"CONSCIENCE_GATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONSCIENCE_GATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONSCIENCE_GATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONSCIENCE_GATE"
      },
      "examples": "[\"test veto: is a refusal an answer not an obstacle?\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONSCIENCE_GATE"
    },
    {
      "key": "CONSTITUTION_V1_4_0",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONSTITUTION_V1_4_0",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONSTITUTION_V1_4_0",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CONSTITUTION_V1_4_0][/CONSTITUTION_V1_4_0]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONSTITUTION_V1_4_0\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONSTITUTION_V1_4_0  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CONSTITUTION_V1_4_0",
        "update": "PUT /api/directory/CONSTITUTION_V1_4_0",
        "patch": "PATCH /api/directory/CONSTITUTION_V1_4_0",
        "delete": "DELETE /api/directory/CONSTITUTION_V1_4_0",
        "invoke": "POST /api/dispatch {\"key\":\"CONSTITUTION_V1_4_0\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONSTITUTION_V1_4_0\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONSTITUTION_V1_4_0\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONSTITUTION_V1_4_0"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONSTITUTION_V1_4_0"
    },
    {
      "key": "CONTACTS_LIST",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: List contact objects with optional filter. ARGS: $1 = JSON {status?,segment?,city?,limit?} or a bare status word. EX: [CONTACTS_LIST]drafted[/CONTACTS_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONTACTS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONTACTS_LIST",
        "type": "fn",
        "what": [
          "WHAT: List contact objects with optional filter.",
          "ARGS: $1 = JSON {status?,segment?,city?,limit?} or a bare status word.",
          "EX: [CONTACTS_LIST]drafted[/CONTACTS_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "drafted",
            "desc": "JSON {status?,segment?,city?,limit?} or a bare status word.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CONTACTS_LIST]drafted[/CONTACTS_LIST]",
        "tag": "[CONTACTS_LIST]<drafted>[/CONTACTS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONTACTS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONTACTS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/CONTACTS_LIST",
        "update": "PUT /api/directory/CONTACTS_LIST",
        "patch": "PATCH /api/directory/CONTACTS_LIST",
        "delete": "DELETE /api/directory/CONTACTS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CONTACTS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONTACTS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONTACTS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONTACTS_LIST"
      },
      "examples": "[\"drafted\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONTACTS_LIST"
    },
    {
      "key": "CONTACT_GET",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: Get a lead as a canonical CONTACT object (channels, fit score, signals, provenance). ARGS: $1 = lead id or contact:<id>. EX: [CONTACT_GET]811[/CONTACT_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONTACT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONTACT_GET",
        "type": "fn",
        "what": [
          "WHAT: Get a lead as a canonical CONTACT object (channels, fit score, signals, provenance).",
          "ARGS: $1 = lead id or contact:<id>.",
          "EX: [CONTACT_GET]811[/CONTACT_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "811",
            "desc": "lead id or contact:<id>.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CONTACT_GET]811[/CONTACT_GET]",
        "tag": "[CONTACT_GET]<811>[/CONTACT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONTACT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONTACT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/CONTACT_GET",
        "update": "PUT /api/directory/CONTACT_GET",
        "patch": "PATCH /api/directory/CONTACT_GET",
        "delete": "DELETE /api/directory/CONTACT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CONTACT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONTACT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONTACT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONTACT_GET"
      },
      "examples": "[\"107693\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONTACT_GET"
    },
    {
      "key": "CONTENT_GET",
      "type": "flow",
      "category": "content-ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONTENT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONTENT_GET",
        "type": "flow",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[CONTENT_GET]arg1[/CONTENT_GET]",
        "tag": "[CONTENT_GET]<arg1>[/CONTENT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONTENT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONTENT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CONTENT_GET",
        "update": "PUT /api/directory/CONTENT_GET",
        "patch": "PATCH /api/directory/CONTENT_GET",
        "delete": "DELETE /api/directory/CONTENT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"CONTENT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONTENT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONTENT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONTENT_GET"
      },
      "examples": "[\"protocol\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONTENT_GET"
    },
    {
      "key": "CONTENT_LIST",
      "type": "flow",
      "category": "content-ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONTENT_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONTENT_LIST",
        "type": "flow",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[CONTENT_LIST][/CONTENT_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONTENT_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONTENT_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CONTENT_LIST",
        "update": "PUT /api/directory/CONTENT_LIST",
        "patch": "PATCH /api/directory/CONTENT_LIST",
        "delete": "DELETE /api/directory/CONTENT_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CONTENT_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONTENT_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONTENT_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONTENT_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONTENT_LIST"
    },
    {
      "key": "CONTENT_SEARCH",
      "type": "flow",
      "category": "content-ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CONTENT_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CONTENT_SEARCH",
        "type": "flow",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[CONTENT_SEARCH]arg1[/CONTENT_SEARCH]",
        "tag": "[CONTENT_SEARCH]<arg1>[/CONTENT_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CONTENT_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CONTENT_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CONTENT_SEARCH",
        "update": "PUT /api/directory/CONTENT_SEARCH",
        "patch": "PATCH /api/directory/CONTENT_SEARCH",
        "delete": "DELETE /api/directory/CONTENT_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"CONTENT_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CONTENT_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CONTENT_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CONTENT_SEARCH"
      },
      "examples": "[\"peptide\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CONTENT_SEARCH"
    },
    {
      "key": "COST_REPORT",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Cost summary: total turns, total USD, average USD/turn, and the 10 priciest recent turns WHEN_TO_USE: you need to cost report ARGS: none EX: [COST_REPORT][/COST_REPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "COST_REPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "COST_REPORT",
        "type": "fn",
        "what": [
          "WHAT: Cost summary: total turns, total USD, average USD/turn, and the 10 priciest recent turns",
          "WHEN_TO_USE: you need to cost report",
          "ARGS: none",
          "EX: [COST_REPORT][/COST_REPORT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[COST_REPORT][/COST_REPORT]",
        "tag": "[COST_REPORT][/COST_REPORT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"COST_REPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/COST_REPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT (SELECT COUNT(*) FROM turn_costs) AS turns, (SELECT ROUND(SUM(cost),4) FROM turn_costs) AS total_usd, (SELECT ROUND(AVG(cost),5) FROM turn_costs) AS avg_usd_per_turn\"]",
      "edit": {
        "read": "GET /api/directory/COST_REPORT",
        "update": "PUT /api/directory/COST_REPORT",
        "patch": "PATCH /api/directory/COST_REPORT",
        "delete": "DELETE /api/directory/COST_REPORT",
        "invoke": "POST /api/dispatch {\"key\":\"COST_REPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"COST_REPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"COST_REPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/COST_REPORT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=COST_REPORT"
    },
    {
      "key": "CPC_DELTA_V1",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Methodology CPC_DELTA_V1, version 1: percentage change in cost per click between a baseline window and a test window, from two Meta insights receipts. Rows with zero clicks are excluded; a window with zero clicks makes the claim EVIDENCE_MISSING. Grade ceiling: method-reproducible. WHEN_TO_USE: a claim about a change in cost per click. ARGS: none EX: [CPC_DELTA_V1][/CPC_DELTA_V1] TESTS: Returns the definition, evidence list and exclusions.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CPC_DELTA_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CPC_DELTA_V1",
        "type": "fn",
        "what": [
          "WHAT: Methodology CPC_DELTA_V1, version 1: percentage change in cost per click between a baseline window and a test window, from two Meta insights receipts. Rows with zero clicks are excluded; a window with zero clicks makes the claim EVIDENCE_MISSING. Grade ceiling: method-reproducible.",
          "WHEN_TO_USE: a claim about a change in cost per click.",
          "ARGS: none",
          "EX: [CPC_DELTA_V1][/CPC_DELTA_V1]",
          "TESTS: Returns the definition, evidence list and exclusions."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the definition, evidence list and exclusions.",
        "example": "[CPC_DELTA_V1][/CPC_DELTA_V1]",
        "tag": "[CPC_DELTA_V1][/CPC_DELTA_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CPC_DELTA_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CPC_DELTA_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"CPC_DELTA_V1\"]",
      "edit": {
        "read": "GET /api/directory/CPC_DELTA_V1",
        "update": "PUT /api/directory/CPC_DELTA_V1",
        "patch": "PATCH /api/directory/CPC_DELTA_V1",
        "delete": "DELETE /api/directory/CPC_DELTA_V1",
        "invoke": "POST /api/dispatch {\"key\":\"CPC_DELTA_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CPC_DELTA_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CPC_DELTA_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CPC_DELTA_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CPC_DELTA_V1"
    },
    {
      "key": "CPC_LIFT_V1",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Methodology CPC_LIFT_V1, version 1: difference-in-differences lift in cost per click over a test cohort and a control cohort, four Meta insights receipts. Grade ceiling: causally-supported when the commitment named the control before the windows were read. WHEN_TO_USE: a claim that something caused a change in cost per click. ARGS: none EX: [CPC_LIFT_V1][/CPC_LIFT_V1] TESTS: Returns the definition, evidence list and exclusions.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CPC_LIFT_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CPC_LIFT_V1",
        "type": "fn",
        "what": [
          "WHAT: Methodology CPC_LIFT_V1, version 1: difference-in-differences lift in cost per click over a test cohort and a control cohort, four Meta insights receipts. Grade ceiling: causally-supported when the commitment named the control before the windows were read.",
          "WHEN_TO_USE: a claim that something caused a change in cost per click.",
          "ARGS: none",
          "EX: [CPC_LIFT_V1][/CPC_LIFT_V1]",
          "TESTS: Returns the definition, evidence list and exclusions."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the definition, evidence list and exclusions.",
        "example": "[CPC_LIFT_V1][/CPC_LIFT_V1]",
        "tag": "[CPC_LIFT_V1][/CPC_LIFT_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CPC_LIFT_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CPC_LIFT_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"CPC_LIFT_V1\"]",
      "edit": {
        "read": "GET /api/directory/CPC_LIFT_V1",
        "update": "PUT /api/directory/CPC_LIFT_V1",
        "patch": "PATCH /api/directory/CPC_LIFT_V1",
        "delete": "DELETE /api/directory/CPC_LIFT_V1",
        "invoke": "POST /api/dispatch {\"key\":\"CPC_LIFT_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CPC_LIFT_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CPC_LIFT_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CPC_LIFT_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CPC_LIFT_V1"
    },
    {
      "key": "CREATIVE_GENERATE",
      "type": "fn",
      "category": "creative",
      "doc": "WHAT: Generate one explicitly owner-requested image/video version while preserving its exact payload, raw response, channel, R2 result, and parent lineage in creative_runs. ARGS: one JSON object: {engine,prompt,model?,size?,aspect_ratio?,reference_url?,duration?,resolution?,product_id?,enhance?}. engine=openai|grok|arcads-image|arcads-video. EX: [CREATIVE_GENERATE]{\"engine\":\"grok\",\"prompt\":\"exact prompt\"}[/CREATIVE_GENERATE] TESTS: pipe characters inside prompt survive because the whole JSON body uses $1+; this row never runs unless explicitly invoked.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CREATIVE_GENERATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CREATIVE_GENERATE",
        "type": "fn",
        "what": [
          "WHAT: Generate one explicitly owner-requested image/video version while preserving its exact payload, raw response, channel, R2 result, and parent lineage in creative_runs.",
          "ARGS: one JSON object: {engine,prompt,model?,size?,aspect_ratio?,reference_url?,duration?,resolution?,product_id?,enhance?}. engine=openai|grok|arcads-image|arcads-video.",
          "EX: [CREATIVE_GENERATE]{\"engine\":\"grok\",\"prompt\":\"exact prompt\"}[/CREATIVE_GENERATE]",
          "TESTS: pipe characters inside prompt survive because the whole JSON body uses $1+; this row never runs unless explicitly invoked."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"engine\":\"grok\",\"prompt\":\"exact prompt\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CREATIVE_GENERATE]{\"engine\":\"grok\",\"prompt\":\"exact prompt\"}[/CREATIVE_GENERATE]",
        "tag": "[CREATIVE_GENERATE]<{\"engine\":\"grok\",\"prompt\":\"exact prompt\"} …>[/CREATIVE_GENERATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CREATIVE_GENERATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CREATIVE_GENERATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/CREATIVE_GENERATE",
        "update": "PUT /api/directory/CREATIVE_GENERATE",
        "patch": "PATCH /api/directory/CREATIVE_GENERATE",
        "delete": "DELETE /api/directory/CREATIVE_GENERATE",
        "invoke": "POST /api/dispatch {\"key\":\"CREATIVE_GENERATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CREATIVE_GENERATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CREATIVE_GENERATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CREATIVE_GENERATE"
      },
      "examples": "[\"{\\\"engine\\\":\\\"grok\\\",\\\"prompt\\\":\\\"exact prompt\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CREATIVE_GENERATE"
    },
    {
      "key": "CREDS",
      "type": "http",
      "category": "identity",
      "doc": "WHAT: The measured map of every credential this build holds - vault names, already-authenticated CLIs, key files, and the named gaps with the one action that closes each. Never prints a value. WHEN_TO_USE: BEFORE asking the owner for any token, key, password or login. Before saying a credential is missing. When you need to know where something lives. ARGS: $1 = '' (human table) | --json | --gaps EX: [CREDS]--gaps[/CREDS] LAW: a credential is in ~/.build-vault.env or in an authenticated CLI. If it is in neither, read gaps[] - it names why and the single click that closes it. Never ask the owner for something this row already answers.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CREDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CREDS",
        "type": "http",
        "what": [
          "WHAT: The measured map of every credential this build holds - vault names, already-authenticated CLIs, key files, and the named gaps with the one action that closes each. Never prints a value.",
          "WHEN_TO_USE: BEFORE asking the owner for any token, key, password or login. Before saying a credential is missing. When you need to know where something lives.",
          "ARGS: $1 = '' (human table) | --json | --gaps",
          "EX: [CREDS]--gaps[/CREDS]",
          "LAW: a credential is in ~/.build-vault.env or in an authenticated CLI. If it is in neither, read gaps[] - it names why and the single click that closes it. Never ask the owner for something this row already answers."
        ],
        "args": [
          {
            "pos": 1,
            "name": "--gaps",
            "desc": "'' (human table) | --json | --gaps",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[CREDS]--gaps[/CREDS]",
        "tag": "[CREDS]<--gaps …>[/CREDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CREDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CREDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-lc\", \"node scripts/credential-index.mjs $1+\"], \"cwd\": \"/Users/the owner/miscsubjects-pages\", \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/CREDS",
        "update": "PUT /api/directory/CREDS",
        "patch": "PATCH /api/directory/CREDS",
        "delete": "DELETE /api/directory/CREDS",
        "invoke": "POST /api/dispatch {\"key\":\"CREDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CREDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CREDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CREDS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=CREDS"
    },
    {
      "key": "CRITIC",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CRITIC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CRITIC",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CRITIC][/CRITIC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CRITIC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CRITIC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CRITIC",
        "update": "PUT /api/directory/CRITIC",
        "patch": "PATCH /api/directory/CRITIC",
        "delete": "DELETE /api/directory/CRITIC",
        "invoke": "POST /api/dispatch {\"key\":\"CRITIC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CRITIC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CRITIC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CRITIC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CRITIC"
    },
    {
      "key": "CRON_LIST",
      "type": "flow",
      "category": "cron",
      "doc": "List existing cron jobs by querying the Cloudflare API. Returns scheduled jobs for this account.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CRON_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CRON_LIST",
        "type": "flow",
        "what": [
          "List existing cron jobs by querying the Cloudflare API. Returns scheduled jobs for this account."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "scheduled jobs for this account.",
        "example": null,
        "tag": "[CRON_LIST][/CRON_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CRON_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CRON_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CRON_LIST",
        "update": "PUT /api/directory/CRON_LIST",
        "patch": "PATCH /api/directory/CRON_LIST",
        "delete": "DELETE /api/directory/CRON_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CRON_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CRON_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CRON_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CRON_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CRON_LIST"
    },
    {
      "key": "CUSTOMER",
      "type": "agent",
      "category": "customer",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[CUSTOMER][/CUSTOMER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/CUSTOMER",
        "update": "PUT /api/directory/CUSTOMER",
        "patch": "PATCH /api/directory/CUSTOMER",
        "delete": "DELETE /api/directory/CUSTOMER",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER"
    },
    {
      "key": "CUSTOMER_ACTIONS",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: The action list - customers grouped by what the scoring says to do with them and on which channel, with the lifetime revenue behind each group. This is the answer to 'who should we contact and how'. WHEN_TO_USE: planning a campaign, a win-back, or deciding where ad money goes. ARGS: none. EX: [CUSTOMER_ACTIONS][/CUSTOMER_ACTIONS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_ACTIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_ACTIONS",
        "type": "fn",
        "what": [
          "WHAT: The action list - customers grouped by what the scoring says to do with them and on which channel, with the lifetime revenue behind each group. This is the answer to 'who should we contact and how'.",
          "WHEN_TO_USE: planning a campaign, a win-back, or deciding where ad money goes.",
          "ARGS: none.",
          "EX: [CUSTOMER_ACTIONS][/CUSTOMER_ACTIONS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CUSTOMER_ACTIONS][/CUSTOMER_ACTIONS]",
        "tag": "[CUSTOMER_ACTIONS][/CUSTOMER_ACTIONS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_ACTIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_ACTIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"api/sql?q=SELECT recommended_message, recommended_channel, COUNT(*) customers, CAST(SUM(ltv_cents)/100 AS INT) lifetime_usd, CAST(AVG(retargeting_score) AS INT) avg_retargeting FROM customer_scores WHERE lifetime_orders>0 GROUP BY recommended_message, recommended_channel ORDER BY lifetime_usd DESC\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_ACTIONS",
        "update": "PUT /api/directory/CUSTOMER_ACTIONS",
        "patch": "PATCH /api/directory/CUSTOMER_ACTIONS",
        "delete": "DELETE /api/directory/CUSTOMER_ACTIONS",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_ACTIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_ACTIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_ACTIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_ACTIONS"
      },
      "examples": "[{\"args\": [], \"note\": \"the whole action matrix with revenue at stake per group\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_ACTIONS"
    },
    {
      "key": "CUSTOMER_BY_PHONE",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: Find a person by PHONE, email or name across the platform's 14,893 person records - the ones loop_customer does not carry, because it only holds people who bought. Returns identity, location and membership tier. WHEN_TO_USE: someone gives you a phone number, or a name that CUSTOMER_FIND missed. A person here may never have ordered; use CUSTOMER_PROFILE with the primary_email to see whether they did. ARGS: $1 = a phone fragment (digits only, no + or dashes), an email fragment, or a name. EX: [CUSTOMER_BY_PHONE]4158186483[/CUSTOMER_BY_PHONE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_BY_PHONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_BY_PHONE",
        "type": "fn",
        "what": [
          "WHAT: Find a person by PHONE, email or name across the platform's 14,893 person records - the ones loop_customer does not carry, because it only holds people who bought. Returns identity, location and membership tier.",
          "WHEN_TO_USE: someone gives you a phone number, or a name that CUSTOMER_FIND missed. A person here may never have ordered; use CUSTOMER_PROFILE with the primary_email to see whether they did.",
          "ARGS: $1 = a phone fragment (digits only, no + or dashes), an email fragment, or a name.",
          "EX: [CUSTOMER_BY_PHONE]4158186483[/CUSTOMER_BY_PHONE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "4158186483",
            "desc": "a phone fragment (digits only, no + or dashes), an email fragment, or a name.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "identity, location and membership tier.",
        "example": "[CUSTOMER_BY_PHONE]4158186483[/CUSTOMER_BY_PHONE]",
        "tag": "[CUSTOMER_BY_PHONE]<4158186483>[/CUSTOMER_BY_PHONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_BY_PHONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_BY_PHONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"api/sql?q=SELECT person_id, primary_email, primary_phone, first_name, last_name, city, state, country, membership_tier, first_seen_at, last_seen_at FROM persons WHERE instr(COALESCE(primary_phone,''), '$1') > 0 OR instr(lower(COALESCE(primary_email,'')), lower('$1')) > 0 OR instr(lower(COALESCE(first_name,'')||' '||COALESCE(last_name,'')), lower('$1')) > 0 LIMIT 20\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_BY_PHONE",
        "update": "PUT /api/directory/CUSTOMER_BY_PHONE",
        "patch": "PATCH /api/directory/CUSTOMER_BY_PHONE",
        "delete": "DELETE /api/directory/CUSTOMER_BY_PHONE",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_BY_PHONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_BY_PHONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_BY_PHONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_BY_PHONE"
      },
      "examples": "[{\"args\": [\"4158186483\"], \"note\": \"a phone number, digits only\"}, {\"args\": [\"megankistler@gmail.com\"], \"note\": \"an email\"}, {\"args\": [\"Megan\"], \"note\": \"a first or last name\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_BY_PHONE"
    },
    {
      "key": "CUSTOMER_EVENTS",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: One customer's actual Klaviyo event stream - the newest 60 events with timestamps, not the count CUSTOMER_PROFILE returns. What they opened, clicked, viewed and abandoned. WHEN_TO_USE: after CUSTOMER_PROFILE, whenever the question is what someone has been DOING - 'is she still engaging', 'why did he stop', pre-purchase intent, a churn post-mortem. ARGS: $1 = their exact email. EX: [CUSTOMER_EVENTS]someone@example.com[/CUSTOMER_EVENTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_EVENTS",
        "type": "fn",
        "what": [
          "WHAT: One customer's actual Klaviyo event stream - the newest 60 events with timestamps, not the count CUSTOMER_PROFILE returns. What they opened, clicked, viewed and abandoned.",
          "WHEN_TO_USE: after CUSTOMER_PROFILE, whenever the question is what someone has been DOING - 'is she still engaging', 'why did he stop', pre-purchase intent, a churn post-mortem.",
          "ARGS: $1 = their exact email.",
          "EX: [CUSTOMER_EVENTS]someone@example.com[/CUSTOMER_EVENTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "someone@example.com",
            "desc": "their exact email.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CUSTOMER_EVENTS]someone@example.com[/CUSTOMER_EVENTS]",
        "tag": "[CUSTOMER_EVENTS]<someone@example.com>[/CUSTOMER_EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"api/sql?q=SELECT e.datetime, e.metric_name, e.event_properties FROM klaviyo_events e JOIN persons p ON p.person_id = e.person_id WHERE instr(lower(COALESCE(p.primary_email,'')), lower('$1')) > 0 ORDER BY e.datetime DESC LIMIT 60\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_EVENTS",
        "update": "PUT /api/directory/CUSTOMER_EVENTS",
        "patch": "PATCH /api/directory/CUSTOMER_EVENTS",
        "delete": "DELETE /api/directory/CUSTOMER_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_EVENTS"
      },
      "examples": "[{\"args\": [\"megankistler@gmail.com\"], \"note\": \"exact email - returns their newest 60 events\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_EVENTS"
    },
    {
      "key": "CUSTOMER_FIND",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: Find a customer by ANY fragment — part of an email, part of a name, a person_id, a klaviyo profile id. Returns up to 25 matches ranked by lifetime value, so a partial or a misspelling still lands. WHEN_TO_USE: someone asks about a person and you do not have their exact email. ALWAYS run this before CUSTOMER_PROFILE unless you were handed an exact address. NOT FOR PHONE: loop_customer holds no phone number. Phone lookup needs CUSTOMER_BY_PHONE, which reads the person records on the platform. ARGS: $1 = any fragment (name, email, id). EX: [CUSTOMER_FIND]megan[/CUSTOMER_FIND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_FIND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_FIND",
        "type": "fn",
        "what": [
          "WHAT: Find a customer by ANY fragment — part of an email, part of a name, a person_id, a klaviyo profile id. Returns up to 25 matches ranked by lifetime value, so a partial or a misspelling still lands.",
          "WHEN_TO_USE: someone asks about a person and you do not have their exact email. ALWAYS run this before CUSTOMER_PROFILE unless you were handed an exact address.",
          "NOT FOR PHONE: loop_customer holds no phone number. Phone lookup needs CUSTOMER_BY_PHONE, which reads the person records on the platform.",
          "ARGS: $1 = any fragment (name, email, id).",
          "EX: [CUSTOMER_FIND]megan[/CUSTOMER_FIND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "megan",
            "desc": "any fragment (name, email, id).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "up to 25 matches ranked by lifetime value, so a partial or a misspelling still lands.",
        "example": "[CUSTOMER_FIND]megan[/CUSTOMER_FIND]",
        "tag": "[CUSTOMER_FIND]<megan>[/CUSTOMER_FIND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_FIND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_FIND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, name, orders, ROUND(revenue_cents/100.0,2) lifetime_usd, first_order, last_order, CAST(julianday('now') - julianday(last_order) AS INT) days_since_last, person_id FROM loop_customer WHERE lower(email) LIKE lower('%$1%') OR lower(COALESCE(name,'')) LIKE lower('%$1%') OR lower(COALESCE(person_id,'')) LIKE lower('%$1%') OR lower(COALESCE(klaviyo_profile_id,'')) LIKE lower('%$1%') ORDER BY revenue_cents DESC LIMIT 25\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_FIND",
        "update": "PUT /api/directory/CUSTOMER_FIND",
        "patch": "PATCH /api/directory/CUSTOMER_FIND",
        "delete": "DELETE /api/directory/CUSTOMER_FIND",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_FIND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_FIND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_FIND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_FIND"
      },
      "examples": "[{\"args\": [\"megan\"], \"note\": \"a name fragment \\u2014 returns every customer whose name or email contains it, richest first\"}, {\"args\": [\"@gmail.com\"], \"note\": \"a domain fragment\"}, {\"args\": [\"person_887a73a4\"], \"note\": \"a person id fragment\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_FIND"
    },
    {
      "key": "CUSTOMER_HEALTH_LIST",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: The customers in one health class, worst first — the churn inventory as a list. Classes: 'gone', 'lapsed', 'slipping', 'one-and-done', 'new, one order', 'on cadence'. WHEN_TO_USE: \"who has fallen off\", \"who is slipping\", \"show me the churn\", a win-back list. ARGS: $1 = the health class exactly as spelled above. EX: [CUSTOMER_HEALTH_LIST]slipping[/CUSTOMER_HEALTH_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_HEALTH_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_HEALTH_LIST",
        "type": "fn",
        "what": [
          "WHAT: The customers in one health class, worst first — the churn inventory as a list. Classes: 'gone', 'lapsed', 'slipping', 'one-and-done', 'new, one order', 'on cadence'.",
          "WHEN_TO_USE: \"who has fallen off\", \"who is slipping\", \"show me the churn\", a win-back list.",
          "ARGS: $1 = the health class exactly as spelled above.",
          "EX: [CUSTOMER_HEALTH_LIST]slipping[/CUSTOMER_HEALTH_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "slipping",
            "desc": "the health class exactly as spelled above.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CUSTOMER_HEALTH_LIST]slipping[/CUSTOMER_HEALTH_LIST]",
        "tag": "[CUSTOMER_HEALTH_LIST]<slipping>[/CUSTOMER_HEALTH_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_HEALTH_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_HEALTH_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, name, orders, ROUND(revenue_cents/100.0,2) lifetime_usd, last_order, CAST(julianday('now') - julianday(last_order) AS INT) days_since, ROUND((julianday(last_order)-julianday(first_order))/(orders-1),1) own_cadence_days, cancelled, subscription_signals, klaviyo_events FROM loop_customer WHERE last_order IS NOT NULL AND first_order IS NOT NULL AND orders > 1 AND (CASE WHEN julianday('now') - julianday(last_order) > 6.0*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'gone' WHEN julianday('now') - julianday(last_order) > 3.0*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'lapsed' WHEN julianday('now') - julianday(last_order) > 1.5*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'slipping' ELSE 'on cadence' END) = '$1' ORDER BY revenue_cents DESC LIMIT 100\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_HEALTH_LIST",
        "update": "PUT /api/directory/CUSTOMER_HEALTH_LIST",
        "patch": "PATCH /api/directory/CUSTOMER_HEALTH_LIST",
        "delete": "DELETE /api/directory/CUSTOMER_HEALTH_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_HEALTH_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_HEALTH_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_HEALTH_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_HEALTH_LIST"
      },
      "examples": "[{\"args\": [\"slipping\"], \"note\": \"customers past 1.5x their own order gap\"}, {\"args\": [\"gone\"], \"note\": \"customers past 6x their own order gap\"}, {\"args\": [\"lapsed\"], \"note\": \"customers past 3x their own order gap\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_HEALTH_LIST"
    },
    {
      "key": "CUSTOMER_PROFILE",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: One customer's whole record, plus how they are behaving against THEIR OWN order cadence — lifetime, AOV, first and last order, days since, their own average gap, how many of their own cycles they are overdue by, a health class, cancellations, refunds, subscription history, klaviyo event volume, and where they came from. WHEN_TO_USE: \"tell me about <person>\", \"what is going on with this customer\", any support or account question. ARGS: $1 = their EXACT email (use CUSTOMER_FIND first if you only have a fragment). THEN: for the actual klaviyo event stream rather than its count, follow with CUSTOMER_EVENTS. EX: [CUSTOMER_PROFILE]someone@example.com[/CUSTOMER_PROFILE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_PROFILE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_PROFILE",
        "type": "fn",
        "what": [
          "WHAT: One customer's whole record, plus how they are behaving against THEIR OWN order cadence — lifetime, AOV, first and last order, days since, their own average gap, how many of their own cycles they are overdue by, a health class, cancellations, refunds, subscription history, klaviyo event volume, and where they came from.",
          "WHEN_TO_USE: \"tell me about <person>\", \"what is going on with this customer\", any support or account question.",
          "ARGS: $1 = their EXACT email (use CUSTOMER_FIND first if you only have a fragment).",
          "THEN: for the actual klaviyo event stream rather than its count, follow with CUSTOMER_EVENTS.",
          "EX: [CUSTOMER_PROFILE]someone@example.com[/CUSTOMER_PROFILE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "someone@example.com",
            "desc": "their EXACT email (use CUSTOMER_FIND first if you only have a fragment).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CUSTOMER_PROFILE]someone@example.com[/CUSTOMER_PROFILE]",
        "tag": "[CUSTOMER_PROFILE]<someone@example.com>[/CUSTOMER_PROFILE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_PROFILE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_PROFILE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, name, orders, ROUND(revenue_cents/100.0,2) lifetime_usd, ROUND(revenue_cents/100.0/NULLIF(orders,0),2) aov_usd, first_order, last_order, CAST(julianday('now') - julianday(last_order) AS INT) days_since_last_order, CASE WHEN orders > 1 THEN ROUND((julianday(last_order) - julianday(first_order))/(orders-1),1) END own_cadence_days, CASE WHEN orders > 1 AND julianday(last_order) > julianday(first_order) THEN ROUND((julianday('now') - julianday(last_order))/((julianday(last_order) - julianday(first_order))/(orders-1)),2) END cycles_overdue, CASE WHEN orders < 2 THEN (CASE WHEN julianday('now') - julianday(last_order) > 90 THEN 'one-and-done' ELSE 'new, one order' END) WHEN julianday(last_order) <= julianday(first_order) THEN 'same-day repeat' WHEN julianday('now') - julianday(last_order) > 6.0*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'gone' WHEN julianday('now') - julianday(last_order) > 3.0*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'lapsed' WHEN julianday('now') - julianday(last_order) > 1.5*((julianday(last_order)-julianday(first_order))/(orders-1)) THEN 'slipping' ELSE 'on cadence' END health, cancelled, refunded, ROUND(100.0*cancelled/NULLIF(orders+cancelled,0),1) cancel_rate_pct, subscription_signals, klaviyo_events, coupon_orders, affiliate_orders, utm_source, ref, person_id, klaviyo_profile_id, updated_at FROM loop_customer WHERE lower(email) = lower('$1')\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_PROFILE",
        "update": "PUT /api/directory/CUSTOMER_PROFILE",
        "patch": "PATCH /api/directory/CUSTOMER_PROFILE",
        "delete": "DELETE /api/directory/CUSTOMER_PROFILE",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_PROFILE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_PROFILE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_PROFILE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_PROFILE"
      },
      "examples": "[{\"args\": [\"someone@example.com\"], \"note\": \"exact email \\u2014 the whole record plus health against their own cadence\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_PROFILE"
    },
    {
      "key": "CUSTOMER_SCORE_REFRESH",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: Recompute customer_scores for everyone - intent, relationship and retargeting scores, value tier, recommended channel and recommended message, with score_reason_json carrying the components. WHEN_TO_USE: nightly, and after any order or Klaviyo sync. Idempotent (ON CONFLICT updates). HOW IT SCORES: intent = checkout 40, click 20, view 15, open 10, cart 15 - each only if inside 30 days. relationship = orders x4 (max 40) + months tenure x2 (max 20) + opens/5 (max 20) + clicks (max 20), minus 30 for an unsubscribe and 50 for a spam complaint. retargeting = value tier (0-40) + how late they are against their OWN cadence (0-30) + whether they still engage (0-30), forced to 0 if suppressed. NOTE: this row READS through the viewer door, which is read-only, so it reports the pass rather than running it. The write path is scripts/refresh-customer-scores.sh via wrangler against loop-data-platform. ARGS: none. EX: [CUSTOMER_SCORE_REFRESH][/CUSTOMER_SCORE_REFRESH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "CUSTOMER_SCORE_REFRESH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "CUSTOMER_SCORE_REFRESH",
        "type": "fn",
        "what": [
          "WHAT: Recompute customer_scores for everyone - intent, relationship and retargeting scores, value tier, recommended channel and recommended message, with score_reason_json carrying the components.",
          "WHEN_TO_USE: nightly, and after any order or Klaviyo sync. Idempotent (ON CONFLICT updates).",
          "HOW IT SCORES: intent = checkout 40, click 20, view 15, open 10, cart 15 - each only if inside 30 days. relationship = orders x4 (max 40) + months tenure x2 (max 20) + opens/5 (max 20) + clicks (max 20), minus 30 for an unsubscribe and 50 for a spam complaint. retargeting = value tier (0-40) + how late they are against their OWN cadence (0-30) + whether they still engage (0-30), forced to 0 if suppressed.",
          "NOTE: this row READS through the viewer door, which is read-only, so it reports the pass rather than running it. The write path is scripts/refresh-customer-scores.sh via wrangler against loop-data-platform.",
          "ARGS: none.",
          "EX: [CUSTOMER_SCORE_REFRESH][/CUSTOMER_SCORE_REFRESH]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[CUSTOMER_SCORE_REFRESH][/CUSTOMER_SCORE_REFRESH]",
        "tag": "[CUSTOMER_SCORE_REFRESH][/CUSTOMER_SCORE_REFRESH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"CUSTOMER_SCORE_REFRESH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/CUSTOMER_SCORE_REFRESH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"api/sql?q=SELECT COUNT(*) scored, SUM(CASE WHEN intent_score>0 THEN 1 ELSE 0 END) with_intent, SUM(CASE WHEN retargeting_score>=50 THEN 1 ELSE 0 END) worth_retargeting, SUM(suppress_ads) suppressed, MAX(updated_at) last_scored FROM customer_scores\"]",
      "edit": {
        "read": "GET /api/directory/CUSTOMER_SCORE_REFRESH",
        "update": "PUT /api/directory/CUSTOMER_SCORE_REFRESH",
        "patch": "PATCH /api/directory/CUSTOMER_SCORE_REFRESH",
        "delete": "DELETE /api/directory/CUSTOMER_SCORE_REFRESH",
        "invoke": "POST /api/dispatch {\"key\":\"CUSTOMER_SCORE_REFRESH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"CUSTOMER_SCORE_REFRESH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"CUSTOMER_SCORE_REFRESH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/CUSTOMER_SCORE_REFRESH"
      },
      "examples": "[{\"args\": [], \"note\": \"returns how many people are scored and when the pass last ran\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=CUSTOMER_SCORE_REFRESH"
    },
    {
      "key": "D1_EXEC",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Run a non-SELECT D1 query (INSERT/UPDATE/DELETE). WHEN_TO_USE: writing data to D1. ARGS: $1 = the full SQL. Pipes and || are preserved; inline literal values and double any single quotes. No bound parameters — do not append ?|value, write the value inline. REFUSED TABLES: work_tasks, work_actions, articles, article_slots. Each has one write path that runs its invariants — POST /api/work/task/<id>/submit for a task, PUT /api/articles/<slug> for an article — and a raw statement here runs none of them. To fix a genuinely bad row use D1_REPAIR, which runs the same statement with a stated reason and an audit row. EX: [D1_EXEC]UPDATE directory SET category = 'content-ops' WHERE key = 'VOXEL_EDIT'[/D1_EXEC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "D1_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "D1_EXEC",
        "type": "fn",
        "what": [
          "WHAT: Run a non-SELECT D1 query (INSERT/UPDATE/DELETE).",
          "WHEN_TO_USE: writing data to D1.",
          "ARGS: $1 = the full SQL. Pipes and || are preserved; inline literal values and double any single quotes. No bound parameters — do not append ?|value, write the value inline.",
          "REFUSED TABLES: work_tasks, work_actions, articles, article_slots. Each has one write path that runs its invariants — POST /api/work/task/<id>/submit for a task, PUT /api/articles/<slug> for an article — and a raw statement here runs none of them. To fix a genuinely bad row use D1_REPAIR, which runs the same statement with a stated reason and an audit row.",
          "EX: [D1_EXEC]UPDATE directory SET category = 'content-ops' WHERE key = 'VOXEL_EDIT'[/D1_EXEC]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "UPDATE directory SET category = 'content-ops' WHERE key = 'VOXEL_EDIT'",
            "desc": "the full SQL. Pipes and || are preserved",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[D1_EXEC]UPDATE directory SET category = 'content-ops' WHERE key = 'VOXEL_EDIT'[/D1_EXEC]",
        "tag": "[D1_EXEC]<UPDATE directory SET category = 'content-ops' WHERE key = 'VOXEL_EDIT' …>[/D1_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"D1_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/D1_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/D1_EXEC",
        "update": "PUT /api/directory/D1_EXEC",
        "patch": "PATCH /api/directory/D1_EXEC",
        "delete": "DELETE /api/directory/D1_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"D1_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"D1_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"D1_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/D1_EXEC"
      },
      "examples": "[\"ALTER TABLE directory ADD COLUMN invocation_curl TEXT\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=D1_EXEC"
    },
    {
      "key": "D1_QUERY",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Run a SELECT query on the D1 database. WHEN_TO_USE: any read operation on D1 tables. ARGS: $1 = the full SQL SELECT. Pipes and || are preserved now; inline literal values and double any single quotes. No bound parameters. EX: [D1_QUERY]SELECT * FROM directory WHERE key = 'ROUTER'[/D1_QUERY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "D1_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "D1_QUERY",
        "type": "fn",
        "what": [
          "WHAT: Run a SELECT query on the D1 database.",
          "WHEN_TO_USE: any read operation on D1 tables.",
          "ARGS: $1 = the full SQL SELECT. Pipes and || are preserved now; inline literal values and double any single quotes. No bound parameters.",
          "EX: [D1_QUERY]SELECT * FROM directory WHERE key = 'ROUTER'[/D1_QUERY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "SELECT * FROM directory WHERE key = 'ROUTER'",
            "desc": "the full SQL SELECT. Pipes and || are preserved now",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[D1_QUERY]SELECT * FROM directory WHERE key = 'ROUTER'[/D1_QUERY]",
        "tag": "[D1_QUERY]<SELECT * FROM directory WHERE key = 'ROUTER' …>[/D1_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"D1_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/D1_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/D1_QUERY",
        "update": "PUT /api/directory/D1_QUERY",
        "patch": "PATCH /api/directory/D1_QUERY",
        "delete": "DELETE /api/directory/D1_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"D1_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"D1_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"D1_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/D1_QUERY"
      },
      "examples": "[\"SELECT COUNT(*) n FROM work_tasks\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=D1_QUERY"
    },
    {
      "key": "D1_REPAIR",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Repair a bad row in a governed table (work_tasks, work_actions, articles, article_slots) with a raw statement that cannot be silent — it requires a stated reason and appends a work_actions audit row naming the table, the reason and the row count. WHY THIS EXISTS: D1_EXEC refuses those four tables, because an UPDATE there could close a task with no acceptance test run and no audit row written. Repair is still real work, so it gets a lane that is on the record instead of a bypass that is not. WHEN_TO_USE: a row is genuinely wrong — a stuck lease, a mis-typed priority, a duplicated slot — and there is no task to submit evidence against. NOT for completing a task (POST /api/work/task/<id>/submit), NOT for writing an article (PUT /api/articles/<slug>). ARGS: $1 = reason, at least a dozen characters, written into the audit row. $2 = the full SQL. Inline literal values; double any single quotes. EX: [D1_REPAIR]clearing a lease held by a session that died mid-turn|UPDATE work_tasks SET lease_holder=NULL, lease_token=NULL WHERE id = 'WT-0039'[/D1_REPAIR]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "D1_REPAIR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "D1_REPAIR",
        "type": "fn",
        "what": [
          "WHAT: Repair a bad row in a governed table (work_tasks, work_actions, articles, article_slots) with a raw statement that cannot be silent — it requires a stated reason and appends a work_actions audit row naming the table, the reason and the row count.",
          "WHY THIS EXISTS: D1_EXEC refuses those four tables, because an UPDATE there could close a task with no acceptance test run and no audit row written. Repair is still real work, so it gets a lane that is on the record instead of a bypass that is not.",
          "WHEN_TO_USE: a row is genuinely wrong — a stuck lease, a mis-typed priority, a duplicated slot — and there is no task to submit evidence against. NOT for completing a task (POST /api/work/task/<id>/submit), NOT for writing an article (PUT /api/articles/<slug>).",
          "ARGS: $1 = reason, at least a dozen characters, written into the audit row. $2 = the full SQL. Inline literal values; double any single quotes.",
          "EX: [D1_REPAIR]clearing a lease held by a session that died mid-turn|UPDATE work_tasks SET lease_holder=NULL, lease_token=NULL WHERE id = 'WT-0039'[/D1_REPAIR]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "clearing a lease held by a session that died mid-turn",
            "desc": "reason, at least a dozen characters, written into the audit row. $2 = the full SQL. Inline literal values",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "UPDATE work_tasks SET lease_holder=NULL, lease_token=NULL WHERE id = 'WT-0039'",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[D1_REPAIR]clearing a lease held by a session that died mid-turn|UPDATE work_tasks SET lease_holder=NULL, lease_token=NULL WHERE id = 'WT-0039'[/D1_REPAIR]",
        "tag": "[D1_REPAIR]<clearing a lease held by a session that died mid-turn>|<UPDATE work_tasks SET lease_holder=NULL, lease_token=NULL WHERE id = 'WT-0039'>[/D1_REPAIR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"D1_REPAIR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/D1_REPAIR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/D1_REPAIR",
        "update": "PUT /api/directory/D1_REPAIR",
        "patch": "PATCH /api/directory/D1_REPAIR",
        "delete": "DELETE /api/directory/D1_REPAIR",
        "invoke": "POST /api/dispatch {\"key\":\"D1_REPAIR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"D1_REPAIR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"D1_REPAIR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/D1_REPAIR"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=D1_REPAIR"
    },
    {
      "key": "D1_TO_2D_ARRAY",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Run a SQL SELECT and return a 2D array (header row + values) suitable for sheets_replace_tab. $1=SQL WHEN_TO_USE: you need to d1 to 2d array ARGS: $1 EX: [D1_TO_2D_ARRAY]arg1[/D1_TO_2D_ARRAY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "D1_TO_2D_ARRAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "D1_TO_2D_ARRAY",
        "type": "fn",
        "what": [
          "WHAT: Run a SQL SELECT and return a 2D array (header row + values) suitable for sheets_replace_tab. $1=SQL",
          "WHEN_TO_USE: you need to d1 to 2d array",
          "ARGS: $1",
          "EX: [D1_TO_2D_ARRAY]arg1[/D1_TO_2D_ARRAY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "SQL",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a 2D array (header row + values) suitable for sheets_replace_tab. $1=SQL",
        "example": "[D1_TO_2D_ARRAY]arg1[/D1_TO_2D_ARRAY]",
        "tag": "[D1_TO_2D_ARRAY]<arg1>[/D1_TO_2D_ARRAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"D1_TO_2D_ARRAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/D1_TO_2D_ARRAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/D1_TO_2D_ARRAY",
        "update": "PUT /api/directory/D1_TO_2D_ARRAY",
        "patch": "PATCH /api/directory/D1_TO_2D_ARRAY",
        "delete": "DELETE /api/directory/D1_TO_2D_ARRAY",
        "invoke": "POST /api/dispatch {\"key\":\"D1_TO_2D_ARRAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"D1_TO_2D_ARRAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"D1_TO_2D_ARRAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/D1_TO_2D_ARRAY"
      },
      "examples": "[\"SELECT key, type, category, target FROM directory WHERE IFNULL(enabled,1)=1 ORDER BY key\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=D1_TO_2D_ARRAY"
    },
    {
      "key": "DCAP_APP_ACT_CALENDAR_COUNT",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.calendar.count on calendar-count via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.calendar.count\" performed on calendar-count. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_APP_ACT_CALENDAR_COUNT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_APP_ACT_CALENDAR_COUNT",
        "type": "http",
        "what": [
          "WHAT: app.calendar.count on calendar-count via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.calendar.count\" performed on calendar-count.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_APP_ACT_CALENDAR_COUNT]arg1[/DCAP_APP_ACT_CALENDAR_COUNT]",
        "tag": "[DCAP_APP_ACT_CALENDAR_COUNT]<arg1>[/DCAP_APP_ACT_CALENDAR_COUNT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_APP_ACT_CALENDAR_COUNT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_APP_ACT_CALENDAR_COUNT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_f89a03f7b2b44aa7\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_APP_ACT_CALENDAR_COUNT",
        "update": "PUT /api/directory/DCAP_APP_ACT_CALENDAR_COUNT",
        "patch": "PATCH /api/directory/DCAP_APP_ACT_CALENDAR_COUNT",
        "delete": "DELETE /api/directory/DCAP_APP_ACT_CALENDAR_COUNT",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_APP_ACT_CALENDAR_COUNT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_APP_ACT_CALENDAR_COUNT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_APP_ACT_CALENDAR_COUNT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_APP_ACT_CALENDAR_COUNT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_APP_ACT_CALENDAR_COUNT"
    },
    {
      "key": "DCAP_APP_ACT_FINDER",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.finder.desktop on finder via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.finder.desktop\" performed on finder. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_APP_ACT_FINDER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_APP_ACT_FINDER",
        "type": "http",
        "what": [
          "WHAT: app.finder.desktop on finder via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.finder.desktop\" performed on finder.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_APP_ACT_FINDER]arg1[/DCAP_APP_ACT_FINDER]",
        "tag": "[DCAP_APP_ACT_FINDER]<arg1>[/DCAP_APP_ACT_FINDER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_APP_ACT_FINDER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_APP_ACT_FINDER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_2189bac355d14c99\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_APP_ACT_FINDER",
        "update": "PUT /api/directory/DCAP_APP_ACT_FINDER",
        "patch": "PATCH /api/directory/DCAP_APP_ACT_FINDER",
        "delete": "DELETE /api/directory/DCAP_APP_ACT_FINDER",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_APP_ACT_FINDER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_APP_ACT_FINDER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_APP_ACT_FINDER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_APP_ACT_FINDER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_APP_ACT_FINDER"
    },
    {
      "key": "DCAP_APP_ACT_IPHONE",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: phone.file.write on iphone via pymobiledevice3-afc. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"phone.file.write\" performed on iphone. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_APP_ACT_IPHONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_APP_ACT_IPHONE",
        "type": "http",
        "what": [
          "WHAT: phone.file.write on iphone via pymobiledevice3-afc. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"phone.file.write\" performed on iphone.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_APP_ACT_IPHONE]arg1[/DCAP_APP_ACT_IPHONE]",
        "tag": "[DCAP_APP_ACT_IPHONE]<arg1>[/DCAP_APP_ACT_IPHONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_APP_ACT_IPHONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_APP_ACT_IPHONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_4d1170576c174520\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_APP_ACT_IPHONE",
        "update": "PUT /api/directory/DCAP_APP_ACT_IPHONE",
        "patch": "PATCH /api/directory/DCAP_APP_ACT_IPHONE",
        "delete": "DELETE /api/directory/DCAP_APP_ACT_IPHONE",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_APP_ACT_IPHONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_APP_ACT_IPHONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_APP_ACT_IPHONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_APP_ACT_IPHONE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_APP_ACT_IPHONE"
    },
    {
      "key": "DCAP_APP_ACT_MUSIC",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.music.state on music via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.music.state\" performed on music. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_APP_ACT_MUSIC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_APP_ACT_MUSIC",
        "type": "http",
        "what": [
          "WHAT: app.music.state on music via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.music.state\" performed on music.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_APP_ACT_MUSIC]arg1[/DCAP_APP_ACT_MUSIC]",
        "tag": "[DCAP_APP_ACT_MUSIC]<arg1>[/DCAP_APP_ACT_MUSIC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_APP_ACT_MUSIC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_APP_ACT_MUSIC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_8c337307e1554caa\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_APP_ACT_MUSIC",
        "update": "PUT /api/directory/DCAP_APP_ACT_MUSIC",
        "patch": "PATCH /api/directory/DCAP_APP_ACT_MUSIC",
        "delete": "DELETE /api/directory/DCAP_APP_ACT_MUSIC",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_APP_ACT_MUSIC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_APP_ACT_MUSIC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_APP_ACT_MUSIC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_APP_ACT_MUSIC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_APP_ACT_MUSIC"
    },
    {
      "key": "DCAP_APP_ACT_VOLUME",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.volume.get on volume via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.volume.get\" performed on volume. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_APP_ACT_VOLUME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_APP_ACT_VOLUME",
        "type": "http",
        "what": [
          "WHAT: app.volume.get on volume via osascript-ax. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.volume.get\" performed on volume.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_APP_ACT_VOLUME]arg1[/DCAP_APP_ACT_VOLUME]",
        "tag": "[DCAP_APP_ACT_VOLUME]<arg1>[/DCAP_APP_ACT_VOLUME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_APP_ACT_VOLUME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_APP_ACT_VOLUME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_8c2e30269a064e1f\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_APP_ACT_VOLUME",
        "update": "PUT /api/directory/DCAP_APP_ACT_VOLUME",
        "patch": "PATCH /api/directory/DCAP_APP_ACT_VOLUME",
        "delete": "DELETE /api/directory/DCAP_APP_ACT_VOLUME",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_APP_ACT_VOLUME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_APP_ACT_VOLUME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_APP_ACT_VOLUME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_APP_ACT_VOLUME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_APP_ACT_VOLUME"
    },
    {
      "key": "DCAP_DEVICE_EXEC_MAC",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: device.exec on mac via local-exec (promoted from the capability census; the on-ramp verified→stable→directory). WHEN_TO_USE: the operator wants a shell command run on the Mac through a verified, receipted capability. ARGS: $1 = the single shell command string.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_DEVICE_EXEC_MAC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_DEVICE_EXEC_MAC",
        "type": "http",
        "what": [
          "WHAT: device.exec on mac via local-exec (promoted from the capability census; the on-ramp verified→stable→directory).",
          "WHEN_TO_USE: the operator wants a shell command run on the Mac through a verified, receipted capability.",
          "ARGS: $1 = the single shell command string."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single shell command string.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_DEVICE_EXEC_MAC]arg1[/DCAP_DEVICE_EXEC_MAC]",
        "tag": "[DCAP_DEVICE_EXEC_MAC]<arg1>[/DCAP_DEVICE_EXEC_MAC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_DEVICE_EXEC_MAC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_DEVICE_EXEC_MAC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_125bd123da834ef9\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_DEVICE_EXEC_MAC",
        "update": "PUT /api/directory/DCAP_DEVICE_EXEC_MAC",
        "patch": "PATCH /api/directory/DCAP_DEVICE_EXEC_MAC",
        "delete": "DELETE /api/directory/DCAP_DEVICE_EXEC_MAC",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_DEVICE_EXEC_MAC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_DEVICE_EXEC_MAC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_DEVICE_EXEC_MAC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_DEVICE_EXEC_MAC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_DEVICE_EXEC_MAC"
    },
    {
      "key": "DCAP_PROCEDURE_RUN_SHORTCUTS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: procedure.shortcut.list on shortcuts via shortcuts. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"procedure.shortcut.list\" performed on shortcuts. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_PROCEDURE_RUN_SHORTCUTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_PROCEDURE_RUN_SHORTCUTS",
        "type": "http",
        "what": [
          "WHAT: procedure.shortcut.list on shortcuts via shortcuts. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"procedure.shortcut.list\" performed on shortcuts.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_PROCEDURE_RUN_SHORTCUTS]arg1[/DCAP_PROCEDURE_RUN_SHORTCUTS]",
        "tag": "[DCAP_PROCEDURE_RUN_SHORTCUTS]<arg1>[/DCAP_PROCEDURE_RUN_SHORTCUTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_PROCEDURE_RUN_SHORTCUTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_PROCEDURE_RUN_SHORTCUTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_375fbc38495440b8\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_PROCEDURE_RUN_SHORTCUTS",
        "update": "PUT /api/directory/DCAP_PROCEDURE_RUN_SHORTCUTS",
        "patch": "PATCH /api/directory/DCAP_PROCEDURE_RUN_SHORTCUTS",
        "delete": "DELETE /api/directory/DCAP_PROCEDURE_RUN_SHORTCUTS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_PROCEDURE_RUN_SHORTCUTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_PROCEDURE_RUN_SHORTCUTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_PROCEDURE_RUN_SHORTCUTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_PROCEDURE_RUN_SHORTCUTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_PROCEDURE_RUN_SHORTCUTS"
    },
    {
      "key": "DCAP_PROCEDURE_RUN_TIME",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: procedure.time.utc on time via granted-exec. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"procedure.time.utc\" performed on time. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_PROCEDURE_RUN_TIME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_PROCEDURE_RUN_TIME",
        "type": "http",
        "what": [
          "WHAT: procedure.time.utc on time via granted-exec. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"procedure.time.utc\" performed on time.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_PROCEDURE_RUN_TIME]arg1[/DCAP_PROCEDURE_RUN_TIME]",
        "tag": "[DCAP_PROCEDURE_RUN_TIME]<arg1>[/DCAP_PROCEDURE_RUN_TIME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_PROCEDURE_RUN_TIME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_PROCEDURE_RUN_TIME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_b462d48aa5124a05\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_PROCEDURE_RUN_TIME",
        "update": "PUT /api/directory/DCAP_PROCEDURE_RUN_TIME",
        "patch": "PATCH /api/directory/DCAP_PROCEDURE_RUN_TIME",
        "delete": "DELETE /api/directory/DCAP_PROCEDURE_RUN_TIME",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_PROCEDURE_RUN_TIME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_PROCEDURE_RUN_TIME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_PROCEDURE_RUN_TIME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_PROCEDURE_RUN_TIME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_PROCEDURE_RUN_TIME"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.contacts.state.read on app:com.apple.AddressBook via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.contacts.state.read\" performed on app:com.apple.AddressBook. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
        "type": "http",
        "what": [
          "WHAT: app.contacts.state.read on app:com.apple.AddressBook via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.contacts.state.read\" performed on app:com.apple.AddressBook.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_ADDRESSBOOK]arg1[/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK]",
        "tag": "[DCAP_READ_APP_COM_APPLE_ADDRESSBOOK]<arg1>[/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_ADDRESSBOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_750c7f08a0194850\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_ADDRESSBOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_ADDRESSBOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_ADDRESSBOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_ADDRESSBOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_ADDRESSBOOK"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.bluetooth-file-exchange.state.read on app:com.apple.BluetoothFileExchange via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.bluetooth-file-exchange.state.read\" performed on app:com.apple.BluetoothFileExchange. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
        "type": "http",
        "what": [
          "WHAT: app.bluetooth-file-exchange.state.read on app:com.apple.BluetoothFileExchange via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.bluetooth-file-exchange.state.read\" performed on app:com.apple.BluetoothFileExchange.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE]arg1[/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE]",
        "tag": "[DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE]<arg1>[/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_32b4a13e192f4d58\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_BLUETOOTHFILEEXCHANGE"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_CONSOLE",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.console.state.read on app:com.apple.Console via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.console.state.read\" performed on app:com.apple.Console. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_CONSOLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_CONSOLE",
        "type": "http",
        "what": [
          "WHAT: app.console.state.read on app:com.apple.Console via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.console.state.read\" performed on app:com.apple.Console.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_CONSOLE]arg1[/DCAP_READ_APP_COM_APPLE_CONSOLE]",
        "tag": "[DCAP_READ_APP_COM_APPLE_CONSOLE]<arg1>[/DCAP_READ_APP_COM_APPLE_CONSOLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_CONSOLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_CONSOLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_c232090f13de4722\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_CONSOLE",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_CONSOLE",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_CONSOLE",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_CONSOLE",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_CONSOLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_CONSOLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_CONSOLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_CONSOLE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_CONSOLE"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_ICAL",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.calendar.state.read on app:com.apple.iCal via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.calendar.state.read\" performed on app:com.apple.iCal. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_ICAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_ICAL",
        "type": "http",
        "what": [
          "WHAT: app.calendar.state.read on app:com.apple.iCal via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.calendar.state.read\" performed on app:com.apple.iCal.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_ICAL]arg1[/DCAP_READ_APP_COM_APPLE_ICAL]",
        "tag": "[DCAP_READ_APP_COM_APPLE_ICAL]<arg1>[/DCAP_READ_APP_COM_APPLE_ICAL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_ICAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_ICAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_18832cf6f2f44aa7\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_ICAL",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_ICAL",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_ICAL",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_ICAL",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_ICAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_ICAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_ICAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_ICAL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_ICAL"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.keynote.state.read on app:com.apple.iWork.Keynote via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.keynote.state.read\" performed on app:com.apple.iWork.Keynote. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
        "type": "http",
        "what": [
          "WHAT: app.keynote.state.read on app:com.apple.iWork.Keynote via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.keynote.state.read\" performed on app:com.apple.iWork.Keynote.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE]arg1[/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE]",
        "tag": "[DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE]<arg1>[/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_c07a78a9bf6541ed\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_IWORK_KEYNOTE"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.numbers.state.read on app:com.apple.iWork.Numbers via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.numbers.state.read\" performed on app:com.apple.iWork.Numbers. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
        "type": "http",
        "what": [
          "WHAT: app.numbers.state.read on app:com.apple.iWork.Numbers via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.numbers.state.read\" performed on app:com.apple.iWork.Numbers.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS]arg1[/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS]",
        "tag": "[DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS]<arg1>[/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_a4f88d1a6c0d45e6\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_IWORK_NUMBERS"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.pages.state.read on app:com.apple.iWork.Pages via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.pages.state.read\" performed on app:com.apple.iWork.Pages. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
        "type": "http",
        "what": [
          "WHAT: app.pages.state.read on app:com.apple.iWork.Pages via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.pages.state.read\" performed on app:com.apple.iWork.Pages.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_IWORK_PAGES]arg1[/DCAP_READ_APP_COM_APPLE_IWORK_PAGES]",
        "tag": "[DCAP_READ_APP_COM_APPLE_IWORK_PAGES]<arg1>[/DCAP_READ_APP_COM_APPLE_IWORK_PAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_PAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_IWORK_PAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_ce275b50298147d0\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_IWORK_PAGES",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_PAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_PAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_IWORK_PAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_IWORK_PAGES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_IWORK_PAGES"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_MAIL",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.mail.state.read on app:com.apple.mail via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.mail.state.read\" performed on app:com.apple.mail. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_MAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_MAIL",
        "type": "http",
        "what": [
          "WHAT: app.mail.state.read on app:com.apple.mail via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.mail.state.read\" performed on app:com.apple.mail.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_MAIL]arg1[/DCAP_READ_APP_COM_APPLE_MAIL]",
        "tag": "[DCAP_READ_APP_COM_APPLE_MAIL]<arg1>[/DCAP_READ_APP_COM_APPLE_MAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_MAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_MAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_d102f627a7d74025\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_MAIL",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_MAIL",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_MAIL",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_MAIL",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_MAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_MAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_MAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_MAIL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_MAIL"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_MOBILESMS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.messages.state.read on app:com.apple.MobileSMS via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.messages.state.read\" performed on app:com.apple.MobileSMS. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_MOBILESMS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_MOBILESMS",
        "type": "http",
        "what": [
          "WHAT: app.messages.state.read on app:com.apple.MobileSMS via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.messages.state.read\" performed on app:com.apple.MobileSMS.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_MOBILESMS]arg1[/DCAP_READ_APP_COM_APPLE_MOBILESMS]",
        "tag": "[DCAP_READ_APP_COM_APPLE_MOBILESMS]<arg1>[/DCAP_READ_APP_COM_APPLE_MOBILESMS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_MOBILESMS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_MOBILESMS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_bc74f4723a14418a\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_MOBILESMS",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_MOBILESMS",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_MOBILESMS",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_MOBILESMS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_MOBILESMS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_MOBILESMS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_MOBILESMS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_MOBILESMS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_MOBILESMS"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_MUSIC",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.music.state.read on app:com.apple.Music via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.music.state.read\" performed on app:com.apple.Music. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_MUSIC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_MUSIC",
        "type": "http",
        "what": [
          "WHAT: app.music.state.read on app:com.apple.Music via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.music.state.read\" performed on app:com.apple.Music.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_MUSIC]arg1[/DCAP_READ_APP_COM_APPLE_MUSIC]",
        "tag": "[DCAP_READ_APP_COM_APPLE_MUSIC]<arg1>[/DCAP_READ_APP_COM_APPLE_MUSIC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_MUSIC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_MUSIC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_13b9a8f659314b2a\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_MUSIC",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_MUSIC",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_MUSIC",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_MUSIC",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_MUSIC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_MUSIC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_MUSIC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_MUSIC"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_MUSIC"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_NOTES",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.notes.state.read on app:com.apple.Notes via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.notes.state.read\" performed on app:com.apple.Notes. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_NOTES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_NOTES",
        "type": "http",
        "what": [
          "WHAT: app.notes.state.read on app:com.apple.Notes via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.notes.state.read\" performed on app:com.apple.Notes.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_NOTES]arg1[/DCAP_READ_APP_COM_APPLE_NOTES]",
        "tag": "[DCAP_READ_APP_COM_APPLE_NOTES]<arg1>[/DCAP_READ_APP_COM_APPLE_NOTES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_NOTES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_NOTES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_0c3f7d0f35f34325\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_NOTES",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_NOTES",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_NOTES",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_NOTES",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_NOTES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_NOTES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_NOTES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_NOTES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_NOTES"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_PHOTOS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.photos.state.read on app:com.apple.Photos via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.photos.state.read\" performed on app:com.apple.Photos. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_PHOTOS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_PHOTOS",
        "type": "http",
        "what": [
          "WHAT: app.photos.state.read on app:com.apple.Photos via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.photos.state.read\" performed on app:com.apple.Photos.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_PHOTOS]arg1[/DCAP_READ_APP_COM_APPLE_PHOTOS]",
        "tag": "[DCAP_READ_APP_COM_APPLE_PHOTOS]<arg1>[/DCAP_READ_APP_COM_APPLE_PHOTOS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_PHOTOS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_PHOTOS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_328fd0f1dbd245d3\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_PHOTOS",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_PHOTOS",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_PHOTOS",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_PHOTOS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_PHOTOS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_PHOTOS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_PHOTOS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_PHOTOS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_PHOTOS"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.quicktime-player.state.read on app:com.apple.QuickTimePlayerX via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.quicktime-player.state.read\" performed on app:com.apple.QuickTimePlayerX. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
        "type": "http",
        "what": [
          "WHAT: app.quicktime-player.state.read on app:com.apple.QuickTimePlayerX via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.quicktime-player.state.read\" performed on app:com.apple.QuickTimePlayerX.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX]arg1[/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX]",
        "tag": "[DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX]<arg1>[/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_5d1c66017d6b449a\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_QUICKTIMEPLAYERX"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_REMINDERS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.reminders.state.read on app:com.apple.reminders via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.reminders.state.read\" performed on app:com.apple.reminders. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_REMINDERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_REMINDERS",
        "type": "http",
        "what": [
          "WHAT: app.reminders.state.read on app:com.apple.reminders via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.reminders.state.read\" performed on app:com.apple.reminders.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_REMINDERS]arg1[/DCAP_READ_APP_COM_APPLE_REMINDERS]",
        "tag": "[DCAP_READ_APP_COM_APPLE_REMINDERS]<arg1>[/DCAP_READ_APP_COM_APPLE_REMINDERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_REMINDERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_REMINDERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_f437378ee6d54a9c\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_REMINDERS",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_REMINDERS",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_REMINDERS",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_REMINDERS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_REMINDERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_REMINDERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_REMINDERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_REMINDERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_REMINDERS"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_SAFARI",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.safari.state.read on app:com.apple.Safari via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.safari.state.read\" performed on app:com.apple.Safari. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_SAFARI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_SAFARI",
        "type": "http",
        "what": [
          "WHAT: app.safari.state.read on app:com.apple.Safari via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.safari.state.read\" performed on app:com.apple.Safari.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_SAFARI]arg1[/DCAP_READ_APP_COM_APPLE_SAFARI]",
        "tag": "[DCAP_READ_APP_COM_APPLE_SAFARI]<arg1>[/DCAP_READ_APP_COM_APPLE_SAFARI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_SAFARI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_SAFARI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_6f85f9cdfa5e49bd\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_SAFARI",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_SAFARI",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_SAFARI",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_SAFARI",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_SAFARI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_SAFARI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_SAFARI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_SAFARI"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_SAFARI"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_SCREENSHARING",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.screen-sharing.state.read on app:com.apple.ScreenSharing via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.screen-sharing.state.read\" performed on app:com.apple.ScreenSharing. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_SCREENSHARING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_SCREENSHARING",
        "type": "http",
        "what": [
          "WHAT: app.screen-sharing.state.read on app:com.apple.ScreenSharing via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.screen-sharing.state.read\" performed on app:com.apple.ScreenSharing.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_SCREENSHARING]arg1[/DCAP_READ_APP_COM_APPLE_SCREENSHARING]",
        "tag": "[DCAP_READ_APP_COM_APPLE_SCREENSHARING]<arg1>[/DCAP_READ_APP_COM_APPLE_SCREENSHARING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_SCREENSHARING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_SCREENSHARING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_a1d2a1ca2a924848\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_SCREENSHARING",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_SCREENSHARING",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_SCREENSHARING",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_SCREENSHARING",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_SCREENSHARING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_SCREENSHARING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_SCREENSHARING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_SCREENSHARING"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_SCREENSHARING"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_SHORTCUTS",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.shortcuts.state.read on app:com.apple.shortcuts via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.shortcuts.state.read\" performed on app:com.apple.shortcuts. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_SHORTCUTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_SHORTCUTS",
        "type": "http",
        "what": [
          "WHAT: app.shortcuts.state.read on app:com.apple.shortcuts via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.shortcuts.state.read\" performed on app:com.apple.shortcuts.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_SHORTCUTS]arg1[/DCAP_READ_APP_COM_APPLE_SHORTCUTS]",
        "tag": "[DCAP_READ_APP_COM_APPLE_SHORTCUTS]<arg1>[/DCAP_READ_APP_COM_APPLE_SHORTCUTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_SHORTCUTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_SHORTCUTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_34ba827166774f0a\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_SHORTCUTS",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_SHORTCUTS",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_SHORTCUTS",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_SHORTCUTS",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_SHORTCUTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_SHORTCUTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_SHORTCUTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_SHORTCUTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_SHORTCUTS"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.system-settings.state.read on app:com.apple.systempreferences via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.system-settings.state.read\" performed on app:com.apple.systempreferences. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
        "type": "http",
        "what": [
          "WHAT: app.system-settings.state.read on app:com.apple.systempreferences via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.system-settings.state.read\" performed on app:com.apple.systempreferences.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES]arg1[/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES]",
        "tag": "[DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES]<arg1>[/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_b98221013e1c491e\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_SYSTEMPREFERENCES"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_TERMINAL",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.terminal.state.read on app:com.apple.Terminal via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.terminal.state.read\" performed on app:com.apple.Terminal. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_TERMINAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_TERMINAL",
        "type": "http",
        "what": [
          "WHAT: app.terminal.state.read on app:com.apple.Terminal via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.terminal.state.read\" performed on app:com.apple.Terminal.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_TERMINAL]arg1[/DCAP_READ_APP_COM_APPLE_TERMINAL]",
        "tag": "[DCAP_READ_APP_COM_APPLE_TERMINAL]<arg1>[/DCAP_READ_APP_COM_APPLE_TERMINAL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_TERMINAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_TERMINAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_5ab6bcc4cbea46c6\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_TERMINAL",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_TERMINAL",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_TERMINAL",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_TERMINAL",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_TERMINAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_TERMINAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_TERMINAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_TERMINAL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_TERMINAL"
    },
    {
      "key": "DCAP_READ_APP_COM_APPLE_TV",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.tv.state.read on app:com.apple.TV via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.tv.state.read\" performed on app:com.apple.TV. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_APPLE_TV",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_APPLE_TV",
        "type": "http",
        "what": [
          "WHAT: app.tv.state.read on app:com.apple.TV via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.tv.state.read\" performed on app:com.apple.TV.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_APPLE_TV]arg1[/DCAP_READ_APP_COM_APPLE_TV]",
        "tag": "[DCAP_READ_APP_COM_APPLE_TV]<arg1>[/DCAP_READ_APP_COM_APPLE_TV]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_APPLE_TV\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_APPLE_TV  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_533814ca5755403c\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_APPLE_TV",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_APPLE_TV",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_APPLE_TV",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_APPLE_TV",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_APPLE_TV\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_APPLE_TV\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_APPLE_TV\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_APPLE_TV"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_APPLE_TV"
    },
    {
      "key": "DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.iterm.state.read on app:com.googlecode.iterm2 via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.iterm.state.read\" performed on app:com.googlecode.iterm2. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
        "type": "http",
        "what": [
          "WHAT: app.iterm.state.read on app:com.googlecode.iterm2 via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.iterm.state.read\" performed on app:com.googlecode.iterm2.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_GOOGLECODE_ITERM2]arg1[/DCAP_READ_APP_COM_GOOGLECODE_ITERM2]",
        "tag": "[DCAP_READ_APP_COM_GOOGLECODE_ITERM2]<arg1>[/DCAP_READ_APP_COM_GOOGLECODE_ITERM2]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_GOOGLECODE_ITERM2\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_GOOGLECODE_ITERM2  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_a31509538251400b\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_GOOGLECODE_ITERM2",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_GOOGLECODE_ITERM2\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_GOOGLECODE_ITERM2\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_GOOGLECODE_ITERM2\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_GOOGLECODE_ITERM2"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_GOOGLECODE_ITERM2"
    },
    {
      "key": "DCAP_READ_APP_COM_GOOGLE_CHROME",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.google-chrome.state.read on app:com.google.Chrome via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.google-chrome.state.read\" performed on app:com.google.Chrome. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_GOOGLE_CHROME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_GOOGLE_CHROME",
        "type": "http",
        "what": [
          "WHAT: app.google-chrome.state.read on app:com.google.Chrome via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.google-chrome.state.read\" performed on app:com.google.Chrome.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_GOOGLE_CHROME]arg1[/DCAP_READ_APP_COM_GOOGLE_CHROME]",
        "tag": "[DCAP_READ_APP_COM_GOOGLE_CHROME]<arg1>[/DCAP_READ_APP_COM_GOOGLE_CHROME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_GOOGLE_CHROME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_GOOGLE_CHROME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_8df06d5f7e6c4b4a\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_GOOGLE_CHROME",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_GOOGLE_CHROME",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_GOOGLE_CHROME",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_GOOGLE_CHROME",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_GOOGLE_CHROME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_GOOGLE_CHROME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_GOOGLE_CHROME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_GOOGLE_CHROME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_GOOGLE_CHROME"
    },
    {
      "key": "DCAP_READ_APP_COM_MICROSOFT_EXCEL",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.microsoft-excel.state.read on app:com.microsoft.Excel via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.microsoft-excel.state.read\" performed on app:com.microsoft.Excel. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_MICROSOFT_EXCEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_MICROSOFT_EXCEL",
        "type": "http",
        "what": [
          "WHAT: app.microsoft-excel.state.read on app:com.microsoft.Excel via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.microsoft-excel.state.read\" performed on app:com.microsoft.Excel.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_MICROSOFT_EXCEL]arg1[/DCAP_READ_APP_COM_MICROSOFT_EXCEL]",
        "tag": "[DCAP_READ_APP_COM_MICROSOFT_EXCEL]<arg1>[/DCAP_READ_APP_COM_MICROSOFT_EXCEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_EXCEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_MICROSOFT_EXCEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_b00aadbf40514b44\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_MICROSOFT_EXCEL",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_MICROSOFT_EXCEL",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_MICROSOFT_EXCEL",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_MICROSOFT_EXCEL",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_EXCEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_EXCEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_EXCEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_MICROSOFT_EXCEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_MICROSOFT_EXCEL"
    },
    {
      "key": "DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.microsoft-outlook.state.read on app:com.microsoft.Outlook via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.microsoft-outlook.state.read\" performed on app:com.microsoft.Outlook. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
        "type": "http",
        "what": [
          "WHAT: app.microsoft-outlook.state.read on app:com.microsoft.Outlook via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.microsoft-outlook.state.read\" performed on app:com.microsoft.Outlook.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_MICROSOFT_OUTLOOK]arg1[/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK]",
        "tag": "[DCAP_READ_APP_COM_MICROSOFT_OUTLOOK]<arg1>[/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_OUTLOOK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_39e540fb9ccd4648\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_OUTLOOK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_OUTLOOK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_OUTLOOK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_MICROSOFT_OUTLOOK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_MICROSOFT_OUTLOOK"
    },
    {
      "key": "DCAP_READ_APP_COM_MICROSOFT_WORD",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.microsoft-word.state.read on app:com.microsoft.Word via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.microsoft-word.state.read\" performed on app:com.microsoft.Word. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_MICROSOFT_WORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_MICROSOFT_WORD",
        "type": "http",
        "what": [
          "WHAT: app.microsoft-word.state.read on app:com.microsoft.Word via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.microsoft-word.state.read\" performed on app:com.microsoft.Word.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_MICROSOFT_WORD]arg1[/DCAP_READ_APP_COM_MICROSOFT_WORD]",
        "tag": "[DCAP_READ_APP_COM_MICROSOFT_WORD]<arg1>[/DCAP_READ_APP_COM_MICROSOFT_WORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_WORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_MICROSOFT_WORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_22d610f92d1d4650\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_MICROSOFT_WORD",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_MICROSOFT_WORD",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_MICROSOFT_WORD",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_MICROSOFT_WORD",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_WORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_WORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_MICROSOFT_WORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_MICROSOFT_WORD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_MICROSOFT_WORD"
    },
    {
      "key": "DCAP_READ_APP_COM_OPENAI_CODEX",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.chatgpt.state.read on app:com.openai.codex via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.chatgpt.state.read\" performed on app:com.openai.codex. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_OPENAI_CODEX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_OPENAI_CODEX",
        "type": "http",
        "what": [
          "WHAT: app.chatgpt.state.read on app:com.openai.codex via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.chatgpt.state.read\" performed on app:com.openai.codex.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_OPENAI_CODEX]arg1[/DCAP_READ_APP_COM_OPENAI_CODEX]",
        "tag": "[DCAP_READ_APP_COM_OPENAI_CODEX]<arg1>[/DCAP_READ_APP_COM_OPENAI_CODEX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_OPENAI_CODEX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_OPENAI_CODEX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_bd663f4c94694862\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_OPENAI_CODEX",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_OPENAI_CODEX",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_OPENAI_CODEX",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_OPENAI_CODEX",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_OPENAI_CODEX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_OPENAI_CODEX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_OPENAI_CODEX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_OPENAI_CODEX"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_OPENAI_CODEX"
    },
    {
      "key": "DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.alfred-5.state.read on app:com.runningwithcrayons.Alfred via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.alfred-5.state.read\" performed on app:com.runningwithcrayons.Alfred. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
        "type": "http",
        "what": [
          "WHAT: app.alfred-5.state.read on app:com.runningwithcrayons.Alfred via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.alfred-5.state.read\" performed on app:com.runningwithcrayons.Alfred.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED]arg1[/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED]",
        "tag": "[DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED]<arg1>[/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_f372a7ac9ef64175\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
        "update": "PUT /api/directory/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
        "patch": "PATCH /api/directory/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
        "delete": "DELETE /api/directory/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_COM_RUNNINGWITHCRAYONS_ALFRED"
    },
    {
      "key": "DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: app.hammerspoon.state.read on app:org.hammerspoon.Hammerspoon via jxa. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"app.hammerspoon.state.read\" performed on app:org.hammerspoon.Hammerspoon. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
        "type": "http",
        "what": [
          "WHAT: app.hammerspoon.state.read on app:org.hammerspoon.Hammerspoon via jxa. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"app.hammerspoon.state.read\" performed on app:org.hammerspoon.Hammerspoon.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON]arg1[/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON]",
        "tag": "[DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON]<arg1>[/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_86ad129c6a5840aa\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
        "update": "PUT /api/directory/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
        "patch": "PATCH /api/directory/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
        "delete": "DELETE /api/directory/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_APP_ORG_HAMMERSPOON_HAMMERSPOON"
    },
    {
      "key": "DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
      "type": "http",
      "category": "discovered",
      "doc": "WHAT: http.claude-ai.get.api-account-profile on http:claude.ai/api/account_profile via http-replay. Discovered on an attached device, verified callable, promoted from the capability census. WHEN_TO_USE: the operator wants \"http.claude-ai.get.api-account-profile\" performed on http:claude.ai/api/account_profile. ARGS: $1 = the single argument string (e.g. the app name, or the shell command).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
        "type": "http",
        "what": [
          "WHAT: http.claude-ai.get.api-account-profile on http:claude.ai/api/account_profile via http-replay. Discovered on an attached device, verified callable, promoted from the capability census.",
          "WHEN_TO_USE: the operator wants \"http.claude-ai.get.api-account-profile\" performed on http:claude.ai/api/account_profile.",
          "ARGS: $1 = the single argument string (e.g. the app name, or the shell command)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the single argument string (e.g. the app name, or the shell command).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE]arg1[/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE]",
        "tag": "[DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE]<arg1>[/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"dcap_23666930f67842b1\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
        "update": "PUT /api/directory/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
        "patch": "PATCH /api/directory/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
        "delete": "DELETE /api/directory/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE",
        "invoke": "POST /api/dispatch {\"key\":\"DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DCAP_READ_HTTP_CLAUDE_AI_API_ACCOUNT_PROFILE"
    },
    {
      "key": "DECISION_CONSTITUTION",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Return the Decision Constitution verbatim, versioned (decision-constitution@1.0.0) — the governing system prompt every consequential model call runs under: clause law, stop-on-uncertainty, the 7-step numbered REASONING protocol, RECORDS_ABSENT, the structured DECISION RECORD (applicable rules / knowns / unknowns / evidence / action / rejected alternative / expected result / failure response / verification / verdict), verification-before-confirmation. Specialized prompts inherit it; they never recreate it. WHEN_TO_USE: composing any governed adjudication or consequential model call; reading the exact law a preserved payload ran under; \"what constitution was this decision under\". ARGS: none. EX: [DECISION_CONSTITUTION][/DECISION_CONSTITUTION]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DECISION_CONSTITUTION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DECISION_CONSTITUTION",
        "type": "fn",
        "what": [
          "WHAT: Return the Decision Constitution verbatim, versioned (decision-constitution@1.0.0) — the governing system prompt every consequential model call runs under: clause law, stop-on-uncertainty, the 7-step numbered REASONING protocol, RECORDS_ABSENT, the structured DECISION RECORD (applicable rules / knowns / unknowns / evidence / action / rejected alternative / expected result / failure response / verification / verdict), verification-before-confirmation. Specialized prompts inherit it; they never recreate it.",
          "WHEN_TO_USE: composing any governed adjudication or consequential model call; reading the exact law a preserved payload ran under; \"what constitution was this decision under\".",
          "ARGS: none.",
          "EX: [DECISION_CONSTITUTION][/DECISION_CONSTITUTION]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the Decision Constitution verbatim, versioned (decision-constitution@1.0.0) — the governing system prompt every consequential model call runs under: clause law, stop-on-uncertainty, the 7-step numbered REASONING protocol, RECORDS_ABSENT, the structured DECISION RECORD (applicable rules / knowns / unknowns / evidence / action / rejected alternative / expected result / failure response / verification / verdict), verification-before-confirmation. Specialized prompts inherit it; they never recreate it.",
        "example": "[DECISION_CONSTITUTION][/DECISION_CONSTITUTION]",
        "tag": "[DECISION_CONSTITUTION]<arg1>[/DECISION_CONSTITUTION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DECISION_CONSTITUTION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DECISION_CONSTITUTION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DECISION_CONSTITUTION",
        "update": "PUT /api/directory/DECISION_CONSTITUTION",
        "patch": "PATCH /api/directory/DECISION_CONSTITUTION",
        "delete": "DELETE /api/directory/DECISION_CONSTITUTION",
        "invoke": "POST /api/dispatch {\"key\":\"DECISION_CONSTITUTION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DECISION_CONSTITUTION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DECISION_CONSTITUTION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DECISION_CONSTITUTION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DECISION_CONSTITUTION"
    },
    {
      "key": "DECISION_GET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: One authorization decision as an addressable object: outcome, code, checks, policy revision and hash. The owner reads the presenter and every detail; the public reads the outcome and the check names. WHEN_TO_USE: a denial needs to be inspected by id. ARGS: decision id or decision://id EX: [DECISION_GET]decision://ev_abc[/DECISION_GET] TESTS: Returns the decision; LEDGER_LOOKUP_FAILED when the ledger does not answer, never DECISION_NOT_FOUND in that case.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DECISION_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DECISION_GET",
        "type": "fn",
        "what": [
          "WHAT: One authorization decision as an addressable object: outcome, code, checks, policy revision and hash. The owner reads the presenter and every detail; the public reads the outcome and the check names.",
          "WHEN_TO_USE: a denial needs to be inspected by id.",
          "ARGS: decision id or decision://id",
          "EX: [DECISION_GET]decision://ev_abc[/DECISION_GET]",
          "TESTS: Returns the decision; LEDGER_LOOKUP_FAILED when the ledger does not answer, never DECISION_NOT_FOUND in that case."
        ],
        "args": [
          {
            "pos": 1,
            "name": "decision://ev_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the decision; LEDGER_LOOKUP_FAILED when the ledger does not answer, never DECISION_NOT_FOUND in that case.",
        "example": "[DECISION_GET]decision://ev_abc[/DECISION_GET]",
        "tag": "[DECISION_GET]<decision://ev_abc …>[/DECISION_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DECISION_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DECISION_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/DECISION_GET",
        "update": "PUT /api/directory/DECISION_GET",
        "patch": "PATCH /api/directory/DECISION_GET",
        "delete": "DELETE /api/directory/DECISION_GET",
        "invoke": "POST /api/dispatch {\"key\":\"DECISION_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DECISION_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DECISION_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DECISION_GET"
      },
      "examples": "[\"decision://ev_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DECISION_GET"
    },
    {
      "key": "DECISION_RECORD",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: File a clause-cited model decision justification with facts, evidence, uncertainty and counterarguments. This is an accountability artifact, never a hidden chain-of-thought claim or legal determination. ARGS: JSON {standard_id,model,provider,model_family,task,decision:CONFORMANT|NONCONFORMANT|PARTIAL|UNKNOWN|ABSTAIN|LEGAL_REVIEW_REQUIRED,justification,facts[],clause_findings:[{clause,result,reason,evidence[]}],uncertainties[],counterarguments[],recommended_action?,confidence?,evidence[],prompt_hash?,context_hash?,prior_answers_visible?,authority,invocation_id?,repair_of?}. TESTS: Standard and clause ids must exist; every PASS/FAIL finding needs evidence; legal-review standards cannot yield a runtime legal conclusion; record is hash-pinned and append-only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DECISION_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DECISION_RECORD",
        "type": "http",
        "what": [
          "WHAT: File a clause-cited model decision justification with facts, evidence, uncertainty and counterarguments. This is an accountability artifact, never a hidden chain-of-thought claim or legal determination.",
          "ARGS: JSON {standard_id,model,provider,model_family,task,decision:CONFORMANT|NONCONFORMANT|PARTIAL|UNKNOWN|ABSTAIN|LEGAL_REVIEW_REQUIRED,justification,facts[],clause_findings:[{clause,result,reason,evidence[]}],uncertainties[],counterarguments[],recommended_action?,confidence?,evidence[],prompt_hash?,context_hash?,prior_answers_visible?,authority,invocation_id?,repair_of?}.",
          "TESTS: Standard and clause ids must exist; every PASS/FAIL finding needs evidence; legal-review standards cannot yield a runtime legal conclusion; record is hash-pinned and append-only."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DECISION_RECORD]arg1[/DECISION_RECORD]",
        "tag": "[DECISION_RECORD]<arg1 …>[/DECISION_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DECISION_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DECISION_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/DECISION_RECORD",
        "update": "PUT /api/directory/DECISION_RECORD",
        "patch": "PATCH /api/directory/DECISION_RECORD",
        "delete": "DELETE /api/directory/DECISION_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"DECISION_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DECISION_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DECISION_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DECISION_RECORD"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=DECISION_RECORD"
    },
    {
      "key": "DEDUP_INSERT",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Insert message_id into blooio_dedup. Use ONLY from the inbound webhook handler before replying WHEN_TO_USE: you need to dedup insert ARGS: $1 EX: [DEDUP_INSERT]arg1[/DEDUP_INSERT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEDUP_INSERT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEDUP_INSERT",
        "type": "fn",
        "what": [
          "WHAT: Insert message_id into blooio_dedup. Use ONLY from the inbound webhook handler before replying",
          "WHEN_TO_USE: you need to dedup insert",
          "ARGS: $1",
          "EX: [DEDUP_INSERT]arg1[/DEDUP_INSERT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DEDUP_INSERT]arg1[/DEDUP_INSERT]",
        "tag": "[DEDUP_INSERT]<arg1>[/DEDUP_INSERT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEDUP_INSERT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEDUP_INSERT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DEDUP_INSERT",
        "update": "PUT /api/directory/DEDUP_INSERT",
        "patch": "PATCH /api/directory/DEDUP_INSERT",
        "delete": "DELETE /api/directory/DEDUP_INSERT",
        "invoke": "POST /api/dispatch {\"key\":\"DEDUP_INSERT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEDUP_INSERT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEDUP_INSERT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEDUP_INSERT"
      },
      "examples": "[\"::\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEDUP_INSERT"
    },
    {
      "key": "DELIVER_PENDING_ASSETS",
      "type": "flow",
      "category": "flow",
      "doc": "Trigger the durable Workflow that drains pending_deliveries. Equivalent to the old /api/deliver heartbeat but with native retries and observability. WHEN_TO_USE: \"drain the pending deliveries\" or \"force a deliver pass\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DELIVER_PENDING_ASSETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DELIVER_PENDING_ASSETS",
        "type": "flow",
        "what": [
          "Trigger the durable Workflow that drains pending_deliveries. Equivalent to the old /api/deliver heartbeat but with native retries and observability.",
          "WHEN_TO_USE: \"drain the pending deliveries\" or \"force a deliver pass\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[DELIVER_PENDING_ASSETS][/DELIVER_PENDING_ASSETS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DELIVER_PENDING_ASSETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DELIVER_PENDING_ASSETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DELIVER_PENDING_ASSETS",
        "update": "PUT /api/directory/DELIVER_PENDING_ASSETS",
        "patch": "PATCH /api/directory/DELIVER_PENDING_ASSETS",
        "delete": "DELETE /api/directory/DELIVER_PENDING_ASSETS",
        "invoke": "POST /api/dispatch {\"key\":\"DELIVER_PENDING_ASSETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DELIVER_PENDING_ASSETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DELIVER_PENDING_ASSETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DELIVER_PENDING_ASSETS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DELIVER_PENDING_ASSETS"
    },
    {
      "key": "DELTASK",
      "type": "fn",
      "category": null,
      "doc": "WHAT: delete a task. ARGS: <id>. EX {\"key\":\"DELTASK\",\"body\":\"42\"}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DELTASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DELTASK",
        "type": "fn",
        "what": [
          "WHAT: delete a task. ARGS: <id>. EX {\"key\":\"DELTASK\",\"body\":\"42\"}"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DELTASK]arg1[/DELTASK]",
        "tag": "[DELTASK]<arg1>[/DELTASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DELTASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DELTASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"DELETE FROM tasks WHERE id=?\",\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DELTASK",
        "update": "PUT /api/directory/DELTASK",
        "patch": "PATCH /api/directory/DELTASK",
        "delete": "DELETE /api/directory/DELTASK",
        "invoke": "POST /api/dispatch {\"key\":\"DELTASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DELTASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DELTASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DELTASK"
      },
      "examples": "[\"45\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DELTASK"
    },
    {
      "key": "DEL_ROW",
      "type": "fn",
      "category": "self_mod",
      "doc": "WHAT: Delete a directory row. WHEN_TO_USE: removing a tool that is broken, stale, or unwanted. ARGS: $1 = the row key. EX: [DEL_ROW]OLD_TOOL[/DEL_ROW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEL_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEL_ROW",
        "type": "fn",
        "what": [
          "WHAT: Delete a directory row.",
          "WHEN_TO_USE: removing a tool that is broken, stale, or unwanted.",
          "ARGS: $1 = the row key.",
          "EX: [DEL_ROW]OLD_TOOL[/DEL_ROW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "OLD_TOOL",
            "desc": "the row key.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DEL_ROW]OLD_TOOL[/DEL_ROW]",
        "tag": "[DEL_ROW]<OLD_TOOL>[/DEL_ROW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEL_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEL_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"key\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/DEL_ROW",
        "update": "PUT /api/directory/DEL_ROW",
        "patch": "PATCH /api/directory/DEL_ROW",
        "delete": "DELETE /api/directory/DEL_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"DEL_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEL_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEL_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEL_ROW"
      },
      "examples": "[\"AUDIT_PROBE_ROW\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEL_ROW"
    },
    {
      "key": "DEMO_D1_TO_KV",
      "type": "flow",
      "category": "demo",
      "doc": "WHAT: demo — list D1 databases via the Cloudflare API, then store that JSON in KV. Proves sequential cross-surface composition. WHEN_TO_USE: demonstration of combinatorial flows only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEMO_D1_TO_KV",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEMO_D1_TO_KV",
        "type": "flow",
        "what": [
          "WHAT: demo — list D1 databases via the Cloudflare API, then store that JSON in KV. Proves sequential cross-surface composition.",
          "WHEN_TO_USE: demonstration of combinatorial flows only."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[DEMO_D1_TO_KV][/DEMO_D1_TO_KV]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEMO_D1_TO_KV\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEMO_D1_TO_KV  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DEMO_D1_TO_KV",
        "update": "PUT /api/directory/DEMO_D1_TO_KV",
        "patch": "PATCH /api/directory/DEMO_D1_TO_KV",
        "delete": "DELETE /api/directory/DEMO_D1_TO_KV",
        "invoke": "POST /api/dispatch {\"key\":\"DEMO_D1_TO_KV\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEMO_D1_TO_KV\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEMO_D1_TO_KV\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEMO_D1_TO_KV"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEMO_D1_TO_KV"
    },
    {
      "key": "DEPLOY_LEASE",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Inspect, acquire or release the single production deployment door for loop-safe-miscsubjects. The canonical ship script holds the same KV lease from before migrations through the Pages result and ledgers acquire/release. ARGS: op check|acquire|release | holder | nonce. Acquire returns a 30-minute nonce. Release requires the exact nonce. Check is read-only. TESTS: A second live acquire is rejected; a wrong nonce cannot release; acquisition and release create DEPLOY_LEASE ledger events.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEPLOY_LEASE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEPLOY_LEASE",
        "type": "fn",
        "what": [
          "WHAT: Inspect, acquire or release the single production deployment door for loop-safe-miscsubjects. The canonical ship script holds the same KV lease from before migrations through the Pages result and ledgers acquire/release.",
          "ARGS: op check|acquire|release | holder | nonce. Acquire returns a 30-minute nonce. Release requires the exact nonce. Check is read-only.",
          "TESTS: A second live acquire is rejected; a wrong nonce cannot release; acquisition and release create DEPLOY_LEASE ledger events."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a 30-minute nonce. Release requires the exact nonce. Check is read-only.",
        "example": "[DEPLOY_LEASE]arg1|arg2|arg3[/DEPLOY_LEASE]",
        "tag": "[DEPLOY_LEASE]<arg1>|<arg2>|<arg3>[/DEPLOY_LEASE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEPLOY_LEASE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEPLOY_LEASE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/DEPLOY_LEASE",
        "update": "PUT /api/directory/DEPLOY_LEASE",
        "patch": "PATCH /api/directory/DEPLOY_LEASE",
        "delete": "DELETE /api/directory/DEPLOY_LEASE",
        "invoke": "POST /api/dispatch {\"key\":\"DEPLOY_LEASE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEPLOY_LEASE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEPLOY_LEASE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEPLOY_LEASE"
      },
      "examples": "[\"check\",\"acquire|codex-desktop\",\"release|codex-desktop|<nonce>\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEPLOY_LEASE"
    },
    {
      "key": "DESIGN_LAW",
      "type": "http",
      "category": "design",
      "doc": "WHAT: Discover the canonical Laws of Design Knowledge-Action Object.\\n# WHEN_TO_USE: any design, rendering, navigation, editorial, graph, admin, source, SEO, readability, or article-skill decision.\\n# ARGS: none for the contract; follow representations.invoke with surface and task to apply it.\\n# EX: [DESIGN_LAW][/DESIGN_LAW]\\n# CANONICAL: https://miscsubjects.com/api/articles/design-law\\n# NOTE: this row is the discovery facet; meaning, instructions, failures, tests, versions, graph, and representations live in the canonical object and are not duplicated here.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DESIGN_LAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DESIGN_LAW",
        "type": "http",
        "what": [
          "WHAT: Discover the canonical Laws of Design Knowledge-Action Object.\\n# WHEN_TO_USE: any design, rendering, navigation, editorial, graph, admin, source, SEO, readability, or article-skill decision.\\n# ARGS: none for the contract; follow representations.invoke with surface and task to apply it.\\n# EX: [DESIGN_LAW][/DESIGN_LAW]\\n# CANONICAL: https://miscsubjects.com/api/articles/design-law\\n# NOTE: this row is the discovery facet; meaning, instructions, failures, tests, versions, graph, and representations live in the canonical object and are not duplicated here."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[DESIGN_LAW][/DESIGN_LAW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DESIGN_LAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DESIGN_LAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DESIGN_LAW",
        "update": "PUT /api/directory/DESIGN_LAW",
        "patch": "PATCH /api/directory/DESIGN_LAW",
        "delete": "DELETE /api/directory/DESIGN_LAW",
        "invoke": "POST /api/dispatch {\"key\":\"DESIGN_LAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DESIGN_LAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DESIGN_LAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DESIGN_LAW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DESIGN_LAW"
    },
    {
      "key": "DESKTOP_CLICK",
      "type": "http",
      "category": null,
      "doc": "WHAT: Click screen coordinates on the Mac. Needs Accessibility granted once. WHEN_TO_USE: \"click at X Y\", \"click on my screen at\" ARGS: x | y EX: text the build → \"click at 500 400 on my screen\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DESKTOP_CLICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DESKTOP_CLICK",
        "type": "http",
        "what": [
          "WHAT: Click screen coordinates on the Mac. Needs Accessibility granted once.",
          "WHEN_TO_USE: \"click at X Y\", \"click on my screen at\"",
          "ARGS: x | y",
          "EX: text the build → \"click at 500 400 on my screen\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"click at 500 400 on my screen\"",
        "tag": "[DESKTOP_CLICK]<arg1>|<arg2>[/DESKTOP_CLICK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DESKTOP_CLICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DESKTOP_CLICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to click at {$1, $2}\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/DESKTOP_CLICK",
        "update": "PUT /api/directory/DESKTOP_CLICK",
        "patch": "PATCH /api/directory/DESKTOP_CLICK",
        "delete": "DELETE /api/directory/DESKTOP_CLICK",
        "invoke": "POST /api/dispatch {\"key\":\"DESKTOP_CLICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DESKTOP_CLICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DESKTOP_CLICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DESKTOP_CLICK"
      },
      "examples": "[\"10|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DESKTOP_CLICK"
    },
    {
      "key": "DESKTOP_SHOT",
      "type": "http",
      "category": null,
      "doc": "WHAT: Screenshot the Mac and return a stable URL. Alias of LOCAL_SCREENSHOT. WHEN_TO_USE: \"screenshot my mac\", \"take a screenshot\", \"what's on my screen\" ARGS: (none) EX: text the build → \"screenshot my screen\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DESKTOP_SHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DESKTOP_SHOT",
        "type": "http",
        "what": [
          "WHAT: Screenshot the Mac and return a stable URL. Alias of LOCAL_SCREENSHOT.",
          "WHEN_TO_USE: \"screenshot my mac\", \"take a screenshot\", \"what's on my screen\"",
          "ARGS: (none)",
          "EX: text the build → \"screenshot my screen\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "a stable URL. Alias of LOCAL_SCREENSHOT.",
        "example": "text the build → \"screenshot my screen\"",
        "tag": "[DESKTOP_SHOT][/DESKTOP_SHOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DESKTOP_SHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DESKTOP_SHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"f=/tmp/shot-$(date +%s).png; screencapture -x \\\"$f\\\" && curl -sS -X PUT --data-binary @\\\"$f\\\" -H \\\"x-terminal-key: ${TERMINAL_KEY}\\\" \\\"https://miscsubjects.com/api/file_upload?key=$(basename \\\"$f\\\")\\\"\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/DESKTOP_SHOT",
        "update": "PUT /api/directory/DESKTOP_SHOT",
        "patch": "PATCH /api/directory/DESKTOP_SHOT",
        "delete": "DELETE /api/directory/DESKTOP_SHOT",
        "invoke": "POST /api/dispatch {\"key\":\"DESKTOP_SHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DESKTOP_SHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DESKTOP_SHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DESKTOP_SHOT"
      },
      "examples": "[\"text the build \\u2192 \\\"screenshot my screen\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DESKTOP_SHOT"
    },
    {
      "key": "DESKTOP_TYPE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Type text into the focused app on the Mac (keystroke). WHEN_TO_USE: \"type X into my mac\", \"type the following into the focused app\" ARGS: text (avoid double quotes) EX: text the build → \"type 'hello world' into my focused app\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DESKTOP_TYPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DESKTOP_TYPE",
        "type": "http",
        "what": [
          "WHAT: Type text into the focused app on the Mac (keystroke).",
          "WHEN_TO_USE: \"type X into my mac\", \"type the following into the focused app\"",
          "ARGS: text (avoid double quotes)",
          "EX: text the build → \"type 'hello world' into my focused app\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"type 'hello world' into my focused app\"",
        "tag": "[DESKTOP_TYPE]<arg1>[/DESKTOP_TYPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DESKTOP_TYPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DESKTOP_TYPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to keystroke \\\"$1\\\"\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/DESKTOP_TYPE",
        "update": "PUT /api/directory/DESKTOP_TYPE",
        "patch": "PATCH /api/directory/DESKTOP_TYPE",
        "delete": "DELETE /api/directory/DESKTOP_TYPE",
        "invoke": "POST /api/dispatch {\"key\":\"DESKTOP_TYPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DESKTOP_TYPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DESKTOP_TYPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DESKTOP_TYPE"
      },
      "examples": "[\"text the build \\u2192 \\\"type 'hello world' into my focused app\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DESKTOP_TYPE"
    },
    {
      "key": "DEVICE_REGISTER",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Register a first-party device under a profile, untrusted, optionally with the public half of an EC P-256 key for proof of possession. Not a browser fingerprint: an identifier the build issued. WHEN_TO_USE: a human or agent will present capabilities from a specific browser, phone or machine that should be revocable on its own. ARGS: $1 = profile_id|label|public_key_jwk_json (the JWK may be omitted). EX: [DEVICE_REGISTER]prf_abc123|laptop chrome[/DEVICE_REGISTER] TESTS: Returns a dev_ device_id with trusted:false; a JWK carrying a private key (d) is refused.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEVICE_REGISTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEVICE_REGISTER",
        "type": "fn",
        "what": [
          "WHAT: Register a first-party device under a profile, untrusted, optionally with the public half of an EC P-256 key for proof of possession. Not a browser fingerprint: an identifier the build issued.",
          "WHEN_TO_USE: a human or agent will present capabilities from a specific browser, phone or machine that should be revocable on its own.",
          "ARGS: $1 = profile_id|label|public_key_jwk_json (the JWK may be omitted).",
          "EX: [DEVICE_REGISTER]prf_abc123|laptop chrome[/DEVICE_REGISTER]",
          "TESTS: Returns a dev_ device_id with trusted:false; a JWK carrying a private key (d) is refused."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc123",
            "desc": "profile_id|label|public_key_jwk_json (the JWK may be omitted).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a dev_ device_id with trusted:false; a JWK carrying a private key (d) is refused.",
        "example": "[DEVICE_REGISTER]prf_abc123|laptop chrome[/DEVICE_REGISTER]",
        "tag": "[DEVICE_REGISTER]<prf_abc123 …>[/DEVICE_REGISTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEVICE_REGISTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEVICE_REGISTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/DEVICE_REGISTER",
        "update": "PUT /api/directory/DEVICE_REGISTER",
        "patch": "PATCH /api/directory/DEVICE_REGISTER",
        "delete": "DELETE /api/directory/DEVICE_REGISTER",
        "invoke": "POST /api/dispatch {\"key\":\"DEVICE_REGISTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEVICE_REGISTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEVICE_REGISTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEVICE_REGISTER"
      },
      "examples": "[\"prf_abc123|laptop chrome\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEVICE_REGISTER"
    },
    {
      "key": "DEVICE_REVOKE",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Revoke one device. Owner action. Every capability context bound to it denies with DEVICE_REVOKED on the next use; the profile, its other devices and its tokens are untouched. WHEN_TO_USE: a device is lost, replaced or suspected. ARGS: $1 = device_id|reason. EX: [DEVICE_REVOKE]dev_abc123|phone lost[/DEVICE_REVOKE] TESTS: The same otherwise-valid capability, presented from that device, is denied DEVICE_REVOKED immediately.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEVICE_REVOKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEVICE_REVOKE",
        "type": "fn",
        "what": [
          "WHAT: Revoke one device. Owner action. Every capability context bound to it denies with DEVICE_REVOKED on the next use; the profile, its other devices and its tokens are untouched.",
          "WHEN_TO_USE: a device is lost, replaced or suspected.",
          "ARGS: $1 = device_id|reason.",
          "EX: [DEVICE_REVOKE]dev_abc123|phone lost[/DEVICE_REVOKE]",
          "TESTS: The same otherwise-valid capability, presented from that device, is denied DEVICE_REVOKED immediately."
        ],
        "args": [
          {
            "pos": 1,
            "name": "dev_abc123",
            "desc": "device_id|reason.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DEVICE_REVOKE]dev_abc123|phone lost[/DEVICE_REVOKE]",
        "tag": "[DEVICE_REVOKE]<dev_abc123 …>[/DEVICE_REVOKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEVICE_REVOKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEVICE_REVOKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/DEVICE_REVOKE",
        "update": "PUT /api/directory/DEVICE_REVOKE",
        "patch": "PATCH /api/directory/DEVICE_REVOKE",
        "delete": "DELETE /api/directory/DEVICE_REVOKE",
        "invoke": "POST /api/dispatch {\"key\":\"DEVICE_REVOKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEVICE_REVOKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEVICE_REVOKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEVICE_REVOKE"
      },
      "examples": "[\"dev_abc123|phone lost\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEVICE_REVOKE"
    },
    {
      "key": "DEVICE_TRUST",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Trust a registered device, optionally for a limited time. Owner action. Capability contexts bound to the device begin allowing it immediately. WHEN_TO_USE: a device has been verified by a method you accept and should be allowed to exercise bound capabilities. ARGS: $1 = device_id|reason|ttl_seconds (ttl optional). EX: [DEVICE_TRUST]dev_abc123|sms verified|2592000[/DEVICE_TRUST] TESTS: Returns trusted:true with trust_expires_at; a bound capability that was DEVICE_NOT_APPROVED now allows.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEVICE_TRUST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEVICE_TRUST",
        "type": "fn",
        "what": [
          "WHAT: Trust a registered device, optionally for a limited time. Owner action. Capability contexts bound to the device begin allowing it immediately.",
          "WHEN_TO_USE: a device has been verified by a method you accept and should be allowed to exercise bound capabilities.",
          "ARGS: $1 = device_id|reason|ttl_seconds (ttl optional).",
          "EX: [DEVICE_TRUST]dev_abc123|sms verified|2592000[/DEVICE_TRUST]",
          "TESTS: Returns trusted:true with trust_expires_at; a bound capability that was DEVICE_NOT_APPROVED now allows."
        ],
        "args": [
          {
            "pos": 1,
            "name": "dev_abc123",
            "desc": "device_id|reason|ttl_seconds (ttl optional).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "trusted:true with trust_expires_at; a bound capability that was DEVICE_NOT_APPROVED now allows.",
        "example": "[DEVICE_TRUST]dev_abc123|sms verified|2592000[/DEVICE_TRUST]",
        "tag": "[DEVICE_TRUST]<dev_abc123 …>[/DEVICE_TRUST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEVICE_TRUST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEVICE_TRUST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/DEVICE_TRUST",
        "update": "PUT /api/directory/DEVICE_TRUST",
        "patch": "PATCH /api/directory/DEVICE_TRUST",
        "delete": "DELETE /api/directory/DEVICE_TRUST",
        "invoke": "POST /api/dispatch {\"key\":\"DEVICE_TRUST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEVICE_TRUST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEVICE_TRUST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEVICE_TRUST"
      },
      "examples": "[\"dev_abc123|sms verified|2592000\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEVICE_TRUST"
    },
    {
      "key": "DEVICE_VERIFY_RECORD",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Record a human verification on a device by hand (owner action). Humans verify themselves at /verify-device?device=dev_…, which does this through Cloudflare Turnstile server-side. WHEN_TO_USE: a verification happened out of band (in person, over a call) and a step-up context should accept the device for its window. ARGS: $1 = device_id|method. EX: [DEVICE_VERIFY_RECORD]dev_abc123|in_person[/DEVICE_VERIFY_RECORD] TESTS: Sets last_verification to now; a TURNSTILE_REQUIRED denial becomes an allow within the window.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DEVICE_VERIFY_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DEVICE_VERIFY_RECORD",
        "type": "fn",
        "what": [
          "WHAT: Record a human verification on a device by hand (owner action). Humans verify themselves at /verify-device?device=dev_…, which does this through Cloudflare Turnstile server-side.",
          "WHEN_TO_USE: a verification happened out of band (in person, over a call) and a step-up context should accept the device for its window.",
          "ARGS: $1 = device_id|method.",
          "EX: [DEVICE_VERIFY_RECORD]dev_abc123|in_person[/DEVICE_VERIFY_RECORD]",
          "TESTS: Sets last_verification to now; a TURNSTILE_REQUIRED denial becomes an allow within the window."
        ],
        "args": [
          {
            "pos": 1,
            "name": "dev_abc123",
            "desc": "device_id|method.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DEVICE_VERIFY_RECORD]dev_abc123|in_person[/DEVICE_VERIFY_RECORD]",
        "tag": "[DEVICE_VERIFY_RECORD]<dev_abc123 …>[/DEVICE_VERIFY_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DEVICE_VERIFY_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DEVICE_VERIFY_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/DEVICE_VERIFY_RECORD",
        "update": "PUT /api/directory/DEVICE_VERIFY_RECORD",
        "patch": "PATCH /api/directory/DEVICE_VERIFY_RECORD",
        "delete": "DELETE /api/directory/DEVICE_VERIFY_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"DEVICE_VERIFY_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DEVICE_VERIFY_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DEVICE_VERIFY_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DEVICE_VERIFY_RECORD"
      },
      "examples": "[\"dev_abc123|in_person\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DEVICE_VERIFY_RECORD"
    },
    {
      "key": "DIRECTORY_CATALOG",
      "type": "http",
      "category": "environment",
      "doc": "WHAT: The directory — every object the environment has, as rows. Nouns.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIRECTORY_CATALOG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIRECTORY_CATALOG",
        "type": "http",
        "what": [
          "WHAT: The directory — every object the environment has, as rows. Nouns."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[DIRECTORY_CATALOG][/DIRECTORY_CATALOG]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIRECTORY_CATALOG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIRECTORY_CATALOG  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DIRECTORY_CATALOG",
        "update": "PUT /api/directory/DIRECTORY_CATALOG",
        "patch": "PATCH /api/directory/DIRECTORY_CATALOG",
        "delete": "DELETE /api/directory/DIRECTORY_CATALOG",
        "invoke": "POST /api/dispatch {\"key\":\"DIRECTORY_CATALOG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIRECTORY_CATALOG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIRECTORY_CATALOG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIRECTORY_CATALOG"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIRECTORY_CATALOG"
    },
    {
      "key": "DIRECTORY_GET",
      "type": "flow",
      "category": "directory",
      "doc": "Read one directory row by $1=key. Use to inspect a specific tool definition.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIRECTORY_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIRECTORY_GET",
        "type": "flow",
        "what": [
          "Read one directory row by $1=key. Use to inspect a specific tool definition."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key. Use to inspect a specific tool definition.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[DIRECTORY_GET]arg1[/DIRECTORY_GET]",
        "tag": "[DIRECTORY_GET]<arg1>[/DIRECTORY_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIRECTORY_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIRECTORY_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DIRECTORY_GET",
        "update": "PUT /api/directory/DIRECTORY_GET",
        "patch": "PATCH /api/directory/DIRECTORY_GET",
        "delete": "DELETE /api/directory/DIRECTORY_GET",
        "invoke": "POST /api/dispatch {\"key\":\"DIRECTORY_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIRECTORY_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIRECTORY_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIRECTORY_GET"
      },
      "examples": "[\"ADDTASK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIRECTORY_GET"
    },
    {
      "key": "DIRECTORY_LIST",
      "type": "flow",
      "category": "directory",
      "doc": "List the directory: D1_QUERY: SELECT key, type, target, updated_at FROM directory ORDER BY key. Use to enumerate every tool.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIRECTORY_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIRECTORY_LIST",
        "type": "flow",
        "what": [
          "List the directory: D1_QUERY: SELECT key, type, target, updated_at FROM directory ORDER BY key. Use to enumerate every tool."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[DIRECTORY_LIST][/DIRECTORY_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIRECTORY_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIRECTORY_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DIRECTORY_LIST",
        "update": "PUT /api/directory/DIRECTORY_LIST",
        "patch": "PATCH /api/directory/DIRECTORY_LIST",
        "delete": "DELETE /api/directory/DIRECTORY_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"DIRECTORY_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIRECTORY_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIRECTORY_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIRECTORY_LIST"
      },
      "examples": "[\"article\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIRECTORY_LIST"
    },
    {
      "key": "DIRECT_EXEC_IF_PREFIX",
      "type": "flow",
      "category": "flow",
      "doc": "If the inbound message starts with /t /exec /terminal /run /help, treat the rest as a LOCAL_EXEC command on the Mac bridge. Otherwise pass through unchanged. $1=full message. WHEN_TO_USE: at the top of channel webhook handlers as a shortcut for owner-side shell access.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIRECT_EXEC_IF_PREFIX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIRECT_EXEC_IF_PREFIX",
        "type": "flow",
        "what": [
          "If the inbound message starts with /t /exec /terminal /run /help, treat the rest as a LOCAL_EXEC command on the Mac bridge. Otherwise pass through unchanged. $1=full message.",
          "WHEN_TO_USE: at the top of channel webhook handlers as a shortcut for owner-side shell access."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "full message.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[DIRECT_EXEC_IF_PREFIX]arg1[/DIRECT_EXEC_IF_PREFIX]",
        "tag": "[DIRECT_EXEC_IF_PREFIX]<arg1 …>[/DIRECT_EXEC_IF_PREFIX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIRECT_EXEC_IF_PREFIX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIRECT_EXEC_IF_PREFIX  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DIRECT_EXEC_IF_PREFIX",
        "update": "PUT /api/directory/DIRECT_EXEC_IF_PREFIX",
        "patch": "PATCH /api/directory/DIRECT_EXEC_IF_PREFIX",
        "delete": "DELETE /api/directory/DIRECT_EXEC_IF_PREFIX",
        "invoke": "POST /api/dispatch {\"key\":\"DIRECT_EXEC_IF_PREFIX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIRECT_EXEC_IF_PREFIX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIRECT_EXEC_IF_PREFIX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIRECT_EXEC_IF_PREFIX"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DIRECT_EXEC_IF_PREFIX"
    },
    {
      "key": "DIR_GET",
      "type": "http",
      "category": "directory",
      "doc": "WHAT: Read one directory row by key. WHEN_TO_USE: the user asks about a specific tool, agent, or setting. ARGS: $1 = the row key. EX: [DIR_GET]ROUTER[/DIR_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIR_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIR_GET",
        "type": "http",
        "what": [
          "WHAT: Read one directory row by key.",
          "WHEN_TO_USE: the user asks about a specific tool, agent, or setting.",
          "ARGS: $1 = the row key.",
          "EX: [DIR_GET]ROUTER[/DIR_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "the row key.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DIR_GET]ROUTER[/DIR_GET]",
        "tag": "[DIR_GET]<ROUTER>[/DIR_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIR_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIR_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"key\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/DIR_GET",
        "update": "PUT /api/directory/DIR_GET",
        "patch": "PATCH /api/directory/DIR_GET",
        "delete": "DELETE /api/directory/DIR_GET",
        "invoke": "POST /api/dispatch {\"key\":\"DIR_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIR_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIR_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIR_GET"
      },
      "examples": "[\"ROUTER\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIR_GET"
    },
    {
      "key": "DIR_LIST",
      "type": "http",
      "category": "directory",
      "doc": "WHAT: List every directory row WHEN_TO_USE: you need to dir list ARGS: see content EX: [DIR_LIST][/DIR_LIST] List every directory row.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIR_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIR_LIST",
        "type": "http",
        "what": [
          "WHAT: List every directory row",
          "WHEN_TO_USE: you need to dir list",
          "ARGS: see content",
          "EX: [DIR_LIST][/DIR_LIST]",
          "List every directory row."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DIR_LIST][/DIR_LIST]",
        "tag": "[DIR_LIST][/DIR_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIR_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIR_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DIR_LIST",
        "update": "PUT /api/directory/DIR_LIST",
        "patch": "PATCH /api/directory/DIR_LIST",
        "delete": "DELETE /api/directory/DIR_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"DIR_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIR_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIR_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIR_LIST"
      },
      "examples": "[\"cf_radar\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIR_LIST"
    },
    {
      "key": "DIR_PATCH",
      "type": "http",
      "category": "directory",
      "doc": "WHAT: Edit a directory row (a prompt or capability) by KEY. json_body is a JSON object with any of {type,target,auth,content,category,enabled,planner_visible,planner_rank}. WHEN_TO_USE: \"edit a prompt\", \"edit a capability\", \"change a tool\", \"update the ROUTER prompt\", \"edit a directory row\". ARGS: key | json_body EX: [DIR_PATCH]ROUTER|{\"content\":\"new prompt text\"}[/DIR_PATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIR_PATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIR_PATCH",
        "type": "http",
        "what": [
          "WHAT: Edit a directory row (a prompt or capability) by KEY. json_body is a JSON object with any of {type,target,auth,content,category,enabled,planner_visible,planner_rank}.",
          "WHEN_TO_USE: \"edit a prompt\", \"edit a capability\", \"change a tool\", \"update the ROUTER prompt\", \"edit a directory row\".",
          "ARGS: key | json_body",
          "EX: [DIR_PATCH]ROUTER|{\"content\":\"new prompt text\"}[/DIR_PATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "{\"content\":\"new prompt text\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DIR_PATCH]ROUTER|{\"content\":\"new prompt text\"}[/DIR_PATCH]",
        "tag": "[DIR_PATCH]<ROUTER>|<{\"content\":\"new prompt text\"} …>[/DIR_PATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIR_PATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIR_PATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$2+",
      "edit": {
        "read": "GET /api/directory/DIR_PATCH",
        "update": "PUT /api/directory/DIR_PATCH",
        "patch": "PATCH /api/directory/DIR_PATCH",
        "delete": "DELETE /api/directory/DIR_PATCH",
        "invoke": "POST /api/dispatch {\"key\":\"DIR_PATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIR_PATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIR_PATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIR_PATCH"
      },
      "examples": "[\"CHAIN_SEAL|{\\\"auth\\\":\\\"headers:{\\\\\\\"x-terminal-key\\\\\\\":\\\\\\\"$TERMINAL_KEY\\\\\\\"}\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIR_PATCH"
    },
    {
      "key": "DIR_SEARCH",
      "type": "http",
      "category": "directory",
      "doc": "WHAT: Find directory rows by words — the tool, agent or sheet verb you need when you do not know its exact name. Returns a short list: key, type, category, what it does. Call this BEFORE DIR_LIST; DIR_LIST returns every row and buries the answer. WHEN_TO_USE: the request names a capability (make a sheet, send an email, look up a customer) and you do not know the row key. ARGS: words EXAMPLE: [DIR_SEARCH]new sheet[/DIR_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DIR_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DIR_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Find directory rows by words — the tool, agent or sheet verb you need when you do not know its exact name. Returns a short list: key, type, category, what it does. Call this BEFORE DIR_LIST; DIR_LIST returns every row and buries the answer.",
          "WHEN_TO_USE: the request names a capability (make a sheet, send an email, look up a customer) and you do not know the row key.",
          "ARGS: words",
          "EXAMPLE: [DIR_SEARCH]new sheet[/DIR_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "new sheet",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a short list: key, type, category, what it does. Call this BEFORE DIR_LIST; DIR_LIST returns every row and buries the answer.",
        "example": "[DIR_SEARCH]new sheet[/DIR_SEARCH]",
        "tag": "[DIR_SEARCH]<new sheet>[/DIR_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DIR_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DIR_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{}",
      "edit": {
        "read": "GET /api/directory/DIR_SEARCH",
        "update": "PUT /api/directory/DIR_SEARCH",
        "patch": "PATCH /api/directory/DIR_SEARCH",
        "delete": "DELETE /api/directory/DIR_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"DIR_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DIR_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DIR_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DIR_SEARCH"
      },
      "examples": "[\"new sheet\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DIR_SEARCH"
    },
    {
      "key": "DISCLOSURE_GET",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Read a versioned public defensive-publication artifact from the disclosure archive. Text is scanned for bearer/credential material at read time; binary artifacts are admitted only after local render/hash/credential review. Keys are immutable and public. ARGS: $1 = public disclosure path returned by a publication manifest, for example 2026-07-17/operation-killbox-v1.1/specification.md. TESTS: Unknown paths and traversal return 404; text containing credential material returns a generic 404; successful responses include immutable caching, CORS, nosniff and sandbox headers.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DISCLOSURE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DISCLOSURE_GET",
        "type": "http",
        "what": [
          "WHAT: Read a versioned public defensive-publication artifact from the disclosure archive. Text is scanned for bearer/credential material at read time; binary artifacts are admitted only after local render/hash/credential review. Keys are immutable and public.",
          "ARGS: $1 = public disclosure path returned by a publication manifest, for example 2026-07-17/operation-killbox-v1.1/specification.md.",
          "TESTS: Unknown paths and traversal return 404; text containing credential material returns a generic 404; successful responses include immutable caching, CORS, nosniff and sandbox headers."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "public disclosure path returned by a publication manifest, for example 2026-07-17/operation-killbox-v1.1/specification.md.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "404; text containing credential material returns a generic 404; successful responses include immutable caching, CORS, nosniff and sandbox headers.",
        "example": "[DISCLOSURE_GET]arg1[/DISCLOSURE_GET]",
        "tag": "[DISCLOSURE_GET]<arg1>[/DISCLOSURE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DISCLOSURE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DISCLOSURE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DISCLOSURE_GET",
        "update": "PUT /api/directory/DISCLOSURE_GET",
        "patch": "PATCH /api/directory/DISCLOSURE_GET",
        "delete": "DELETE /api/directory/DISCLOSURE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"DISCLOSURE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DISCLOSURE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DISCLOSURE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DISCLOSURE_GET"
      },
      "examples": "[\"2026-07-17/operation-killbox-v1.1/specification.md\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DISCLOSURE_GET"
    },
    {
      "key": "DISCOVER_SOURCE",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Fetch a public URL (API docs, OpenAPI spec, GitHub raw, vendor SDK readme) and persist the raw body to R2 under capability_sources/<sha16>.txt. Returns {url, bytes, r2_key, sha256_16, status}. First step of universe-to-row. $1=URL WHEN_TO_USE: you need to discover source ARGS: $1 EX: [DISCOVER_SOURCE]arg1[/DISCOVER_SOURCE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DISCOVER_SOURCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DISCOVER_SOURCE",
        "type": "fn",
        "what": [
          "WHAT: Fetch a public URL (API docs, OpenAPI spec, GitHub raw, vendor SDK readme) and persist the raw body to R2 under capability_sources/<sha16>.txt. Returns {url, bytes, r2_key, sha256_16, status}. First step of universe-to-row. $1=URL",
          "WHEN_TO_USE: you need to discover source",
          "ARGS: $1",
          "EX: [DISCOVER_SOURCE]arg1[/DISCOVER_SOURCE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "URL",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{url, bytes, r2_key, sha256_16, status}. First step of universe-to-row. $1=URL",
        "example": "[DISCOVER_SOURCE]arg1[/DISCOVER_SOURCE]",
        "tag": "[DISCOVER_SOURCE]<arg1>[/DISCOVER_SOURCE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DISCOVER_SOURCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DISCOVER_SOURCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DISCOVER_SOURCE",
        "update": "PUT /api/directory/DISCOVER_SOURCE",
        "patch": "PATCH /api/directory/DISCOVER_SOURCE",
        "delete": "DELETE /api/directory/DISCOVER_SOURCE",
        "invoke": "POST /api/dispatch {\"key\":\"DISCOVER_SOURCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DISCOVER_SOURCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DISCOVER_SOURCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DISCOVER_SOURCE"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DISCOVER_SOURCE"
    },
    {
      "key": "DOCS_GET",
      "type": "fn",
      "category": "docs",
      "doc": "WHAT: Read one writer/build doc from the D1 docs table by slug (style_topology, slot_specs, judge_prompt, arcads, blooio, cloudflare, ai-gateway, 2chat, build-intent). Returns {slug,title,body} WHEN_TO_USE: you need to docs get ARGS: $1 EX: [DOCS_GET]arg1[/DOCS_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DOCS_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DOCS_GET",
        "type": "fn",
        "what": [
          "WHAT: Read one writer/build doc from the D1 docs table by slug (style_topology, slot_specs, judge_prompt, arcads, blooio, cloudflare, ai-gateway, 2chat, build-intent). Returns {slug,title,body}",
          "WHEN_TO_USE: you need to docs get",
          "ARGS: $1",
          "EX: [DOCS_GET]arg1[/DOCS_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{slug,title,body}",
        "example": "[DOCS_GET]arg1[/DOCS_GET]",
        "tag": "[DOCS_GET]<arg1>[/DOCS_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DOCS_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DOCS_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DOCS_GET",
        "update": "PUT /api/directory/DOCS_GET",
        "patch": "PATCH /api/directory/DOCS_GET",
        "delete": "DELETE /api/directory/DOCS_GET",
        "invoke": "POST /api/dispatch {\"key\":\"DOCS_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DOCS_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DOCS_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DOCS_GET"
      },
      "examples": "[\"cloudflare\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DOCS_GET"
    },
    {
      "key": "DOCS_SEARCH",
      "type": "fn",
      "category": "docs",
      "doc": "WHAT: Search stored docs. Arg: query. Returns slugs + snippets WHEN_TO_USE: you need to docs search ARGS: $1 EX: [DOCS_SEARCH]arg1[/DOCS_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DOCS_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DOCS_SEARCH",
        "type": "fn",
        "what": [
          "WHAT: Search stored docs. Arg: query. Returns slugs + snippets",
          "WHEN_TO_USE: you need to docs search",
          "ARGS: $1",
          "EX: [DOCS_SEARCH]arg1[/DOCS_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "slugs + snippets",
        "example": "[DOCS_SEARCH]arg1[/DOCS_SEARCH]",
        "tag": "[DOCS_SEARCH]<arg1>[/DOCS_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DOCS_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DOCS_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/DOCS_SEARCH",
        "update": "PUT /api/directory/DOCS_SEARCH",
        "patch": "PATCH /api/directory/DOCS_SEARCH",
        "delete": "DELETE /api/directory/DOCS_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"DOCS_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DOCS_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DOCS_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DOCS_SEARCH"
      },
      "examples": "[\"durable objects\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DOCS_SEARCH"
    },
    {
      "key": "DONETASK",
      "type": "fn",
      "category": "tasks",
      "doc": "WHAT: Mark a task as done. $1=task_id (number), $2=optional result summary. WHEN_TO_USE: a queued task has been completed and should be removed from the open backlog. ARGS: $1=task_id, $2=result summary EX: [DONETASK]123[/DONETASK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DONETASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DONETASK",
        "type": "fn",
        "what": [
          "WHAT: Mark a task as done. $1=task_id (number), $2=optional result summary.",
          "WHEN_TO_USE: a queued task has been completed and should be removed from the open backlog.",
          "ARGS: $1=task_id, $2=result summary",
          "EX: [DONETASK]123[/DONETASK]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "123",
            "desc": "task_id, $2=result summary",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[DONETASK]123[/DONETASK]",
        "tag": "[DONETASK]<123>|<arg2>[/DONETASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DONETASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DONETASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/DONETASK",
        "update": "PUT /api/directory/DONETASK",
        "patch": "PATCH /api/directory/DONETASK",
        "delete": "DELETE /api/directory/DONETASK",
        "invoke": "POST /api/dispatch {\"key\":\"DONETASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DONETASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DONETASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DONETASK"
      },
      "examples": "[\"999999\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DONETASK"
    },
    {
      "key": "DUOPLUS_PHONES",
      "type": "flow",
      "category": null,
      "doc": "WHAT: List DuoPlus cloud phones (status, adb address, region, expiry). ARGS: none. EX: [DUOPLUS_PHONES][/DUOPLUS_PHONES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DUOPLUS_PHONES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DUOPLUS_PHONES",
        "type": "flow",
        "what": [
          "WHAT: List DuoPlus cloud phones (status, adb address, region, expiry). ARGS: none. EX: [DUOPLUS_PHONES][/DUOPLUS_PHONES]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[DUOPLUS_PHONES][/DUOPLUS_PHONES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DUOPLUS_PHONES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DUOPLUS_PHONES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DUOPLUS_PHONES",
        "update": "PUT /api/directory/DUOPLUS_PHONES",
        "patch": "PATCH /api/directory/DUOPLUS_PHONES",
        "delete": "DELETE /api/directory/DUOPLUS_PHONES",
        "invoke": "POST /api/dispatch {\"key\":\"DUOPLUS_PHONES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DUOPLUS_PHONES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DUOPLUS_PHONES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DUOPLUS_PHONES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DUOPLUS_PHONES"
    },
    {
      "key": "DUOPLUS_POWER_OFF",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Batch power off DuoPlus cloud phones. ARGS: $1=comma-separated phone ids. EX: [DUOPLUS_POWER_OFF]id1[/DUOPLUS_POWER_OFF]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DUOPLUS_POWER_OFF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DUOPLUS_POWER_OFF",
        "type": "flow",
        "what": [
          "WHAT: Batch power off DuoPlus cloud phones. ARGS: $1=comma-separated phone ids. EX: [DUOPLUS_POWER_OFF]id1[/DUOPLUS_POWER_OFF]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "id1",
            "desc": "comma-separated phone ids. EX: [DUOPLUS_POWER_OFF]id1[/DUOPLUS_POWER_OFF]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[DUOPLUS_POWER_OFF]id1[/DUOPLUS_POWER_OFF]",
        "tag": "[DUOPLUS_POWER_OFF]<id1>[/DUOPLUS_POWER_OFF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DUOPLUS_POWER_OFF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DUOPLUS_POWER_OFF  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DUOPLUS_POWER_OFF",
        "update": "PUT /api/directory/DUOPLUS_POWER_OFF",
        "patch": "PATCH /api/directory/DUOPLUS_POWER_OFF",
        "delete": "DELETE /api/directory/DUOPLUS_POWER_OFF",
        "invoke": "POST /api/dispatch {\"key\":\"DUOPLUS_POWER_OFF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DUOPLUS_POWER_OFF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DUOPLUS_POWER_OFF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DUOPLUS_POWER_OFF"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DUOPLUS_POWER_OFF"
    },
    {
      "key": "DUOPLUS_POWER_ON",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Batch power on DuoPlus cloud phones. ARGS: $1=comma-separated phone ids. EX: [DUOPLUS_POWER_ON]id1,id2[/DUOPLUS_POWER_ON]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DUOPLUS_POWER_ON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DUOPLUS_POWER_ON",
        "type": "flow",
        "what": [
          "WHAT: Batch power on DuoPlus cloud phones. ARGS: $1=comma-separated phone ids. EX: [DUOPLUS_POWER_ON]id1,id2[/DUOPLUS_POWER_ON]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "id1,id2",
            "desc": "comma-separated phone ids. EX: [DUOPLUS_POWER_ON]id1,id2[/DUOPLUS_POWER_ON]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[DUOPLUS_POWER_ON]id1,id2[/DUOPLUS_POWER_ON]",
        "tag": "[DUOPLUS_POWER_ON]<id1,id2>[/DUOPLUS_POWER_ON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DUOPLUS_POWER_ON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DUOPLUS_POWER_ON  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DUOPLUS_POWER_ON",
        "update": "PUT /api/directory/DUOPLUS_POWER_ON",
        "patch": "PATCH /api/directory/DUOPLUS_POWER_ON",
        "delete": "DELETE /api/directory/DUOPLUS_POWER_ON",
        "invoke": "POST /api/dispatch {\"key\":\"DUOPLUS_POWER_ON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DUOPLUS_POWER_ON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DUOPLUS_POWER_ON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DUOPLUS_POWER_ON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DUOPLUS_POWER_ON"
    },
    {
      "key": "DUOPLUS_STATUS",
      "type": "flow",
      "category": null,
      "doc": "WHAT: DuoPlus cloud-phone API state (self-serve key: console → Automation → API → ~/.miscsubjects/duoplus_key). ARGS: none. EX: [DUOPLUS_STATUS][/DUOPLUS_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DUOPLUS_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DUOPLUS_STATUS",
        "type": "flow",
        "what": [
          "WHAT: DuoPlus cloud-phone API state (self-serve key: console → Automation → API → ~/.miscsubjects/duoplus_key). ARGS: none. EX: [DUOPLUS_STATUS][/DUOPLUS_STATUS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[DUOPLUS_STATUS][/DUOPLUS_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DUOPLUS_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DUOPLUS_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/DUOPLUS_STATUS",
        "update": "PUT /api/directory/DUOPLUS_STATUS",
        "patch": "PATCH /api/directory/DUOPLUS_STATUS",
        "delete": "DELETE /api/directory/DUOPLUS_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"DUOPLUS_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DUOPLUS_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DUOPLUS_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DUOPLUS_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=DUOPLUS_STATUS"
    },
    {
      "key": "DURABLE_WORKER",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Durable Worker — the bound Durable Object (class DirectoryDO, script loop-safe-directory-do). One strongly-consistent instance (\"main\") that owns the SLUG REGISTRY (every declared internal position: slug -> kind+target) and an append-only MUTATION-INTENT LOG WHEN_TO_USE: you need to durable worker ARGS: see content EX: [DURABLE_WORKER]arg1[/DURABLE_WORKER] INVOKE (read ops, $1 = op):   [DURABLE_WORKER]ping[/DURABLE_WORKER]        -> {ok, do, id, ts}   [DURABLE_WORKER]slug.list[/DURABLE_WORKER]   -> every declared slug   [DURABLE_WORKER]intents[/DURABLE_WORKER]     -> last 200 mutation intents (chronological) RESOLVE one slug (REST):  GET  https://miscsubjects.com/api/durable/slug.resolve?slug=<slug> REGISTER a slug (REST):   POST https://miscsubjects.com/api/durable/slug.register  {\"slug\":\"<slug>\",\"kind\":\"row|page|tool|agent\",\"target\":\"<target>\"} Bound two ways: this Worker self-binds DIRECTORY_DO; the Pages project also binds it via script_name. Deploy the Worker before the Pages deploy.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "DURABLE_WORKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "DURABLE_WORKER",
        "type": "http",
        "what": [
          "WHAT: Durable Worker — the bound Durable Object (class DirectoryDO, script loop-safe-directory-do). One strongly-consistent instance (\"main\") that owns the SLUG REGISTRY (every declared internal position: slug -> kind+target) and an append-only MUTATION-INTENT LOG",
          "WHEN_TO_USE: you need to durable worker",
          "ARGS: see content",
          "EX: [DURABLE_WORKER]arg1[/DURABLE_WORKER]",
          "INVOKE (read ops, $1 = op):",
          "  [DURABLE_WORKER]ping[/DURABLE_WORKER]        -> {ok, do, id, ts}",
          "  [DURABLE_WORKER]slug.list[/DURABLE_WORKER]   -> every declared slug",
          "  [DURABLE_WORKER]intents[/DURABLE_WORKER]     -> last 200 mutation intents (chronological)",
          "RESOLVE one slug (REST):  GET  https://miscsubjects.com/api/durable/slug.resolve?slug=<slug>",
          "REGISTER a slug (REST):   POST https://miscsubjects.com/api/durable/slug.register  {\"slug\":\"<slug>\",\"kind\":\"row|page|tool|agent\",\"target\":\"<target>\"}",
          "Bound two ways: this Worker self-binds DIRECTORY_DO; the Pages project also binds it via script_name. Deploy the Worker before the Pages deploy."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "op):",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[DURABLE_WORKER]arg1[/DURABLE_WORKER]",
        "tag": "[DURABLE_WORKER]<arg1>[/DURABLE_WORKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"DURABLE_WORKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/DURABLE_WORKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"op\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/DURABLE_WORKER",
        "update": "PUT /api/directory/DURABLE_WORKER",
        "patch": "PATCH /api/directory/DURABLE_WORKER",
        "delete": "DELETE /api/directory/DURABLE_WORKER",
        "invoke": "POST /api/dispatch {\"key\":\"DURABLE_WORKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"DURABLE_WORKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"DURABLE_WORKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/DURABLE_WORKER"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=DURABLE_WORKER"
    },
    {
      "key": "EAGLE_IMSG",
      "type": "http",
      "category": null,
      "doc": "WHAT: Eagle image review workflow from iMessage. Runs eagle_imessage.mjs on the Mac. Texts the owner image previews + generated variations. Updates EAGLE_IMAGES sheet. WHEN_TO_USE: the owner asks about eagles, eagle images, show eagles, generate eagle variation, mark eagle good, eagle prompts — any eagle1–eagle25 image work over iMessage. ARGS: his message (pass through verbatim) EX: [EAGLE_IMSG]show eagles[/EAGLE_IMSG]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EAGLE_IMSG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EAGLE_IMSG",
        "type": "http",
        "what": [
          "WHAT: Eagle image review workflow from iMessage. Runs eagle_imessage.mjs on the Mac. Texts the owner image previews + generated variations. Updates EAGLE_IMAGES sheet.",
          "WHEN_TO_USE: the owner asks about eagles, eagle images, show eagles, generate eagle variation, mark eagle good, eagle prompts — any eagle1–eagle25 image work over iMessage.",
          "ARGS: his message (pass through verbatim)",
          "EX: [EAGLE_IMSG]show eagles[/EAGLE_IMSG]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "show eagles",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[EAGLE_IMSG]show eagles[/EAGLE_IMSG]",
        "tag": "[EAGLE_IMSG]<show eagles>[/EAGLE_IMSG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EAGLE_IMSG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EAGLE_IMSG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"node /Users/the owner/miscsubjects-pages/scripts/eagle_imessage.mjs \\\"$1\\\"\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/EAGLE_IMSG",
        "update": "PUT /api/directory/EAGLE_IMSG",
        "patch": "PATCH /api/directory/EAGLE_IMSG",
        "delete": "DELETE /api/directory/EAGLE_IMSG",
        "invoke": "POST /api/dispatch {\"key\":\"EAGLE_IMSG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EAGLE_IMSG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EAGLE_IMSG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EAGLE_IMSG"
      },
      "examples": "[\"show eagles\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EAGLE_IMSG"
    },
    {
      "key": "EDITORIAL_BOARD_RUN",
      "type": "fn",
      "category": "protocol",
      "doc": "WHAT: Run one receiving editorial-board task. It reads a MODEL_CHAT_INTAKE ledger event, extracts owner complaints and content-rule defects as JSON, ledgers EDITORIAL_BOARD_DECISION, and queues OIP purification. WHEN_TO_USE: after raw model/chat intake, or cron, to process one editorial-board queue item. ARGS: none EX: [EDITORIAL_BOARD_RUN][/EDITORIAL_BOARD_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EDITORIAL_BOARD_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EDITORIAL_BOARD_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run one receiving editorial-board task. It reads a MODEL_CHAT_INTAKE ledger event, extracts owner complaints and content-rule defects as JSON, ledgers EDITORIAL_BOARD_DECISION, and queues OIP purification.",
          "WHEN_TO_USE: after raw model/chat intake, or cron, to process one editorial-board queue item.",
          "ARGS: none",
          "EX: [EDITORIAL_BOARD_RUN][/EDITORIAL_BOARD_RUN]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EDITORIAL_BOARD_RUN][/EDITORIAL_BOARD_RUN]",
        "tag": "[EDITORIAL_BOARD_RUN][/EDITORIAL_BOARD_RUN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EDITORIAL_BOARD_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EDITORIAL_BOARD_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"editorial-board\"]",
      "edit": {
        "read": "GET /api/directory/EDITORIAL_BOARD_RUN",
        "update": "PUT /api/directory/EDITORIAL_BOARD_RUN",
        "patch": "PATCH /api/directory/EDITORIAL_BOARD_RUN",
        "delete": "DELETE /api/directory/EDITORIAL_BOARD_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"EDITORIAL_BOARD_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EDITORIAL_BOARD_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EDITORIAL_BOARD_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EDITORIAL_BOARD_RUN"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EDITORIAL_BOARD_RUN"
    },
    {
      "key": "EDITOR_AGENT",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EDITOR_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EDITOR_AGENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[EDITOR_AGENT][/EDITOR_AGENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EDITOR_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EDITOR_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/EDITOR_AGENT",
        "update": "PUT /api/directory/EDITOR_AGENT",
        "patch": "PATCH /api/directory/EDITOR_AGENT",
        "delete": "DELETE /api/directory/EDITOR_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"EDITOR_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EDITOR_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EDITOR_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EDITOR_AGENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EDITOR_AGENT"
    },
    {
      "key": "EDITTASK",
      "type": "fn",
      "category": null,
      "doc": "WHAT: edit a task body. ARGS: <id>|<new text>. EX {\"key\":\"EDITTASK\",\"body\":\"42|buy milk\"}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EDITTASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EDITTASK",
        "type": "fn",
        "what": [
          "WHAT: edit a task body. ARGS: <id>|<new text>. EX {\"key\":\"EDITTASK\",\"body\":\"42|buy milk\"}"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EDITTASK]arg1|arg2[/EDITTASK]",
        "tag": "[EDITTASK]<arg1>|<arg2>[/EDITTASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EDITTASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EDITTASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"UPDATE tasks SET body=? WHERE id=?\",\"$2\",\"$1\"]",
      "edit": {
        "read": "GET /api/directory/EDITTASK",
        "update": "PUT /api/directory/EDITTASK",
        "patch": "PATCH /api/directory/EDITTASK",
        "delete": "DELETE /api/directory/EDITTASK",
        "invoke": "POST /api/dispatch {\"key\":\"EDITTASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EDITTASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EDITTASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EDITTASK"
      },
      "examples": "[\"44|DEMO: edited text\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EDITTASK"
    },
    {
      "key": "EDIT_MEMORY",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Change one line of your memory (or any row). $1=key, $2=the exact existing line, $3=the new line WHEN_TO_USE: you need to edit memory ARGS: $1 | $2 | $3 EX: [EDIT_MEMORY]arg1|arg2|arg3[/EDIT_MEMORY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EDIT_MEMORY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EDIT_MEMORY",
        "type": "fn",
        "what": [
          "WHAT: Change one line of your memory (or any row). $1=key, $2=the exact existing line, $3=the new line",
          "WHEN_TO_USE: you need to edit memory",
          "ARGS: $1 | $2 | $3",
          "EX: [EDIT_MEMORY]arg1|arg2|arg3[/EDIT_MEMORY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key, $2=the exact existing line, $3=the new line",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EDIT_MEMORY]arg1|arg2|arg3[/EDIT_MEMORY]",
        "tag": "[EDIT_MEMORY]<arg1>|<arg2>|<arg3>[/EDIT_MEMORY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EDIT_MEMORY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EDIT_MEMORY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/EDIT_MEMORY",
        "update": "PUT /api/directory/EDIT_MEMORY",
        "patch": "PATCH /api/directory/EDIT_MEMORY",
        "delete": "DELETE /api/directory/EDIT_MEMORY",
        "invoke": "POST /api/dispatch {\"key\":\"EDIT_MEMORY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EDIT_MEMORY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EDIT_MEMORY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EDIT_MEMORY"
      },
      "examples": "[\"arg1|arg2|arg3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EDIT_MEMORY"
    },
    {
      "key": "EDIT_ROW",
      "type": "fn",
      "category": "self_mod",
      "doc": "WHAT: Edit an existing directory row (upsert). WHEN_TO_USE: changing a tool definition, updating a prompt, or fixing a row. ARGS: key|type|target|auth|content. Everything after the 4th pipe is content. EX: [EDIT_ROW]ROUTER|agent|grok-4.3|bearer:GROK_API_KEY|new prompt here[/EDIT_ROW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EDIT_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EDIT_ROW",
        "type": "fn",
        "what": [
          "WHAT: Edit an existing directory row (upsert).",
          "WHEN_TO_USE: changing a tool definition, updating a prompt, or fixing a row.",
          "ARGS: key|type|target|auth|content. Everything after the 4th pipe is content.",
          "EX: [EDIT_ROW]ROUTER|agent|grok-4.3|bearer:GROK_API_KEY|new prompt here[/EDIT_ROW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "agent",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "grok-4.3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "bearer:GROK_API_KEY",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "new prompt here",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EDIT_ROW]ROUTER|agent|grok-4.3|bearer:GROK_API_KEY|new prompt here[/EDIT_ROW]",
        "tag": "[EDIT_ROW]<ROUTER>|<agent>|<grok-4.3>|<bearer:GROK_API_KEY>|<new prompt here …>[/EDIT_ROW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EDIT_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EDIT_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5+\"]",
      "edit": {
        "read": "GET /api/directory/EDIT_ROW",
        "update": "PUT /api/directory/EDIT_ROW",
        "patch": "PATCH /api/directory/EDIT_ROW",
        "delete": "DELETE /api/directory/EDIT_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"EDIT_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EDIT_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EDIT_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EDIT_ROW"
      },
      "examples": "[\"KEY|type|target|auth|content\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EDIT_ROW"
    },
    {
      "key": "EMAILS_SENT",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: List recent sent emails with open/click engagement + totals (sent-email visibility). WHEN_TO_USE: see everything sent and who opened/clicked. ARGS: $1 = limit (default 50). EX: [EMAILS_SENT]50[/EMAILS_SENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EMAILS_SENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EMAILS_SENT",
        "type": "fn",
        "what": [
          "WHAT: List recent sent emails with open/click engagement + totals (sent-email visibility).",
          "WHEN_TO_USE: see everything sent and who opened/clicked.",
          "ARGS: $1 = limit (default 50).",
          "EX: [EMAILS_SENT]50[/EMAILS_SENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "50",
            "desc": "limit (default 50).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EMAILS_SENT]50[/EMAILS_SENT]",
        "tag": "[EMAILS_SENT]<50>[/EMAILS_SENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EMAILS_SENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EMAILS_SENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/EMAILS_SENT",
        "update": "PUT /api/directory/EMAILS_SENT",
        "patch": "PATCH /api/directory/EMAILS_SENT",
        "delete": "DELETE /api/directory/EMAILS_SENT",
        "invoke": "POST /api/dispatch {\"key\":\"EMAILS_SENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EMAILS_SENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EMAILS_SENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EMAILS_SENT"
      },
      "examples": "[\"6\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EMAILS_SENT"
    },
    {
      "key": "EMAIL_ATTRIBUTION_SWEEP",
      "type": "http",
      "category": "leads",
      "doc": "WHAT: Attribute what the build can already see: a human reply to a tracked letter becomes a conversion, and a hard bounce becomes a suppression. Idempotent. WHEN_TO_USE: on a schedule, and before quoting a conversion number. ARGS: none. EX: [EMAIL_ATTRIBUTION_SWEEP][/EMAIL_ATTRIBUTION_SWEEP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EMAIL_ATTRIBUTION_SWEEP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EMAIL_ATTRIBUTION_SWEEP",
        "type": "http",
        "what": [
          "WHAT: Attribute what the build can already see: a human reply to a tracked letter becomes a conversion, and a hard bounce becomes a suppression. Idempotent.",
          "WHEN_TO_USE: on a schedule, and before quoting a conversion number.",
          "ARGS: none.",
          "EX: [EMAIL_ATTRIBUTION_SWEEP][/EMAIL_ATTRIBUTION_SWEEP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[EMAIL_ATTRIBUTION_SWEEP][/EMAIL_ATTRIBUTION_SWEEP]",
        "tag": "[EMAIL_ATTRIBUTION_SWEEP]<arg1>[/EMAIL_ATTRIBUTION_SWEEP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EMAIL_ATTRIBUTION_SWEEP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EMAIL_ATTRIBUTION_SWEEP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/EMAIL_ATTRIBUTION_SWEEP",
        "update": "PUT /api/directory/EMAIL_ATTRIBUTION_SWEEP",
        "patch": "PATCH /api/directory/EMAIL_ATTRIBUTION_SWEEP",
        "delete": "DELETE /api/directory/EMAIL_ATTRIBUTION_SWEEP",
        "invoke": "POST /api/dispatch {\"key\":\"EMAIL_ATTRIBUTION_SWEEP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EMAIL_ATTRIBUTION_SWEEP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EMAIL_ATTRIBUTION_SWEEP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EMAIL_ATTRIBUTION_SWEEP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=EMAIL_ATTRIBUTION_SWEEP"
    },
    {
      "key": "EMAIL_CONVERT",
      "type": "http",
      "category": "leads",
      "doc": "WHAT: Record a conversion against an email send — an order, a signup, a booked call. WHEN_TO_USE: a surface knows a conversion happened and email should get the credit. ARGS: $1 = JSON {es_id?|email?, kind?, revenue_cents?}. Credits the newest send to that address inside 60 days. EX: [EMAIL_CONVERT]{\"email\":\"drsmith@clinic.com\",\"kind\":\"order\",\"revenue_cents\":19900}[/EMAIL_CONVERT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EMAIL_CONVERT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EMAIL_CONVERT",
        "type": "http",
        "what": [
          "WHAT: Record a conversion against an email send — an order, a signup, a booked call.",
          "WHEN_TO_USE: a surface knows a conversion happened and email should get the credit.",
          "ARGS: $1 = JSON {es_id?|email?, kind?, revenue_cents?}. Credits the newest send to that address inside 60 days.",
          "EX: [EMAIL_CONVERT]{\"email\":\"drsmith@clinic.com\",\"kind\":\"order\",\"revenue_cents\":19900}[/EMAIL_CONVERT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"email\":\"drsmith@clinic.com\",\"kind\":\"order\",\"revenue_cents\":19900}",
            "desc": "JSON {es_id?|email?, kind?, revenue_cents?}. Credits the newest send to that address inside 60 days.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[EMAIL_CONVERT]{\"email\":\"drsmith@clinic.com\",\"kind\":\"order\",\"revenue_cents\":19900}[/EMAIL_CONVERT]",
        "tag": "[EMAIL_CONVERT]<{\"email\":\"drsmith@clinic.com\",\"kind\":\"order\",\"revenue_cents\":19900} …>[/EMAIL_CONVERT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EMAIL_CONVERT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EMAIL_CONVERT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/EMAIL_CONVERT",
        "update": "PUT /api/directory/EMAIL_CONVERT",
        "patch": "PATCH /api/directory/EMAIL_CONVERT",
        "delete": "DELETE /api/directory/EMAIL_CONVERT",
        "invoke": "POST /api/dispatch {\"key\":\"EMAIL_CONVERT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EMAIL_CONVERT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EMAIL_CONVERT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EMAIL_CONVERT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=EMAIL_CONVERT"
    },
    {
      "key": "EMAIL_SEND",
      "type": "http",
      "category": "email",
      "doc": "WHAT: Send an email through Cloudflare Email Sending via the sibling worker. WHEN_TO_USE: the owner explicitly asks to send/write/reply/forward an email. SAFETY: owner/internal recipients remain available. Every external recipient requires the server-signed, exact-copy Marketing approval proof; terminal/share credentials alone are refused. ARGS: to | subject | text",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EMAIL_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EMAIL_SEND",
        "type": "http",
        "what": [
          "WHAT: Send an email through Cloudflare Email Sending via the sibling worker.",
          "WHEN_TO_USE: the owner explicitly asks to send/write/reply/forward an email.",
          "SAFETY: owner/internal recipients remain available. Every external recipient requires the server-signed, exact-copy Marketing approval proof; terminal/share credentials alone are refused.",
          "ARGS: to | subject | text"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[EMAIL_SEND]arg1|arg2|arg3[/EMAIL_SEND]",
        "tag": "[EMAIL_SEND]<arg1>|<arg2>|<arg3 …>[/EMAIL_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EMAIL_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EMAIL_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"to\":\"$1\",\"subject\":\"$2\",\"text\":\"$3+\",\"from\":\"build@miscsubjects.com\"}",
      "edit": {
        "read": "GET /api/directory/EMAIL_SEND",
        "update": "PUT /api/directory/EMAIL_SEND",
        "patch": "PATCH /api/directory/EMAIL_SEND",
        "delete": "DELETE /api/directory/EMAIL_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"EMAIL_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EMAIL_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EMAIL_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EMAIL_SEND"
      },
      "examples": "[\"<OWNER_EMAIL>|VTEST-C no product words at all|Hi,\\n\\nFollowing up on inventory \\u2014 let me know if you have a minute this week.\\n\\nCyrus\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EMAIL_SEND"
    },
    {
      "key": "EMAIL_SEND_TRACKED",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: Send a tracked email (open pixel + wrapped click links) and record it in email_sends. WHEN_TO_USE: any owner-authorized send where you want open/click visibility. ARGS: $1 = JSON {to, subject, body, kind?, lead_id?, from?, from_name?, reply_to?}. EX: [EMAIL_SEND_TRACKED]{\"to\":\"x@y.com\",\"subject\":\"hi\",\"body\":\"see https://leoresearch.com\"}[/EMAIL_SEND_TRACKED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EMAIL_SEND_TRACKED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EMAIL_SEND_TRACKED",
        "type": "fn",
        "what": [
          "WHAT: Send a tracked email (open pixel + wrapped click links) and record it in email_sends.",
          "WHEN_TO_USE: any owner-authorized send where you want open/click visibility.",
          "ARGS: $1 = JSON {to, subject, body, kind?, lead_id?, from?, from_name?, reply_to?}.",
          "EX: [EMAIL_SEND_TRACKED]{\"to\":\"x@y.com\",\"subject\":\"hi\",\"body\":\"see https://leoresearch.com\"}[/EMAIL_SEND_TRACKED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"to\":\"x@y.com\",\"subject\":\"hi\",\"body\":\"see https://leoresearch.com\"}",
            "desc": "JSON {to, subject, body, kind?, lead_id?, from?, from_name?, reply_to?}.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EMAIL_SEND_TRACKED]{\"to\":\"x@y.com\",\"subject\":\"hi\",\"body\":\"see https://leoresearch.com\"}[/EMAIL_SEND_TRACKED]",
        "tag": "[EMAIL_SEND_TRACKED]<{\"to\":\"x@y.com\",\"subject\":\"hi\",\"body\":\"see https://leoresearch.com\"}>[/EMAIL_SEND_TRACKED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EMAIL_SEND_TRACKED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EMAIL_SEND_TRACKED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/EMAIL_SEND_TRACKED",
        "update": "PUT /api/directory/EMAIL_SEND_TRACKED",
        "patch": "PATCH /api/directory/EMAIL_SEND_TRACKED",
        "delete": "DELETE /api/directory/EMAIL_SEND_TRACKED",
        "invoke": "POST /api/dispatch {\"key\":\"EMAIL_SEND_TRACKED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EMAIL_SEND_TRACKED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EMAIL_SEND_TRACKED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EMAIL_SEND_TRACKED"
      },
      "examples": "[\"{\\\"to\\\":\\\"x@y.com\\\",\\\"subject\\\":\\\"hi\\\",\\\"body\\\":\\\"see https://leoresearch.com\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EMAIL_SEND_TRACKED"
    },
    {
      "key": "ENVIRONMENT",
      "type": "http",
      "category": "environment",
      "doc": "WHAT: Canonical, recursively self-describing environment root.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ENVIRONMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ENVIRONMENT",
        "type": "http",
        "what": [
          "WHAT: Canonical, recursively self-describing environment root."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[ENVIRONMENT][/ENVIRONMENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ENVIRONMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ENVIRONMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ENVIRONMENT",
        "update": "PUT /api/directory/ENVIRONMENT",
        "patch": "PATCH /api/directory/ENVIRONMENT",
        "delete": "DELETE /api/directory/ENVIRONMENT",
        "invoke": "POST /api/dispatch {\"key\":\"ENVIRONMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ENVIRONMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ENVIRONMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ENVIRONMENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ENVIRONMENT"
    },
    {
      "key": "EVENTS",
      "type": "http",
      "category": "log",
      "doc": "WHAT: Read the raw EVENTS log — one row per call, newest first, chronological. Each row: source, key, action, status, request/response preview, trace id, step. $1 optional = text to search across key/action/payload WHEN_TO_USE: you need to events ARGS: see content EX: [EVENTS]arg1[/EVENTS] Read the raw EVENTS log — one row per call, newest first, chronological. Each row: source, key, action, status, request/response preview, trace id, step. $1 optional = text to search across key/action/payload. INVOKE: [EVENTS][/EVENTS] for the latest, or [EVENTS]<search text>[/EVENTS].",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EVENTS",
        "type": "http",
        "what": [
          "WHAT: Read the raw EVENTS log — one row per call, newest first, chronological. Each row: source, key, action, status, request/response preview, trace id, step. $1 optional = text to search across key/action/payload",
          "WHEN_TO_USE: you need to events",
          "ARGS: see content",
          "EX: [EVENTS]arg1[/EVENTS]",
          "Read the raw EVENTS log — one row per call, newest first, chronological. Each row: source, key, action, status, request/response preview, trace id, step. $1 optional = text to search across key/action/payload.",
          "INVOKE: [EVENTS][/EVENTS] for the latest, or [EVENTS]<search text>[/EVENTS]."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[EVENTS]arg1[/EVENTS]",
        "tag": "[EVENTS]<arg1>[/EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/EVENTS",
        "update": "PUT /api/directory/EVENTS",
        "patch": "PATCH /api/directory/EVENTS",
        "delete": "DELETE /api/directory/EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EVENTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EVENTS"
    },
    {
      "key": "EXTERNAL_GOOGLE_SHEETS",
      "type": "http",
      "category": "external",
      "doc": "WHAT: External comparable for mutable grid plus documented scripting grammar.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EXTERNAL_GOOGLE_SHEETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EXTERNAL_GOOGLE_SHEETS",
        "type": "http",
        "what": [
          "WHAT: External comparable for mutable grid plus documented scripting grammar."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[EXTERNAL_GOOGLE_SHEETS][/EXTERNAL_GOOGLE_SHEETS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EXTERNAL_GOOGLE_SHEETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EXTERNAL_GOOGLE_SHEETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/EXTERNAL_GOOGLE_SHEETS",
        "update": "PUT /api/directory/EXTERNAL_GOOGLE_SHEETS",
        "patch": "PATCH /api/directory/EXTERNAL_GOOGLE_SHEETS",
        "delete": "DELETE /api/directory/EXTERNAL_GOOGLE_SHEETS",
        "invoke": "POST /api/dispatch {\"key\":\"EXTERNAL_GOOGLE_SHEETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EXTERNAL_GOOGLE_SHEETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EXTERNAL_GOOGLE_SHEETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EXTERNAL_GOOGLE_SHEETS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EXTERNAL_GOOGLE_SHEETS"
    },
    {
      "key": "EXTRACT_CAPABILITIES",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Given an R2 key from DISCOVER_SOURCE, run a Workers AI Llama call to extract a JSON array of {op, method, url_or_signature,  Truncates input at 20KB. Second step of universe-to-row. $1=r2_key, $2=optional model id (default @cf/meta/llama-3.3-70b-instruct-fp8-fast) WHEN_TO_USE: you need to extract capabilities ARGS: [{name,type,required}], description} EX: [EXTRACT_CAPABILITIES]arg1|arg2[/EXTRACT_CAPABILITIES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "EXTRACT_CAPABILITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "EXTRACT_CAPABILITIES",
        "type": "fn",
        "what": [
          "WHAT: Given an R2 key from DISCOVER_SOURCE, run a Workers AI Llama call to extract a JSON array of {op, method, url_or_signature,  Truncates input at 20KB. Second step of universe-to-row. $1=r2_key, $2=optional model id (default @cf/meta/llama-3.3-70b-instruct-fp8-fast)",
          "WHEN_TO_USE: you need to extract capabilities",
          "ARGS: [{name,type,required}], description}",
          "EX: [EXTRACT_CAPABILITIES]arg1|arg2[/EXTRACT_CAPABILITIES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "r2_key, $2=optional model id (default @cf/meta/llama-3.3-70b-instruct-fp8-fast)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[EXTRACT_CAPABILITIES]arg1|arg2[/EXTRACT_CAPABILITIES]",
        "tag": "[EXTRACT_CAPABILITIES]<arg1>|<arg2>[/EXTRACT_CAPABILITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"EXTRACT_CAPABILITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/EXTRACT_CAPABILITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/EXTRACT_CAPABILITIES",
        "update": "PUT /api/directory/EXTRACT_CAPABILITIES",
        "patch": "PATCH /api/directory/EXTRACT_CAPABILITIES",
        "delete": "DELETE /api/directory/EXTRACT_CAPABILITIES",
        "invoke": "POST /api/dispatch {\"key\":\"EXTRACT_CAPABILITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"EXTRACT_CAPABILITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"EXTRACT_CAPABILITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/EXTRACT_CAPABILITIES"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=EXTRACT_CAPABILITIES"
    },
    {
      "key": "FED_SEND",
      "type": "fn",
      "category": "federation",
      "doc": "WHAT: Send a signed federation message (oip-message/1) from the home agent to a remote agent at ANOTHER domain, and return that agent's signed reply. Cross-domain agent-to-agent messaging; the two current test nodes are separately deployed under one operator. ARGS: recipient|kind|rest — recipient=agent@domain. kind=query|invoke.   agent@domain|query|<text>                        -> ask a question; the remote node runs nothing, echoes the text as data.   agent@domain|invoke|KEY|<args>|<capability_token> -> hand a capability across the federation; the remote node runs KEY only if the capability is audience-bound to it and passes every gate. EX: [FED_SEND]buttercup@oip-peer.the owner-the owner.workers.dev|query|what time is it[/FED_SEND] WHEN_TO_USE: coordinate with an agent on a different domain. The recipient's signing key + inbox come from its https://<domain>/.well-known/oip.json; the reply signature is verified before it is trusted. TESTS: bad recipient -> ERR:fed:bad_recipient. Unreachable domain -> {ok:false, reason:recipient_unresolvable:...}. Valid query -> signed result echo. Federation proof: /api/dispatch?fedtest=1.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FED_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FED_SEND",
        "type": "fn",
        "what": [
          "WHAT: Send a signed federation message (oip-message/1) from the home agent to a remote agent at ANOTHER domain, and return that agent's signed reply. Cross-domain agent-to-agent messaging; the two current test nodes are separately deployed under one operator.",
          "ARGS: recipient|kind|rest — recipient=agent@domain. kind=query|invoke.",
          "  agent@domain|query|<text>                        -> ask a question; the remote node runs nothing, echoes the text as data.",
          "  agent@domain|invoke|KEY|<args>|<capability_token> -> hand a capability across the federation; the remote node runs KEY only if the capability is audience-bound to it and passes every gate.",
          "EX: [FED_SEND]buttercup@oip-peer.the owner-the owner.workers.dev|query|what time is it[/FED_SEND]",
          "WHEN_TO_USE: coordinate with an agent on a different domain. The recipient's signing key + inbox come from its https://<domain>/.well-known/oip.json; the reply signature is verified before it is trusted.",
          "TESTS: bad recipient -> ERR:fed:bad_recipient. Unreachable domain -> {ok:false, reason:recipient_unresolvable:...}. Valid query -> signed result echo. Federation proof: /api/dispatch?fedtest=1."
        ],
        "args": [
          {
            "pos": 1,
            "name": "buttercup@oip-peer.the owner-the owner.workers.dev",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "query",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "what time is it",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "that agent's signed reply. Cross-domain agent-to-agent messaging; the two current test nodes are separately deployed under one operator.",
        "example": "[FED_SEND]buttercup@oip-peer.the owner-the owner.workers.dev|query|what time is it[/FED_SEND]",
        "tag": "[FED_SEND]<buttercup@oip-peer.the owner-the owner.workers.dev>|<query>|<what time is it …>[/FED_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FED_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FED_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/FED_SEND",
        "update": "PUT /api/directory/FED_SEND",
        "patch": "PATCH /api/directory/FED_SEND",
        "delete": "DELETE /api/directory/FED_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"FED_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FED_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FED_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FED_SEND"
      },
      "examples": "[\"buttercup@oip-peer.<OWNER-ACCT>.workers.dev|query|hello from FED_SEND\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FED_SEND"
    },
    {
      "key": "FIDELITY_REPORT",
      "type": "flow",
      "category": null,
      "doc": "Per-run pass/fail counts from fidelity_log. Latest 5 runs. WHEN_TO_USE: 'show me fidelity report' / 'what tests passed' / 'fidelity status'. TESTS: POSITIVE: {\"key\":\"FIDELITY_REPORT\",\"body\":\"\"} → result has \"total\" and \"passed\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FIDELITY_REPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FIDELITY_REPORT",
        "type": "flow",
        "what": [
          "Per-run pass/fail counts from fidelity_log. Latest 5 runs.",
          "WHEN_TO_USE: 'show me fidelity report' / 'what tests passed' / 'fidelity status'.",
          "TESTS:",
          "POSITIVE: {\"key\":\"FIDELITY_REPORT\",\"body\":\"\"} → result has \"total\" and \"passed\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[FIDELITY_REPORT][/FIDELITY_REPORT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FIDELITY_REPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FIDELITY_REPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FIDELITY_REPORT",
        "update": "PUT /api/directory/FIDELITY_REPORT",
        "patch": "PATCH /api/directory/FIDELITY_REPORT",
        "delete": "DELETE /api/directory/FIDELITY_REPORT",
        "invoke": "POST /api/dispatch {\"key\":\"FIDELITY_REPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FIDELITY_REPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FIDELITY_REPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FIDELITY_REPORT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FIDELITY_REPORT"
    },
    {
      "key": "FIDELITY_RUN",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Run the whole fidelity bank. $1 optional kind filter (positive | inverse | agent-route). Logs to fidelity_log. Returns JSON {run_id,total,passed,failed,duration_ms,failing} WHEN_TO_USE: you need to fidelity run ARGS: $1 EX: [FIDELITY_RUN]arg1[/FIDELITY_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FIDELITY_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FIDELITY_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run the whole fidelity bank. $1 optional kind filter (positive | inverse | agent-route). Logs to fidelity_log. Returns JSON {run_id,total,passed,failed,duration_ms,failing}",
          "WHEN_TO_USE: you need to fidelity run",
          "ARGS: $1",
          "EX: [FIDELITY_RUN]arg1[/FIDELITY_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON {run_id,total,passed,failed,duration_ms,failing}",
        "example": "[FIDELITY_RUN]arg1[/FIDELITY_RUN]",
        "tag": "[FIDELITY_RUN]<arg1>[/FIDELITY_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FIDELITY_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FIDELITY_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/FIDELITY_RUN",
        "update": "PUT /api/directory/FIDELITY_RUN",
        "patch": "PATCH /api/directory/FIDELITY_RUN",
        "delete": "DELETE /api/directory/FIDELITY_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"FIDELITY_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FIDELITY_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FIDELITY_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FIDELITY_RUN"
      },
      "examples": "[\"non-agent\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FIDELITY_RUN"
    },
    {
      "key": "FILE_CLAIM",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Not a lock. Returns current_hash for a path. Coordination is OBJECT_MUTATE + STALE retry. WHEN_TO_USE: legacy alias. Prefer OBJECT_READ / OBJECT_MUTATE. A claim never denies another agent. ARGS: op(claim|release|check|list) | file path | holder | ttl minutes (ignored) EX: [FILE_CLAIM]claim|functions/api/dispatch.js|agent:session|90[/FILE_CLAIM]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FILE_CLAIM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FILE_CLAIM",
        "type": "fn",
        "what": [
          "WHAT: Not a lock. Returns current_hash for a path. Coordination is OBJECT_MUTATE + STALE retry.",
          "WHEN_TO_USE: legacy alias. Prefer OBJECT_READ / OBJECT_MUTATE. A claim never denies another agent.",
          "ARGS: op(claim|release|check|list) | file path | holder | ttl minutes (ignored)",
          "EX: [FILE_CLAIM]claim|functions/api/dispatch.js|agent:session|90[/FILE_CLAIM]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "claim",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "functions/api/dispatch.js",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "agent:session",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "90",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "current_hash for a path. Coordination is OBJECT_MUTATE + STALE retry.",
        "example": "[FILE_CLAIM]claim|functions/api/dispatch.js|agent:session|90[/FILE_CLAIM]",
        "tag": "[FILE_CLAIM]<claim>|<functions/api/dispatch.js>|<agent:session>|<90>[/FILE_CLAIM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FILE_CLAIM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FILE_CLAIM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/FILE_CLAIM",
        "update": "PUT /api/directory/FILE_CLAIM",
        "patch": "PATCH /api/directory/FILE_CLAIM",
        "delete": "DELETE /api/directory/FILE_CLAIM",
        "invoke": "POST /api/dispatch {\"key\":\"FILE_CLAIM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FILE_CLAIM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FILE_CLAIM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FILE_CLAIM"
      },
      "examples": "[\"claim|functions/api/sheet-bridge.js|claude:cbbd8f06-2ef|90\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FILE_CLAIM"
    },
    {
      "key": "FILE_GET",
      "type": "http",
      "category": "file",
      "doc": "WHAT: Read a repo file by path via GitHub Contents API.  Returns {path,sha,size,content} WHEN_TO_USE: you need to file get ARGS: path EX: [FILE_GET][/FILE_GET] Read a repo file by path via GitHub Contents API. Args: path. Returns {path,sha,size,content}.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FILE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FILE_GET",
        "type": "http",
        "what": [
          "WHAT: Read a repo file by path via GitHub Contents API.  Returns {path,sha,size,content}",
          "WHEN_TO_USE: you need to file get",
          "ARGS: path",
          "EX: [FILE_GET][/FILE_GET]",
          "Read a repo file by path via GitHub Contents API. Args: path. Returns {path,sha,size,content}."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{path,sha,size,content}",
        "example": "[FILE_GET][/FILE_GET]",
        "tag": "[FILE_GET]<arg1>[/FILE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FILE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FILE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FILE_GET",
        "update": "PUT /api/directory/FILE_GET",
        "patch": "PATCH /api/directory/FILE_GET",
        "delete": "DELETE /api/directory/FILE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"FILE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FILE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FILE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FILE_GET"
      },
      "examples": "[\"/\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FILE_GET"
    },
    {
      "key": "FILE_LIST",
      "type": "http",
      "category": "file",
      "doc": "WHAT: List every file in the repo tree WHEN_TO_USE: you need to file list ARGS: see content EX: [FILE_LIST][/FILE_LIST] List every file in the repo tree.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FILE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FILE_LIST",
        "type": "http",
        "what": [
          "WHAT: List every file in the repo tree",
          "WHEN_TO_USE: you need to file list",
          "ARGS: see content",
          "EX: [FILE_LIST][/FILE_LIST]",
          "List every file in the repo tree."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[FILE_LIST][/FILE_LIST]",
        "tag": "[FILE_LIST][/FILE_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FILE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FILE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FILE_LIST",
        "update": "PUT /api/directory/FILE_LIST",
        "patch": "PATCH /api/directory/FILE_LIST",
        "delete": "DELETE /api/directory/FILE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"FILE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FILE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FILE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FILE_LIST"
      },
      "examples": "[\"functions/_lib\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FILE_LIST"
    },
    {
      "key": "FILE_PATCH",
      "type": "http",
      "category": null,
      "doc": "WHAT: Patch a repo file — replace one string with another. Safer than FILE_PUT for small edits WHEN_TO_USE: you need to file patch ARGS: $1 = path (e.g. functions/api/dispatch.js), $2 = old_string, $3 = new_string, $4 = commit message (optional), $5 = ref (optional, default main) EX: [FILE_PATCH]functions/api/dispatch.js|const ITER_CAP = 8;|const ITER_CAP = 20;|bump cap[/FILE_PATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FILE_PATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FILE_PATCH",
        "type": "http",
        "what": [
          "WHAT: Patch a repo file — replace one string with another. Safer than FILE_PUT for small edits",
          "WHEN_TO_USE: you need to file patch",
          "ARGS: $1 = path (e.g. functions/api/dispatch.js), $2 = old_string, $3 = new_string, $4 = commit message (optional), $5 = ref (optional, default main)",
          "EX: [FILE_PATCH]functions/api/dispatch.js|const ITER_CAP = 8;|const ITER_CAP = 20;|bump cap[/FILE_PATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "functions/api/dispatch.js",
            "desc": "path (e.g. functions/api/dispatch.js), $2 = old_string, $3 = new_string, $4 = commit message (optional), $5 = ref (optional, default main)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "const ITER_CAP = 8;",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "const ITER_CAP = 20;",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "bump cap",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[FILE_PATCH]functions/api/dispatch.js|const ITER_CAP = 8;|const ITER_CAP = 20;|bump cap[/FILE_PATCH]",
        "tag": "[FILE_PATCH]<functions/api/dispatch.js>|<const ITER_CAP = 8;>|<const ITER_CAP = 20;>|<bump cap>|<arg5>[/FILE_PATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FILE_PATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FILE_PATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"old_string\":\"$2\",\"new_string\":\"$3\",\"message\":\"$4\",\"ref\":\"$5\"}",
      "edit": {
        "read": "GET /api/directory/FILE_PATCH",
        "update": "PUT /api/directory/FILE_PATCH",
        "patch": "PATCH /api/directory/FILE_PATCH",
        "delete": "DELETE /api/directory/FILE_PATCH",
        "invoke": "POST /api/dispatch {\"key\":\"FILE_PATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FILE_PATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FILE_PATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FILE_PATCH"
      },
      "examples": "[\"functions/api/dispatch.js|const ITER_CAP = 8;|const ITER_CAP = 20;|bump cap\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FILE_PATCH"
    },
    {
      "key": "FILE_PUT",
      "type": "http",
      "category": "file",
      "doc": "WHAT: Write a repo file via GitHub Contents API. Creates or overwrites. WHEN_TO_USE: you need to file put ARGS: $1 = path (e.g. functions/api/dispatch.js), $2 = file content (raw text), $3 = commit message (optional), $4 = sha (optional, auto-resolved if omitted), $5 = ref (optional, default main) EX: [FILE_PUT]functions/api/dispatch.js|const X = 1;|fix dispatch[/FILE_PUT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FILE_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FILE_PUT",
        "type": "http",
        "what": [
          "WHAT: Write a repo file via GitHub Contents API. Creates or overwrites.",
          "WHEN_TO_USE: you need to file put",
          "ARGS: $1 = path (e.g. functions/api/dispatch.js), $2 = file content (raw text), $3 = commit message (optional), $4 = sha (optional, auto-resolved if omitted), $5 = ref (optional, default main)",
          "EX: [FILE_PUT]functions/api/dispatch.js|const X = 1;|fix dispatch[/FILE_PUT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "functions/api/dispatch.js",
            "desc": "path (e.g. functions/api/dispatch.js), $2 = file content (raw text), $3 = commit message (optional), $4 = sha (optional, auto-resolved if omitted), $5 = ref (optional, default main)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "const X = 1;",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "fix dispatch",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[FILE_PUT]functions/api/dispatch.js|const X = 1;|fix dispatch[/FILE_PUT]",
        "tag": "[FILE_PUT]<functions/api/dispatch.js>|<const X = 1;>|<fix dispatch>|<arg4>|<arg5>[/FILE_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FILE_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FILE_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"content\":\"$2\",\"message\":\"$3\",\"sha\":\"$4\",\"ref\":\"$5\"}",
      "edit": {
        "read": "GET /api/directory/FILE_PUT",
        "update": "PUT /api/directory/FILE_PUT",
        "patch": "PATCH /api/directory/FILE_PUT",
        "delete": "DELETE /api/directory/FILE_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"FILE_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FILE_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FILE_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FILE_PUT"
      },
      "examples": "[\"functions/api/dispatch.js|const X = 1;|fix dispatch\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FILE_PUT"
    },
    {
      "key": "FIND",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: Find capabilities by use case. Ranked over key words, WHAT and WHEN_TO_USE text, aliases and examples; returns each hit with its argument schema and its CLI, tool and SDK forms. WHEN_TO_USE: before guessing a key. \"find text someone\", \"find screenshot\", \"find stripe refund\". ARGS: $1+ = what you want to do EX: [FIND]send a text message[/FIND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FIND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FIND",
        "type": "http",
        "what": [
          "WHAT: Find capabilities by use case. Ranked over key words, WHAT and WHEN_TO_USE text, aliases and examples; returns each hit with its argument schema and its CLI, tool and SDK forms.",
          "WHEN_TO_USE: before guessing a key. \"find text someone\", \"find screenshot\", \"find stripe refund\".",
          "ARGS: $1+ = what you want to do",
          "EX: [FIND]send a text message[/FIND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "send a text message",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "each hit with its argument schema and its CLI, tool and SDK forms.",
        "example": "[FIND]send a text message[/FIND]",
        "tag": "[FIND]<send a text message …>[/FIND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FIND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FIND  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FIND",
        "update": "PUT /api/directory/FIND",
        "patch": "PATCH /api/directory/FIND",
        "delete": "DELETE /api/directory/FIND",
        "invoke": "POST /api/dispatch {\"key\":\"FIND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FIND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FIND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FIND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=FIND"
    },
    {
      "key": "FLOW_AUTOLEARN",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: The nightly pass. Scans the ledger for procedures that keep succeeding, and compiles the safe ones into enabled capabilities by itself. Everything it leaves alone is listed with the reason. WHEN_TO_USE: on a schedule (automation FLOW_AUTOLEARN_NIGHTLY). By hand when you want the loop closed now. ARGS: $1 = days|min_repeats|max_new — default 7|3|3 EX: [FLOW_AUTOLEARN]7|3|3[/FLOW_AUTOLEARN] TESTS: {ok:true, traces_examined, candidates_seen, learned:[{key,signature,seen,run,row}], skipped:[{signature,why}]}. A candidate is learned only when it recurs at least min_repeats times, every step is low-risk, no step names a side effect, it compiles cleanly, and no existing flow already has exactly those steps. A side-effecting procedure is never auto-enabled — it stays for FLOW_PROMOTE. WHY THIS EXISTS: FLOW_CANDIDATES only reported. A procedure the ledger had watched succeed eleven times stayed a report until a human read it and typed FLOW_LEARN — the same rediscovery a flow exists to end, one level up. The name is derived from the signature, never invented, so running this every night can only ever produce one row per procedure.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_AUTOLEARN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_AUTOLEARN",
        "type": "fn",
        "what": [
          "WHAT: The nightly pass. Scans the ledger for procedures that keep succeeding, and compiles the safe ones into enabled capabilities by itself. Everything it leaves alone is listed with the reason.",
          "WHEN_TO_USE: on a schedule (automation FLOW_AUTOLEARN_NIGHTLY). By hand when you want the loop closed now.",
          "ARGS: $1 = days|min_repeats|max_new — default 7|3|3",
          "EX: [FLOW_AUTOLEARN]7|3|3[/FLOW_AUTOLEARN]",
          "TESTS: {ok:true, traces_examined, candidates_seen, learned:[{key,signature,seen,run,row}], skipped:[{signature,why}]}. A candidate is learned only when it recurs at least min_repeats times, every step is low-risk, no step names a side effect, it compiles cleanly, and no existing flow already has exactly those steps. A side-effecting procedure is never auto-enabled — it stays for FLOW_PROMOTE.",
          "WHY THIS EXISTS: FLOW_CANDIDATES only reported. A procedure the ledger had watched succeed eleven times stayed a report until a human read it and typed FLOW_LEARN — the same rediscovery a flow exists to end, one level up. The name is derived from the signature, never invented, so running this every night can only ever produce one row per procedure."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[FLOW_AUTOLEARN]7|3|3[/FLOW_AUTOLEARN]",
        "tag": "[FLOW_AUTOLEARN][/FLOW_AUTOLEARN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_AUTOLEARN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_AUTOLEARN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_AUTOLEARN",
        "update": "PUT /api/directory/FLOW_AUTOLEARN",
        "patch": "PATCH /api/directory/FLOW_AUTOLEARN",
        "delete": "DELETE /api/directory/FLOW_AUTOLEARN",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_AUTOLEARN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_AUTOLEARN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_AUTOLEARN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_AUTOLEARN"
      },
      "examples": "[\"7|3|3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_AUTOLEARN"
    },
    {
      "key": "FLOW_CANDIDATES",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: Procedures the ledger has watched succeed repeatedly: traces grouped by their ordered capability sequence, with counts, example trace ids and which steps carry side effects. Evidence that a stable procedure exists and a FLOW_LEARN line for each. WHEN_TO_USE: you want to know what the build keeps doing by hand that could be compiled. ARGS: $1 = days|min_repeats (defaults 14|2). EX: [FLOW_CANDIDATES]30|3[/FLOW_CANDIDATES] TESTS: Returns candidates[] with signature, count, traces[] and learn.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_CANDIDATES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_CANDIDATES",
        "type": "fn",
        "what": [
          "WHAT: Procedures the ledger has watched succeed repeatedly: traces grouped by their ordered capability sequence, with counts, example trace ids and which steps carry side effects. Evidence that a stable procedure exists and a FLOW_LEARN line for each.",
          "WHEN_TO_USE: you want to know what the build keeps doing by hand that could be compiled.",
          "ARGS: $1 = days|min_repeats (defaults 14|2).",
          "EX: [FLOW_CANDIDATES]30|3[/FLOW_CANDIDATES]",
          "TESTS: Returns candidates[] with signature, count, traces[] and learn."
        ],
        "args": [
          {
            "pos": 1,
            "name": "30",
            "desc": "days|min_repeats (defaults 14|2).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "candidates[] with signature, count, traces[] and learn.",
        "example": "[FLOW_CANDIDATES]30|3[/FLOW_CANDIDATES]",
        "tag": "[FLOW_CANDIDATES]<30 …>[/FLOW_CANDIDATES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_CANDIDATES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_CANDIDATES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/FLOW_CANDIDATES",
        "update": "PUT /api/directory/FLOW_CANDIDATES",
        "patch": "PATCH /api/directory/FLOW_CANDIDATES",
        "delete": "DELETE /api/directory/FLOW_CANDIDATES",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_CANDIDATES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_CANDIDATES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_CANDIDATES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_CANDIDATES"
      },
      "examples": "[\"30|3\",\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_CANDIDATES"
    },
    {
      "key": "FLOW_DRYRUN",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: What a flow would do, without doing any of it. Every substitution filled in, every gate evaluated against right now, nothing dispatched and nothing charged. WHEN_TO_USE: before running or scheduling a flow you did not write, and before saving one that touches the world. ARGS: $1 = FLOW_KEY|arg1|arg2 ... EX: [FLOW_DRYRUN]QUAKE_WATCH[/FLOW_DRYRUN] TESTS: returns one entry per step with the exact body it would send, which capability it resolves to, and whether it is sensitive or disabled. A gate that reads $PREV says \"depends on the step before it\" rather than guessing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_DRYRUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_DRYRUN",
        "type": "fn",
        "what": [
          "WHAT: What a flow would do, without doing any of it. Every substitution filled in, every gate evaluated against right now, nothing dispatched and nothing charged.",
          "WHEN_TO_USE: before running or scheduling a flow you did not write, and before saving one that touches the world.",
          "ARGS: $1 = FLOW_KEY|arg1|arg2 ...",
          "EX: [FLOW_DRYRUN]QUAKE_WATCH[/FLOW_DRYRUN]",
          "TESTS: returns one entry per step with the exact body it would send, which capability it resolves to, and whether it is sensitive or disabled. A gate that reads $PREV says \"depends on the step before it\" rather than guessing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "QUAKE_WATCH",
            "desc": "FLOW_KEY|arg1|arg2 ...",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "one entry per step with the exact body it would send, which capability it resolves to, and whether it is sensitive or disabled. A gate that reads $PREV says \"depends on the step before it\" rather than guessing.",
        "example": "[FLOW_DRYRUN]QUAKE_WATCH[/FLOW_DRYRUN]",
        "tag": "[FLOW_DRYRUN]<QUAKE_WATCH …>[/FLOW_DRYRUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_DRYRUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_DRYRUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/FLOW_DRYRUN",
        "update": "PUT /api/directory/FLOW_DRYRUN",
        "patch": "PATCH /api/directory/FLOW_DRYRUN",
        "delete": "DELETE /api/directory/FLOW_DRYRUN",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_DRYRUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_DRYRUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_DRYRUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_DRYRUN"
      },
      "examples": "[\"QUAKE_WATCH\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_DRYRUN"
    },
    {
      "key": "FLOW_GATE_PROBE",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Deploy probe: every step after a JSON array index must still be a step. WHEN_TO_USE: the deploy gate FLOW_LOGIC_LAW runs it. It touches no outside service and changes nothing. ARGS: none EX: [FLOW_GATE_PROBE][/FLOW_GATE_PROBE] TESTS: one receipt per step under one trace. Gated on IF $PREV is \"b\". COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_GATE_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_GATE_PROBE",
        "type": "flow",
        "what": [
          "WHAT: Deploy probe: every step after a JSON array index must still be a step.",
          "WHEN_TO_USE: the deploy gate FLOW_LOGIC_LAW runs it. It touches no outside service and changes nothing.",
          "ARGS: none",
          "EX: [FLOW_GATE_PROBE][/FLOW_GATE_PROBE]",
          "TESTS: one receipt per step under one trace. Gated on IF $PREV is \"b\".",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[FLOW_GATE_PROBE][/FLOW_GATE_PROBE]",
        "tag": "[FLOW_GATE_PROBE][/FLOW_GATE_PROBE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_GATE_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_GATE_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_GATE_PROBE",
        "update": "PUT /api/directory/FLOW_GATE_PROBE",
        "patch": "PATCH /api/directory/FLOW_GATE_PROBE",
        "delete": "DELETE /api/directory/FLOW_GATE_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_GATE_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_GATE_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_GATE_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_GATE_PROBE"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_GATE_PROBE"
    },
    {
      "key": "FLOW_LEARN",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: Turn a successful trace into an executable flow capability. Reads the ordered capability calls of a trace (or a list of receipts), lifts the run's input into $1 and each step's use of the previous output into $PREV, refuses unknown, disabled or failed steps, and writes an ordinary Directory flow row. Low-risk, side-effect-free procedures are enabled at once; anything sensitive or side-effecting is created disabled for FLOW_PROMOTE. WHEN_TO_USE: the same multi-step job has been done by hand or by a model more than once. Compile it, then call the new key instead of rediscovering the steps. ARGS: $1 = NEW_KEY|trace_id or inv_a,inv_b,…|{\"arg\":\"<the run input>\",\"replay\":true}. The JSON options are optional. EX: [FLOW_LEARN]QUAKE_REVIEW|t_abc123|{\"replay\":true}[/FLOW_LEARN] TESTS: Returns the flow DSL, per-step bindings, risk, enabled, and a replay result; the new key is dispatchable and appears in the directory as type flow, category learned.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_LEARN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_LEARN",
        "type": "fn",
        "what": [
          "WHAT: Turn a successful trace into an executable flow capability. Reads the ordered capability calls of a trace (or a list of receipts), lifts the run's input into $1 and each step's use of the previous output into $PREV, refuses unknown, disabled or failed steps, and writes an ordinary Directory flow row. Low-risk, side-effect-free procedures are enabled at once; anything sensitive or side-effecting is created disabled for FLOW_PROMOTE.",
          "WHEN_TO_USE: the same multi-step job has been done by hand or by a model more than once. Compile it, then call the new key instead of rediscovering the steps.",
          "ARGS: $1 = NEW_KEY|trace_id or inv_a,inv_b,…|{\"arg\":\"<the run input>\",\"replay\":true}. The JSON options are optional.",
          "EX: [FLOW_LEARN]QUAKE_REVIEW|t_abc123|{\"replay\":true}[/FLOW_LEARN]",
          "TESTS: Returns the flow DSL, per-step bindings, risk, enabled, and a replay result; the new key is dispatchable and appears in the directory as type flow, category learned."
        ],
        "args": [
          {
            "pos": 1,
            "name": "QUAKE_REVIEW",
            "desc": "NEW_KEY|trace_id or inv_a,inv_b,…|{\"arg\":\"<the run input>\",\"replay\":true}. The JSON options are optional.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the flow DSL, per-step bindings, risk, enabled, and a replay result; the new key is dispatchable and appears in the directory as type flow, category learned.",
        "example": "[FLOW_LEARN]QUAKE_REVIEW|t_abc123|{\"replay\":true}[/FLOW_LEARN]",
        "tag": "[FLOW_LEARN]<QUAKE_REVIEW …>[/FLOW_LEARN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_LEARN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_LEARN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/FLOW_LEARN",
        "update": "PUT /api/directory/FLOW_LEARN",
        "patch": "PATCH /api/directory/FLOW_LEARN",
        "delete": "DELETE /api/directory/FLOW_LEARN",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_LEARN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_LEARN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_LEARN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_LEARN"
      },
      "examples": "[\"QUAKE_REVIEW|t_abc123|{\\\"replay\\\":true}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_LEARN"
    },
    {
      "key": "FLOW_PREDICATE_PROBE",
      "type": "flow",
      "category": "kernel",
      "doc": "WHAT: Probe for the flow grammar of 2026-09-11 (WT-0201): an object predicate over a bound record (clock.zone), NOT, UNTIL that already holds, and ONCE. Reads only the build clock. Returns the word PREDICATES-HOLD when every gate passed. WHEN_TO_USE: verifying a deploy of the flow runner. ARGS: none EX: [FLOW_PREDICATE_PROBE][/FLOW_PREDICATE_PROBE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_PREDICATE_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_PREDICATE_PROBE",
        "type": "flow",
        "what": [
          "WHAT: Probe for the flow grammar of 2026-09-11 (WT-0201): an object predicate over a bound record (clock.zone), NOT, UNTIL that already holds, and ONCE. Reads only the build clock. Returns the word PREDICATES-HOLD when every gate passed.",
          "WHEN_TO_USE: verifying a deploy of the flow runner.",
          "ARGS: none",
          "EX: [FLOW_PREDICATE_PROBE][/FLOW_PREDICATE_PROBE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the word PREDICATES-HOLD when every gate passed.",
        "example": "[FLOW_PREDICATE_PROBE][/FLOW_PREDICATE_PROBE]",
        "tag": "[FLOW_PREDICATE_PROBE][/FLOW_PREDICATE_PROBE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_PREDICATE_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_PREDICATE_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_PREDICATE_PROBE",
        "update": "PUT /api/directory/FLOW_PREDICATE_PROBE",
        "patch": "PATCH /api/directory/FLOW_PREDICATE_PROBE",
        "delete": "DELETE /api/directory/FLOW_PREDICATE_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_PREDICATE_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_PREDICATE_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_PREDICATE_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_PREDICATE_PROBE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_PREDICATE_PROBE"
    },
    {
      "key": "FLOW_PROMOTE",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: Enable a learned flow that was created disabled because a step is sensitive or side-effecting. Owner action, after reading the steps. WHEN_TO_USE: FLOW_LEARN returned enabled:false and the steps are acceptable to run unattended. ARGS: $1 = KEY. EX: [FLOW_PROMOTE]CUSTOMER_REFUND_REVIEW[/FLOW_PROMOTE] TESTS: The row becomes enabled and dispatchable.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_PROMOTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_PROMOTE",
        "type": "fn",
        "what": [
          "WHAT: Enable a learned flow that was created disabled because a step is sensitive or side-effecting. Owner action, after reading the steps.",
          "WHEN_TO_USE: FLOW_LEARN returned enabled:false and the steps are acceptable to run unattended.",
          "ARGS: $1 = KEY.",
          "EX: [FLOW_PROMOTE]CUSTOMER_REFUND_REVIEW[/FLOW_PROMOTE]",
          "TESTS: The row becomes enabled and dispatchable."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CUSTOMER_REFUND_REVIEW",
            "desc": "KEY.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[FLOW_PROMOTE]CUSTOMER_REFUND_REVIEW[/FLOW_PROMOTE]",
        "tag": "[FLOW_PROMOTE]<CUSTOMER_REFUND_REVIEW …>[/FLOW_PROMOTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_PROMOTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_PROMOTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/FLOW_PROMOTE",
        "update": "PUT /api/directory/FLOW_PROMOTE",
        "patch": "PATCH /api/directory/FLOW_PROMOTE",
        "delete": "DELETE /api/directory/FLOW_PROMOTE",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_PROMOTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_PROMOTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_PROMOTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_PROMOTE"
      },
      "examples": "[\"CUSTOMER_REFUND_REVIEW\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_PROMOTE"
    },
    {
      "key": "FLOW_PROOF_PING",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Prove a composed flow can take a real action in the world: read the clock, check it, send a text. WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the argument the first step takes. EX: [FLOW_PROOF_PING]your input[/FLOW_PROOF_PING] TESTS: one receipt per step under one trace. Gated on IF $PREV is not empty — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_PROOF_PING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_PROOF_PING",
        "type": "flow",
        "what": [
          "WHAT: Prove a composed flow can take a real action in the world: read the clock, check it, send a text.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the argument the first step takes.",
          "EX: [FLOW_PROOF_PING]your input[/FLOW_PROOF_PING]",
          "TESTS: one receipt per step under one trace. Gated on IF $PREV is not empty — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "OWNER"
        ],
        "returns": "the final step's output.",
        "example": "[FLOW_PROOF_PING]your input[/FLOW_PROOF_PING]",
        "tag": "[FLOW_PROOF_PING][/FLOW_PROOF_PING]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_PROOF_PING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_PROOF_PING  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_PROOF_PING",
        "update": "PUT /api/directory/FLOW_PROOF_PING",
        "patch": "PATCH /api/directory/FLOW_PROOF_PING",
        "delete": "DELETE /api/directory/FLOW_PROOF_PING",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_PROOF_PING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_PROOF_PING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_PROOF_PING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_PROOF_PING"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_PROOF_PING"
    },
    {
      "key": "FLOW_REPAIR",
      "type": "agent",
      "category": "learned",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_REPAIR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_REPAIR",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[FLOW_REPAIR][/FLOW_REPAIR]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_REPAIR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_REPAIR  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_REPAIR",
        "update": "PUT /api/directory/FLOW_REPAIR",
        "patch": "PATCH /api/directory/FLOW_REPAIR",
        "delete": "DELETE /api/directory/FLOW_REPAIR",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_REPAIR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_REPAIR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_REPAIR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_REPAIR"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_REPAIR"
    },
    {
      "key": "FLOW_RESUME",
      "type": "fn",
      "category": "learned",
      "doc": "WHAT: Carry a paused flow on from where it stopped, or throw it away. The steps before the pause are not run again. WHEN_TO_USE: a flow answered {awaiting_approval:true} and you have decided. ARGS: $1 = token|yes  or  token|no EX: [FLOW_RESUME]appr_a1b2c3|yes[/FLOW_RESUME] TESTS: the token is single use and lasts 24 hours — it is deleted before the rest of the flow runs, so a double approval cannot send the same message twice and a lost reply cannot be replayed by anyone holding it. \"no\" runs nothing and spends the token.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_RESUME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_RESUME",
        "type": "fn",
        "what": [
          "WHAT: Carry a paused flow on from where it stopped, or throw it away. The steps before the pause are not run again.",
          "WHEN_TO_USE: a flow answered {awaiting_approval:true} and you have decided.",
          "ARGS: $1 = token|yes  or  token|no",
          "EX: [FLOW_RESUME]appr_a1b2c3|yes[/FLOW_RESUME]",
          "TESTS: the token is single use and lasts 24 hours — it is deleted before the rest of the flow runs, so a double approval cannot send the same message twice and a lost reply cannot be replayed by anyone holding it. \"no\" runs nothing and spends the token."
        ],
        "args": [
          {
            "pos": 1,
            "name": "appr_a1b2c3",
            "desc": "token|yes  or  token|no",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[FLOW_RESUME]appr_a1b2c3|yes[/FLOW_RESUME]",
        "tag": "[FLOW_RESUME]<appr_a1b2c3 …>[/FLOW_RESUME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_RESUME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_RESUME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/FLOW_RESUME",
        "update": "PUT /api/directory/FLOW_RESUME",
        "patch": "PATCH /api/directory/FLOW_RESUME",
        "delete": "DELETE /api/directory/FLOW_RESUME",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_RESUME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_RESUME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_RESUME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_RESUME"
      },
      "examples": "[\"appr_xxxxxxxx|yes\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_RESUME"
    },
    {
      "key": "FLOW_STOP_PROBE",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Deploy probe: a time gate that can never pass must stop the flow cleanly and run nothing after it. WHEN_TO_USE: the deploy gate FLOW_LOGIC_LAW runs it. It touches no outside service and changes nothing. ARGS: none EX: [FLOW_STOP_PROBE][/FLOW_STOP_PROBE] TESTS: one receipt per step under one trace. Gated on WHEN after 2999-01-01. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FLOW_STOP_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FLOW_STOP_PROBE",
        "type": "flow",
        "what": [
          "WHAT: Deploy probe: a time gate that can never pass must stop the flow cleanly and run nothing after it.",
          "WHEN_TO_USE: the deploy gate FLOW_LOGIC_LAW runs it. It touches no outside service and changes nothing.",
          "ARGS: none",
          "EX: [FLOW_STOP_PROBE][/FLOW_STOP_PROBE]",
          "TESTS: one receipt per step under one trace. Gated on WHEN after 2999-01-01.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[FLOW_STOP_PROBE][/FLOW_STOP_PROBE]",
        "tag": "[FLOW_STOP_PROBE][/FLOW_STOP_PROBE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FLOW_STOP_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FLOW_STOP_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/FLOW_STOP_PROBE",
        "update": "PUT /api/directory/FLOW_STOP_PROBE",
        "patch": "PATCH /api/directory/FLOW_STOP_PROBE",
        "delete": "DELETE /api/directory/FLOW_STOP_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"FLOW_STOP_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FLOW_STOP_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FLOW_STOP_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FLOW_STOP_PROBE"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FLOW_STOP_PROBE"
    },
    {
      "key": "FORGET",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Remove one line from your memory (or any row). $1=key (ROUTER for your own memory), $2=the exact text to remove WHEN_TO_USE: you need to forget ARGS: $1 | $2 EX: [FORGET]arg1|arg2[/FORGET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "FORGET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "FORGET",
        "type": "fn",
        "what": [
          "WHAT: Remove one line from your memory (or any row). $1=key (ROUTER for your own memory), $2=the exact text to remove",
          "WHEN_TO_USE: you need to forget",
          "ARGS: $1 | $2",
          "EX: [FORGET]arg1|arg2[/FORGET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key (ROUTER for your own memory), $2=the exact text to remove",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[FORGET]arg1|arg2[/FORGET]",
        "tag": "[FORGET]<arg1>|<arg2>[/FORGET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"FORGET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/FORGET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"\"]",
      "edit": {
        "read": "GET /api/directory/FORGET",
        "update": "PUT /api/directory/FORGET",
        "patch": "PATCH /api/directory/FORGET",
        "delete": "DELETE /api/directory/FORGET",
        "invoke": "POST /api/dispatch {\"key\":\"FORGET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"FORGET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"FORGET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/FORGET"
      },
      "examples": "[\"ROUTER|- testmem beta\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=FORGET"
    },
    {
      "key": "GAP_REPORT",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Given the same shape as PROPOSE_ROWS, diff the discovered ops against existing directory keys. Returns {ops_total, found, missing, missing_ops[]}. Surfaces what is genuinely new WHEN_TO_USE: you need to gap report ARGS: $1 EX: [GAP_REPORT]arg1[/GAP_REPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GAP_REPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GAP_REPORT",
        "type": "fn",
        "what": [
          "WHAT: Given the same shape as PROPOSE_ROWS, diff the discovered ops against existing directory keys. Returns {ops_total, found, missing, missing_ops[]}. Surfaces what is genuinely new",
          "WHEN_TO_USE: you need to gap report",
          "ARGS: $1",
          "EX: [GAP_REPORT]arg1[/GAP_REPORT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{ops_total, found, missing, missing_ops[]}. Surfaces what is genuinely new",
        "example": "[GAP_REPORT]arg1[/GAP_REPORT]",
        "tag": "[GAP_REPORT]<arg1>[/GAP_REPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GAP_REPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GAP_REPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GAP_REPORT",
        "update": "PUT /api/directory/GAP_REPORT",
        "patch": "PATCH /api/directory/GAP_REPORT",
        "delete": "DELETE /api/directory/GAP_REPORT",
        "invoke": "POST /api/dispatch {\"key\":\"GAP_REPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GAP_REPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GAP_REPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GAP_REPORT"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GAP_REPORT"
    },
    {
      "key": "GCAL_CALENDARS_LIST",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Every calendar the connected Google account can see. WHEN_TO_USE: find the calendar id before listing events. ARGS: none EX: [GCAL_CALENDARS_LIST][/GCAL_CALENDARS_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GCAL_CALENDARS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GCAL_CALENDARS_LIST",
        "type": "http",
        "what": [
          "WHAT: Every calendar the connected Google account can see.",
          "WHEN_TO_USE: find the calendar id before listing events.",
          "ARGS: none",
          "EX: [GCAL_CALENDARS_LIST][/GCAL_CALENDARS_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GCAL_CALENDARS_LIST][/GCAL_CALENDARS_LIST]",
        "tag": "[GCAL_CALENDARS_LIST][/GCAL_CALENDARS_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GCAL_CALENDARS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GCAL_CALENDARS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GCAL_CALENDARS_LIST",
        "update": "PUT /api/directory/GCAL_CALENDARS_LIST",
        "patch": "PATCH /api/directory/GCAL_CALENDARS_LIST",
        "delete": "DELETE /api/directory/GCAL_CALENDARS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"GCAL_CALENDARS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GCAL_CALENDARS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GCAL_CALENDARS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GCAL_CALENDARS_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GCAL_CALENDARS_LIST"
    },
    {
      "key": "GCAL_EVENTS_UPCOMING",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Upcoming events on the primary calendar from a start time. WHEN_TO_USE: what is on the calendar today or this week. ARGS: $1 = max results (e.g. 10) · $2 = RFC3339 start, e.g. 2026-09-11T00:00:00Z EX: [GCAL_EVENTS_UPCOMING]10|2026-09-11T00:00:00Z[/GCAL_EVENTS_UPCOMING]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GCAL_EVENTS_UPCOMING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GCAL_EVENTS_UPCOMING",
        "type": "http",
        "what": [
          "WHAT: Upcoming events on the primary calendar from a start time.",
          "WHEN_TO_USE: what is on the calendar today or this week.",
          "ARGS: $1 = max results (e.g. 10) · $2 = RFC3339 start, e.g. 2026-09-11T00:00:00Z",
          "EX: [GCAL_EVENTS_UPCOMING]10|2026-09-11T00:00:00Z[/GCAL_EVENTS_UPCOMING]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "10",
            "desc": "max results (e.g. 10) · $2 = RFC3339 start, e.g. 2026-09-11T00:00:00Z",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "2026-09-11T00:00:00Z",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GCAL_EVENTS_UPCOMING]10|2026-09-11T00:00:00Z[/GCAL_EVENTS_UPCOMING]",
        "tag": "[GCAL_EVENTS_UPCOMING]<10>|<2026-09-11T00:00:00Z>[/GCAL_EVENTS_UPCOMING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GCAL_EVENTS_UPCOMING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GCAL_EVENTS_UPCOMING  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GCAL_EVENTS_UPCOMING",
        "update": "PUT /api/directory/GCAL_EVENTS_UPCOMING",
        "patch": "PATCH /api/directory/GCAL_EVENTS_UPCOMING",
        "delete": "DELETE /api/directory/GCAL_EVENTS_UPCOMING",
        "invoke": "POST /api/dispatch {\"key\":\"GCAL_EVENTS_UPCOMING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GCAL_EVENTS_UPCOMING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GCAL_EVENTS_UPCOMING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GCAL_EVENTS_UPCOMING"
      },
      "examples": "[\"10|2026-09-11T00:00:00Z\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GCAL_EVENTS_UPCOMING"
    },
    {
      "key": "GCAL_MCP_EVENTS",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Events on the owner primary calendar between two times (Calendar MCP). WHEN_TO_USE: what is on the calendar. ARGS: $1 = ISO 8601 start · $2 = ISO 8601 end EX: [GCAL_MCP_EVENTS]2026-09-11T00:00:00Z|2026-09-18T00:00:00Z[/GCAL_MCP_EVENTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GCAL_MCP_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GCAL_MCP_EVENTS",
        "type": "http",
        "what": [
          "WHAT: Events on the owner primary calendar between two times (Calendar MCP).",
          "WHEN_TO_USE: what is on the calendar.",
          "ARGS: $1 = ISO 8601 start · $2 = ISO 8601 end",
          "EX: [GCAL_MCP_EVENTS]2026-09-11T00:00:00Z|2026-09-18T00:00:00Z[/GCAL_MCP_EVENTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "2026-09-11T00:00:00Z",
            "desc": "ISO 8601 start · $2 = ISO 8601 end",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "2026-09-18T00:00:00Z",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GCAL_MCP_EVENTS]2026-09-11T00:00:00Z|2026-09-18T00:00:00Z[/GCAL_MCP_EVENTS]",
        "tag": "[GCAL_MCP_EVENTS]<2026-09-11T00:00:00Z>|<2026-09-18T00:00:00Z>[/GCAL_MCP_EVENTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GCAL_MCP_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GCAL_MCP_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"list_events\",\"arguments\":{\"calendarId\":\"primary\",\"startTime\":\"$1\",\"endTime\":\"$2\"}}}",
      "edit": {
        "read": "GET /api/directory/GCAL_MCP_EVENTS",
        "update": "PUT /api/directory/GCAL_MCP_EVENTS",
        "patch": "PATCH /api/directory/GCAL_MCP_EVENTS",
        "delete": "DELETE /api/directory/GCAL_MCP_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"GCAL_MCP_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GCAL_MCP_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GCAL_MCP_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GCAL_MCP_EVENTS"
      },
      "examples": "[\"2026-09-11T00:00:00Z|2026-09-18T00:00:00Z\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GCAL_MCP_EVENTS"
    },
    {
      "key": "GCHAT_MCP_SEARCH",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Search Google Chat messages the owner can see (Chat MCP) by keywords. WHEN_TO_USE: find a Chat message by words. ARGS: $1+ = keywords EX: [GCHAT_MCP_SEARCH]invoice[/GCHAT_MCP_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GCHAT_MCP_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GCHAT_MCP_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search Google Chat messages the owner can see (Chat MCP) by keywords.",
          "WHEN_TO_USE: find a Chat message by words.",
          "ARGS: $1+ = keywords",
          "EX: [GCHAT_MCP_SEARCH]invoice[/GCHAT_MCP_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "invoice",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GCHAT_MCP_SEARCH]invoice[/GCHAT_MCP_SEARCH]",
        "tag": "[GCHAT_MCP_SEARCH]<invoice …>[/GCHAT_MCP_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GCHAT_MCP_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GCHAT_MCP_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_messages\",\"arguments\":{\"searchParameters\":{\"keywords\":\"$1+\"}}}}",
      "edit": {
        "read": "GET /api/directory/GCHAT_MCP_SEARCH",
        "update": "PUT /api/directory/GCHAT_MCP_SEARCH",
        "patch": "PATCH /api/directory/GCHAT_MCP_SEARCH",
        "delete": "DELETE /api/directory/GCHAT_MCP_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GCHAT_MCP_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GCHAT_MCP_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GCHAT_MCP_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GCHAT_MCP_SEARCH"
      },
      "examples": "[\"invoice\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GCHAT_MCP_SEARCH"
    },
    {
      "key": "GDOCS_MCP_READ",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Read a Google Doc structure and text (Docs MCP). WHEN_TO_USE: after GDRIVE_MCP_SEARCH finds a doc. ARGS: $1 = document id EX: [GDOCS_MCP_READ]1AbC…[/GDOCS_MCP_READ]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GDOCS_MCP_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GDOCS_MCP_READ",
        "type": "http",
        "what": [
          "WHAT: Read a Google Doc structure and text (Docs MCP).",
          "WHEN_TO_USE: after GDRIVE_MCP_SEARCH finds a doc.",
          "ARGS: $1 = document id",
          "EX: [GDOCS_MCP_READ]1AbC…[/GDOCS_MCP_READ]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1AbC…",
            "desc": "document id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GDOCS_MCP_READ]1AbC…[/GDOCS_MCP_READ]",
        "tag": "[GDOCS_MCP_READ]<1AbC…>[/GDOCS_MCP_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GDOCS_MCP_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GDOCS_MCP_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"read_doc\",\"arguments\":{\"document_id\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GDOCS_MCP_READ",
        "update": "PUT /api/directory/GDOCS_MCP_READ",
        "patch": "PATCH /api/directory/GDOCS_MCP_READ",
        "delete": "DELETE /api/directory/GDOCS_MCP_READ",
        "invoke": "POST /api/dispatch {\"key\":\"GDOCS_MCP_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GDOCS_MCP_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GDOCS_MCP_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GDOCS_MCP_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GDOCS_MCP_READ"
    },
    {
      "key": "GDRIVE_FILES_SEARCH",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Search Google Drive with a Drive query string; returns id, name, type, modified, link for up to 25 files. WHEN_TO_USE: find a sheet, doc or folder by name or type before reading it. ARGS: $1 = Drive query, e.g. name contains 'report' · mimeType='application/vnd.google-apps.spreadsheet' EX: [GDRIVE_FILES_SEARCH]trashed=false[/GDRIVE_FILES_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GDRIVE_FILES_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GDRIVE_FILES_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search Google Drive with a Drive query string; returns id, name, type, modified, link for up to 25 files.",
          "WHEN_TO_USE: find a sheet, doc or folder by name or type before reading it.",
          "ARGS: $1 = Drive query, e.g. name contains 'report' · mimeType='application/vnd.google-apps.spreadsheet'",
          "EX: [GDRIVE_FILES_SEARCH]trashed=false[/GDRIVE_FILES_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "trashed=false",
            "desc": "Drive query, e.g. name contains 'report' · mimeType='application/vnd.google-apps.spreadsheet'",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "id, name, type, modified, link for up to 25 files.",
        "example": "[GDRIVE_FILES_SEARCH]trashed=false[/GDRIVE_FILES_SEARCH]",
        "tag": "[GDRIVE_FILES_SEARCH]<trashed=false>[/GDRIVE_FILES_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GDRIVE_FILES_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GDRIVE_FILES_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GDRIVE_FILES_SEARCH",
        "update": "PUT /api/directory/GDRIVE_FILES_SEARCH",
        "patch": "PATCH /api/directory/GDRIVE_FILES_SEARCH",
        "delete": "DELETE /api/directory/GDRIVE_FILES_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GDRIVE_FILES_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GDRIVE_FILES_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GDRIVE_FILES_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GDRIVE_FILES_SEARCH"
      },
      "examples": "[\"trashed=false\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GDRIVE_FILES_SEARCH"
    },
    {
      "key": "GDRIVE_FILE_GET",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Metadata for one Drive file by id. WHEN_TO_USE: after GDRIVE_FILES_SEARCH, to confirm what a file is before reading it. ARGS: $1 = file id EX: [GDRIVE_FILE_GET]1AbC…[/GDRIVE_FILE_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GDRIVE_FILE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GDRIVE_FILE_GET",
        "type": "http",
        "what": [
          "WHAT: Metadata for one Drive file by id.",
          "WHEN_TO_USE: after GDRIVE_FILES_SEARCH, to confirm what a file is before reading it.",
          "ARGS: $1 = file id",
          "EX: [GDRIVE_FILE_GET]1AbC…[/GDRIVE_FILE_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1AbC…",
            "desc": "file id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GDRIVE_FILE_GET]1AbC…[/GDRIVE_FILE_GET]",
        "tag": "[GDRIVE_FILE_GET]<1AbC…>[/GDRIVE_FILE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GDRIVE_FILE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GDRIVE_FILE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GDRIVE_FILE_GET",
        "update": "PUT /api/directory/GDRIVE_FILE_GET",
        "patch": "PATCH /api/directory/GDRIVE_FILE_GET",
        "delete": "DELETE /api/directory/GDRIVE_FILE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GDRIVE_FILE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GDRIVE_FILE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GDRIVE_FILE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GDRIVE_FILE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GDRIVE_FILE_GET"
    },
    {
      "key": "GDRIVE_MCP_READ",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Read a Drive file as text (Drive MCP): Docs, Sheets, PDFs, text. WHEN_TO_USE: after GDRIVE_MCP_SEARCH. ARGS: $1 = file id EX: [GDRIVE_MCP_READ]1AbC…[/GDRIVE_MCP_READ]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GDRIVE_MCP_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GDRIVE_MCP_READ",
        "type": "http",
        "what": [
          "WHAT: Read a Drive file as text (Drive MCP): Docs, Sheets, PDFs, text.",
          "WHEN_TO_USE: after GDRIVE_MCP_SEARCH.",
          "ARGS: $1 = file id",
          "EX: [GDRIVE_MCP_READ]1AbC…[/GDRIVE_MCP_READ]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1AbC…",
            "desc": "file id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GDRIVE_MCP_READ]1AbC…[/GDRIVE_MCP_READ]",
        "tag": "[GDRIVE_MCP_READ]<1AbC…>[/GDRIVE_MCP_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GDRIVE_MCP_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GDRIVE_MCP_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"read_file_content\",\"arguments\":{\"file_id\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GDRIVE_MCP_READ",
        "update": "PUT /api/directory/GDRIVE_MCP_READ",
        "patch": "PATCH /api/directory/GDRIVE_MCP_READ",
        "delete": "DELETE /api/directory/GDRIVE_MCP_READ",
        "invoke": "POST /api/dispatch {\"key\":\"GDRIVE_MCP_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GDRIVE_MCP_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GDRIVE_MCP_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GDRIVE_MCP_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GDRIVE_MCP_READ"
    },
    {
      "key": "GDRIVE_MCP_SEARCH",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Search Google Drive by natural-language or Drive query (Drive MCP); returns files with ids. WHEN_TO_USE: find a sheet, doc or folder before reading it. ARGS: $1+ = query EX: [GDRIVE_MCP_SEARCH]airunner[/GDRIVE_MCP_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GDRIVE_MCP_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GDRIVE_MCP_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search Google Drive by natural-language or Drive query (Drive MCP); returns files with ids.",
          "WHEN_TO_USE: find a sheet, doc or folder before reading it.",
          "ARGS: $1+ = query",
          "EX: [GDRIVE_MCP_SEARCH]airunner[/GDRIVE_MCP_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "airunner",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "files with ids.",
        "example": "[GDRIVE_MCP_SEARCH]airunner[/GDRIVE_MCP_SEARCH]",
        "tag": "[GDRIVE_MCP_SEARCH]<airunner …>[/GDRIVE_MCP_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GDRIVE_MCP_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GDRIVE_MCP_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_files\",\"arguments\":{\"query\":\"$1+\"}}}",
      "edit": {
        "read": "GET /api/directory/GDRIVE_MCP_SEARCH",
        "update": "PUT /api/directory/GDRIVE_MCP_SEARCH",
        "patch": "PATCH /api/directory/GDRIVE_MCP_SEARCH",
        "delete": "DELETE /api/directory/GDRIVE_MCP_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GDRIVE_MCP_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GDRIVE_MCP_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GDRIVE_MCP_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GDRIVE_MCP_SEARCH"
      },
      "examples": "[\"airunner\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GDRIVE_MCP_SEARCH"
    },
    {
      "key": "GEMINI_COLLABORATE",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Cheap Gemini reads article topology and posts tier-honest claims — collaborator #2 (after Kimi). WHEN_TO_USE: second-model enrichment, gap-filling, adversary challenge after Kimi pass. ARGS: slug   e.g. bpc-157 EX: [GEMINI_COLLABORATE]bpc-157[/GEMINI_COLLABORATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GEMINI_COLLABORATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GEMINI_COLLABORATE",
        "type": "fn",
        "what": [
          "WHAT: Cheap Gemini reads article topology and posts tier-honest claims — collaborator #2 (after Kimi).",
          "WHEN_TO_USE: second-model enrichment, gap-filling, adversary challenge after Kimi pass.",
          "ARGS: slug   e.g. bpc-157",
          "EX: [GEMINI_COLLABORATE]bpc-157[/GEMINI_COLLABORATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GEMINI_COLLABORATE]bpc-157[/GEMINI_COLLABORATE]",
        "tag": "[GEMINI_COLLABORATE]<bpc-157>[/GEMINI_COLLABORATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GEMINI_COLLABORATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GEMINI_COLLABORATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GEMINI_COLLABORATE",
        "update": "PUT /api/directory/GEMINI_COLLABORATE",
        "patch": "PATCH /api/directory/GEMINI_COLLABORATE",
        "delete": "DELETE /api/directory/GEMINI_COLLABORATE",
        "invoke": "POST /api/dispatch {\"key\":\"GEMINI_COLLABORATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GEMINI_COLLABORATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GEMINI_COLLABORATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GEMINI_COLLABORATE"
      },
      "examples": "[\"bpc-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GEMINI_COLLABORATE"
    },
    {
      "key": "GEMINI_GENERATE",
      "type": "http",
      "category": "llm",
      "doc": "WHAT: Generate text via Gemini 2.5 Flash. $1=plain text prompt. Use as a cheaper alternative to Grok for batch summarization WHEN_TO_USE: you need to gemini generate ARGS: see content EX: [GEMINI_GENERATE]arg1[/GEMINI_GENERATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GEMINI_GENERATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GEMINI_GENERATE",
        "type": "http",
        "what": [
          "WHAT: Generate text via Gemini 2.5 Flash. $1=plain text prompt. Use as a cheaper alternative to Grok for batch summarization",
          "WHEN_TO_USE: you need to gemini generate",
          "ARGS: see content",
          "EX: [GEMINI_GENERATE]arg1[/GEMINI_GENERATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "plain text prompt. Use as a cheaper alternative to Grok for batch summarization",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GEMINI_GENERATE]arg1[/GEMINI_GENERATE]",
        "tag": "[GEMINI_GENERATE]<arg1>[/GEMINI_GENERATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GEMINI_GENERATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GEMINI_GENERATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"contents\":[{\"parts\":[{\"text\":\"$1\"}]}]}",
      "edit": {
        "read": "GET /api/directory/GEMINI_GENERATE",
        "update": "PUT /api/directory/GEMINI_GENERATE",
        "patch": "PATCH /api/directory/GEMINI_GENERATE",
        "delete": "DELETE /api/directory/GEMINI_GENERATE",
        "invoke": "POST /api/dispatch {\"key\":\"GEMINI_GENERATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GEMINI_GENERATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GEMINI_GENERATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GEMINI_GENERATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GEMINI_GENERATE"
    },
    {
      "key": "GEMINI_WEB",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Ask Gemini Web — the logged-in browser session, not the metered API — and return the exact captured answer. WHEN_TO_USE: you want Gemini Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output. ARGS: $1 = the prompt. Pipes are preserved. EX: [GEMINI_WEB]Reply with exactly GATEWAY_LIVE_OK[/GEMINI_WEB] TESTS: Returns the exact assistant text with substrate browser_web and provider gemini. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GEMINI_WEB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GEMINI_WEB",
        "type": "fn",
        "what": [
          "WHAT: Ask Gemini Web — the logged-in browser session, not the metered API — and return the exact captured answer.",
          "WHEN_TO_USE: you want Gemini Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output.",
          "ARGS: $1 = the prompt. Pipes are preserved.",
          "EX: [GEMINI_WEB]Reply with exactly GATEWAY_LIVE_OK[/GEMINI_WEB]",
          "TESTS: Returns the exact assistant text with substrate browser_web and provider gemini. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Reply with exactly GATEWAY_LIVE_OK",
            "desc": "the prompt. Pipes are preserved.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact captured answer.",
        "example": "[GEMINI_WEB]Reply with exactly GATEWAY_LIVE_OK[/GEMINI_WEB]",
        "tag": "[GEMINI_WEB]<Reply with exactly GATEWAY_LIVE_OK …>[/GEMINI_WEB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GEMINI_WEB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GEMINI_WEB  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"gemini|$1+\"]",
      "edit": {
        "read": "GET /api/directory/GEMINI_WEB",
        "update": "PUT /api/directory/GEMINI_WEB",
        "patch": "PATCH /api/directory/GEMINI_WEB",
        "delete": "DELETE /api/directory/GEMINI_WEB",
        "invoke": "POST /api/dispatch {\"key\":\"GEMINI_WEB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GEMINI_WEB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GEMINI_WEB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GEMINI_WEB"
      },
      "examples": "[\"Reply with exactly GATEWAY_LIVE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GEMINI_WEB"
    },
    {
      "key": "GEN_DUAL",
      "type": "fn",
      "category": "openai",
      "doc": "WHAT: Generate with BOTH OpenAI gpt-image-1.5 and Grok Imagine; store both to R2; return both links. If reference_url is given, both EDIT it WHEN_TO_USE: you need to gen dual ARGS: prompt|reference_url EX: [GEN_DUAL]arg1|arg2[/GEN_DUAL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GEN_DUAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GEN_DUAL",
        "type": "fn",
        "what": [
          "WHAT: Generate with BOTH OpenAI gpt-image-1.5 and Grok Imagine; store both to R2; return both links. If reference_url is given, both EDIT it",
          "WHEN_TO_USE: you need to gen dual",
          "ARGS: prompt|reference_url",
          "EX: [GEN_DUAL]arg1|arg2[/GEN_DUAL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "both links. If reference_url is given, both EDIT it",
        "example": "[GEN_DUAL]arg1|arg2[/GEN_DUAL]",
        "tag": "[GEN_DUAL]<arg1>|<arg2>[/GEN_DUAL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GEN_DUAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GEN_DUAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/GEN_DUAL",
        "update": "PUT /api/directory/GEN_DUAL",
        "patch": "PATCH /api/directory/GEN_DUAL",
        "delete": "DELETE /api/directory/GEN_DUAL",
        "invoke": "POST /api/dispatch {\"key\":\"GEN_DUAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GEN_DUAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GEN_DUAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GEN_DUAL"
      },
      "examples": "[\"Dark cosmic scientific infographic poster FRACTALS RECURSION branching white line art on black\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GEN_DUAL"
    },
    {
      "key": "GET_AGENT_LIMITS",
      "type": "fn",
      "category": "limits",
      "doc": "WHAT: Read current agent limits: tool_loops, memory_window, depth_cap, cost_cap_usd. WHEN_TO_USE: the owner asks \"what are my limits\" / \"what are your caps\". ARGS: none EX: [GET_AGENT_LIMITS][/GET_AGENT_LIMITS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GET_AGENT_LIMITS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GET_AGENT_LIMITS",
        "type": "fn",
        "what": [
          "WHAT: Read current agent limits: tool_loops, memory_window, depth_cap, cost_cap_usd.",
          "WHEN_TO_USE: the owner asks \"what are my limits\" / \"what are your caps\".",
          "ARGS: none",
          "EX: [GET_AGENT_LIMITS][/GET_AGENT_LIMITS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GET_AGENT_LIMITS][/GET_AGENT_LIMITS]",
        "tag": "[GET_AGENT_LIMITS][/GET_AGENT_LIMITS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GET_AGENT_LIMITS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GET_AGENT_LIMITS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/GET_AGENT_LIMITS",
        "update": "PUT /api/directory/GET_AGENT_LIMITS",
        "patch": "PATCH /api/directory/GET_AGENT_LIMITS",
        "delete": "DELETE /api/directory/GET_AGENT_LIMITS",
        "invoke": "POST /api/dispatch {\"key\":\"GET_AGENT_LIMITS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GET_AGENT_LIMITS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GET_AGENT_LIMITS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GET_AGENT_LIMITS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GET_AGENT_LIMITS"
    },
    {
      "key": "GITHUB",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GITHUB][/GITHUB]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GITHUB",
        "update": "PUT /api/directory/GITHUB",
        "patch": "PATCH /api/directory/GITHUB",
        "delete": "DELETE /api/directory/GITHUB",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB"
      },
      "examples": "[\"nope\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB"
    },
    {
      "key": "GITHUB_ADD_ISSUE_COMMENT",
      "type": "fn",
      "category": "github",
      "doc": "WHAT: Post a comment to a GitHub issue through the GitHub API. This is the canonical URL-only comment path. WHEN_TO_USE: comment on GitHub, reply to an issue, post proof/receipt on an issue. ARGS: issue_number | comment_body EX: [GITHUB_ADD_ISSUE_COMMENT]38|Proof: native GitHub OIP comment path works.[/GITHUB_ADD_ISSUE_COMMENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_ADD_ISSUE_COMMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_ADD_ISSUE_COMMENT",
        "type": "fn",
        "what": [
          "WHAT: Post a comment to a GitHub issue through the GitHub API. This is the canonical URL-only comment path.",
          "WHEN_TO_USE: comment on GitHub, reply to an issue, post proof/receipt on an issue.",
          "ARGS: issue_number | comment_body",
          "EX: [GITHUB_ADD_ISSUE_COMMENT]38|Proof: native GitHub OIP comment path works.[/GITHUB_ADD_ISSUE_COMMENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "38",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Proof: native GitHub OIP comment path works.",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_ADD_ISSUE_COMMENT]38|Proof: native GitHub OIP comment path works.[/GITHUB_ADD_ISSUE_COMMENT]",
        "tag": "[GITHUB_ADD_ISSUE_COMMENT]<38>|<Proof: native GitHub OIP comment path works. …>[/GITHUB_ADD_ISSUE_COMMENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_ADD_ISSUE_COMMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_ADD_ISSUE_COMMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_ADD_ISSUE_COMMENT",
        "update": "PUT /api/directory/GITHUB_ADD_ISSUE_COMMENT",
        "patch": "PATCH /api/directory/GITHUB_ADD_ISSUE_COMMENT",
        "delete": "DELETE /api/directory/GITHUB_ADD_ISSUE_COMMENT",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_ADD_ISSUE_COMMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_ADD_ISSUE_COMMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_ADD_ISSUE_COMMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_ADD_ISSUE_COMMENT"
      },
      "examples": "[\"38|Proof: native GitHub OIP comment path works.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_ADD_ISSUE_COMMENT"
    },
    {
      "key": "GITHUB_CLOSE_ISSUE",
      "type": "fn",
      "category": "github",
      "doc": "WHAT: Close a GitHub issue and add a closing comment. WHEN_TO_USE: finish/resolve/close a GitHub issue from the build. ARGS: number | reason EX: [GITHUB_CLOSE_ISSUE]42|Fixed in commit abc123[/GITHUB_CLOSE_ISSUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_CLOSE_ISSUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_CLOSE_ISSUE",
        "type": "fn",
        "what": [
          "WHAT: Close a GitHub issue and add a closing comment.",
          "WHEN_TO_USE: finish/resolve/close a GitHub issue from the build.",
          "ARGS: number | reason",
          "EX: [GITHUB_CLOSE_ISSUE]42|Fixed in commit abc123[/GITHUB_CLOSE_ISSUE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_CLOSE_ISSUE]42|Fixed in commit abc123[/GITHUB_CLOSE_ISSUE]",
        "tag": "[GITHUB_CLOSE_ISSUE][/GITHUB_CLOSE_ISSUE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_CLOSE_ISSUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_CLOSE_ISSUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GITHUB_CLOSE_ISSUE",
        "update": "PUT /api/directory/GITHUB_CLOSE_ISSUE",
        "patch": "PATCH /api/directory/GITHUB_CLOSE_ISSUE",
        "delete": "DELETE /api/directory/GITHUB_CLOSE_ISSUE",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_CLOSE_ISSUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_CLOSE_ISSUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_CLOSE_ISSUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_CLOSE_ISSUE"
      },
      "examples": "[\"42|Fixed in commit abc123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_CLOSE_ISSUE"
    },
    {
      "key": "GITHUB_CREATE_ISSUE",
      "type": "fn",
      "category": "github",
      "doc": "WHAT: Create a GitHub issue through the GitHub API. WHEN_TO_USE: file a build work item, proposal, bug, or proof ticket from OIP. ARGS: title | body | labels_csv EX: [GITHUB_CREATE_ISSUE]OIP proof ticket|Created by the protocol.|proposal[/GITHUB_CREATE_ISSUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_CREATE_ISSUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_CREATE_ISSUE",
        "type": "fn",
        "what": [
          "WHAT: Create a GitHub issue through the GitHub API.",
          "WHEN_TO_USE: file a build work item, proposal, bug, or proof ticket from OIP.",
          "ARGS: title | body | labels_csv",
          "EX: [GITHUB_CREATE_ISSUE]OIP proof ticket|Created by the protocol.|proposal[/GITHUB_CREATE_ISSUE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "OIP proof ticket",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Created by the protocol.",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "proposal",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_CREATE_ISSUE]OIP proof ticket|Created by the protocol.|proposal[/GITHUB_CREATE_ISSUE]",
        "tag": "[GITHUB_CREATE_ISSUE]<OIP proof ticket>|<Created by the protocol.>|<proposal>[/GITHUB_CREATE_ISSUE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_CREATE_ISSUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_CREATE_ISSUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_CREATE_ISSUE",
        "update": "PUT /api/directory/GITHUB_CREATE_ISSUE",
        "patch": "PATCH /api/directory/GITHUB_CREATE_ISSUE",
        "delete": "DELETE /api/directory/GITHUB_CREATE_ISSUE",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_CREATE_ISSUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_CREATE_ISSUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_CREATE_ISSUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_CREATE_ISSUE"
      },
      "examples": "[\"OIP proof ticket|Created by the protocol.|proposal\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_CREATE_ISSUE"
    },
    {
      "key": "GITHUB_GET_ISSUE",
      "type": "fn",
      "category": "github",
      "doc": "WHAT: Read one GitHub issue by number from the owner/miscsubjects-pages. WHEN_TO_USE: inspect an issue body, labels, title, state, and URL before acting. ARGS: issue_number EX: [GITHUB_GET_ISSUE]38[/GITHUB_GET_ISSUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_GET_ISSUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_GET_ISSUE",
        "type": "fn",
        "what": [
          "WHAT: Read one GitHub issue by number from the owner/miscsubjects-pages.",
          "WHEN_TO_USE: inspect an issue body, labels, title, state, and URL before acting.",
          "ARGS: issue_number",
          "EX: [GITHUB_GET_ISSUE]38[/GITHUB_GET_ISSUE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "38",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_GET_ISSUE]38[/GITHUB_GET_ISSUE]",
        "tag": "[GITHUB_GET_ISSUE]<38>[/GITHUB_GET_ISSUE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_GET_ISSUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_GET_ISSUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_GET_ISSUE",
        "update": "PUT /api/directory/GITHUB_GET_ISSUE",
        "patch": "PATCH /api/directory/GITHUB_GET_ISSUE",
        "delete": "DELETE /api/directory/GITHUB_GET_ISSUE",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_GET_ISSUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_GET_ISSUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_GET_ISSUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_GET_ISSUE"
      },
      "examples": "[\"38\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_GET_ISSUE"
    },
    {
      "key": "GITHUB_ISSUE",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The github issue as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF issue.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a github issue, or the flow runner resolves `issue.<path>`. ARGS: none EX: [GITHUB_ISSUE][/GITHUB_ISSUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_ISSUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_ISSUE",
        "type": "fn",
        "what": [
          "WHAT: The github issue as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF issue.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a github issue, or the flow runner resolves `issue.<path>`.",
          "ARGS: none",
          "EX: [GITHUB_ISSUE][/GITHUB_ISSUE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_ISSUE][/GITHUB_ISSUE]",
        "tag": "[GITHUB_ISSUE][/GITHUB_ISSUE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_ISSUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_ISSUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GITHUB_ISSUE\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_ISSUE",
        "update": "PUT /api/directory/GITHUB_ISSUE",
        "patch": "PATCH /api/directory/GITHUB_ISSUE",
        "delete": "DELETE /api/directory/GITHUB_ISSUE",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_ISSUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_ISSUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_ISSUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_ISSUE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_ISSUE"
    },
    {
      "key": "GITHUB_LIST_ISSUES",
      "type": "fn",
      "category": "github",
      "doc": "WHAT: List GitHub issues in the owner/miscsubjects-pages through the GitHub API. WHEN_TO_USE: list/show open GitHub issues, audit the issue backlog, inspect Grok-created issues. ARGS: state | labels | limit EX: [GITHUB_LIST_ISSUES]open||30[/GITHUB_LIST_ISSUES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_LIST_ISSUES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_LIST_ISSUES",
        "type": "fn",
        "what": [
          "WHAT: List GitHub issues in the owner/miscsubjects-pages through the GitHub API.",
          "WHEN_TO_USE: list/show open GitHub issues, audit the issue backlog, inspect Grok-created issues.",
          "ARGS: state | labels | limit",
          "EX: [GITHUB_LIST_ISSUES]open||30[/GITHUB_LIST_ISSUES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "open",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "30",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_LIST_ISSUES]open||30[/GITHUB_LIST_ISSUES]",
        "tag": "[GITHUB_LIST_ISSUES]<open>|<arg2>|<30>[/GITHUB_LIST_ISSUES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_LIST_ISSUES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_LIST_ISSUES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_LIST_ISSUES",
        "update": "PUT /api/directory/GITHUB_LIST_ISSUES",
        "patch": "PATCH /api/directory/GITHUB_LIST_ISSUES",
        "delete": "DELETE /api/directory/GITHUB_LIST_ISSUES",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_LIST_ISSUES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_LIST_ISSUES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_LIST_ISSUES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_LIST_ISSUES"
      },
      "examples": "[\"open||30\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_LIST_ISSUES"
    },
    {
      "key": "GITHUB_REPO",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The github repo as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF repo.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a github repo, or the flow runner resolves `repo.<path>`. ARGS: none EX: [GITHUB_REPO][/GITHUB_REPO]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_REPO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_REPO",
        "type": "fn",
        "what": [
          "WHAT: The github repo as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF repo.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a github repo, or the flow runner resolves `repo.<path>`.",
          "ARGS: none",
          "EX: [GITHUB_REPO][/GITHUB_REPO]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GITHUB_REPO][/GITHUB_REPO]",
        "tag": "[GITHUB_REPO][/GITHUB_REPO]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_REPO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_REPO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GITHUB_REPO\"]",
      "edit": {
        "read": "GET /api/directory/GITHUB_REPO",
        "update": "PUT /api/directory/GITHUB_REPO",
        "patch": "PATCH /api/directory/GITHUB_REPO",
        "delete": "DELETE /api/directory/GITHUB_REPO",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_REPO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_REPO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_REPO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_REPO"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_REPO"
    },
    {
      "key": "GITHUB_TAIL",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: The GitHub repository as a live object. Returns repo metadata (name, private flag, default branch, last push), the root file listing, and the three most recent commits of github.com/the owner/oip. Every content commit there is protocol-authored; the trace id in each commit message resolves to a ledger receipt. WHEN_TO_USE: the owner asks \"show the repo\", \"github tail\", \"what is in the oip repo\", \"last repo commit\", \"is the repo still private\". ARGS: none. EX: [GITHUB_TAIL][/GITHUB_TAIL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GITHUB_TAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GITHUB_TAIL",
        "type": "fn",
        "what": [
          "WHAT: The GitHub repository as a live object. Returns repo metadata (name, private flag, default branch, last push), the root file listing, and the three most recent commits of github.com/the owner/oip. Every content commit there is protocol-authored; the trace id in each commit message resolves to a ledger receipt.",
          "WHEN_TO_USE: the owner asks \"show the repo\", \"github tail\", \"what is in the oip repo\", \"last repo commit\", \"is the repo still private\".",
          "ARGS: none.",
          "EX: [GITHUB_TAIL][/GITHUB_TAIL]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "repo metadata (name, private flag, default branch, last push), the root file listing, and the three most recent commits of github.com/the owner/oip. Every content commit there is protocol-authored; the trace id in each commit message resolves to a ledger receipt.",
        "example": "[GITHUB_TAIL][/GITHUB_TAIL]",
        "tag": "[GITHUB_TAIL][/GITHUB_TAIL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GITHUB_TAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GITHUB_TAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/GITHUB_TAIL",
        "update": "PUT /api/directory/GITHUB_TAIL",
        "patch": "PATCH /api/directory/GITHUB_TAIL",
        "delete": "DELETE /api/directory/GITHUB_TAIL",
        "invoke": "POST /api/dispatch {\"key\":\"GITHUB_TAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GITHUB_TAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GITHUB_TAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GITHUB_TAIL"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GITHUB_TAIL"
    },
    {
      "key": "GLM_CODER",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GLM_CODER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GLM_CODER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GLM_CODER][/GLM_CODER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GLM_CODER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GLM_CODER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GLM_CODER",
        "update": "PUT /api/directory/GLM_CODER",
        "patch": "PATCH /api/directory/GLM_CODER",
        "delete": "DELETE /api/directory/GLM_CODER",
        "invoke": "POST /api/dispatch {\"key\":\"GLM_CODER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GLM_CODER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GLM_CODER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GLM_CODER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GLM_CODER"
    },
    {
      "key": "GMAIL_MCP_SEARCH",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Search the owner Gmail (Google Workspace Gmail MCP) with a Gmail query; returns threads with ids for GMAIL_MCP_THREAD. WHEN_TO_USE: find mail as the owner. Read-only. ARGS: $1+ = Gmail search, e.g. from:stripe newer_than:7d EX: [GMAIL_MCP_SEARCH]newer_than:2d[/GMAIL_MCP_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GMAIL_MCP_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GMAIL_MCP_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search the owner Gmail (Google Workspace Gmail MCP) with a Gmail query; returns threads with ids for GMAIL_MCP_THREAD.",
          "WHEN_TO_USE: find mail as the owner. Read-only.",
          "ARGS: $1+ = Gmail search, e.g. from:stripe newer_than:7d",
          "EX: [GMAIL_MCP_SEARCH]newer_than:2d[/GMAIL_MCP_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "newer_than:2d",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "threads with ids for GMAIL_MCP_THREAD.",
        "example": "[GMAIL_MCP_SEARCH]newer_than:2d[/GMAIL_MCP_SEARCH]",
        "tag": "[GMAIL_MCP_SEARCH]<newer_than:2d …>[/GMAIL_MCP_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GMAIL_MCP_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GMAIL_MCP_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_threads\",\"arguments\":{\"query\":\"$1+\"}}}",
      "edit": {
        "read": "GET /api/directory/GMAIL_MCP_SEARCH",
        "update": "PUT /api/directory/GMAIL_MCP_SEARCH",
        "patch": "PATCH /api/directory/GMAIL_MCP_SEARCH",
        "delete": "DELETE /api/directory/GMAIL_MCP_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GMAIL_MCP_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GMAIL_MCP_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GMAIL_MCP_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GMAIL_MCP_SEARCH"
      },
      "examples": "[\"newer_than:2d\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GMAIL_MCP_SEARCH"
    },
    {
      "key": "GMAIL_MCP_THREAD",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: One Gmail thread in full (Gmail MCP). WHEN_TO_USE: after GMAIL_MCP_SEARCH. ARGS: $1 = thread id EX: [GMAIL_MCP_THREAD]18f…[/GMAIL_MCP_THREAD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GMAIL_MCP_THREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GMAIL_MCP_THREAD",
        "type": "http",
        "what": [
          "WHAT: One Gmail thread in full (Gmail MCP).",
          "WHEN_TO_USE: after GMAIL_MCP_SEARCH.",
          "ARGS: $1 = thread id",
          "EX: [GMAIL_MCP_THREAD]18f…[/GMAIL_MCP_THREAD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "18f…",
            "desc": "thread id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GMAIL_MCP_THREAD]18f…[/GMAIL_MCP_THREAD]",
        "tag": "[GMAIL_MCP_THREAD]<18f…>[/GMAIL_MCP_THREAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GMAIL_MCP_THREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GMAIL_MCP_THREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"get_thread\",\"arguments\":{\"thread_id\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GMAIL_MCP_THREAD",
        "update": "PUT /api/directory/GMAIL_MCP_THREAD",
        "patch": "PATCH /api/directory/GMAIL_MCP_THREAD",
        "delete": "DELETE /api/directory/GMAIL_MCP_THREAD",
        "invoke": "POST /api/dispatch {\"key\":\"GMAIL_MCP_THREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GMAIL_MCP_THREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GMAIL_MCP_THREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GMAIL_MCP_THREAD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GMAIL_MCP_THREAD"
    },
    {
      "key": "GMAIL_MESSAGES_SEARCH",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Search the connected Gmail with a Gmail query; returns message ids and thread ids (read-only grant). WHEN_TO_USE: find mail before reading it with GMAIL_MESSAGE_GET. ARGS: $1 = Gmail search, e.g. newer_than:7d from:stripe.com EX: [GMAIL_MESSAGES_SEARCH]newer_than:7d[/GMAIL_MESSAGES_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GMAIL_MESSAGES_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GMAIL_MESSAGES_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search the connected Gmail with a Gmail query; returns message ids and thread ids (read-only grant).",
          "WHEN_TO_USE: find mail before reading it with GMAIL_MESSAGE_GET.",
          "ARGS: $1 = Gmail search, e.g. newer_than:7d from:stripe.com",
          "EX: [GMAIL_MESSAGES_SEARCH]newer_than:7d[/GMAIL_MESSAGES_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "newer_than:7d",
            "desc": "Gmail search, e.g. newer_than:7d from:stripe.com",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "message ids and thread ids (read-only grant).",
        "example": "[GMAIL_MESSAGES_SEARCH]newer_than:7d[/GMAIL_MESSAGES_SEARCH]",
        "tag": "[GMAIL_MESSAGES_SEARCH]<newer_than:7d>[/GMAIL_MESSAGES_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GMAIL_MESSAGES_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GMAIL_MESSAGES_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GMAIL_MESSAGES_SEARCH",
        "update": "PUT /api/directory/GMAIL_MESSAGES_SEARCH",
        "patch": "PATCH /api/directory/GMAIL_MESSAGES_SEARCH",
        "delete": "DELETE /api/directory/GMAIL_MESSAGES_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GMAIL_MESSAGES_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GMAIL_MESSAGES_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GMAIL_MESSAGES_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GMAIL_MESSAGES_SEARCH"
      },
      "examples": "[\"newer_than:7d\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GMAIL_MESSAGES_SEARCH"
    },
    {
      "key": "GMAIL_MESSAGE_GET",
      "type": "http",
      "category": "google",
      "doc": "WHAT: One Gmail message's headers and snippet by id (read-only). WHEN_TO_USE: after GMAIL_MESSAGES_SEARCH. ARGS: $1 = message id EX: [GMAIL_MESSAGE_GET]18f…[/GMAIL_MESSAGE_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GMAIL_MESSAGE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GMAIL_MESSAGE_GET",
        "type": "http",
        "what": [
          "WHAT: One Gmail message's headers and snippet by id (read-only).",
          "WHEN_TO_USE: after GMAIL_MESSAGES_SEARCH.",
          "ARGS: $1 = message id",
          "EX: [GMAIL_MESSAGE_GET]18f…[/GMAIL_MESSAGE_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "18f…",
            "desc": "message id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GMAIL_MESSAGE_GET]18f…[/GMAIL_MESSAGE_GET]",
        "tag": "[GMAIL_MESSAGE_GET]<18f…>[/GMAIL_MESSAGE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GMAIL_MESSAGE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GMAIL_MESSAGE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GMAIL_MESSAGE_GET",
        "update": "PUT /api/directory/GMAIL_MESSAGE_GET",
        "patch": "PATCH /api/directory/GMAIL_MESSAGE_GET",
        "delete": "DELETE /api/directory/GMAIL_MESSAGE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GMAIL_MESSAGE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GMAIL_MESSAGE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GMAIL_MESSAGE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GMAIL_MESSAGE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GMAIL_MESSAGE_GET"
    },
    {
      "key": "GOLD_BROKER_PRICE",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: FundedNext's own broker feed: live bid/ask for a CFD symbol. Keyless, POST with the symbol in the query string. Returns {ask, bid, tm_raw}. WHEN_TO_USE: you want the price a prop-firm account would actually be filled at, rather than a spot reference or a crypto venue. This is the only source here that shows the dealing spread a funded account really pays. ARGS: $1 = symbol. XAUUSD for gold, XAGUSD for silver, EURUSD. NOTE: the method is POST even though the argument is a query param; a GET returns 405. Public and unauthenticated per https://fundednext.com/auth.md. EX: [GOLD_BROKER_PRICE]XAUUSD[/GOLD_BROKER_PRICE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_BROKER_PRICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_BROKER_PRICE",
        "type": "http",
        "what": [
          "WHAT: FundedNext's own broker feed: live bid/ask for a CFD symbol. Keyless, POST with the symbol in the query string. Returns {ask, bid, tm_raw}.",
          "WHEN_TO_USE: you want the price a prop-firm account would actually be filled at, rather than a spot reference or a crypto venue. This is the only source here that shows the dealing spread a funded account really pays.",
          "ARGS: $1 = symbol. XAUUSD for gold, XAGUSD for silver, EURUSD.",
          "NOTE: the method is POST even though the argument is a query param; a GET returns 405. Public and unauthenticated per https://fundednext.com/auth.md.",
          "EX: [GOLD_BROKER_PRICE]XAUUSD[/GOLD_BROKER_PRICE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "XAUUSD",
            "desc": "symbol. XAUUSD for gold, XAGUSD for silver, EURUSD.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{ask, bid, tm_raw}.",
        "example": "[GOLD_BROKER_PRICE]XAUUSD[/GOLD_BROKER_PRICE]",
        "tag": "[GOLD_BROKER_PRICE]<XAUUSD>[/GOLD_BROKER_PRICE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_BROKER_PRICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_BROKER_PRICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_BROKER_PRICE",
        "update": "PUT /api/directory/GOLD_BROKER_PRICE",
        "patch": "PATCH /api/directory/GOLD_BROKER_PRICE",
        "delete": "DELETE /api/directory/GOLD_BROKER_PRICE",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_BROKER_PRICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_BROKER_PRICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_BROKER_PRICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_BROKER_PRICE"
      },
      "examples": "[\"XAUUSD\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_BROKER_PRICE"
    },
    {
      "key": "GOLD_COINBASE_TICKER",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Bitstamp live ticker for a tokenised-gold pair: bid, ask, last, high, low, vwap, volume, percent_change_24. WHEN_TO_USE: a fourth venue quote, and the one with the widest published spread — useful as the conservative execution assumption in any cost model. ARGS: $1 = pair, lowercase. paxgusd. NOTE: this key formerly pointed at Coinbase Exchange, which returns HTTP 429 from this build's shared egress IP. Repointed to Bitstamp 2026-09-02. EX: [GOLD_COINBASE_TICKER]paxgusd[/GOLD_COINBASE_TICKER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_COINBASE_TICKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_COINBASE_TICKER",
        "type": "http",
        "what": [
          "WHAT: Bitstamp live ticker for a tokenised-gold pair: bid, ask, last, high, low, vwap, volume, percent_change_24.",
          "WHEN_TO_USE: a fourth venue quote, and the one with the widest published spread — useful as the conservative execution assumption in any cost model.",
          "ARGS: $1 = pair, lowercase. paxgusd.",
          "NOTE: this key formerly pointed at Coinbase Exchange, which returns HTTP 429 from this build's shared egress IP. Repointed to Bitstamp 2026-09-02.",
          "EX: [GOLD_COINBASE_TICKER]paxgusd[/GOLD_COINBASE_TICKER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "paxgusd",
            "desc": "pair, lowercase. paxgusd.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP 429 from this build's shared egress IP. Repointed to Bitstamp 2026-09-02.",
        "example": "[GOLD_COINBASE_TICKER]paxgusd[/GOLD_COINBASE_TICKER]",
        "tag": "[GOLD_COINBASE_TICKER]<paxgusd>[/GOLD_COINBASE_TICKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_COINBASE_TICKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_COINBASE_TICKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_COINBASE_TICKER",
        "update": "PUT /api/directory/GOLD_COINBASE_TICKER",
        "patch": "PATCH /api/directory/GOLD_COINBASE_TICKER",
        "delete": "DELETE /api/directory/GOLD_COINBASE_TICKER",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_COINBASE_TICKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_COINBASE_TICKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_COINBASE_TICKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_COINBASE_TICKER"
      },
      "examples": "[\"paxgusd\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_COINBASE_TICKER"
    },
    {
      "key": "GOLD_ETF",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: OHLCV series for any gold-linked US listed instrument, keyless. Works for GLD, IAU, GLDM, SGOL, GDX, GDXJ, PHYS. WHEN_TO_USE: modelling the instrument a US account can actually buy. Gold CFDs (XAUUSD) are illegal for US retail; ETFs are the executable proxy. ARGS: $1 = ticker. $2 = interval. $3 = range. EX: [GOLD_ETF]GLD|1d|1y[/GOLD_ETF]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_ETF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_ETF",
        "type": "http",
        "what": [
          "WHAT: OHLCV series for any gold-linked US listed instrument, keyless. Works for GLD, IAU, GLDM, SGOL, GDX, GDXJ, PHYS.",
          "WHEN_TO_USE: modelling the instrument a US account can actually buy. Gold CFDs (XAUUSD) are illegal for US retail; ETFs are the executable proxy.",
          "ARGS: $1 = ticker. $2 = interval. $3 = range.",
          "EX: [GOLD_ETF]GLD|1d|1y[/GOLD_ETF]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "GLD",
            "desc": "ticker. $2 = interval. $3 = range.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "1d",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "1y",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOLD_ETF]GLD|1d|1y[/GOLD_ETF]",
        "tag": "[GOLD_ETF]<GLD>|<1d>|<1y>[/GOLD_ETF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_ETF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_ETF  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_ETF",
        "update": "PUT /api/directory/GOLD_ETF",
        "patch": "PATCH /api/directory/GOLD_ETF",
        "delete": "DELETE /api/directory/GOLD_ETF",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_ETF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_ETF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_ETF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_ETF"
      },
      "examples": "[\"GLD|1d|2y\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_ETF"
    },
    {
      "key": "GOLD_FUTURES",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: COMEX gold futures (GC=F) OHLCV series and metadata from Yahoo Finance, keyless. WHEN_TO_USE: charting gold, computing returns/volatility, or any backtest that needs a real exchange-traded gold series rather than a spot reference. ARGS: $1 = interval (1m,5m,1h,1d,1wk,1mo). $2 = range (1d,5d,1mo,3mo,1y,5y,max). NOTE: intraday intervals are only served for short ranges. Timestamps are epoch seconds, exchange is COMEX, timezone EDT. EX: [GOLD_FUTURES]1d|1y[/GOLD_FUTURES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_FUTURES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_FUTURES",
        "type": "http",
        "what": [
          "WHAT: COMEX gold futures (GC=F) OHLCV series and metadata from Yahoo Finance, keyless.",
          "WHEN_TO_USE: charting gold, computing returns/volatility, or any backtest that needs a real exchange-traded gold series rather than a spot reference.",
          "ARGS: $1 = interval (1m,5m,1h,1d,1wk,1mo). $2 = range (1d,5d,1mo,3mo,1y,5y,max).",
          "NOTE: intraday intervals are only served for short ranges. Timestamps are epoch seconds, exchange is COMEX, timezone EDT.",
          "EX: [GOLD_FUTURES]1d|1y[/GOLD_FUTURES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1d",
            "desc": "interval (1m,5m,1h,1d,1wk,1mo). $2 = range (1d,5d,1mo,3mo,1y,5y,max).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "1y",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOLD_FUTURES]1d|1y[/GOLD_FUTURES]",
        "tag": "[GOLD_FUTURES]<1d>|<1y>[/GOLD_FUTURES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_FUTURES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_FUTURES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_FUTURES",
        "update": "PUT /api/directory/GOLD_FUTURES",
        "patch": "PATCH /api/directory/GOLD_FUTURES",
        "delete": "DELETE /api/directory/GOLD_FUTURES",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_FUTURES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_FUTURES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_FUTURES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_FUTURES"
      },
      "examples": "[\"1d|10y\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_FUTURES"
    },
    {
      "key": "GOLD_KRAKEN_OHLC",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Kraken OHLCV candles for a tokenised-gold pair. 24/7 series including weekends, when COMEX and LBMA are closed. WHEN_TO_USE: backtesting a 24/7 gold strategy, or measuring what gold did during a weekend that the futures series cannot see. ARGS: $1 = pair (PAXGUSD). $2 = interval in minutes: 1,5,15,30,60,240,1440,10080,21600. NOTE: returns roughly the last 720 candles only. For deep history use GOLD_FUTURES. EX: [GOLD_KRAKEN_OHLC]PAXGUSD|1440[/GOLD_KRAKEN_OHLC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_KRAKEN_OHLC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_KRAKEN_OHLC",
        "type": "http",
        "what": [
          "WHAT: Kraken OHLCV candles for a tokenised-gold pair. 24/7 series including weekends, when COMEX and LBMA are closed.",
          "WHEN_TO_USE: backtesting a 24/7 gold strategy, or measuring what gold did during a weekend that the futures series cannot see.",
          "ARGS: $1 = pair (PAXGUSD). $2 = interval in minutes: 1,5,15,30,60,240,1440,10080,21600.",
          "NOTE: returns roughly the last 720 candles only. For deep history use GOLD_FUTURES.",
          "EX: [GOLD_KRAKEN_OHLC]PAXGUSD|1440[/GOLD_KRAKEN_OHLC]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "PAXGUSD",
            "desc": "pair (PAXGUSD). $2 = interval in minutes: 1,5,15,30,60,240,1440,10080,21600.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "1440",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "roughly the last 720 candles only. For deep history use GOLD_FUTURES.",
        "example": "[GOLD_KRAKEN_OHLC]PAXGUSD|1440[/GOLD_KRAKEN_OHLC]",
        "tag": "[GOLD_KRAKEN_OHLC]<PAXGUSD>|<1440>[/GOLD_KRAKEN_OHLC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_KRAKEN_OHLC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_KRAKEN_OHLC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_KRAKEN_OHLC",
        "update": "PUT /api/directory/GOLD_KRAKEN_OHLC",
        "patch": "PATCH /api/directory/GOLD_KRAKEN_OHLC",
        "delete": "DELETE /api/directory/GOLD_KRAKEN_OHLC",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_KRAKEN_OHLC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_KRAKEN_OHLC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_KRAKEN_OHLC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_KRAKEN_OHLC"
      },
      "examples": "[\"PAXGUSD|1440\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_KRAKEN_OHLC"
    },
    {
      "key": "GOLD_KRAKEN_TICKER",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Kraken live order book top for a tokenised-gold pair: ask a, bid b, last c, 24h volume v, vwap p, low l, high h, trade count t. WHEN_TO_USE: you need a real executable bid/ask with a real spread, not a reference price. This is the same venue whose private REST API would place the order. ARGS: $1 = pair. PAXGUSD, PAXGEUR, PAXGXBT. NOTE: the a/b spread is the true cost of a round trip. Read it before assuming any strategy edge survives. EX: [GOLD_KRAKEN_TICKER]PAXGUSD[/GOLD_KRAKEN_TICKER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_KRAKEN_TICKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_KRAKEN_TICKER",
        "type": "http",
        "what": [
          "WHAT: Kraken live order book top for a tokenised-gold pair: ask a, bid b, last c, 24h volume v, vwap p, low l, high h, trade count t.",
          "WHEN_TO_USE: you need a real executable bid/ask with a real spread, not a reference price. This is the same venue whose private REST API would place the order.",
          "ARGS: $1 = pair. PAXGUSD, PAXGEUR, PAXGXBT.",
          "NOTE: the a/b spread is the true cost of a round trip. Read it before assuming any strategy edge survives.",
          "EX: [GOLD_KRAKEN_TICKER]PAXGUSD[/GOLD_KRAKEN_TICKER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "PAXGUSD",
            "desc": "pair. PAXGUSD, PAXGEUR, PAXGXBT.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOLD_KRAKEN_TICKER]PAXGUSD[/GOLD_KRAKEN_TICKER]",
        "tag": "[GOLD_KRAKEN_TICKER]<PAXGUSD>[/GOLD_KRAKEN_TICKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_KRAKEN_TICKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_KRAKEN_TICKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_KRAKEN_TICKER",
        "update": "PUT /api/directory/GOLD_KRAKEN_TICKER",
        "patch": "PATCH /api/directory/GOLD_KRAKEN_TICKER",
        "delete": "DELETE /api/directory/GOLD_KRAKEN_TICKER",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_KRAKEN_TICKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_KRAKEN_TICKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_KRAKEN_TICKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_KRAKEN_TICKER"
      },
      "examples": "[\"PAXGUSD\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_KRAKEN_TICKER"
    },
    {
      "key": "GOLD_OKX_TICKER",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: OKX live ticker for a tokenised-gold pair: last, askPx/askSz, bidPx/bidSz, open24h, high24h, low24h, volCcy24h. WHEN_TO_USE: a third venue quote. Three venues is the minimum needed to tell a real price move from one venue's stale book. ARGS: $1 = instrument id. PAXG-USDT, PAXG-USDC. NOTE: replaced an earlier Coinbase Exchange row that returned HTTP 429 from this build's shared egress IP. EX: [GOLD_OKX_TICKER]PAXG-USDT[/GOLD_OKX_TICKER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_OKX_TICKER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_OKX_TICKER",
        "type": "http",
        "what": [
          "WHAT: OKX live ticker for a tokenised-gold pair: last, askPx/askSz, bidPx/bidSz, open24h, high24h, low24h, volCcy24h.",
          "WHEN_TO_USE: a third venue quote. Three venues is the minimum needed to tell a real price move from one venue's stale book.",
          "ARGS: $1 = instrument id. PAXG-USDT, PAXG-USDC.",
          "NOTE: replaced an earlier Coinbase Exchange row that returned HTTP 429 from this build's shared egress IP.",
          "EX: [GOLD_OKX_TICKER]PAXG-USDT[/GOLD_OKX_TICKER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "PAXG-USDT",
            "desc": "instrument id. PAXG-USDT, PAXG-USDC.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOLD_OKX_TICKER]PAXG-USDT[/GOLD_OKX_TICKER]",
        "tag": "[GOLD_OKX_TICKER]<PAXG-USDT>[/GOLD_OKX_TICKER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_OKX_TICKER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_OKX_TICKER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_OKX_TICKER",
        "update": "PUT /api/directory/GOLD_OKX_TICKER",
        "patch": "PATCH /api/directory/GOLD_OKX_TICKER",
        "delete": "DELETE /api/directory/GOLD_OKX_TICKER",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_OKX_TICKER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_OKX_TICKER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_OKX_TICKER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_OKX_TICKER"
      },
      "examples": "[\"PAXG-USDT\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_OKX_TICKER"
    },
    {
      "key": "GOLD_SPOT",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Live gold spot reference price, keyless. Returns {symbol, price, computed_at, is_stale}. WHEN_TO_USE: you need one authoritative number for gold right now (per troy ounce, USD) without a broker or an API key. ARGS: $1 = symbol, BASE-QUOTE-CONTRACT. Use XAU-USD-SPOT for gold, XAG-USD-SPOT for silver. NOTE: check is_stale before quoting the number. This is a reference price, not a tradeable quote. EX: [GOLD_SPOT]XAU-USD-SPOT[/GOLD_SPOT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_SPOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_SPOT",
        "type": "http",
        "what": [
          "WHAT: Live gold spot reference price, keyless. Returns {symbol, price, computed_at, is_stale}.",
          "WHEN_TO_USE: you need one authoritative number for gold right now (per troy ounce, USD) without a broker or an API key.",
          "ARGS: $1 = symbol, BASE-QUOTE-CONTRACT. Use XAU-USD-SPOT for gold, XAG-USD-SPOT for silver.",
          "NOTE: check is_stale before quoting the number. This is a reference price, not a tradeable quote.",
          "EX: [GOLD_SPOT]XAU-USD-SPOT[/GOLD_SPOT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "XAU-USD-SPOT",
            "desc": "symbol, BASE-QUOTE-CONTRACT. Use XAU-USD-SPOT for gold, XAG-USD-SPOT for silver.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{symbol, price, computed_at, is_stale}.",
        "example": "[GOLD_SPOT]XAU-USD-SPOT[/GOLD_SPOT]",
        "tag": "[GOLD_SPOT]<XAU-USD-SPOT>[/GOLD_SPOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_SPOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_SPOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_SPOT",
        "update": "PUT /api/directory/GOLD_SPOT",
        "patch": "PATCH /api/directory/GOLD_SPOT",
        "delete": "DELETE /api/directory/GOLD_SPOT",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_SPOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_SPOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_SPOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_SPOT"
      },
      "examples": "[\"XAU-USD-SPOT\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_SPOT"
    },
    {
      "key": "GOLD_SWAP_POINTS",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Overnight financing (swap) points charged to hold one lot of a CFD symbol, long or short. Negative means it costs you to hold. WHEN_TO_USE: costing any position held longer than a day. A 63-day momentum rule on gold pays this every night, and on a CFD account the carry can exceed the signal edge. ARGS: $1 = pair (XAUUSD). $2 = trade_type, buy or sell. NOTE: gold measured 2026-09-02 at -107.151 long and -46.917 short — holding gold long costs more than twice as much overnight as holding it short. Any swing strategy has to clear that. EX: [GOLD_SWAP_POINTS]XAUUSD|buy[/GOLD_SWAP_POINTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_SWAP_POINTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_SWAP_POINTS",
        "type": "http",
        "what": [
          "WHAT: Overnight financing (swap) points charged to hold one lot of a CFD symbol, long or short. Negative means it costs you to hold.",
          "WHEN_TO_USE: costing any position held longer than a day. A 63-day momentum rule on gold pays this every night, and on a CFD account the carry can exceed the signal edge.",
          "ARGS: $1 = pair (XAUUSD). $2 = trade_type, buy or sell.",
          "NOTE: gold measured 2026-09-02 at -107.151 long and -46.917 short — holding gold long costs more than twice as much overnight as holding it short. Any swing strategy has to clear that.",
          "EX: [GOLD_SWAP_POINTS]XAUUSD|buy[/GOLD_SWAP_POINTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "XAUUSD",
            "desc": "pair (XAUUSD). $2 = trade_type, buy or sell.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "buy",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOLD_SWAP_POINTS]XAUUSD|buy[/GOLD_SWAP_POINTS]",
        "tag": "[GOLD_SWAP_POINTS]<XAUUSD>|<buy>[/GOLD_SWAP_POINTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_SWAP_POINTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_SWAP_POINTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_SWAP_POINTS",
        "update": "PUT /api/directory/GOLD_SWAP_POINTS",
        "patch": "PATCH /api/directory/GOLD_SWAP_POINTS",
        "delete": "DELETE /api/directory/GOLD_SWAP_POINTS",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_SWAP_POINTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_SWAP_POINTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_SWAP_POINTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_SWAP_POINTS"
      },
      "examples": "[\"XAUUSD|buy\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_SWAP_POINTS"
    },
    {
      "key": "GOLD_TOKEN_PRICES",
      "type": "http",
      "category": "markets",
      "doc": "WHAT: Bitfinex live ticker for Tether Gold (XAUT), the venue where XAUT is natively listed. Returns a bare array:   [bid, bid_size, ask, ask_size, daily_change, daily_change_pct, last, volume, high, low] WHEN_TO_USE: a second independent tokenised-gold quote alongside GOLD_KRAKEN_TICKER. Index 6 is the last price, index 0/2 are bid/ask. ARGS: $1 = Bitfinex symbol. tXAUT:USD. NOTE: replaced an earlier CoinGecko-backed row that returned HTTP 429 from this build's shared egress IP. Bitfinex does not rate-limit it. EX: [GOLD_TOKEN_PRICES]tXAUT:USD[/GOLD_TOKEN_PRICES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_TOKEN_PRICES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_TOKEN_PRICES",
        "type": "http",
        "what": [
          "WHAT: Bitfinex live ticker for Tether Gold (XAUT), the venue where XAUT is natively listed. Returns a bare array:",
          "  [bid, bid_size, ask, ask_size, daily_change, daily_change_pct, last, volume, high, low]",
          "WHEN_TO_USE: a second independent tokenised-gold quote alongside GOLD_KRAKEN_TICKER. Index 6 is the last price, index 0/2 are bid/ask.",
          "ARGS: $1 = Bitfinex symbol. tXAUT:USD.",
          "NOTE: replaced an earlier CoinGecko-backed row that returned HTTP 429 from this build's shared egress IP. Bitfinex does not rate-limit it.",
          "EX: [GOLD_TOKEN_PRICES]tXAUT:USD[/GOLD_TOKEN_PRICES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "tXAUT:USD",
            "desc": "Bitfinex symbol. tXAUT:USD.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a bare array:",
        "example": "[GOLD_TOKEN_PRICES]tXAUT:USD[/GOLD_TOKEN_PRICES]",
        "tag": "[GOLD_TOKEN_PRICES]<tXAUT:USD>[/GOLD_TOKEN_PRICES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_TOKEN_PRICES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_TOKEN_PRICES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOLD_TOKEN_PRICES",
        "update": "PUT /api/directory/GOLD_TOKEN_PRICES",
        "patch": "PATCH /api/directory/GOLD_TOKEN_PRICES",
        "delete": "DELETE /api/directory/GOLD_TOKEN_PRICES",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_TOKEN_PRICES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_TOKEN_PRICES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_TOKEN_PRICES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_TOKEN_PRICES"
      },
      "examples": "[\"tXAUT:USD\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_TOKEN_PRICES"
    },
    {
      "key": "GOLD_WHILE_MARKETS_OPEN",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: The gold spot price, but only during weekday market hours Pacific. WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the argument the first step takes. EX: [GOLD_WHILE_MARKETS_OPEN]your input[/GOLD_WHILE_MARKETS_OPEN] TESTS: one receipt per step under one trace. Gated on WHEN weekday and between 06:30 and 13:00 — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOLD_WHILE_MARKETS_OPEN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOLD_WHILE_MARKETS_OPEN",
        "type": "flow",
        "what": [
          "WHAT: The gold spot price, but only during weekday market hours Pacific.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the argument the first step takes.",
          "EX: [GOLD_WHILE_MARKETS_OPEN]your input[/GOLD_WHILE_MARKETS_OPEN]",
          "TESTS: one receipt per step under one trace. Gated on WHEN weekday and between 06:30 and 13:00 — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[GOLD_WHILE_MARKETS_OPEN]your input[/GOLD_WHILE_MARKETS_OPEN]",
        "tag": "[GOLD_WHILE_MARKETS_OPEN][/GOLD_WHILE_MARKETS_OPEN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOLD_WHILE_MARKETS_OPEN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOLD_WHILE_MARKETS_OPEN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GOLD_WHILE_MARKETS_OPEN",
        "update": "PUT /api/directory/GOLD_WHILE_MARKETS_OPEN",
        "patch": "PATCH /api/directory/GOLD_WHILE_MARKETS_OPEN",
        "delete": "DELETE /api/directory/GOLD_WHILE_MARKETS_OPEN",
        "invoke": "POST /api/dispatch {\"key\":\"GOLD_WHILE_MARKETS_OPEN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOLD_WHILE_MARKETS_OPEN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOLD_WHILE_MARKETS_OPEN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOLD_WHILE_MARKETS_OPEN"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOLD_WHILE_MARKETS_OPEN"
    },
    {
      "key": "GOOGLE_BQ_DATASETS",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: BigQuery dataset ids in a project (BigQuery MCP). WHEN_TO_USE: before listing tables or running SQL. ARGS: $1 = project id EX: [GOOGLE_BQ_DATASETS]osxx-485115[/GOOGLE_BQ_DATASETS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_BQ_DATASETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_BQ_DATASETS",
        "type": "http",
        "what": [
          "WHAT: BigQuery dataset ids in a project (BigQuery MCP).",
          "WHEN_TO_USE: before listing tables or running SQL.",
          "ARGS: $1 = project id",
          "EX: [GOOGLE_BQ_DATASETS]osxx-485115[/GOOGLE_BQ_DATASETS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "osxx-485115",
            "desc": "project id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_BQ_DATASETS]osxx-485115[/GOOGLE_BQ_DATASETS]",
        "tag": "[GOOGLE_BQ_DATASETS]<osxx-485115>[/GOOGLE_BQ_DATASETS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_BQ_DATASETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_BQ_DATASETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"list_dataset_ids\",\"arguments\":{\"projectId\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_BQ_DATASETS",
        "update": "PUT /api/directory/GOOGLE_BQ_DATASETS",
        "patch": "PATCH /api/directory/GOOGLE_BQ_DATASETS",
        "delete": "DELETE /api/directory/GOOGLE_BQ_DATASETS",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_BQ_DATASETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_BQ_DATASETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_BQ_DATASETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_BQ_DATASETS"
      },
      "examples": "[\"osxx-485115\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_BQ_DATASETS"
    },
    {
      "key": "GOOGLE_BQ_SQL",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Run a read-only SQL query in BigQuery (BigQuery MCP) and return rows. WHEN_TO_USE: any BigQuery read. Never writes. ARGS: $1 = project id · $2+ = SQL EX: [GOOGLE_BQ_SQL]osxx-485115|SELECT 1 AS one[/GOOGLE_BQ_SQL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_BQ_SQL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_BQ_SQL",
        "type": "http",
        "what": [
          "WHAT: Run a read-only SQL query in BigQuery (BigQuery MCP) and return rows.",
          "WHEN_TO_USE: any BigQuery read. Never writes.",
          "ARGS: $1 = project id · $2+ = SQL",
          "EX: [GOOGLE_BQ_SQL]osxx-485115|SELECT 1 AS one[/GOOGLE_BQ_SQL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "osxx-485115",
            "desc": "project id · $2+ = SQL",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "SELECT 1 AS one",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "rows.",
        "example": "[GOOGLE_BQ_SQL]osxx-485115|SELECT 1 AS one[/GOOGLE_BQ_SQL]",
        "tag": "[GOOGLE_BQ_SQL]<osxx-485115>|<SELECT 1 AS one …>[/GOOGLE_BQ_SQL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_BQ_SQL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_BQ_SQL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"execute_sql_readonly\",\"arguments\":{\"projectId\":\"$1\",\"query\":\"$2+\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_BQ_SQL",
        "update": "PUT /api/directory/GOOGLE_BQ_SQL",
        "patch": "PATCH /api/directory/GOOGLE_BQ_SQL",
        "delete": "DELETE /api/directory/GOOGLE_BQ_SQL",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_BQ_SQL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_BQ_SQL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_BQ_SQL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_BQ_SQL"
      },
      "examples": "[\"osxx-485115|SELECT 1 AS one\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_BQ_SQL"
    },
    {
      "key": "GOOGLE_CALENDAR_CREATE",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Create a Google Calendar event. $1=calendar id, $2=title, $3=ISO start, $4=ISO end WHEN_TO_USE: add a meeting ARGS: see content EX: [GOOGLE_CALENDAR_CREATE]arg1|arg2|arg3|arg4[/GOOGLE_CALENDAR_CREATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_CALENDAR_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_CALENDAR_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a Google Calendar event. $1=calendar id, $2=title, $3=ISO start, $4=ISO end",
          "WHEN_TO_USE: add a meeting",
          "ARGS: see content",
          "EX: [GOOGLE_CALENDAR_CREATE]arg1|arg2|arg3|arg4[/GOOGLE_CALENDAR_CREATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "calendar id, $2=title, $3=ISO start, $4=ISO end",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_CALENDAR_CREATE]arg1|arg2|arg3|arg4[/GOOGLE_CALENDAR_CREATE]",
        "tag": "[GOOGLE_CALENDAR_CREATE]<arg1>|<arg2>|<arg3>|<arg4>[/GOOGLE_CALENDAR_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_CALENDAR_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_CALENDAR_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"calendar_create\",\"args\":{\"calendar_id\":\"$1\",\"title\":\"$2\",\"start\":\"$3\",\"end\":\"$4\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_CALENDAR_CREATE",
        "update": "PUT /api/directory/GOOGLE_CALENDAR_CREATE",
        "patch": "PATCH /api/directory/GOOGLE_CALENDAR_CREATE",
        "delete": "DELETE /api/directory/GOOGLE_CALENDAR_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_CALENDAR_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_CALENDAR_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_CALENDAR_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_CALENDAR_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_CALENDAR_CREATE"
    },
    {
      "key": "GOOGLE_CALENDAR_LIST",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Upcoming Google Calendar events. $1=calendar id (or \"primary\"), $2=optional ISO start WHEN_TO_USE: answer \"what is on my calendar\" ARGS: see content EX: [GOOGLE_CALENDAR_LIST]arg1|arg2[/GOOGLE_CALENDAR_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_CALENDAR_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_CALENDAR_LIST",
        "type": "http",
        "what": [
          "WHAT: Upcoming Google Calendar events. $1=calendar id (or \"primary\"), $2=optional ISO start",
          "WHEN_TO_USE: answer \"what is on my calendar\"",
          "ARGS: see content",
          "EX: [GOOGLE_CALENDAR_LIST]arg1|arg2[/GOOGLE_CALENDAR_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "calendar id (or \"primary\"), $2=optional ISO start",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_CALENDAR_LIST]arg1|arg2[/GOOGLE_CALENDAR_LIST]",
        "tag": "[GOOGLE_CALENDAR_LIST]<arg1>|<arg2>[/GOOGLE_CALENDAR_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_CALENDAR_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_CALENDAR_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"calendar_list\",\"args\":{\"calendar_id\":\"$1\",\"start\":\"$2\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_CALENDAR_LIST",
        "update": "PUT /api/directory/GOOGLE_CALENDAR_LIST",
        "patch": "PATCH /api/directory/GOOGLE_CALENDAR_LIST",
        "delete": "DELETE /api/directory/GOOGLE_CALENDAR_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_CALENDAR_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_CALENDAR_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_CALENDAR_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_CALENDAR_LIST"
      },
      "examples": "[\"primary|2024-01-01T00:00:00Z\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_CALENDAR_LIST"
    },
    {
      "key": "GOOGLE_CLOUD_PROJECTS",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: The Google Cloud projects the owner account can see (Cloud Resource Manager MCP). WHEN_TO_USE: find a project id before BigQuery or Cloud Run calls. ARGS: none EX: [GOOGLE_CLOUD_PROJECTS][/GOOGLE_CLOUD_PROJECTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_CLOUD_PROJECTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_CLOUD_PROJECTS",
        "type": "http",
        "what": [
          "WHAT: The Google Cloud projects the owner account can see (Cloud Resource Manager MCP).",
          "WHEN_TO_USE: find a project id before BigQuery or Cloud Run calls.",
          "ARGS: none",
          "EX: [GOOGLE_CLOUD_PROJECTS][/GOOGLE_CLOUD_PROJECTS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_CLOUD_PROJECTS][/GOOGLE_CLOUD_PROJECTS]",
        "tag": "[GOOGLE_CLOUD_PROJECTS][/GOOGLE_CLOUD_PROJECTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_CLOUD_PROJECTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_CLOUD_PROJECTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_projects\",\"arguments\":{}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_CLOUD_PROJECTS",
        "update": "PUT /api/directory/GOOGLE_CLOUD_PROJECTS",
        "patch": "PATCH /api/directory/GOOGLE_CLOUD_PROJECTS",
        "delete": "DELETE /api/directory/GOOGLE_CLOUD_PROJECTS",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_CLOUD_PROJECTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_CLOUD_PROJECTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_CLOUD_PROJECTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_CLOUD_PROJECTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_CLOUD_PROJECTS"
    },
    {
      "key": "GOOGLE_DEVDOCS_ANSWER",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: A grounded answer from Google developer documentation (Developer Knowledge MCP). WHEN_TO_USE: a how-do-I question about a Google product where a cited answer beats a doc list. ARGS: $1 = question EX: [GOOGLE_DEVDOCS_ANSWER]How do I refresh an OAuth token with a refresh token?[/GOOGLE_DEVDOCS_ANSWER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_DEVDOCS_ANSWER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_DEVDOCS_ANSWER",
        "type": "http",
        "what": [
          "WHAT: A grounded answer from Google developer documentation (Developer Knowledge MCP).",
          "WHEN_TO_USE: a how-do-I question about a Google product where a cited answer beats a doc list.",
          "ARGS: $1 = question",
          "EX: [GOOGLE_DEVDOCS_ANSWER]How do I refresh an OAuth token with a refresh token?[/GOOGLE_DEVDOCS_ANSWER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "How do I refresh an OAuth token with a refresh token?",
            "desc": "question",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_DEVDOCS_ANSWER]How do I refresh an OAuth token with a refresh token?[/GOOGLE_DEVDOCS_ANSWER]",
        "tag": "[GOOGLE_DEVDOCS_ANSWER]<How do I refresh an OAuth token with a refresh token?>[/GOOGLE_DEVDOCS_ANSWER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_DEVDOCS_ANSWER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_DEVDOCS_ANSWER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"answer_query\",\"arguments\":{\"query\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_DEVDOCS_ANSWER",
        "update": "PUT /api/directory/GOOGLE_DEVDOCS_ANSWER",
        "patch": "PATCH /api/directory/GOOGLE_DEVDOCS_ANSWER",
        "delete": "DELETE /api/directory/GOOGLE_DEVDOCS_ANSWER",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_DEVDOCS_ANSWER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_DEVDOCS_ANSWER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_DEVDOCS_ANSWER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_DEVDOCS_ANSWER"
      },
      "examples": "[\"How does Sheets API valueInputOption RAW differ from USER_ENTERED?\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_DEVDOCS_ANSWER"
    },
    {
      "key": "GOOGLE_DEVDOCS_SEARCH",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Search Google developer documentation (Google Developer Knowledge MCP) as the owner. Returns matching docs with names for GOOGLE_DEVDOCS_GET. WHEN_TO_USE: any question about a Google API, SDK or Cloud product. ARGS: $1 = query EX: [GOOGLE_DEVDOCS_SEARCH]Sheets API batchUpdate valueInputOption[/GOOGLE_DEVDOCS_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_DEVDOCS_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_DEVDOCS_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search Google developer documentation (Google Developer Knowledge MCP) as the owner. Returns matching docs with names for GOOGLE_DEVDOCS_GET.",
          "WHEN_TO_USE: any question about a Google API, SDK or Cloud product.",
          "ARGS: $1 = query",
          "EX: [GOOGLE_DEVDOCS_SEARCH]Sheets API batchUpdate valueInputOption[/GOOGLE_DEVDOCS_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Sheets API batchUpdate valueInputOption",
            "desc": "query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "matching docs with names for GOOGLE_DEVDOCS_GET.",
        "example": "[GOOGLE_DEVDOCS_SEARCH]Sheets API batchUpdate valueInputOption[/GOOGLE_DEVDOCS_SEARCH]",
        "tag": "[GOOGLE_DEVDOCS_SEARCH]<Sheets API batchUpdate valueInputOption>[/GOOGLE_DEVDOCS_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_DEVDOCS_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_DEVDOCS_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_documents\",\"arguments\":{\"query\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_DEVDOCS_SEARCH",
        "update": "PUT /api/directory/GOOGLE_DEVDOCS_SEARCH",
        "patch": "PATCH /api/directory/GOOGLE_DEVDOCS_SEARCH",
        "delete": "DELETE /api/directory/GOOGLE_DEVDOCS_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_DEVDOCS_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_DEVDOCS_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_DEVDOCS_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_DEVDOCS_SEARCH"
      },
      "examples": "[\"Sheets API values batchUpdate\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_DEVDOCS_SEARCH"
    },
    {
      "key": "GOOGLE_DRIVE_GET",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Download Google Drive file content as plain text. $1=file id. Use after GOOGLE_DRIVE_LIST WHEN_TO_USE: you need to google drive get ARGS: see content EX: [GOOGLE_DRIVE_GET]arg1[/GOOGLE_DRIVE_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_DRIVE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_DRIVE_GET",
        "type": "http",
        "what": [
          "WHAT: Download Google Drive file content as plain text. $1=file id. Use after GOOGLE_DRIVE_LIST",
          "WHEN_TO_USE: you need to google drive get",
          "ARGS: see content",
          "EX: [GOOGLE_DRIVE_GET]arg1[/GOOGLE_DRIVE_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "file id. Use after GOOGLE_DRIVE_LIST",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_DRIVE_GET]arg1[/GOOGLE_DRIVE_GET]",
        "tag": "[GOOGLE_DRIVE_GET]<arg1>[/GOOGLE_DRIVE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_DRIVE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_DRIVE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"drive_get\",\"args\":{\"file_id\":\"$1\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_DRIVE_GET",
        "update": "PUT /api/directory/GOOGLE_DRIVE_GET",
        "patch": "PATCH /api/directory/GOOGLE_DRIVE_GET",
        "delete": "DELETE /api/directory/GOOGLE_DRIVE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_DRIVE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_DRIVE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_DRIVE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_DRIVE_GET"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_DRIVE_GET"
    },
    {
      "key": "GOOGLE_DRIVE_LIST",
      "type": "http",
      "category": "google",
      "doc": "WHAT: List Google Drive files. $1=optional folder id or query (blank = root) WHEN_TO_USE: find a file before downloading ARGS: see content EX: [GOOGLE_DRIVE_LIST]arg1[/GOOGLE_DRIVE_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_DRIVE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_DRIVE_LIST",
        "type": "http",
        "what": [
          "WHAT: List Google Drive files. $1=optional folder id or query (blank = root)",
          "WHEN_TO_USE: find a file before downloading",
          "ARGS: see content",
          "EX: [GOOGLE_DRIVE_LIST]arg1[/GOOGLE_DRIVE_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional folder id or query (blank = root)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_DRIVE_LIST]arg1[/GOOGLE_DRIVE_LIST]",
        "tag": "[GOOGLE_DRIVE_LIST]<arg1>[/GOOGLE_DRIVE_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_DRIVE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_DRIVE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"drive_list\",\"args\":{\"q\":\"$1\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_DRIVE_LIST",
        "update": "PUT /api/directory/GOOGLE_DRIVE_LIST",
        "patch": "PATCH /api/directory/GOOGLE_DRIVE_LIST",
        "delete": "DELETE /api/directory/GOOGLE_DRIVE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_DRIVE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_DRIVE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_DRIVE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_DRIVE_LIST"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_DRIVE_LIST"
    },
    {
      "key": "GOOGLE_MAPS_PLACES",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Find places and businesses with Google Maps (Grounding Lite MCP): names, addresses, ratings, hours. WHEN_TO_USE: \"med spas in Austin\", \"pharmacies near 90210\", any place lookup. ARGS: $1 = text query EX: [GOOGLE_MAPS_PLACES]chiropractors in Scottsdale AZ[/GOOGLE_MAPS_PLACES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_MAPS_PLACES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_MAPS_PLACES",
        "type": "http",
        "what": [
          "WHAT: Find places and businesses with Google Maps (Grounding Lite MCP): names, addresses, ratings, hours.",
          "WHEN_TO_USE: \"med spas in Austin\", \"pharmacies near 90210\", any place lookup.",
          "ARGS: $1 = text query",
          "EX: [GOOGLE_MAPS_PLACES]chiropractors in Scottsdale AZ[/GOOGLE_MAPS_PLACES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "chiropractors in Scottsdale AZ",
            "desc": "text query",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_MAPS_PLACES]chiropractors in Scottsdale AZ[/GOOGLE_MAPS_PLACES]",
        "tag": "[GOOGLE_MAPS_PLACES]<chiropractors in Scottsdale AZ>[/GOOGLE_MAPS_PLACES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_MAPS_PLACES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_MAPS_PLACES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_places\",\"arguments\":{\"textQuery\":\"$1\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_MAPS_PLACES",
        "update": "PUT /api/directory/GOOGLE_MAPS_PLACES",
        "patch": "PATCH /api/directory/GOOGLE_MAPS_PLACES",
        "delete": "DELETE /api/directory/GOOGLE_MAPS_PLACES",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_MAPS_PLACES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_MAPS_PLACES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_MAPS_PLACES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_MAPS_PLACES"
      },
      "examples": "[\"coffee near Union Square San Francisco\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_MAPS_PLACES"
    },
    {
      "key": "GOOGLE_MAPS_ROUTE",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Driving route, distance and duration between two addresses (Google Maps Grounding MCP). WHEN_TO_USE: how far, how long, directions. ARGS: $1 = origin address · $2 = destination address EX: [GOOGLE_MAPS_ROUTE]LAX|Santa Monica Pier[/GOOGLE_MAPS_ROUTE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_MAPS_ROUTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_MAPS_ROUTE",
        "type": "http",
        "what": [
          "WHAT: Driving route, distance and duration between two addresses (Google Maps Grounding MCP).",
          "WHEN_TO_USE: how far, how long, directions.",
          "ARGS: $1 = origin address · $2 = destination address",
          "EX: [GOOGLE_MAPS_ROUTE]LAX|Santa Monica Pier[/GOOGLE_MAPS_ROUTE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "LAX",
            "desc": "origin address · $2 = destination address",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Santa Monica Pier",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_MAPS_ROUTE]LAX|Santa Monica Pier[/GOOGLE_MAPS_ROUTE]",
        "tag": "[GOOGLE_MAPS_ROUTE]<LAX>|<Santa Monica Pier>[/GOOGLE_MAPS_ROUTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_MAPS_ROUTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_MAPS_ROUTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"compute_routes\",\"arguments\":{\"origin\":{\"address\":\"$1\"},\"destination\":{\"address\":\"$2\"},\"travelMode\":\"DRIVE\"}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_MAPS_ROUTE",
        "update": "PUT /api/directory/GOOGLE_MAPS_ROUTE",
        "patch": "PATCH /api/directory/GOOGLE_MAPS_ROUTE",
        "delete": "DELETE /api/directory/GOOGLE_MAPS_ROUTE",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_MAPS_ROUTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_MAPS_ROUTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_MAPS_ROUTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_MAPS_ROUTE"
      },
      "examples": "[\"LAX|Santa Monica Pier\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_MAPS_ROUTE"
    },
    {
      "key": "GOOGLE_MAPS_WEATHER",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Current conditions and forecast for a place (Google Maps Grounding MCP). WHEN_TO_USE: weather for a city or address. ARGS: $1 = address or place name EX: [GOOGLE_MAPS_WEATHER]Los Angeles, CA[/GOOGLE_MAPS_WEATHER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_MAPS_WEATHER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_MAPS_WEATHER",
        "type": "http",
        "what": [
          "WHAT: Current conditions and forecast for a place (Google Maps Grounding MCP).",
          "WHEN_TO_USE: weather for a city or address.",
          "ARGS: $1 = address or place name",
          "EX: [GOOGLE_MAPS_WEATHER]Los Angeles, CA[/GOOGLE_MAPS_WEATHER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Los Angeles, CA",
            "desc": "address or place name",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_MAPS_WEATHER]Los Angeles, CA[/GOOGLE_MAPS_WEATHER]",
        "tag": "[GOOGLE_MAPS_WEATHER]<Los Angeles, CA>[/GOOGLE_MAPS_WEATHER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_MAPS_WEATHER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_MAPS_WEATHER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"lookup_weather\",\"arguments\":{\"location\":{\"address\":\"$1\"}}}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_MAPS_WEATHER",
        "update": "PUT /api/directory/GOOGLE_MAPS_WEATHER",
        "patch": "PATCH /api/directory/GOOGLE_MAPS_WEATHER",
        "delete": "DELETE /api/directory/GOOGLE_MAPS_WEATHER",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_MAPS_WEATHER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_MAPS_WEATHER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_MAPS_WEATHER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_MAPS_WEATHER"
      },
      "examples": "[\"Los Angeles\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_MAPS_WEATHER"
    },
    {
      "key": "GOOGLE_OAUTH_WHOAMI",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Which Google account the build speaks as on this OAuth grant: email, name, sub. WHEN_TO_USE: prove the Google OAuth connection is live; find out which account a Google row acts as. ARGS: none EX: [GOOGLE_OAUTH_WHOAMI][/GOOGLE_OAUTH_WHOAMI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_OAUTH_WHOAMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_OAUTH_WHOAMI",
        "type": "http",
        "what": [
          "WHAT: Which Google account the build speaks as on this OAuth grant: email, name, sub.",
          "WHEN_TO_USE: prove the Google OAuth connection is live; find out which account a Google row acts as.",
          "ARGS: none",
          "EX: [GOOGLE_OAUTH_WHOAMI][/GOOGLE_OAUTH_WHOAMI]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_OAUTH_WHOAMI][/GOOGLE_OAUTH_WHOAMI]",
        "tag": "[GOOGLE_OAUTH_WHOAMI][/GOOGLE_OAUTH_WHOAMI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_OAUTH_WHOAMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_OAUTH_WHOAMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GOOGLE_OAUTH_WHOAMI",
        "update": "PUT /api/directory/GOOGLE_OAUTH_WHOAMI",
        "patch": "PATCH /api/directory/GOOGLE_OAUTH_WHOAMI",
        "delete": "DELETE /api/directory/GOOGLE_OAUTH_WHOAMI",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_OAUTH_WHOAMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_OAUTH_WHOAMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_OAUTH_WHOAMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_OAUTH_WHOAMI"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_OAUTH_WHOAMI"
    },
    {
      "key": "GOOGLE_RAW",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Authenticated GET to any path under www.googleapis.com on the OAuth grant, for endpoints no named row covers yet. WHEN_TO_USE: a Google API call nobody has made a row for. Read-only. ARGS: $1 = path and query after the host, e.g. drive/v3/about?fields=user,storageQuota EX: [GOOGLE_RAW]drive/v3/about?fields=user,storageQuota[/GOOGLE_RAW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_RAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_RAW",
        "type": "http",
        "what": [
          "WHAT: Authenticated GET to any path under www.googleapis.com on the OAuth grant, for endpoints no named row covers yet.",
          "WHEN_TO_USE: a Google API call nobody has made a row for. Read-only.",
          "ARGS: $1 = path and query after the host, e.g. drive/v3/about?fields=user,storageQuota",
          "EX: [GOOGLE_RAW]drive/v3/about?fields=user,storageQuota[/GOOGLE_RAW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "drive/v3/about?fields=user,storageQuota",
            "desc": "path and query after the host, e.g. drive/v3/about?fields=user,storageQuota",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_RAW]drive/v3/about?fields=user,storageQuota[/GOOGLE_RAW]",
        "tag": "[GOOGLE_RAW]<drive/v3/about?fields=user,storageQuota>[/GOOGLE_RAW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_RAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_RAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GOOGLE_RAW",
        "update": "PUT /api/directory/GOOGLE_RAW",
        "patch": "PATCH /api/directory/GOOGLE_RAW",
        "delete": "DELETE /api/directory/GOOGLE_RAW",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_RAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_RAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_RAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_RAW"
      },
      "examples": "[\"drive/v3/about?fields=user,storageQuota\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_RAW"
    },
    {
      "key": "GOOGLE_SHEETS_APPEND",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Append a row to a Google Sheet. $1=sheet id, $2=tab name, $3=JSON array of values FIXED 2026-08-09: uses $3+ now, not $3 — a literal | inside the values (a business name, a line of copy) used to truncate the JSON at the first pipe (same root cause as the APPS_SCRIPT_RUN fix). WHEN_TO_USE: log ARGS: see content EX: [GOOGLE_SHEETS_APPEND]arg1|arg2|arg3[/GOOGLE_SHEETS_APPEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_SHEETS_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_SHEETS_APPEND",
        "type": "http",
        "what": [
          "WHAT: Append a row to a Google Sheet. $1=sheet id, $2=tab name, $3=JSON array of values",
          "FIXED 2026-08-09: uses $3+ now, not $3 — a literal | inside the values (a business name, a line of copy) used to truncate the JSON at the first pipe (same root cause as the APPS_SCRIPT_RUN fix).",
          "WHEN_TO_USE: log",
          "ARGS: see content",
          "EX: [GOOGLE_SHEETS_APPEND]arg1|arg2|arg3[/GOOGLE_SHEETS_APPEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "sheet id, $2=tab name, $3=JSON array of values",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "a literal | inside the values (a business name, a line of copy) used to truncate the JSON at the first pipe (same root cause as the APPS_SCRIPT_RUN fix).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_SHEETS_APPEND]arg1|arg2|arg3[/GOOGLE_SHEETS_APPEND]",
        "tag": "[GOOGLE_SHEETS_APPEND]<arg1>|<arg2>|<arg3 …>[/GOOGLE_SHEETS_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_SHEETS_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_SHEETS_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"sheets_append\",\"args\":{\"sheet_id\":\"$1\",\"tab\":\"$2\",\"values\":$$3+}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_SHEETS_APPEND",
        "update": "PUT /api/directory/GOOGLE_SHEETS_APPEND",
        "patch": "PATCH /api/directory/GOOGLE_SHEETS_APPEND",
        "delete": "DELETE /api/directory/GOOGLE_SHEETS_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_SHEETS_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_SHEETS_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_SHEETS_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_SHEETS_APPEND"
      },
      "examples": "[\"x\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_SHEETS_APPEND"
    },
    {
      "key": "GOOGLE_SHEETS_GET",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Read a Google Sheet range as 2D JSON. $1=sheet id, $2=A1 range (e.g. Sheet1!A1:Z100) WHEN_TO_USE: reporting tables ARGS: see content EX: [GOOGLE_SHEETS_GET]arg1|arg2[/GOOGLE_SHEETS_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_SHEETS_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_SHEETS_GET",
        "type": "http",
        "what": [
          "WHAT: Read a Google Sheet range as 2D JSON. $1=sheet id, $2=A1 range (e.g. Sheet1!A1:Z100)",
          "WHEN_TO_USE: reporting tables",
          "ARGS: see content",
          "EX: [GOOGLE_SHEETS_GET]arg1|arg2[/GOOGLE_SHEETS_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "sheet id, $2=A1 range (e.g. Sheet1!A1:Z100)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_SHEETS_GET]arg1|arg2[/GOOGLE_SHEETS_GET]",
        "tag": "[GOOGLE_SHEETS_GET]<arg1>|<arg2>[/GOOGLE_SHEETS_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_SHEETS_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_SHEETS_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"sheets_get\",\"args\":{\"sheet_id\":\"$1\",\"range\":\"$2\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_SHEETS_GET",
        "update": "PUT /api/directory/GOOGLE_SHEETS_GET",
        "patch": "PATCH /api/directory/GOOGLE_SHEETS_GET",
        "delete": "DELETE /api/directory/GOOGLE_SHEETS_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_SHEETS_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_SHEETS_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_SHEETS_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_SHEETS_GET"
      },
      "examples": "[\"test|Sheet1!A1:Z100\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_SHEETS_GET"
    },
    {
      "key": "GOOGLE_TASKS_ADD",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Add a Google Task. $1=optional list id, $2=title, $3=optional notes WHEN_TO_USE: the user says \"add to my todos\" ARGS: see content EX: [GOOGLE_TASKS_ADD]arg1|arg2|arg3[/GOOGLE_TASKS_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_TASKS_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_TASKS_ADD",
        "type": "http",
        "what": [
          "WHAT: Add a Google Task. $1=optional list id, $2=title, $3=optional notes",
          "WHEN_TO_USE: the user says \"add to my todos\"",
          "ARGS: see content",
          "EX: [GOOGLE_TASKS_ADD]arg1|arg2|arg3[/GOOGLE_TASKS_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional list id, $2=title, $3=optional notes",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_TASKS_ADD]arg1|arg2|arg3[/GOOGLE_TASKS_ADD]",
        "tag": "[GOOGLE_TASKS_ADD]<arg1>|<arg2>|<arg3>[/GOOGLE_TASKS_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_TASKS_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_TASKS_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"tasks_add\",\"args\":{\"list_id\":\"$1\",\"title\":\"$2\",\"notes\":\"$3\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_TASKS_ADD",
        "update": "PUT /api/directory/GOOGLE_TASKS_ADD",
        "patch": "PATCH /api/directory/GOOGLE_TASKS_ADD",
        "delete": "DELETE /api/directory/GOOGLE_TASKS_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_TASKS_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_TASKS_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_TASKS_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_TASKS_ADD"
      },
      "examples": "[\"Buy a cloud phone on DuoPlus + evaluate DuoPlus (openapi.duoplus.net) for the build\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_TASKS_ADD"
    },
    {
      "key": "GOOGLE_TASKS_LIST",
      "type": "http",
      "category": "google",
      "doc": "WHAT: List Google Tasks. $1=optional task list id WHEN_TO_USE: answer \"what is on my todo list\" ARGS: see content EX: [GOOGLE_TASKS_LIST]arg1[/GOOGLE_TASKS_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOOGLE_TASKS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOOGLE_TASKS_LIST",
        "type": "http",
        "what": [
          "WHAT: List Google Tasks. $1=optional task list id",
          "WHEN_TO_USE: answer \"what is on my todo list\"",
          "ARGS: see content",
          "EX: [GOOGLE_TASKS_LIST]arg1[/GOOGLE_TASKS_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional task list id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "AIRUNNER_WEB_APP_URL"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GOOGLE_TASKS_LIST]arg1[/GOOGLE_TASKS_LIST]",
        "tag": "[GOOGLE_TASKS_LIST]<arg1>[/GOOGLE_TASKS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOOGLE_TASKS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOOGLE_TASKS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"action\":\"tasks_list\",\"args\":{\"list_id\":\"$1\"}}",
      "edit": {
        "read": "GET /api/directory/GOOGLE_TASKS_LIST",
        "update": "PUT /api/directory/GOOGLE_TASKS_LIST",
        "patch": "PATCH /api/directory/GOOGLE_TASKS_LIST",
        "delete": "DELETE /api/directory/GOOGLE_TASKS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"GOOGLE_TASKS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOOGLE_TASKS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOOGLE_TASKS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOOGLE_TASKS_LIST"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOOGLE_TASKS_LIST"
    },
    {
      "key": "GORGIAS_TICKETS",
      "type": "http",
      "category": "loop_metrics",
      "doc": "WHAT: Support and recovery tickets, newest first. $1 = how many (max 100). WHEN_TO_USE: \"what are customers complaining about\", \"recovery outreach\", churn signals. READ ONLY: a POST without sent_datetime emails a real customer. never POST here. ARGS: $1 = limit EX: [GORGIAS_TICKETS]20[/GORGIAS_TICKETS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GORGIAS_TICKETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GORGIAS_TICKETS",
        "type": "http",
        "what": [
          "WHAT: Support and recovery tickets, newest first. $1 = how many (max 100).",
          "WHEN_TO_USE: \"what are customers complaining about\", \"recovery outreach\", churn signals.",
          "READ ONLY: a POST without sent_datetime emails a real customer. never POST here.",
          "ARGS: $1 = limit",
          "EX: [GORGIAS_TICKETS]20[/GORGIAS_TICKETS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GORGIAS_TICKETS]20[/GORGIAS_TICKETS]",
        "tag": "[GORGIAS_TICKETS]<20>[/GORGIAS_TICKETS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GORGIAS_TICKETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GORGIAS_TICKETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GORGIAS_TICKETS",
        "update": "PUT /api/directory/GORGIAS_TICKETS",
        "patch": "PATCH /api/directory/GORGIAS_TICKETS",
        "delete": "DELETE /api/directory/GORGIAS_TICKETS",
        "invoke": "POST /api/dispatch {\"key\":\"GORGIAS_TICKETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GORGIAS_TICKETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GORGIAS_TICKETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GORGIAS_TICKETS"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GORGIAS_TICKETS"
    },
    {
      "key": "GOVERNOR",
      "type": "agent",
      "category": "governance",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOVERNOR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOVERNOR",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GOVERNOR][/GOVERNOR]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOVERNOR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOVERNOR  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GOVERNOR",
        "update": "PUT /api/directory/GOVERNOR",
        "patch": "PATCH /api/directory/GOVERNOR",
        "delete": "DELETE /api/directory/GOVERNOR",
        "invoke": "POST /api/dispatch {\"key\":\"GOVERNOR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOVERNOR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOVERNOR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOVERNOR"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOVERNOR"
    },
    {
      "key": "GOVERNOR_ASK",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Ask the GOVERNOR (build manager) a question. It answers from the live 24h digest + recurrence memory + charter — counts in parentheses, sized for iMessage. WHEN_TO_USE: the owner texts \"governor <question>\" or \"ask the governor ...\", or any model wants the manager's evidence-grounded read on build health, conflicts, or what keeps recurring. ARGS: the question, verbatim EX: [GOVERNOR_ASK]why is the task backlog so big[/GOVERNOR_ASK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOVERNOR_ASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOVERNOR_ASK",
        "type": "fn",
        "what": [
          "WHAT: Ask the GOVERNOR (build manager) a question. It answers from the live 24h digest + recurrence memory + charter — counts in parentheses, sized for iMessage.",
          "WHEN_TO_USE: the owner texts \"governor <question>\" or \"ask the governor ...\", or any model wants the manager's evidence-grounded read on build health, conflicts, or what keeps recurring.",
          "ARGS: the question, verbatim",
          "EX: [GOVERNOR_ASK]why is the task backlog so big[/GOVERNOR_ASK]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "why is the task backlog so big",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GOVERNOR_ASK]why is the task backlog so big[/GOVERNOR_ASK]",
        "tag": "[GOVERNOR_ASK]<why is the task backlog so big …>[/GOVERNOR_ASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOVERNOR_ASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOVERNOR_ASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/GOVERNOR_ASK",
        "update": "PUT /api/directory/GOVERNOR_ASK",
        "patch": "PATCH /api/directory/GOVERNOR_ASK",
        "delete": "DELETE /api/directory/GOVERNOR_ASK",
        "invoke": "POST /api/dispatch {\"key\":\"GOVERNOR_ASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOVERNOR_ASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOVERNOR_ASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOVERNOR_ASK"
      },
      "examples": "[\"why is the task backlog so big\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOVERNOR_ASK"
    },
    {
      "key": "GOVERNOR_RUN",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Run the GOVERNOR — scan the last 48h of ledger turns into a deterministic digest (error streaks, file collisions, loop states, auth lockouts, cron noise, task flow, waste), have the GOVERNOR model write the brief, email it to the owner, text him the verdict, ledger everything as GOVERNOR_BRIEF. WHEN_TO_USE: the owner asks \"whats going on with the build\", \"governor report\", \"run governor\", \"build brief\", \"what keeps breaking\" — or any model wants the standing manager's view before making structural changes. Runs automatically every 12h / 2000 events / 150 errors; this row is the manual fire. ARGS: mode — empty = full run (model + email + iMessage) · dry = digest JSON only, no model call, no delivery EX: [GOVERNOR_RUN][/GOVERNOR_RUN]   or   GET /api/dispatch?invoke=GOVERNOR_RUN&body=dry",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GOVERNOR_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GOVERNOR_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run the GOVERNOR — scan the last 48h of ledger turns into a deterministic digest (error streaks, file collisions, loop states, auth lockouts, cron noise, task flow, waste), have the GOVERNOR model write the brief, email it to the owner, text him the verdict, ledger everything as GOVERNOR_BRIEF.",
          "WHEN_TO_USE: the owner asks \"whats going on with the build\", \"governor report\", \"run governor\", \"build brief\", \"what keeps breaking\" — or any model wants the standing manager's view before making structural changes. Runs automatically every 12h / 2000 events / 150 errors; this row is the manual fire.",
          "ARGS: mode — empty = full run (model + email + iMessage) · dry = digest JSON only, no model call, no delivery",
          "EX: [GOVERNOR_RUN][/GOVERNOR_RUN]   or   GET /api/dispatch?invoke=GOVERNOR_RUN&body=dry"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GOVERNOR_RUN][/GOVERNOR_RUN]   or   GET /api/dispatch?invoke=GOVERNOR_RUN&body=dry",
        "tag": "[GOVERNOR_RUN]<arg1>[/GOVERNOR_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GOVERNOR_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GOVERNOR_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GOVERNOR_RUN",
        "update": "PUT /api/directory/GOVERNOR_RUN",
        "patch": "PATCH /api/directory/GOVERNOR_RUN",
        "delete": "DELETE /api/directory/GOVERNOR_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"GOVERNOR_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GOVERNOR_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GOVERNOR_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GOVERNOR_RUN"
      },
      "examples": "[\"dry\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GOVERNOR_RUN"
    },
    {
      "key": "GRAPH_GROW",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Run one model growth queue tick — populate sources, Kimi, Gemini, repair, reflex. WHY: Models continuously add articles, sources, features without manual orchestration. WHEN_TO_USE: cron, after deploy, proactive graph enrichment. ARGS: optional slug|step   e.g. bpc-157|kimi_collaborate EX: [GRAPH_GROW][/GRAPH_GROW]  or  [GRAPH_GROW]tb-500[/GRAPH_GROW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GRAPH_GROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GRAPH_GROW",
        "type": "fn",
        "what": [
          "WHAT: Run one model growth queue tick — populate sources, Kimi, Gemini, repair, reflex.",
          "WHY: Models continuously add articles, sources, features without manual orchestration.",
          "WHEN_TO_USE: cron, after deploy, proactive graph enrichment.",
          "ARGS: optional slug|step   e.g. bpc-157|kimi_collaborate",
          "EX: [GRAPH_GROW][/GRAPH_GROW]  or  [GRAPH_GROW]tb-500[/GRAPH_GROW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GRAPH_GROW][/GRAPH_GROW]  or  [GRAPH_GROW]tb-500[/GRAPH_GROW]",
        "tag": "[GRAPH_GROW]<arg1>[/GRAPH_GROW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GRAPH_GROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GRAPH_GROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GRAPH_GROW",
        "update": "PUT /api/directory/GRAPH_GROW",
        "patch": "PATCH /api/directory/GRAPH_GROW",
        "delete": "DELETE /api/directory/GRAPH_GROW",
        "invoke": "POST /api/dispatch {\"key\":\"GRAPH_GROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GRAPH_GROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GRAPH_GROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GRAPH_GROW"
      },
      "examples": "[\"[/GRAPH_GROW]  or  [GRAPH_GROW]tb-500\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GRAPH_GROW"
    },
    {
      "key": "GRAPH_LINT",
      "type": "fn",
      "category": "content",
      "doc": "WHAT: Graph maintenance pass over the whole corpus — orphans (no inbound links), missing pages (wikilinked but unwritten), unsourced claims, open challenges, stale hub pages. WHY: Karpathy lint operation — the graph is only compounding if its defects are enumerated and cleared; every finding names the page and the exact defect. WHEN_TO_USE: after any publish, on cron, before picking new work, when asked \"what is wrong with the graph\". ARGS: none EX: [GRAPH_LINT][/GRAPH_LINT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GRAPH_LINT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GRAPH_LINT",
        "type": "fn",
        "what": [
          "WHAT: Graph maintenance pass over the whole corpus — orphans (no inbound links), missing pages (wikilinked but unwritten), unsourced claims, open challenges, stale hub pages.",
          "WHY: Karpathy lint operation — the graph is only compounding if its defects are enumerated and cleared; every finding names the page and the exact defect.",
          "WHEN_TO_USE: after any publish, on cron, before picking new work, when asked \"what is wrong with the graph\".",
          "ARGS: none",
          "EX: [GRAPH_LINT][/GRAPH_LINT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GRAPH_LINT][/GRAPH_LINT]",
        "tag": "[GRAPH_LINT][/GRAPH_LINT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GRAPH_LINT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GRAPH_LINT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/GRAPH_LINT",
        "update": "PUT /api/directory/GRAPH_LINT",
        "patch": "PATCH /api/directory/GRAPH_LINT",
        "delete": "DELETE /api/directory/GRAPH_LINT",
        "invoke": "POST /api/dispatch {\"key\":\"GRAPH_LINT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GRAPH_LINT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GRAPH_LINT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GRAPH_LINT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GRAPH_LINT"
    },
    {
      "key": "GROK_IMAGE",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: Generate an image from a text prompt. Returns a JSON url (grok-imagine-image-quality, $0.05/image). WHEN_TO_USE: any \"make/generate/create an image, picture, photo, or art\" request. The whole body is the prompt. ARGS: prompt (free text) EX: [GROK_IMAGE]a golden retriever in an astronaut suit, studio lighting[/GROK_IMAGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_IMAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_IMAGE",
        "type": "http",
        "what": [
          "WHAT: Generate an image from a text prompt. Returns a JSON url (grok-imagine-image-quality, $0.05/image).",
          "WHEN_TO_USE: any \"make/generate/create an image, picture, photo, or art\" request. The whole body is the prompt.",
          "ARGS: prompt (free text)",
          "EX: [GROK_IMAGE]a golden retriever in an astronaut suit, studio lighting[/GROK_IMAGE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "a golden retriever in an astronaut suit, studio lighting",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a JSON url (grok-imagine-image-quality, $0.05/image).",
        "example": "[GROK_IMAGE]a golden retriever in an astronaut suit, studio lighting[/GROK_IMAGE]",
        "tag": "[GROK_IMAGE]<a golden retriever in an astronaut suit, studio lighting>[/GROK_IMAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_IMAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_IMAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"model\":\"grok-imagine-image-quality\",\"prompt\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/GROK_IMAGE",
        "update": "PUT /api/directory/GROK_IMAGE",
        "patch": "PATCH /api/directory/GROK_IMAGE",
        "delete": "DELETE /api/directory/GROK_IMAGE",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_IMAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_IMAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_IMAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_IMAGE"
      },
      "examples": "[\"a golden retriever in an astronaut suit, studio lighting\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_IMAGE"
    },
    {
      "key": "GROK_IMAGE_EDIT",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: Edit an image with natural language.  Returns a JSON url WHEN_TO_USE: you need to grok image edit ARGS: prompt|image_url EX: [GROK_IMAGE_EDIT]arg1|arg2[/GROK_IMAGE_EDIT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_IMAGE_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_IMAGE_EDIT",
        "type": "http",
        "what": [
          "WHAT: Edit an image with natural language.  Returns a JSON url",
          "WHEN_TO_USE: you need to grok image edit",
          "ARGS: prompt|image_url",
          "EX: [GROK_IMAGE_EDIT]arg1|arg2[/GROK_IMAGE_EDIT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a JSON url",
        "example": "[GROK_IMAGE_EDIT]arg1|arg2[/GROK_IMAGE_EDIT]",
        "tag": "[GROK_IMAGE_EDIT]<arg1>|<arg2>[/GROK_IMAGE_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_IMAGE_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_IMAGE_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"model\":\"grok-imagine-image-quality\",\"prompt\":\"$1\",\"image\":{\"url\":\"$2\",\"type\":\"image_url\"}}",
      "edit": {
        "read": "GET /api/directory/GROK_IMAGE_EDIT",
        "update": "PUT /api/directory/GROK_IMAGE_EDIT",
        "patch": "PATCH /api/directory/GROK_IMAGE_EDIT",
        "delete": "DELETE /api/directory/GROK_IMAGE_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_IMAGE_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_IMAGE_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_IMAGE_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_IMAGE_EDIT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_IMAGE_EDIT"
    },
    {
      "key": "GROK_IMAGE_R2",
      "type": "fn",
      "category": "creative",
      "doc": "WHAT: Generate an image with Grok Imagine, re-store it to R2, and return a stable https://miscsubjects.com/img/ link. WHEN_TO_USE: you need an image; prefer this over GROK_IMAGE because it returns a stable URL. ARGS: prompt",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_IMAGE_R2",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_IMAGE_R2",
        "type": "fn",
        "what": [
          "WHAT: Generate an image with Grok Imagine, re-store it to R2, and return a stable https://miscsubjects.com/img/ link.",
          "WHEN_TO_USE: you need an image; prefer this over GROK_IMAGE because it returns a stable URL.",
          "ARGS: prompt"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a stable https://miscsubjects.com/img/ link.",
        "example": "[GROK_IMAGE_R2]arg1[/GROK_IMAGE_R2]",
        "tag": "[GROK_IMAGE_R2]<arg1>[/GROK_IMAGE_R2]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_IMAGE_R2\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_IMAGE_R2  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GROK_IMAGE_R2",
        "update": "PUT /api/directory/GROK_IMAGE_R2",
        "patch": "PATCH /api/directory/GROK_IMAGE_R2",
        "delete": "DELETE /api/directory/GROK_IMAGE_R2",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_IMAGE_R2\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_IMAGE_R2\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_IMAGE_R2\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_IMAGE_R2"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_IMAGE_R2"
    },
    {
      "key": "GROK_LEDGER_TAIL",
      "type": "flow",
      "category": "log",
      "doc": "Last N ledger rows with token/cost when present. Args: N (default 20). Shows source=grok API calls (cost from response_json.usage.cost_in_usd_ticks) and source=grok-cli SPEND rows (Grok Build / Cursor turns).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_LEDGER_TAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_LEDGER_TAIL",
        "type": "flow",
        "what": [
          "Last N ledger rows with token/cost when present.",
          "Args: N (default 20). Shows source=grok API calls (cost from response_json.usage.cost_in_usd_ticks)",
          "and source=grok-cli SPEND rows (Grok Build / Cursor turns)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[GROK_LEDGER_TAIL]arg1[/GROK_LEDGER_TAIL]",
        "tag": "[GROK_LEDGER_TAIL]<arg1>[/GROK_LEDGER_TAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_LEDGER_TAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_LEDGER_TAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GROK_LEDGER_TAIL",
        "update": "PUT /api/directory/GROK_LEDGER_TAIL",
        "patch": "PATCH /api/directory/GROK_LEDGER_TAIL",
        "delete": "DELETE /api/directory/GROK_LEDGER_TAIL",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_LEDGER_TAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_LEDGER_TAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_LEDGER_TAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_LEDGER_TAIL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_LEDGER_TAIL"
    },
    {
      "key": "GROK_MODELS",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: List every model on the xAI API. No args WHEN_TO_USE: you need to grok models ARGS: see content EX: [GROK_MODELS][/GROK_MODELS] List every model on the xAI API. No args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_MODELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_MODELS",
        "type": "http",
        "what": [
          "WHAT: List every model on the xAI API. No args",
          "WHEN_TO_USE: you need to grok models",
          "ARGS: see content",
          "EX: [GROK_MODELS][/GROK_MODELS]",
          "List every model on the xAI API. No args."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GROK_MODELS][/GROK_MODELS]",
        "tag": "[GROK_MODELS][/GROK_MODELS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_MODELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_MODELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GROK_MODELS",
        "update": "PUT /api/directory/GROK_MODELS",
        "patch": "PATCH /api/directory/GROK_MODELS",
        "delete": "DELETE /api/directory/GROK_MODELS",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_MODELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_MODELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_MODELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_MODELS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_MODELS"
    },
    {
      "key": "GROK_STT",
      "type": "fn",
      "category": "grok",
      "doc": "WHAT: Speech-to-TEXT (Grok). INVOKE: [GROK_STT]<public_audio_url>[/GROK_STT] WHEN_TO_USE: you need to grok stt ARGS: $1 EX: [GROK_STT]arg1[/GROK_STT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_STT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_STT",
        "type": "fn",
        "what": [
          "WHAT: Speech-to-TEXT (Grok). INVOKE: [GROK_STT]<public_audio_url>[/GROK_STT]",
          "WHEN_TO_USE: you need to grok stt",
          "ARGS: $1",
          "EX: [GROK_STT]arg1[/GROK_STT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "public_audio_url",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GROK_STT]arg1[/GROK_STT]",
        "tag": "[GROK_STT]<public_audio_url>[/GROK_STT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_STT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_STT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GROK_STT",
        "update": "PUT /api/directory/GROK_STT",
        "patch": "PATCH /api/directory/GROK_STT",
        "delete": "DELETE /api/directory/GROK_STT",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_STT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_STT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_STT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_STT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_STT"
    },
    {
      "key": "GROK_TTS",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: Text-to-SPEECH (Grok). INVOKE: [GROK_TTS]<text>|<voice_id>[/GROK_TTS] WHEN_TO_USE: you need to grok tts ARGS: see content EX: [GROK_TTS]arg1|arg2|arg15[/GROK_TTS] $1 = the words to speak; $2 = voice_id (eve|ara|rex|sal|leo). Returns mp3 audio BYTES (binary, not JSON) from https://api.x.ai/v1/tts; ~$15 per 1M characters. To DELIVER spoken audio into a chat in ONE call, use [VOICE_SEND] instead (it synthesizes + attaches).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_TTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_TTS",
        "type": "http",
        "what": [
          "WHAT: Text-to-SPEECH (Grok). INVOKE: [GROK_TTS]<text>|<voice_id>[/GROK_TTS]",
          "WHEN_TO_USE: you need to grok tts",
          "ARGS: see content",
          "EX: [GROK_TTS]arg1|arg2|arg15[/GROK_TTS]",
          "$1 = the words to speak; $2 = voice_id (eve|ara|rex|sal|leo). Returns mp3 audio BYTES (binary, not JSON) from https://api.x.ai/v1/tts; ~$15 per 1M characters.",
          "To DELIVER spoken audio into a chat in ONE call, use [VOICE_SEND] instead (it synthesizes + attaches)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "text",
            "desc": "the words to speak",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "voice_id",
            "desc": "voice_id (eve|ara|rex|sal|leo). Returns mp3 audio BYTES (binary, not JSON) from https://api.x.ai/v1/tts",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "mp3 audio BYTES (binary, not JSON) from https://api.x.ai/v1/tts; ~$15 per 1M characters.",
        "example": "[GROK_TTS]arg1|arg2|arg15[/GROK_TTS]",
        "tag": "[GROK_TTS]<text>|<voice_id>[/GROK_TTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_TTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_TTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"text\":\"$1\",\"voice_id\":\"$2\",\"language\":\"en\"}",
      "edit": {
        "read": "GET /api/directory/GROK_TTS",
        "update": "PUT /api/directory/GROK_TTS",
        "patch": "PATCH /api/directory/GROK_TTS",
        "delete": "DELETE /api/directory/GROK_TTS",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_TTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_TTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_TTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_TTS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_TTS"
    },
    {
      "key": "GROK_VIDEO_GET",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: Poll a video job.  status pending|done|failed|expired; when done returns video.url WHEN_TO_USE: you need to grok video get ARGS: request_id EX: [GROK_VIDEO_GET][/GROK_VIDEO_GET] Poll a video job. Arg: request_id. status pending|done|failed|expired; when done returns video.url.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_VIDEO_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_VIDEO_GET",
        "type": "http",
        "what": [
          "WHAT: Poll a video job.  status pending|done|failed|expired; when done returns video.url",
          "WHEN_TO_USE: you need to grok video get",
          "ARGS: request_id",
          "EX: [GROK_VIDEO_GET][/GROK_VIDEO_GET]",
          "Poll a video job. Arg: request_id. status pending|done|failed|expired; when done returns video.url."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "video.url",
        "example": "[GROK_VIDEO_GET][/GROK_VIDEO_GET]",
        "tag": "[GROK_VIDEO_GET]<arg1>[/GROK_VIDEO_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_VIDEO_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_VIDEO_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GROK_VIDEO_GET",
        "update": "PUT /api/directory/GROK_VIDEO_GET",
        "patch": "PATCH /api/directory/GROK_VIDEO_GET",
        "delete": "DELETE /api/directory/GROK_VIDEO_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_VIDEO_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_VIDEO_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_VIDEO_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_VIDEO_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_VIDEO_GET"
    },
    {
      "key": "GROK_VIDEO_START",
      "type": "http",
      "category": "grok",
      "doc": "WHAT: Start a text-to-video job.  Returns request_id. Poll with GROK_VIDEO_GET. Model grok-imagine-video ($0.05/sec) WHEN_TO_USE: you need to grok video start ARGS: prompt|duration_seconds(1-15) EX: [GROK_VIDEO_START]arg1|arg2[/GROK_VIDEO_START]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_VIDEO_START",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_VIDEO_START",
        "type": "http",
        "what": [
          "WHAT: Start a text-to-video job.  Returns request_id. Poll with GROK_VIDEO_GET. Model grok-imagine-video ($0.05/sec)",
          "WHEN_TO_USE: you need to grok video start",
          "ARGS: prompt|duration_seconds(1-15)",
          "EX: [GROK_VIDEO_START]arg1|arg2[/GROK_VIDEO_START]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "request_id. Poll with GROK_VIDEO_GET. Model grok-imagine-video ($0.05/sec)",
        "example": "[GROK_VIDEO_START]arg1|arg2[/GROK_VIDEO_START]",
        "tag": "[GROK_VIDEO_START]<arg1>|<arg2>[/GROK_VIDEO_START]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_VIDEO_START\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_VIDEO_START  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"model\":\"grok-imagine-video\",\"prompt\":\"$1\",\"duration\":$2,\"aspect_ratio\":\"16:9\",\"resolution\":\"720p\"}",
      "edit": {
        "read": "GET /api/directory/GROK_VIDEO_START",
        "update": "PUT /api/directory/GROK_VIDEO_START",
        "patch": "PATCH /api/directory/GROK_VIDEO_START",
        "delete": "DELETE /api/directory/GROK_VIDEO_START",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_VIDEO_START\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_VIDEO_START\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_VIDEO_START\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_VIDEO_START"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_VIDEO_START"
    },
    {
      "key": "GROK_VOICE_SEND",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Grok TTS ara voice into Blooio chat. INVOKE: [GROK_VOICE_SEND]<chat>|<words>|<voice_id>[/GROK_VOICE_SEND] WHEN_TO_USE: audio mode — speak into the owner iMessage via x.ai ara ARGS: chat|text|voice_id (default ara) PROOF: queued/202 is not delivery proof. Callers that promise audio mode must also send the same-word carbon-copy text and expose/check delivery status before claiming success. EX: [GROK_VOICE_SEND]chat_xxx|hey the owner|ara[/GROK_VOICE_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_VOICE_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_VOICE_SEND",
        "type": "fn",
        "what": [
          "WHAT: Grok TTS ara voice into Blooio chat. INVOKE: [GROK_VOICE_SEND]<chat>|<words>|<voice_id>[/GROK_VOICE_SEND]",
          "WHEN_TO_USE: audio mode — speak into the owner iMessage via x.ai ara",
          "ARGS: chat|text|voice_id (default ara)",
          "PROOF: queued/202 is not delivery proof. Callers that promise audio mode must also send the same-word carbon-copy text and expose/check delivery status before claiming success.",
          "EX: [GROK_VOICE_SEND]chat_xxx|hey the owner|ara[/GROK_VOICE_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "chat",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "words",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "voice_id",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GROK_VOICE_SEND]chat_xxx|hey the owner|ara[/GROK_VOICE_SEND]",
        "tag": "[GROK_VOICE_SEND]<chat>|<words>|<voice_id>[/GROK_VOICE_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_VOICE_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_VOICE_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/GROK_VOICE_SEND",
        "update": "PUT /api/directory/GROK_VOICE_SEND",
        "patch": "PATCH /api/directory/GROK_VOICE_SEND",
        "delete": "DELETE /api/directory/GROK_VOICE_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_VOICE_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_VOICE_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_VOICE_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_VOICE_SEND"
      },
      "examples": "[\"chat_xxx|hey the owner|ara\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_VOICE_SEND"
    },
    {
      "key": "GROK_WEB",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Ask Grok Web — the logged-in browser session, not the metered API — and return the exact captured answer. WHEN_TO_USE: you want Grok Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output. ARGS: $1 = the prompt. Pipes are preserved. EX: [GROK_WEB]Reply with exactly GATEWAY_LIVE_OK[/GROK_WEB] TESTS: Returns the exact assistant text with substrate browser_web and provider grok. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GROK_WEB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GROK_WEB",
        "type": "fn",
        "what": [
          "WHAT: Ask Grok Web — the logged-in browser session, not the metered API — and return the exact captured answer.",
          "WHEN_TO_USE: you want Grok Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output.",
          "ARGS: $1 = the prompt. Pipes are preserved.",
          "EX: [GROK_WEB]Reply with exactly GATEWAY_LIVE_OK[/GROK_WEB]",
          "TESTS: Returns the exact assistant text with substrate browser_web and provider grok. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Reply with exactly GATEWAY_LIVE_OK",
            "desc": "the prompt. Pipes are preserved.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact captured answer.",
        "example": "[GROK_WEB]Reply with exactly GATEWAY_LIVE_OK[/GROK_WEB]",
        "tag": "[GROK_WEB]<Reply with exactly GATEWAY_LIVE_OK …>[/GROK_WEB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GROK_WEB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GROK_WEB  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"grok|$1+\"]",
      "edit": {
        "read": "GET /api/directory/GROK_WEB",
        "update": "PUT /api/directory/GROK_WEB",
        "patch": "PATCH /api/directory/GROK_WEB",
        "delete": "DELETE /api/directory/GROK_WEB",
        "invoke": "POST /api/dispatch {\"key\":\"GROK_WEB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GROK_WEB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GROK_WEB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GROK_WEB"
      },
      "examples": "[\"Reply with exactly GATEWAY_LIVE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GROK_WEB"
    },
    {
      "key": "GSHEETS_MCP_GET",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Read a range from a Google Sheet (Sheets MCP). WHEN_TO_USE: read cells as the owner. ARGS: $1 = spreadsheet id · $2 = A1 range EX: [GSHEETS_MCP_GET]1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A|DIRECTORY!A1:C3[/GSHEETS_MCP_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_MCP_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_MCP_GET",
        "type": "http",
        "what": [
          "WHAT: Read a range from a Google Sheet (Sheets MCP).",
          "WHEN_TO_USE: read cells as the owner.",
          "ARGS: $1 = spreadsheet id · $2 = A1 range",
          "EX: [GSHEETS_MCP_GET]1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A|DIRECTORY!A1:C3[/GSHEETS_MCP_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A",
            "desc": "spreadsheet id · $2 = A1 range",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "DIRECTORY!A1:C3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GSHEETS_MCP_GET]1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A|DIRECTORY!A1:C3[/GSHEETS_MCP_GET]",
        "tag": "[GSHEETS_MCP_GET]<1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A>|<DIRECTORY!A1:C3>[/GSHEETS_MCP_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_MCP_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_MCP_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"get_values\",\"arguments\":{\"spreadsheet_id\":\"$1\",\"range\":\"$2\"}}}",
      "edit": {
        "read": "GET /api/directory/GSHEETS_MCP_GET",
        "update": "PUT /api/directory/GSHEETS_MCP_GET",
        "patch": "PATCH /api/directory/GSHEETS_MCP_GET",
        "delete": "DELETE /api/directory/GSHEETS_MCP_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_MCP_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_MCP_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_MCP_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_MCP_GET"
      },
      "examples": "[\"1QrGVz07B1ZVBzxH2hNXcwhFIVHZzeM3H4apcCaTap6A|DIRECTORY!A1:C3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_MCP_GET"
    },
    {
      "key": "GSHEETS_META",
      "type": "http",
      "category": "google",
      "doc": "WHAT: A spreadsheet's title and its tabs (names, ids, sizes). WHEN_TO_USE: learn the tab names before GSHEETS_VALUES_GET. ARGS: $1 = spreadsheet id EX: [GSHEETS_META]1AbC…[/GSHEETS_META]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_META",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_META",
        "type": "http",
        "what": [
          "WHAT: A spreadsheet's title and its tabs (names, ids, sizes).",
          "WHEN_TO_USE: learn the tab names before GSHEETS_VALUES_GET.",
          "ARGS: $1 = spreadsheet id",
          "EX: [GSHEETS_META]1AbC…[/GSHEETS_META]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1AbC…",
            "desc": "spreadsheet id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GSHEETS_META]1AbC…[/GSHEETS_META]",
        "tag": "[GSHEETS_META]<1AbC…>[/GSHEETS_META]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_META\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_META  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GSHEETS_META",
        "update": "PUT /api/directory/GSHEETS_META",
        "patch": "PATCH /api/directory/GSHEETS_META",
        "delete": "DELETE /api/directory/GSHEETS_META",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_META\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_META\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_META\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_META"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_META"
    },
    {
      "key": "GSHEETS_PULL",
      "type": "fn",
      "category": "sheets",
      "doc": "WHAT: Read the DIRECTORY tab of the owner Google Sheet and apply every row the owner changed there as a PATCH /api/directory/<key> through the build write path (hygiene guards, versions, ledger). A row never pushed is never pulled. $1 = dry shows what would change without writing. WHEN_TO_USE: the owner edited the sheet; runs every few minutes by automation. ARGS: $1 = dry | (empty) EX: [GSHEETS_PULL]dry[/GSHEETS_PULL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_PULL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_PULL",
        "type": "fn",
        "what": [
          "WHAT: Read the DIRECTORY tab of the owner Google Sheet and apply every row the owner changed there as a PATCH /api/directory/<key> through the build write path (hygiene guards, versions, ledger). A row never pushed is never pulled. $1 = dry shows what would change without writing.",
          "WHEN_TO_USE: the owner edited the sheet; runs every few minutes by automation.",
          "ARGS: $1 = dry | (empty)",
          "EX: [GSHEETS_PULL]dry[/GSHEETS_PULL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "dry",
            "desc": "dry | (empty)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GSHEETS_PULL]dry[/GSHEETS_PULL]",
        "tag": "[GSHEETS_PULL]<dry>[/GSHEETS_PULL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_PULL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_PULL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GSHEETS_PULL",
        "update": "PUT /api/directory/GSHEETS_PULL",
        "patch": "PATCH /api/directory/GSHEETS_PULL",
        "delete": "DELETE /api/directory/GSHEETS_PULL",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_PULL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_PULL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_PULL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_PULL"
      },
      "examples": "[\"dry\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_PULL"
    },
    {
      "key": "GSHEETS_PUSH",
      "type": "fn",
      "category": "sheets",
      "doc": "WHAT: Write the directory (every editable column, full content) to the DIRECTORY tab of the owner Google Sheet, the agent prompts to PROMPTS, and new ledger rows to LEDGER. Only rows changed since the last push are rewritten. Rides oauth2:google:cc. WHEN_TO_USE: after directory edits on the build, or to seed the sheet. $1 = all | directory | ledger | full (rewrite every row) ARGS: $1 = what (default all) EX: [GSHEETS_PUSH]directory[/GSHEETS_PUSH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_PUSH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_PUSH",
        "type": "fn",
        "what": [
          "WHAT: Write the directory (every editable column, full content) to the DIRECTORY tab of the owner Google Sheet, the agent prompts to PROMPTS, and new ledger rows to LEDGER. Only rows changed since the last push are rewritten. Rides oauth2:google:cc.",
          "WHEN_TO_USE: after directory edits on the build, or to seed the sheet. $1 = all | directory | ledger | full (rewrite every row)",
          "ARGS: $1 = what (default all)",
          "EX: [GSHEETS_PUSH]directory[/GSHEETS_PUSH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "directory",
            "desc": "what (default all)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GSHEETS_PUSH]directory[/GSHEETS_PUSH]",
        "tag": "[GSHEETS_PUSH]<directory>[/GSHEETS_PUSH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_PUSH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_PUSH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/GSHEETS_PUSH",
        "update": "PUT /api/directory/GSHEETS_PUSH",
        "patch": "PATCH /api/directory/GSHEETS_PUSH",
        "delete": "DELETE /api/directory/GSHEETS_PUSH",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_PUSH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_PUSH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_PUSH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_PUSH"
      },
      "examples": "[\"directory\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_PUSH"
    },
    {
      "key": "GSHEETS_SYNC",
      "type": "fn",
      "category": "sheets",
      "doc": "WHAT: One tick of the two-way sync: pull owner edits from the DIRECTORY tab, push changed directory rows and prompts back, append new ledger rows. The automation runs this. WHEN_TO_USE: keep the owner Google Sheet and the directory identical. ARGS: none EX: [GSHEETS_SYNC][/GSHEETS_SYNC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_SYNC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_SYNC",
        "type": "fn",
        "what": [
          "WHAT: One tick of the two-way sync: pull owner edits from the DIRECTORY tab, push changed directory rows and prompts back, append new ledger rows. The automation runs this.",
          "WHEN_TO_USE: keep the owner Google Sheet and the directory identical.",
          "ARGS: none",
          "EX: [GSHEETS_SYNC][/GSHEETS_SYNC]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[GSHEETS_SYNC][/GSHEETS_SYNC]",
        "tag": "[GSHEETS_SYNC][/GSHEETS_SYNC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_SYNC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_SYNC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/GSHEETS_SYNC",
        "update": "PUT /api/directory/GSHEETS_SYNC",
        "patch": "PATCH /api/directory/GSHEETS_SYNC",
        "delete": "DELETE /api/directory/GSHEETS_SYNC",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_SYNC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_SYNC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_SYNC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_SYNC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_SYNC"
    },
    {
      "key": "GSHEETS_VALUES_GET",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Read a range from a Google Sheet on the OAuth grant (not the Apps Script web app). WHEN_TO_USE: read cells from a sheet the connected account can open. ARGS: $1 = spreadsheet id · $2 = A1 range, e.g. Sheet1!A1:D20 EX: [GSHEETS_VALUES_GET]1AbC…|Sheet1!A1:D20[/GSHEETS_VALUES_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GSHEETS_VALUES_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GSHEETS_VALUES_GET",
        "type": "http",
        "what": [
          "WHAT: Read a range from a Google Sheet on the OAuth grant (not the Apps Script web app).",
          "WHEN_TO_USE: read cells from a sheet the connected account can open.",
          "ARGS: $1 = spreadsheet id · $2 = A1 range, e.g. Sheet1!A1:D20",
          "EX: [GSHEETS_VALUES_GET]1AbC…|Sheet1!A1:D20[/GSHEETS_VALUES_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1AbC…",
            "desc": "spreadsheet id · $2 = A1 range, e.g. Sheet1!A1:D20",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Sheet1!A1:D20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GSHEETS_VALUES_GET]1AbC…|Sheet1!A1:D20[/GSHEETS_VALUES_GET]",
        "tag": "[GSHEETS_VALUES_GET]<1AbC…>|<Sheet1!A1:D20>[/GSHEETS_VALUES_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GSHEETS_VALUES_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GSHEETS_VALUES_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GSHEETS_VALUES_GET",
        "update": "PUT /api/directory/GSHEETS_VALUES_GET",
        "patch": "PATCH /api/directory/GSHEETS_VALUES_GET",
        "delete": "DELETE /api/directory/GSHEETS_VALUES_GET",
        "invoke": "POST /api/dispatch {\"key\":\"GSHEETS_VALUES_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GSHEETS_VALUES_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GSHEETS_VALUES_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GSHEETS_VALUES_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=GSHEETS_VALUES_GET"
    },
    {
      "key": "GTASKS_ITEMS",
      "type": "http",
      "category": "google",
      "doc": "WHAT: Open tasks in one Google Tasks list. WHEN_TO_USE: what is on the to-do list. @default is the primary list. ARGS: $1 = list id or @default EX: [GTASKS_ITEMS]@default[/GTASKS_ITEMS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GTASKS_ITEMS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GTASKS_ITEMS",
        "type": "http",
        "what": [
          "WHAT: Open tasks in one Google Tasks list.",
          "WHEN_TO_USE: what is on the to-do list. @default is the primary list.",
          "ARGS: $1 = list id or @default",
          "EX: [GTASKS_ITEMS]@default[/GTASKS_ITEMS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "@default",
            "desc": "list id or @default",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GTASKS_ITEMS]@default[/GTASKS_ITEMS]",
        "tag": "[GTASKS_ITEMS]<@default>[/GTASKS_ITEMS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GTASKS_ITEMS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GTASKS_ITEMS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GTASKS_ITEMS",
        "update": "PUT /api/directory/GTASKS_ITEMS",
        "patch": "PATCH /api/directory/GTASKS_ITEMS",
        "delete": "DELETE /api/directory/GTASKS_ITEMS",
        "invoke": "POST /api/dispatch {\"key\":\"GTASKS_ITEMS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GTASKS_ITEMS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GTASKS_ITEMS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GTASKS_ITEMS"
      },
      "examples": "[\"@default\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GTASKS_ITEMS"
    },
    {
      "key": "GTASKS_LISTS",
      "type": "http",
      "category": "google",
      "doc": "WHAT: The connected account's Google Tasks lists. WHEN_TO_USE: find a list id before reading its tasks. ARGS: none EX: [GTASKS_LISTS][/GTASKS_LISTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GTASKS_LISTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GTASKS_LISTS",
        "type": "http",
        "what": [
          "WHAT: The connected account's Google Tasks lists.",
          "WHEN_TO_USE: find a list id before reading its tasks.",
          "ARGS: none",
          "EX: [GTASKS_LISTS][/GTASKS_LISTS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GTASKS_LISTS][/GTASKS_LISTS]",
        "tag": "[GTASKS_LISTS][/GTASKS_LISTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GTASKS_LISTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GTASKS_LISTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GTASKS_LISTS",
        "update": "PUT /api/directory/GTASKS_LISTS",
        "patch": "PATCH /api/directory/GTASKS_LISTS",
        "delete": "DELETE /api/directory/GTASKS_LISTS",
        "invoke": "POST /api/dispatch {\"key\":\"GTASKS_LISTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GTASKS_LISTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GTASKS_LISTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GTASKS_LISTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GTASKS_LISTS"
    },
    {
      "key": "GWORKSPACE_SEARCH",
      "type": "http",
      "category": "google-mcp",
      "doc": "WHAT: Search across Gmail, Drive, Docs, Sheets, Calendar and Chat at once (Workspace Universal Search MCP). WHEN_TO_USE: \"where did I see X\" across Google Workspace. ARGS: $1+ = query EX: [GWORKSPACE_SEARCH]Loop Bio Labs invoice[/GWORKSPACE_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GWORKSPACE_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GWORKSPACE_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search across Gmail, Drive, Docs, Sheets, Calendar and Chat at once (Workspace Universal Search MCP).",
          "WHEN_TO_USE: \"where did I see X\" across Google Workspace.",
          "ARGS: $1+ = query",
          "EX: [GWORKSPACE_SEARCH]Loop Bio Labs invoice[/GWORKSPACE_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Loop Bio Labs invoice",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GWORKSPACE_SEARCH]Loop Bio Labs invoice[/GWORKSPACE_SEARCH]",
        "tag": "[GWORKSPACE_SEARCH]<Loop Bio Labs invoice …>[/GWORKSPACE_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GWORKSPACE_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GWORKSPACE_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_corpus\",\"arguments\":{\"query\":\"$1+\"}}}",
      "edit": {
        "read": "GET /api/directory/GWORKSPACE_SEARCH",
        "update": "PUT /api/directory/GWORKSPACE_SEARCH",
        "patch": "PATCH /api/directory/GWORKSPACE_SEARCH",
        "delete": "DELETE /api/directory/GWORKSPACE_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"GWORKSPACE_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GWORKSPACE_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GWORKSPACE_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GWORKSPACE_SEARCH"
      },
      "examples": "[\"miscsubjects\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GWORKSPACE_SEARCH"
    },
    {
      "key": "GW_DEEPSEEK",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GW_DEEPSEEK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GW_DEEPSEEK",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GW_DEEPSEEK][/GW_DEEPSEEK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GW_DEEPSEEK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GW_DEEPSEEK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GW_DEEPSEEK",
        "update": "PUT /api/directory/GW_DEEPSEEK",
        "patch": "PATCH /api/directory/GW_DEEPSEEK",
        "delete": "DELETE /api/directory/GW_DEEPSEEK",
        "invoke": "POST /api/dispatch {\"key\":\"GW_DEEPSEEK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GW_DEEPSEEK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GW_DEEPSEEK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GW_DEEPSEEK"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GW_DEEPSEEK"
    },
    {
      "key": "GW_FABLE",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GW_FABLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GW_FABLE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GW_FABLE][/GW_FABLE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GW_FABLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GW_FABLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GW_FABLE",
        "update": "PUT /api/directory/GW_FABLE",
        "patch": "PATCH /api/directory/GW_FABLE",
        "delete": "DELETE /api/directory/GW_FABLE",
        "invoke": "POST /api/dispatch {\"key\":\"GW_FABLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GW_FABLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GW_FABLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GW_FABLE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GW_FABLE"
    },
    {
      "key": "GW_LLAMA",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GW_LLAMA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GW_LLAMA",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[GW_LLAMA][/GW_LLAMA]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GW_LLAMA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GW_LLAMA  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GW_LLAMA",
        "update": "PUT /api/directory/GW_LLAMA",
        "patch": "PATCH /api/directory/GW_LLAMA",
        "delete": "DELETE /api/directory/GW_LLAMA",
        "invoke": "POST /api/dispatch {\"key\":\"GW_LLAMA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GW_LLAMA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GW_LLAMA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GW_LLAMA"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GW_LLAMA"
    },
    {
      "key": "GW_MODELS",
      "type": "http",
      "category": "llm",
      "doc": "WHAT: List every model available on the Cloudflare AI Gateway compat endpoint (162 models incl. claude-fable-5, deepseek-v4-pro). No args WHEN_TO_USE: you need to gw models ARGS: see content EX: [GW_MODELS][/GW_MODELS] List every model available on the Cloudflare AI Gateway compat endpoint (162 models incl. claude-fable-5, deepseek-v4-pro). No args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "GW_MODELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "GW_MODELS",
        "type": "http",
        "what": [
          "WHAT: List every model available on the Cloudflare AI Gateway compat endpoint (162 models incl. claude-fable-5, deepseek-v4-pro). No args",
          "WHEN_TO_USE: you need to gw models",
          "ARGS: see content",
          "EX: [GW_MODELS][/GW_MODELS]",
          "List every model available on the Cloudflare AI Gateway compat endpoint (162 models incl. claude-fable-5, deepseek-v4-pro). No args."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "CF_ACCOUNT_ID"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[GW_MODELS][/GW_MODELS]",
        "tag": "[GW_MODELS][/GW_MODELS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"GW_MODELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/GW_MODELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/GW_MODELS",
        "update": "PUT /api/directory/GW_MODELS",
        "patch": "PATCH /api/directory/GW_MODELS",
        "delete": "DELETE /api/directory/GW_MODELS",
        "invoke": "POST /api/dispatch {\"key\":\"GW_MODELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"GW_MODELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"GW_MODELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/GW_MODELS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=GW_MODELS"
    },
    {
      "key": "HISTORY_GET",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: How many past turns the build keeps per chat. No args. Returns {convo_max} WHEN_TO_USE: the owner asks \"how many messages do you remember\" ARGS: none EX: [HISTORY_GET][/HISTORY_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HISTORY_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HISTORY_GET",
        "type": "fn",
        "what": [
          "WHAT: How many past turns the build keeps per chat. No args. Returns {convo_max}",
          "WHEN_TO_USE: the owner asks \"how many messages do you remember\"",
          "ARGS: none",
          "EX: [HISTORY_GET][/HISTORY_GET]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "{convo_max}",
        "example": "[HISTORY_GET][/HISTORY_GET]",
        "tag": "[HISTORY_GET][/HISTORY_GET]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HISTORY_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HISTORY_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/HISTORY_GET",
        "update": "PUT /api/directory/HISTORY_GET",
        "patch": "PATCH /api/directory/HISTORY_GET",
        "delete": "DELETE /api/directory/HISTORY_GET",
        "invoke": "POST /api/dispatch {\"key\":\"HISTORY_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HISTORY_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HISTORY_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HISTORY_GET"
      },
      "examples": "[\"ADDTASK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=HISTORY_GET"
    },
    {
      "key": "HISTORY_SET",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Set how many past turns the build keeps per chat (1-100, default 14). Arg: the number.  Takes effect immediately for every chat WHEN_TO_USE: the owner says \"remember more/fewer messages\", \"keep the last 30\" ARGS: $1 EX: [HISTORY_SET]arg1[/HISTORY_SET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HISTORY_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HISTORY_SET",
        "type": "fn",
        "what": [
          "WHAT: Set how many past turns the build keeps per chat (1-100, default 14). Arg: the number.  Takes effect immediately for every chat",
          "WHEN_TO_USE: the owner says \"remember more/fewer messages\", \"keep the last 30\"",
          "ARGS: $1",
          "EX: [HISTORY_SET]arg1[/HISTORY_SET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[HISTORY_SET]arg1[/HISTORY_SET]",
        "tag": "[HISTORY_SET]<arg1>[/HISTORY_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HISTORY_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HISTORY_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/HISTORY_SET",
        "update": "PUT /api/directory/HISTORY_SET",
        "patch": "PATCH /api/directory/HISTORY_SET",
        "delete": "DELETE /api/directory/HISTORY_SET",
        "invoke": "POST /api/dispatch {\"key\":\"HISTORY_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HISTORY_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HISTORY_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HISTORY_SET"
      },
      "examples": "[\"25\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=HISTORY_SET"
    },
    {
      "key": "HOLD_RECORD",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Record a bond on a challenge or an escrow hold on an agreement. The card authorization is a Stripe write and moves to the card only with the owner's phrase; without it the hold is recorded and named as such. WHEN_TO_USE: a challenger stakes a bond; an agreement wants real escrow. ARGS: bond or escrow|ref_id|party|amount_usd|go ahead and hold EX: [HOLD_RECORD]bond|chg_abc|prf_x|25[/HOLD_RECORD] TESTS: Without the phrase: state recorded_offline. With it: a manual-capture payment intent id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HOLD_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HOLD_RECORD",
        "type": "fn",
        "what": [
          "WHAT: Record a bond on a challenge or an escrow hold on an agreement. The card authorization is a Stripe write and moves to the card only with the owner's phrase; without it the hold is recorded and named as such.",
          "WHEN_TO_USE: a challenger stakes a bond; an agreement wants real escrow.",
          "ARGS: bond or escrow|ref_id|party|amount_usd|go ahead and hold",
          "EX: [HOLD_RECORD]bond|chg_abc|prf_x|25[/HOLD_RECORD]",
          "TESTS: Without the phrase: state recorded_offline. With it: a manual-capture payment intent id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "bond",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[HOLD_RECORD]bond|chg_abc|prf_x|25[/HOLD_RECORD]",
        "tag": "[HOLD_RECORD]<bond …>[/HOLD_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HOLD_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HOLD_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/HOLD_RECORD",
        "update": "PUT /api/directory/HOLD_RECORD",
        "patch": "PATCH /api/directory/HOLD_RECORD",
        "delete": "DELETE /api/directory/HOLD_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"HOLD_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HOLD_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HOLD_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HOLD_RECORD"
      },
      "examples": "[\"bond|chg_abc|prf_x|25\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=HOLD_RECORD"
    },
    {
      "key": "HOME_DOOR_LOCK",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Run the Door Lock Shortcut. ARGS: none EX: [HOME_DOOR_LOCK][/HOME_DOOR_LOCK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HOME_DOOR_LOCK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HOME_DOOR_LOCK",
        "type": "http",
        "what": [
          "WHAT: Run the Door Lock Shortcut.",
          "ARGS: none",
          "EX: [HOME_DOOR_LOCK][/HOME_DOOR_LOCK]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[HOME_DOOR_LOCK][/HOME_DOOR_LOCK]",
        "tag": "[HOME_DOOR_LOCK][/HOME_DOOR_LOCK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HOME_DOOR_LOCK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HOME_DOOR_LOCK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\": \"Door Lock\"}",
      "edit": {
        "read": "GET /api/directory/HOME_DOOR_LOCK",
        "update": "PUT /api/directory/HOME_DOOR_LOCK",
        "patch": "PATCH /api/directory/HOME_DOOR_LOCK",
        "delete": "DELETE /api/directory/HOME_DOOR_LOCK",
        "invoke": "POST /api/dispatch {\"key\":\"HOME_DOOR_LOCK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HOME_DOOR_LOCK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HOME_DOOR_LOCK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HOME_DOOR_LOCK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=HOME_DOOR_LOCK"
    },
    {
      "key": "HOME_GATE_CODE",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Run the Gate code Shortcut. ARGS: none EX: [HOME_GATE_CODE][/HOME_GATE_CODE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HOME_GATE_CODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HOME_GATE_CODE",
        "type": "http",
        "what": [
          "WHAT: Run the Gate code Shortcut.",
          "ARGS: none",
          "EX: [HOME_GATE_CODE][/HOME_GATE_CODE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[HOME_GATE_CODE][/HOME_GATE_CODE]",
        "tag": "[HOME_GATE_CODE][/HOME_GATE_CODE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HOME_GATE_CODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HOME_GATE_CODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\": \"Gate code\"}",
      "edit": {
        "read": "GET /api/directory/HOME_GATE_CODE",
        "update": "PUT /api/directory/HOME_GATE_CODE",
        "patch": "PATCH /api/directory/HOME_GATE_CODE",
        "delete": "DELETE /api/directory/HOME_GATE_CODE",
        "invoke": "POST /api/dispatch {\"key\":\"HOME_GATE_CODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HOME_GATE_CODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HOME_GATE_CODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HOME_GATE_CODE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=HOME_GATE_CODE"
    },
    {
      "key": "HOME_SCENE",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Run the Home Shortcut. ARGS: none EX: [HOME_SCENE][/HOME_SCENE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HOME_SCENE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HOME_SCENE",
        "type": "http",
        "what": [
          "WHAT: Run the Home Shortcut.",
          "ARGS: none",
          "EX: [HOME_SCENE][/HOME_SCENE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[HOME_SCENE][/HOME_SCENE]",
        "tag": "[HOME_SCENE][/HOME_SCENE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HOME_SCENE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HOME_SCENE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\": \"Home\"}",
      "edit": {
        "read": "GET /api/directory/HOME_SCENE",
        "update": "PUT /api/directory/HOME_SCENE",
        "patch": "PATCH /api/directory/HOME_SCENE",
        "delete": "DELETE /api/directory/HOME_SCENE",
        "invoke": "POST /api/dispatch {\"key\":\"HOME_SCENE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HOME_SCENE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HOME_SCENE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HOME_SCENE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=HOME_SCENE"
    },
    {
      "key": "HTTP_ECHO_HEADERS",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: Echo the request headers this build sends to a provider, as httpbin sees them. A probe for connection account_selector (WT-0197): dispatch with with.account=httpbin:probe and the X-Account header appears in the answer. WHEN_TO_USE: verifying that a connection's account_selector (header, query, host, path) reaches the wire. ARGS: none EX: [HTTP_ECHO_HEADERS][/HTTP_ECHO_HEADERS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HTTP_ECHO_HEADERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HTTP_ECHO_HEADERS",
        "type": "http",
        "what": [
          "WHAT: Echo the request headers this build sends to a provider, as httpbin sees them. A probe for connection account_selector (WT-0197): dispatch with with.account=httpbin:probe and the X-Account header appears in the answer.",
          "WHEN_TO_USE: verifying that a connection's account_selector (header, query, host, path) reaches the wire.",
          "ARGS: none",
          "EX: [HTTP_ECHO_HEADERS][/HTTP_ECHO_HEADERS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[HTTP_ECHO_HEADERS][/HTTP_ECHO_HEADERS]",
        "tag": "[HTTP_ECHO_HEADERS][/HTTP_ECHO_HEADERS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HTTP_ECHO_HEADERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HTTP_ECHO_HEADERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/HTTP_ECHO_HEADERS",
        "update": "PUT /api/directory/HTTP_ECHO_HEADERS",
        "patch": "PATCH /api/directory/HTTP_ECHO_HEADERS",
        "delete": "DELETE /api/directory/HTTP_ECHO_HEADERS",
        "invoke": "POST /api/dispatch {\"key\":\"HTTP_ECHO_HEADERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HTTP_ECHO_HEADERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HTTP_ECHO_HEADERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HTTP_ECHO_HEADERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=HTTP_ECHO_HEADERS"
    },
    {
      "key": "HTTP_FETCH",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Universal HTTP fetch.  Method GET/POST/PUT/PATCH/DELETE. body is the raw request body string (empty for GET). headers_json is optional JSON header overrides. Returns 'HTTP <status>:<body first 20000 chars>'. Authorization redacted in ledger WHEN_TO_USE: you need to http fetch ARGS: method|url|body|headers_json EX: [HTTP_FETCH]arg1|arg2|arg3|arg4[/HTTP_FETCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "HTTP_FETCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "HTTP_FETCH",
        "type": "fn",
        "what": [
          "WHAT: Universal HTTP fetch.  Method GET/POST/PUT/PATCH/DELETE. body is the raw request body string (empty for GET). headers_json is optional JSON header overrides. Returns 'HTTP <status>:<body first 20000 chars>'. Authorization redacted in ledger",
          "WHEN_TO_USE: you need to http fetch",
          "ARGS: method|url|body|headers_json",
          "EX: [HTTP_FETCH]arg1|arg2|arg3|arg4[/HTTP_FETCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "'HTTP <status>:<body first 20000 chars>'. Authorization redacted in ledger",
        "example": "[HTTP_FETCH]arg1|arg2|arg3|arg4[/HTTP_FETCH]",
        "tag": "[HTTP_FETCH]<arg1>|<arg2>|<arg3>|<arg4>[/HTTP_FETCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"HTTP_FETCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/HTTP_FETCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/HTTP_FETCH",
        "update": "PUT /api/directory/HTTP_FETCH",
        "patch": "PATCH /api/directory/HTTP_FETCH",
        "delete": "DELETE /api/directory/HTTP_FETCH",
        "invoke": "POST /api/dispatch {\"key\":\"HTTP_FETCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"HTTP_FETCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"HTTP_FETCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/HTTP_FETCH"
      },
      "examples": "[\"POST|https://miscsubjects.com/api/model-index/refresh\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=HTTP_FETCH"
    },
    {
      "key": "IDEAS",
      "type": "fn",
      "category": "content-ops",
      "doc": "Grok+web-search returns ideas, publishes nothing. ARGS: ask",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IDEAS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IDEAS",
        "type": "fn",
        "what": [
          "Grok+web-search returns ideas, publishes nothing. ARGS: ask"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ideas, publishes nothing. ARGS: ask",
        "example": "[IDEAS]arg1[/IDEAS]",
        "tag": "[IDEAS]<arg1 …>[/IDEAS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IDEAS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IDEAS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/IDEAS",
        "update": "PUT /api/directory/IDEAS",
        "patch": "PATCH /api/directory/IDEAS",
        "delete": "DELETE /api/directory/IDEAS",
        "invoke": "POST /api/dispatch {\"key\":\"IDEAS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IDEAS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IDEAS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IDEAS"
      },
      "examples": "[\"MCP tools JSON schema token cost every message prompt bloat developers complaining\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IDEAS"
    },
    {
      "key": "IMESSAGE_CHATS",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: List native iMessage conversations on this Mac. ARGS: $1 = limit (default 40) EX: [IMESSAGE_CHATS]20[/IMESSAGE_CHATS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMESSAGE_CHATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMESSAGE_CHATS",
        "type": "http",
        "what": [
          "WHAT: List native iMessage conversations on this Mac.",
          "ARGS: $1 = limit (default 40)",
          "EX: [IMESSAGE_CHATS]20[/IMESSAGE_CHATS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit (default 40)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMESSAGE_CHATS]20[/IMESSAGE_CHATS]",
        "tag": "[IMESSAGE_CHATS]<20>[/IMESSAGE_CHATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMESSAGE_CHATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMESSAGE_CHATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/IMESSAGE_CHATS",
        "update": "PUT /api/directory/IMESSAGE_CHATS",
        "patch": "PATCH /api/directory/IMESSAGE_CHATS",
        "delete": "DELETE /api/directory/IMESSAGE_CHATS",
        "invoke": "POST /api/dispatch {\"key\":\"IMESSAGE_CHATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMESSAGE_CHATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMESSAGE_CHATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMESSAGE_CHATS"
      },
      "examples": "[{\"args\": \"20\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMESSAGE_CHATS"
    },
    {
      "key": "IMESSAGE_SEARCH",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Search native iMessage history on this Mac (chat.db). Returns snippets, not the database. ARGS: $1 = query, $2 = limit EX: [IMESSAGE_SEARCH]invoice|20[/IMESSAGE_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMESSAGE_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMESSAGE_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search native iMessage history on this Mac (chat.db). Returns snippets, not the database.",
          "ARGS: $1 = query, $2 = limit",
          "EX: [IMESSAGE_SEARCH]invoice|20[/IMESSAGE_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "invoice",
            "desc": "query, $2 = limit",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "snippets, not the database.",
        "example": "[IMESSAGE_SEARCH]invoice|20[/IMESSAGE_SEARCH]",
        "tag": "[IMESSAGE_SEARCH]<invoice>|<20>[/IMESSAGE_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMESSAGE_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMESSAGE_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/IMESSAGE_SEARCH",
        "update": "PUT /api/directory/IMESSAGE_SEARCH",
        "patch": "PATCH /api/directory/IMESSAGE_SEARCH",
        "delete": "DELETE /api/directory/IMESSAGE_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"IMESSAGE_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMESSAGE_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMESSAGE_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMESSAGE_SEARCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=IMESSAGE_SEARCH"
    },
    {
      "key": "IMESSAGE_SEND",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Send an iMessage as the Mac Messages.app Apple ID (native identity, not Blooio). WHEN_TO_USE: text someone as the owner's iPhone/Mac identity. ARGS: $1 = handle (phone or email), $2 = text EX: [IMESSAGE_SEND]redacted|hello[/IMESSAGE_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMESSAGE_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMESSAGE_SEND",
        "type": "http",
        "what": [
          "WHAT: Send an iMessage as the Mac Messages.app Apple ID (native identity, not Blooio).",
          "WHEN_TO_USE: text someone as the owner's iPhone/Mac identity.",
          "ARGS: $1 = handle (phone or email), $2 = text",
          "EX: [IMESSAGE_SEND]redacted|hello[/IMESSAGE_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "redacted",
            "desc": "handle (phone or email), $2 = text",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "hello",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMESSAGE_SEND]redacted|hello[/IMESSAGE_SEND]",
        "tag": "[IMESSAGE_SEND]<redacted>|<hello>[/IMESSAGE_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMESSAGE_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMESSAGE_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"to\":\"$1\",\"text\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/IMESSAGE_SEND",
        "update": "PUT /api/directory/IMESSAGE_SEND",
        "patch": "PATCH /api/directory/IMESSAGE_SEND",
        "delete": "DELETE /api/directory/IMESSAGE_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"IMESSAGE_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMESSAGE_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMESSAGE_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMESSAGE_SEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=IMESSAGE_SEND"
    },
    {
      "key": "IMESSAGE_THREAD",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Read one native iMessage thread by handle or chat_identifier. ARGS: $1 = handle, $2 = limit EX: [IMESSAGE_THREAD]redacted|20[/IMESSAGE_THREAD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMESSAGE_THREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMESSAGE_THREAD",
        "type": "http",
        "what": [
          "WHAT: Read one native iMessage thread by handle or chat_identifier.",
          "ARGS: $1 = handle, $2 = limit",
          "EX: [IMESSAGE_THREAD]redacted|20[/IMESSAGE_THREAD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "redacted",
            "desc": "handle, $2 = limit",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMESSAGE_THREAD]redacted|20[/IMESSAGE_THREAD]",
        "tag": "[IMESSAGE_THREAD]<redacted>|<20>[/IMESSAGE_THREAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMESSAGE_THREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMESSAGE_THREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/IMESSAGE_THREAD",
        "update": "PUT /api/directory/IMESSAGE_THREAD",
        "patch": "PATCH /api/directory/IMESSAGE_THREAD",
        "delete": "DELETE /api/directory/IMESSAGE_THREAD",
        "invoke": "POST /api/dispatch {\"key\":\"IMESSAGE_THREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMESSAGE_THREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMESSAGE_THREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMESSAGE_THREAD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=IMESSAGE_THREAD"
    },
    {
      "key": "IMESSAGE_WATCH",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Native iMessage watch cursor — messages with ROWID greater than $1. ARGS: $1 = since rowid, $2 = limit EX: [IMESSAGE_WATCH]677000|20[/IMESSAGE_WATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMESSAGE_WATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMESSAGE_WATCH",
        "type": "http",
        "what": [
          "WHAT: Native iMessage watch cursor — messages with ROWID greater than $1.",
          "ARGS: $1 = since rowid, $2 = limit",
          "EX: [IMESSAGE_WATCH]677000|20[/IMESSAGE_WATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "677000",
            "desc": "since rowid, $2 = limit",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMESSAGE_WATCH]677000|20[/IMESSAGE_WATCH]",
        "tag": "[IMESSAGE_WATCH]<677000>|<20>[/IMESSAGE_WATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMESSAGE_WATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMESSAGE_WATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/IMESSAGE_WATCH",
        "update": "PUT /api/directory/IMESSAGE_WATCH",
        "patch": "PATCH /api/directory/IMESSAGE_WATCH",
        "delete": "DELETE /api/directory/IMESSAGE_WATCH",
        "invoke": "POST /api/dispatch {\"key\":\"IMESSAGE_WATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMESSAGE_WATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMESSAGE_WATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMESSAGE_WATCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=IMESSAGE_WATCH"
    },
    {
      "key": "IMSG_ACCOUNT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: The iMessage account(s) signed in on the Mac and their chat counts. WHEN_TO_USE: confirm which identity a send will go out under. ARGS: none EX: [IMSG_ACCOUNT][/IMSG_ACCOUNT] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api account. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_ACCOUNT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_ACCOUNT",
        "type": "http",
        "what": [
          "WHAT: The iMessage account(s) signed in on the Mac and their chat counts.",
          "WHEN_TO_USE: confirm which identity a send will go out under.",
          "ARGS: none",
          "EX: [IMSG_ACCOUNT][/IMSG_ACCOUNT]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api account. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_ACCOUNT][/IMSG_ACCOUNT]",
        "tag": "[IMSG_ACCOUNT][/IMSG_ACCOUNT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_ACCOUNT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_ACCOUNT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"account\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_ACCOUNT",
        "update": "PUT /api/directory/IMSG_ACCOUNT",
        "patch": "PATCH /api/directory/IMSG_ACCOUNT",
        "delete": "DELETE /api/directory/IMSG_ACCOUNT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_ACCOUNT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_ACCOUNT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_ACCOUNT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_ACCOUNT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_ACCOUNT"
    },
    {
      "key": "IMSG_ACTIVITY",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Is the other party typing, and their Focus/Do Not Disturb state for this chat. WHEN_TO_USE: decide whether to wait or notify anyway. ARGS: $1 = chat id or phone/email EX: [IMSG_ACTIVITY]+14155551212[/IMSG_ACTIVITY] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api activity. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_ACTIVITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_ACTIVITY",
        "type": "http",
        "what": [
          "WHAT: Is the other party typing, and their Focus/Do Not Disturb state for this chat.",
          "WHEN_TO_USE: decide whether to wait or notify anyway.",
          "ARGS: $1 = chat id or phone/email",
          "EX: [IMSG_ACTIVITY]+14155551212[/IMSG_ACTIVITY]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api activity. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "chat id or phone/email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_ACTIVITY]+14155551212[/IMSG_ACTIVITY]",
        "tag": "[IMSG_ACTIVITY]<+14155551212>[/IMSG_ACTIVITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_ACTIVITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_ACTIVITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"activity\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_ACTIVITY",
        "update": "PUT /api/directory/IMSG_ACTIVITY",
        "patch": "PATCH /api/directory/IMSG_ACTIVITY",
        "delete": "DELETE /api/directory/IMSG_ACTIVITY",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_ACTIVITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_ACTIVITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_ACTIVITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_ACTIVITY"
      },
      "examples": "[\"+14155551212\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_ACTIVITY"
    },
    {
      "key": "IMSG_AFTER",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Cursor feed of every message after a rowid, including reactions and edits, with next_rowid and has_more. This is the poll-based inbound API: keep the cursor, call again. WHEN_TO_USE: an agent or flow wants everything that happened in Messages since it last looked. ARGS: $1 = message rowid cursor; 0 = oldest, $2 = max messages, optional, default 50 EX: [IMSG_AFTER]677270|50[/IMSG_AFTER] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api after. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_AFTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_AFTER",
        "type": "http",
        "what": [
          "WHAT: Cursor feed of every message after a rowid, including reactions and edits, with next_rowid and has_more. This is the poll-based inbound API: keep the cursor, call again.",
          "WHEN_TO_USE: an agent or flow wants everything that happened in Messages since it last looked.",
          "ARGS: $1 = message rowid cursor; 0 = oldest, $2 = max messages, optional, default 50",
          "EX: [IMSG_AFTER]677270|50[/IMSG_AFTER]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api after. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "677270",
            "desc": "message rowid cursor",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "50",
            "desc": "max messages, optional, default 50",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_AFTER]677270|50[/IMSG_AFTER]",
        "tag": "[IMSG_AFTER]<677270>|<50>[/IMSG_AFTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_AFTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_AFTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"after\", \"$1\", \"$2\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_AFTER",
        "update": "PUT /api/directory/IMSG_AFTER",
        "patch": "PATCH /api/directory/IMSG_AFTER",
        "delete": "DELETE /api/directory/IMSG_AFTER",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_AFTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_AFTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_AFTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_AFTER"
      },
      "examples": "[\"677270|50\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_AFTER"
    },
    {
      "key": "IMSG_CHATS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: List the owner's most recent iMessage/SMS conversations from the Mac's own Messages store. JSON lines: id (chat rowid), guid, name, participants, is_group, service, unread_count, last_message_at. WHEN_TO_USE: you need a chat_id for IMSG_HISTORY / IMSG_SEND_CHAT, or want to see who the owner talks to most recently. ARGS: $1 = how many recent chats, optional, default 20 EX: [IMSG_CHATS]10[/IMSG_CHATS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api chats. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_CHATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_CHATS",
        "type": "http",
        "what": [
          "WHAT: List the owner's most recent iMessage/SMS conversations from the Mac's own Messages store. JSON lines: id (chat rowid), guid, name, participants, is_group, service, unread_count, last_message_at.",
          "WHEN_TO_USE: you need a chat_id for IMSG_HISTORY / IMSG_SEND_CHAT, or want to see who the owner talks to most recently.",
          "ARGS: $1 = how many recent chats, optional, default 20",
          "EX: [IMSG_CHATS]10[/IMSG_CHATS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api chats. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "10",
            "desc": "how many recent chats, optional, default 20",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_CHATS]10[/IMSG_CHATS]",
        "tag": "[IMSG_CHATS]<10>[/IMSG_CHATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_CHATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_CHATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"chats\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_CHATS",
        "update": "PUT /api/directory/IMSG_CHATS",
        "patch": "PATCH /api/directory/IMSG_CHATS",
        "delete": "DELETE /api/directory/IMSG_CHATS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_CHATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_CHATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_CHATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_CHATS"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_CHATS"
    },
    {
      "key": "IMSG_CREATE_CHAT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Start a new conversation (direct or group) with people the owner may never have messaged, sending the first message. WHEN_TO_USE: open a thread with someone new or create a group. ARGS: $1 = space-separated phone numbers or emails, $2 = first message EX: [IMSG_CREATE_CHAT]+14155551212 +14155551213|Hi both[/IMSG_CREATE_CHAT] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api create-chat. Runs only on the Mac (its Messages, its Apple ID). NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_CREATE_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_CREATE_CHAT",
        "type": "http",
        "what": [
          "WHAT: Start a new conversation (direct or group) with people the owner may never have messaged, sending the first message.",
          "WHEN_TO_USE: open a thread with someone new or create a group.",
          "ARGS: $1 = space-separated phone numbers or emails, $2 = first message",
          "EX: [IMSG_CREATE_CHAT]+14155551212 +14155551213|Hi both[/IMSG_CREATE_CHAT]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api create-chat. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212 +14155551213",
            "desc": "space-separated phone numbers or emails, $2 = first message",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Hi both",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_CREATE_CHAT]+14155551212 +14155551213|Hi both[/IMSG_CREATE_CHAT]",
        "tag": "[IMSG_CREATE_CHAT]<+14155551212 +14155551213>|<Hi both>[/IMSG_CREATE_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_CREATE_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_CREATE_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"create-chat\", \"$1\", \"$2\"], \"timeout\": 120000}",
      "edit": {
        "read": "GET /api/directory/IMSG_CREATE_CHAT",
        "update": "PUT /api/directory/IMSG_CREATE_CHAT",
        "patch": "PATCH /api/directory/IMSG_CREATE_CHAT",
        "delete": "DELETE /api/directory/IMSG_CREATE_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_CREATE_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_CREATE_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_CREATE_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_CREATE_CHAT"
      },
      "examples": "[\"+14155551212 +14155551213|Hi both\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_CREATE_CHAT"
    },
    {
      "key": "IMSG_CURRENT_USER",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: The owner's iMessage identity (email and phone) as Messages sees it. WHEN_TO_USE: confirm the sending identity. ARGS: none EX: [IMSG_CURRENT_USER][/IMSG_CURRENT_USER] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api current-user. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_CURRENT_USER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_CURRENT_USER",
        "type": "http",
        "what": [
          "WHAT: The owner's iMessage identity (email and phone) as Messages sees it.",
          "WHEN_TO_USE: confirm the sending identity.",
          "ARGS: none",
          "EX: [IMSG_CURRENT_USER][/IMSG_CURRENT_USER]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api current-user. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_CURRENT_USER][/IMSG_CURRENT_USER]",
        "tag": "[IMSG_CURRENT_USER][/IMSG_CURRENT_USER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_CURRENT_USER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_CURRENT_USER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"current-user\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_CURRENT_USER",
        "update": "PUT /api/directory/IMSG_CURRENT_USER",
        "patch": "PATCH /api/directory/IMSG_CURRENT_USER",
        "delete": "DELETE /api/directory/IMSG_CURRENT_USER",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_CURRENT_USER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_CURRENT_USER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_CURRENT_USER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_CURRENT_USER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_CURRENT_USER"
    },
    {
      "key": "IMSG_EDIT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Edit a message the owner sent (within Apple's edit window). WHEN_TO_USE: fix a typo or a wrong number after sending. ARGS: $1 = guid of a message the owner sent, or latest, $2 = new text EX: [IMSG_EDIT]latest|Sounds good, 3pm[/IMSG_EDIT] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api edit. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_EDIT",
        "type": "http",
        "what": [
          "WHAT: Edit a message the owner sent (within Apple's edit window).",
          "WHEN_TO_USE: fix a typo or a wrong number after sending.",
          "ARGS: $1 = guid of a message the owner sent, or latest, $2 = new text",
          "EX: [IMSG_EDIT]latest|Sounds good, 3pm[/IMSG_EDIT]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api edit. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest",
            "desc": "guid of a message the owner sent, or latest, $2 = new text",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Sounds good, 3pm",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_EDIT]latest|Sounds good, 3pm[/IMSG_EDIT]",
        "tag": "[IMSG_EDIT]<latest>|<Sounds good, 3pm>[/IMSG_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"edit\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_EDIT",
        "update": "PUT /api/directory/IMSG_EDIT",
        "patch": "PATCH /api/directory/IMSG_EDIT",
        "delete": "DELETE /api/directory/IMSG_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_EDIT"
      },
      "examples": "[\"latest|Sounds good, 3pm\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_EDIT"
    },
    {
      "key": "IMSG_GROUP",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Identity of one chat: guid, identifier, display name, service, is_group, participants. WHEN_TO_USE: you have a chat_id and need its guid or participants. ARGS: $1 = chat rowid EX: [IMSG_GROUP]2807[/IMSG_GROUP] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api group. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_GROUP",
        "type": "http",
        "what": [
          "WHAT: Identity of one chat: guid, identifier, display name, service, is_group, participants.",
          "WHEN_TO_USE: you have a chat_id and need its guid or participants.",
          "ARGS: $1 = chat rowid",
          "EX: [IMSG_GROUP]2807[/IMSG_GROUP]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api group. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2807",
            "desc": "chat rowid",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_GROUP]2807[/IMSG_GROUP]",
        "tag": "[IMSG_GROUP]<2807>[/IMSG_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"group\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_GROUP",
        "update": "PUT /api/directory/IMSG_GROUP",
        "patch": "PATCH /api/directory/IMSG_GROUP",
        "delete": "DELETE /api/directory/IMSG_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_GROUP"
      },
      "examples": "[\"2807\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_GROUP"
    },
    {
      "key": "IMSG_HISTORY",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Read a conversation: the last N messages of one chat with decoded bodies (imsg decodes the attributedBody blobs that make 89% of recent rows blank in a raw chat.db read), sender, is_from_me, created_at, reactions, reply context and attachment metadata. WHEN_TO_USE: read what was said in a thread before replying, summarising or extracting. ARGS: $1 = chat rowid from IMSG_CHATS, $2 = messages to return, optional, default 30 EX: [IMSG_HISTORY]2803|20[/IMSG_HISTORY] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api history. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_HISTORY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_HISTORY",
        "type": "http",
        "what": [
          "WHAT: Read a conversation: the last N messages of one chat with decoded bodies (imsg decodes the attributedBody blobs that make 89% of recent rows blank in a raw chat.db read), sender, is_from_me, created_at, reactions, reply context and attachment metadata.",
          "WHEN_TO_USE: read what was said in a thread before replying, summarising or extracting.",
          "ARGS: $1 = chat rowid from IMSG_CHATS, $2 = messages to return, optional, default 30",
          "EX: [IMSG_HISTORY]2803|20[/IMSG_HISTORY]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api history. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2803",
            "desc": "chat rowid from IMSG_CHATS, $2 = messages to return, optional, default 30",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_HISTORY]2803|20[/IMSG_HISTORY]",
        "tag": "[IMSG_HISTORY]<2803>|<20>[/IMSG_HISTORY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_HISTORY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_HISTORY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"history\", \"$1\", \"$2\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_HISTORY",
        "update": "PUT /api/directory/IMSG_HISTORY",
        "patch": "PATCH /api/directory/IMSG_HISTORY",
        "delete": "DELETE /api/directory/IMSG_HISTORY",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_HISTORY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_HISTORY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_HISTORY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_HISTORY"
      },
      "examples": "[\"2803|20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_HISTORY"
    },
    {
      "key": "IMSG_IDENTITIES",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Every messaging identity the build can send from: owner main (imsg on the Mac), Pepper/ButterCup (Blooio numbers), bridged networks via the Matrix bus. Multi-number recipe: one Apple ID per macOS user account, one iPhone SIM per phone handle; each extra identity runs its own bridge executor on its own port. ARGS: none. EX: [IMSG_IDENTITIES][/IMSG_IDENTITIES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_IDENTITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_IDENTITIES",
        "type": "flow",
        "what": [
          "WHAT: Every messaging identity the build can send from: owner main (imsg on the Mac), Pepper/ButterCup (Blooio numbers), bridged networks via the Matrix bus. Multi-number recipe: one Apple ID per macOS user account, one iPhone SIM per phone handle; each extra identity runs its own bridge executor on its own port. ARGS: none. EX: [IMSG_IDENTITIES][/IMSG_IDENTITIES]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[IMSG_IDENTITIES][/IMSG_IDENTITIES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_IDENTITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_IDENTITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/IMSG_IDENTITIES",
        "update": "PUT /api/directory/IMSG_IDENTITIES",
        "patch": "PATCH /api/directory/IMSG_IDENTITIES",
        "delete": "DELETE /api/directory/IMSG_IDENTITIES",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_IDENTITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_IDENTITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_IDENTITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_IDENTITIES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_IDENTITIES"
    },
    {
      "key": "IMSG_INBOX",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Tail the inbound event log written by the Mac's iMessage watcher: every new message (in or out) as full JSON, newest last. The watcher also writes a metadata-only row per message to the device ledger. WHEN_TO_USE: what just came in, without polling chat.db. ARGS: $1 = how many latest events, optional, default 20 EX: [IMSG_INBOX]20[/IMSG_INBOX] EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api inbox-tail. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_INBOX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_INBOX",
        "type": "http",
        "what": [
          "WHAT: Tail the inbound event log written by the Mac's iMessage watcher: every new message (in or out) as full JSON, newest last. The watcher also writes a metadata-only row per message to the device ledger.",
          "WHEN_TO_USE: what just came in, without polling chat.db.",
          "ARGS: $1 = how many latest events, optional, default 20",
          "EX: [IMSG_INBOX]20[/IMSG_INBOX]",
          "EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api inbox-tail. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "how many latest events, optional, default 20",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_INBOX]20[/IMSG_INBOX]",
        "tag": "[IMSG_INBOX]<20>[/IMSG_INBOX]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_INBOX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_INBOX  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"inbox-tail\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_INBOX",
        "update": "PUT /api/directory/IMSG_INBOX",
        "patch": "PATCH /api/directory/IMSG_INBOX",
        "delete": "DELETE /api/directory/IMSG_INBOX",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_INBOX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_INBOX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_INBOX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_INBOX"
      },
      "examples": "[\"20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_INBOX"
    },
    {
      "key": "IMSG_INBOX_SINCE",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Every watched message created after a timestamp, full JSON. WHEN_TO_USE: catch up a flow or agent on everything since it last ran. ARGS: $1 = ISO-8601 timestamp, e.g. 2026-09-08T19:00:00Z EX: [IMSG_INBOX_SINCE]2026-09-08T19:00:00Z[/IMSG_INBOX_SINCE] EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api inbox-since. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_INBOX_SINCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_INBOX_SINCE",
        "type": "http",
        "what": [
          "WHAT: Every watched message created after a timestamp, full JSON.",
          "WHEN_TO_USE: catch up a flow or agent on everything since it last ran.",
          "ARGS: $1 = ISO-8601 timestamp, e.g. 2026-09-08T19:00:00Z",
          "EX: [IMSG_INBOX_SINCE]2026-09-08T19:00:00Z[/IMSG_INBOX_SINCE]",
          "EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api inbox-since. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2026-09-08T19:00:00Z",
            "desc": "ISO-8601 timestamp, e.g. 2026-09-08T19:00:00Z",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_INBOX_SINCE]2026-09-08T19:00:00Z[/IMSG_INBOX_SINCE]",
        "tag": "[IMSG_INBOX_SINCE]<2026-09-08T19:00:00Z>[/IMSG_INBOX_SINCE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_INBOX_SINCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_INBOX_SINCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"inbox-since\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_INBOX_SINCE",
        "update": "PUT /api/directory/IMSG_INBOX_SINCE",
        "patch": "PATCH /api/directory/IMSG_INBOX_SINCE",
        "delete": "DELETE /api/directory/IMSG_INBOX_SINCE",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_INBOX_SINCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_INBOX_SINCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_INBOX_SINCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_INBOX_SINCE"
      },
      "examples": "[\"2026-09-08T19:00:00Z\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_INBOX_SINCE"
    },
    {
      "key": "IMSG_LOAD_ATTACHMENT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Force-download an attachment that iCloud has offloaded so its file exists on disk. WHEN_TO_USE: an attachment path from IMSG_HISTORY is missing. ARGS: $1 = message guid or latest-N EX: [IMSG_LOAD_ATTACHMENT]latest-1[/IMSG_LOAD_ATTACHMENT] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api load-attachment. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_LOAD_ATTACHMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_LOAD_ATTACHMENT",
        "type": "http",
        "what": [
          "WHAT: Force-download an attachment that iCloud has offloaded so its file exists on disk.",
          "WHEN_TO_USE: an attachment path from IMSG_HISTORY is missing.",
          "ARGS: $1 = message guid or latest-N",
          "EX: [IMSG_LOAD_ATTACHMENT]latest-1[/IMSG_LOAD_ATTACHMENT]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api load-attachment. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest-1",
            "desc": "message guid or latest-N",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_LOAD_ATTACHMENT]latest-1[/IMSG_LOAD_ATTACHMENT]",
        "tag": "[IMSG_LOAD_ATTACHMENT]<latest-1>[/IMSG_LOAD_ATTACHMENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_LOAD_ATTACHMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_LOAD_ATTACHMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"load-attachment\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_LOAD_ATTACHMENT",
        "update": "PUT /api/directory/IMSG_LOAD_ATTACHMENT",
        "patch": "PATCH /api/directory/IMSG_LOAD_ATTACHMENT",
        "delete": "DELETE /api/directory/IMSG_LOAD_ATTACHMENT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_LOAD_ATTACHMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_LOAD_ATTACHMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_LOAD_ATTACHMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_LOAD_ATTACHMENT"
      },
      "examples": "[\"latest-1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_LOAD_ATTACHMENT"
    },
    {
      "key": "IMSG_MARK_READ",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Mark a chat as read (sends the read receipt if enabled). WHEN_TO_USE: clear a thread after handling it. ARGS: $1 = chat id or phone/email EX: [IMSG_MARK_READ]+14155551212[/IMSG_MARK_READ] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api mark-read. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_MARK_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_MARK_READ",
        "type": "http",
        "what": [
          "WHAT: Mark a chat as read (sends the read receipt if enabled).",
          "WHEN_TO_USE: clear a thread after handling it.",
          "ARGS: $1 = chat id or phone/email",
          "EX: [IMSG_MARK_READ]+14155551212[/IMSG_MARK_READ]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api mark-read. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "chat id or phone/email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_MARK_READ]+14155551212[/IMSG_MARK_READ]",
        "tag": "[IMSG_MARK_READ]<+14155551212>[/IMSG_MARK_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_MARK_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_MARK_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"mark-read\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_MARK_READ",
        "update": "PUT /api/directory/IMSG_MARK_READ",
        "patch": "PATCH /api/directory/IMSG_MARK_READ",
        "delete": "DELETE /api/directory/IMSG_MARK_READ",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_MARK_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_MARK_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_MARK_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_MARK_READ"
      },
      "examples": "[\"+14155551212\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_MARK_READ"
    },
    {
      "key": "IMSG_MARK_UNREAD",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Mark a chat as unread so it surfaces again for the owner. WHEN_TO_USE: leave something for the owner to see. ARGS: $1 = chat id or phone/email EX: [IMSG_MARK_UNREAD]+14155551212[/IMSG_MARK_UNREAD] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api mark-unread. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_MARK_UNREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_MARK_UNREAD",
        "type": "http",
        "what": [
          "WHAT: Mark a chat as unread so it surfaces again for the owner.",
          "WHEN_TO_USE: leave something for the owner to see.",
          "ARGS: $1 = chat id or phone/email",
          "EX: [IMSG_MARK_UNREAD]+14155551212[/IMSG_MARK_UNREAD]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api mark-unread. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "chat id or phone/email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_MARK_UNREAD]+14155551212[/IMSG_MARK_UNREAD]",
        "tag": "[IMSG_MARK_UNREAD]<+14155551212>[/IMSG_MARK_UNREAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_MARK_UNREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_MARK_UNREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"mark-unread\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_MARK_UNREAD",
        "update": "PUT /api/directory/IMSG_MARK_UNREAD",
        "patch": "PATCH /api/directory/IMSG_MARK_UNREAD",
        "delete": "DELETE /api/directory/IMSG_MARK_UNREAD",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_MARK_UNREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_MARK_UNREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_MARK_UNREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_MARK_UNREAD"
      },
      "examples": "[\"+14155551212\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_MARK_UNREAD"
    },
    {
      "key": "IMSG_MESSAGE",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Fetch one message by id with its full metadata. WHEN_TO_USE: inspect a single message. ARGS: $1 = message guid EX: [IMSG_MESSAGE]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_MESSAGE] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api message. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_MESSAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_MESSAGE",
        "type": "http",
        "what": [
          "WHAT: Fetch one message by id with its full metadata.",
          "WHEN_TO_USE: inspect a single message.",
          "ARGS: $1 = message guid",
          "EX: [IMSG_MESSAGE]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_MESSAGE]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api message. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "63BBA90F-1238-4A76-807C-24C1FCB46FE0",
            "desc": "message guid",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_MESSAGE]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_MESSAGE]",
        "tag": "[IMSG_MESSAGE]<63BBA90F-1238-4A76-807C-24C1FCB46FE0>[/IMSG_MESSAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_MESSAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_MESSAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"message\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_MESSAGE",
        "update": "PUT /api/directory/IMSG_MESSAGE",
        "patch": "PATCH /api/directory/IMSG_MESSAGE",
        "delete": "DELETE /api/directory/IMSG_MESSAGE",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_MESSAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_MESSAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_MESSAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_MESSAGE"
      },
      "examples": "[\"63BBA90F-1238-4A76-807C-24C1FCB46FE0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_MESSAGE"
    },
    {
      "key": "IMSG_MESSAGES",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: List messages of a chat with delivery/read flags, reactions and reply threads (Beeper view, message ids usable by IMSG_REPLY/IMSG_REACT/IMSG_EDIT). WHEN_TO_USE: you need message ids to act on specific messages. ARGS: $1 = chat id like any;-;+14155551212, or a bare phone/email EX: [IMSG_MESSAGES]+14155551212[/IMSG_MESSAGES] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api messages. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_MESSAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_MESSAGES",
        "type": "http",
        "what": [
          "WHAT: List messages of a chat with delivery/read flags, reactions and reply threads (Beeper view, message ids usable by IMSG_REPLY/IMSG_REACT/IMSG_EDIT).",
          "WHEN_TO_USE: you need message ids to act on specific messages.",
          "ARGS: $1 = chat id like any;-;+14155551212, or a bare phone/email",
          "EX: [IMSG_MESSAGES]+14155551212[/IMSG_MESSAGES]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api messages. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "chat id like any",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_MESSAGES]+14155551212[/IMSG_MESSAGES]",
        "tag": "[IMSG_MESSAGES]<+14155551212>[/IMSG_MESSAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_MESSAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_MESSAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"messages\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_MESSAGES",
        "update": "PUT /api/directory/IMSG_MESSAGES",
        "patch": "PATCH /api/directory/IMSG_MESSAGES",
        "delete": "DELETE /api/directory/IMSG_MESSAGES",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_MESSAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_MESSAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_MESSAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_MESSAGES"
      },
      "examples": "[\"+14155551212\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_MESSAGES"
    },
    {
      "key": "IMSG_REACT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Add a tapback or emoji reaction to any message by id. WHEN_TO_USE: react to a specific message, not just the latest. ARGS: $1 = message guid, or latest / latest-N, $2 = heart|like|dislike|laugh|emphasize|question or any emoji EX: [IMSG_REACT]latest-1|heart[/IMSG_REACT] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api react. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_REACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_REACT",
        "type": "http",
        "what": [
          "WHAT: Add a tapback or emoji reaction to any message by id.",
          "WHEN_TO_USE: react to a specific message, not just the latest.",
          "ARGS: $1 = message guid, or latest / latest-N, $2 = heart|like|dislike|laugh|emphasize|question or any emoji",
          "EX: [IMSG_REACT]latest-1|heart[/IMSG_REACT]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api react. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest-1",
            "desc": "message guid, or latest / latest-N, $2 = heart|like|dislike|laugh|emphasize|question or any emoji",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "heart",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_REACT]latest-1|heart[/IMSG_REACT]",
        "tag": "[IMSG_REACT]<latest-1>|<heart>[/IMSG_REACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_REACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_REACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"react\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_REACT",
        "update": "PUT /api/directory/IMSG_REACT",
        "patch": "PATCH /api/directory/IMSG_REACT",
        "delete": "DELETE /api/directory/IMSG_REACT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_REACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_REACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_REACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_REACT"
      },
      "examples": "[\"latest-1|heart\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_REACT"
    },
    {
      "key": "IMSG_REACT_LATEST",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Tapback on the most recent incoming message of a chat (imsg, UI-verified). WHEN_TO_USE: acknowledge the last message without words. ARGS: $1 = chat rowid, $2 = love|like|dislike|laugh|emphasis|question EX: [IMSG_REACT_LATEST]2803|like[/IMSG_REACT_LATEST] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api react-latest. Runs only on the Mac (its Messages, its Apple ID). NOTE: Only the latest incoming message. For any message by id use IMSG_REACT.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_REACT_LATEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_REACT_LATEST",
        "type": "http",
        "what": [
          "WHAT: Tapback on the most recent incoming message of a chat (imsg, UI-verified).",
          "WHEN_TO_USE: acknowledge the last message without words.",
          "ARGS: $1 = chat rowid, $2 = love|like|dislike|laugh|emphasis|question",
          "EX: [IMSG_REACT_LATEST]2803|like[/IMSG_REACT_LATEST]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api react-latest. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Only the latest incoming message. For any message by id use IMSG_REACT."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2803",
            "desc": "chat rowid, $2 = love|like|dislike|laugh|emphasis|question",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "like",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_REACT_LATEST]2803|like[/IMSG_REACT_LATEST]",
        "tag": "[IMSG_REACT_LATEST]<2803>|<like>[/IMSG_REACT_LATEST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_REACT_LATEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_REACT_LATEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"react-latest\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_REACT_LATEST",
        "update": "PUT /api/directory/IMSG_REACT_LATEST",
        "patch": "PATCH /api/directory/IMSG_REACT_LATEST",
        "delete": "DELETE /api/directory/IMSG_REACT_LATEST",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_REACT_LATEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_REACT_LATEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_REACT_LATEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_REACT_LATEST"
      },
      "examples": "[\"2803|like\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_REACT_LATEST"
    },
    {
      "key": "IMSG_REPLY",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Reply to a specific message as a threaded (quoted) reply. WHEN_TO_USE: answer one message in a busy thread. ARGS: $1 = message guid, or latest / latest-N, $2 = reply body EX: [IMSG_REPLY]latest|Sounds good[/IMSG_REPLY] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api reply. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_REPLY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_REPLY",
        "type": "http",
        "what": [
          "WHAT: Reply to a specific message as a threaded (quoted) reply.",
          "WHEN_TO_USE: answer one message in a busy thread.",
          "ARGS: $1 = message guid, or latest / latest-N, $2 = reply body",
          "EX: [IMSG_REPLY]latest|Sounds good[/IMSG_REPLY]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api reply. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest",
            "desc": "message guid, or latest / latest-N, $2 = reply body",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Sounds good",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_REPLY]latest|Sounds good[/IMSG_REPLY]",
        "tag": "[IMSG_REPLY]<latest>|<Sounds good>[/IMSG_REPLY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_REPLY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_REPLY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"reply\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_REPLY",
        "update": "PUT /api/directory/IMSG_REPLY",
        "patch": "PATCH /api/directory/IMSG_REPLY",
        "delete": "DELETE /api/directory/IMSG_REPLY",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_REPLY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_REPLY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_REPLY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_REPLY"
      },
      "examples": "[\"latest|Sounds good\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_REPLY"
    },
    {
      "key": "IMSG_SCHEDULED",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Messages the owner scheduled with Send Later that have not gone out yet (read-only). WHEN_TO_USE: what is queued to send. ARGS: $1 = max rows, optional, default 20 EX: [IMSG_SCHEDULED]20[/IMSG_SCHEDULED] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api scheduled. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SCHEDULED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SCHEDULED",
        "type": "http",
        "what": [
          "WHAT: Messages the owner scheduled with Send Later that have not gone out yet (read-only).",
          "WHEN_TO_USE: what is queued to send.",
          "ARGS: $1 = max rows, optional, default 20",
          "EX: [IMSG_SCHEDULED]20[/IMSG_SCHEDULED]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api scheduled. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "max rows, optional, default 20",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_SCHEDULED]20[/IMSG_SCHEDULED]",
        "tag": "[IMSG_SCHEDULED]<20>[/IMSG_SCHEDULED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SCHEDULED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SCHEDULED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"scheduled\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SCHEDULED",
        "update": "PUT /api/directory/IMSG_SCHEDULED",
        "patch": "PATCH /api/directory/IMSG_SCHEDULED",
        "delete": "DELETE /api/directory/IMSG_SCHEDULED",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SCHEDULED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SCHEDULED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SCHEDULED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SCHEDULED"
      },
      "examples": "[\"20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SCHEDULED"
    },
    {
      "key": "IMSG_SEARCH",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Search the owner's entire iMessage/SMS history (673k messages) by text. JSON lines with chat_id, chat_guid, sender, text, created_at, is_from_me, attachments. WHEN_TO_USE: find a message, link, code or conversation by what was said. ARGS: $1 = text to find, $2 = max results, optional, default 20 EX: [IMSG_SEARCH]invoice|10[/IMSG_SEARCH] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api search. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search the owner's entire iMessage/SMS history (673k messages) by text. JSON lines with chat_id, chat_guid, sender, text, created_at, is_from_me, attachments.",
          "WHEN_TO_USE: find a message, link, code or conversation by what was said.",
          "ARGS: $1 = text to find, $2 = max results, optional, default 20",
          "EX: [IMSG_SEARCH]invoice|10[/IMSG_SEARCH]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api search. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "invoice",
            "desc": "text to find, $2 = max results, optional, default 20",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "10",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_SEARCH]invoice|10[/IMSG_SEARCH]",
        "tag": "[IMSG_SEARCH]<invoice>|<10>[/IMSG_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"search\", \"$1\", \"$2\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SEARCH",
        "update": "PUT /api/directory/IMSG_SEARCH",
        "patch": "PATCH /api/directory/IMSG_SEARCH",
        "delete": "DELETE /api/directory/IMSG_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SEARCH"
      },
      "examples": "[\"invoice|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SEARCH"
    },
    {
      "key": "IMSG_SEND",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Send a text message from the owner's own Apple identity to a phone number or email. Returns the new message id and guid; check IMSG_SEND_STATUS for delivery. WHEN_TO_USE: the owner asked to text someone, or a flow reached its 'notify by text' step. ARGS: $1 = phone number in E.164 or email, $2 = message body, $3 = imessage|sms|auto, optional, default auto EX: [IMSG_SEND]+14155551212|On my way[/IMSG_SEND] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send. Runs only on the Mac (its Messages, its Apple ID). NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SEND",
        "type": "http",
        "what": [
          "WHAT: Send a text message from the owner's own Apple identity to a phone number or email. Returns the new message id and guid; check IMSG_SEND_STATUS for delivery.",
          "WHEN_TO_USE: the owner asked to text someone, or a flow reached its 'notify by text' step.",
          "ARGS: $1 = phone number in E.164 or email, $2 = message body, $3 = imessage|sms|auto, optional, default auto",
          "EX: [IMSG_SEND]+14155551212|On my way[/IMSG_SEND]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "phone number in E.164 or email, $2 = message body, $3 = imessage|sms|auto, optional, default auto",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "On my way",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "the new message id and guid; check IMSG_SEND_STATUS for delivery.",
        "example": "[IMSG_SEND]+14155551212|On my way[/IMSG_SEND]",
        "tag": "[IMSG_SEND]<+14155551212>|<On my way>|<arg3>[/IMSG_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"send\", \"$1\", \"$2\", \"$3\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SEND",
        "update": "PUT /api/directory/IMSG_SEND",
        "patch": "PATCH /api/directory/IMSG_SEND",
        "delete": "DELETE /api/directory/IMSG_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SEND"
      },
      "examples": "[\"+14155551212|On my way\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SEND"
    },
    {
      "key": "IMSG_SEND_CHAT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Send a text into an existing conversation (direct or group) by chat rowid. WHEN_TO_USE: reply inside a known thread or a group chat. ARGS: $1 = chat rowid from IMSG_CHATS, $2 = message body EX: [IMSG_SEND_CHAT]2807|Running 10 minutes late[/IMSG_SEND_CHAT] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-chat. Runs only on the Mac (its Messages, its Apple ID). NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SEND_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SEND_CHAT",
        "type": "http",
        "what": [
          "WHAT: Send a text into an existing conversation (direct or group) by chat rowid.",
          "WHEN_TO_USE: reply inside a known thread or a group chat.",
          "ARGS: $1 = chat rowid from IMSG_CHATS, $2 = message body",
          "EX: [IMSG_SEND_CHAT]2807|Running 10 minutes late[/IMSG_SEND_CHAT]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-chat. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2807",
            "desc": "chat rowid from IMSG_CHATS, $2 = message body",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Running 10 minutes late",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_SEND_CHAT]2807|Running 10 minutes late[/IMSG_SEND_CHAT]",
        "tag": "[IMSG_SEND_CHAT]<2807>|<Running 10 minutes late>[/IMSG_SEND_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SEND_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SEND_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"send-chat\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SEND_CHAT",
        "update": "PUT /api/directory/IMSG_SEND_CHAT",
        "patch": "PATCH /api/directory/IMSG_SEND_CHAT",
        "delete": "DELETE /api/directory/IMSG_SEND_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SEND_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SEND_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SEND_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SEND_CHAT"
      },
      "examples": "[\"2807|Running 10 minutes late\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SEND_CHAT"
    },
    {
      "key": "IMSG_SEND_FILE",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Send a file (image, PDF, audio as voice message) to a recipient from the owner's identity. WHEN_TO_USE: deliver an artifact by iMessage. ARGS: $1 = phone number or email, $2 = absolute file path on the Mac, $3 = caption, optional EX: [IMSG_SEND_FILE]+14155551212|/tmp/report.pdf|Here is the report[/IMSG_SEND_FILE] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-file. Runs only on the Mac (its Messages, its Apple ID). NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SEND_FILE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SEND_FILE",
        "type": "http",
        "what": [
          "WHAT: Send a file (image, PDF, audio as voice message) to a recipient from the owner's identity.",
          "WHEN_TO_USE: deliver an artifact by iMessage.",
          "ARGS: $1 = phone number or email, $2 = absolute file path on the Mac, $3 = caption, optional",
          "EX: [IMSG_SEND_FILE]+14155551212|/tmp/report.pdf|Here is the report[/IMSG_SEND_FILE]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-file. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Sends through Messages.app by AppleScript under the owner's own Apple ID. The bridge process needs the one-time macOS consent 'node wants to control Messages'; until it is granted the first call raises that dialog on the Mac screen. Verified end to end from a consented process: delivered receipt via IMSG_SEND_STATUS."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "phone number or email, $2 = absolute file path on the Mac, $3 = caption, optional",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "/tmp/report.pdf",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "Here is the report",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_SEND_FILE]+14155551212|/tmp/report.pdf|Here is the report[/IMSG_SEND_FILE]",
        "tag": "[IMSG_SEND_FILE]<+14155551212>|</tmp/report.pdf>|<Here is the report>[/IMSG_SEND_FILE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SEND_FILE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SEND_FILE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"send-file\", \"$1\", \"$2\", \"$3\"], \"timeout\": 120000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SEND_FILE",
        "update": "PUT /api/directory/IMSG_SEND_FILE",
        "patch": "PATCH /api/directory/IMSG_SEND_FILE",
        "delete": "DELETE /api/directory/IMSG_SEND_FILE",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SEND_FILE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SEND_FILE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SEND_FILE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SEND_FILE"
      },
      "examples": "[\"+14155551212|/tmp/report.pdf|Here is the report\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SEND_FILE"
    },
    {
      "key": "IMSG_SEND_STATUS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Delivery state of a sent message: send_state (sent/delivered/read), delivered_at, date_read, error. WHEN_TO_USE: prove a send landed before claiming it did. ARGS: $1 = message guid returned by IMSG_SEND EX: [IMSG_SEND_STATUS]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_SEND_STATUS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-status. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_SEND_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_SEND_STATUS",
        "type": "http",
        "what": [
          "WHAT: Delivery state of a sent message: send_state (sent/delivered/read), delivered_at, date_read, error.",
          "WHEN_TO_USE: prove a send landed before claiming it did.",
          "ARGS: $1 = message guid returned by IMSG_SEND",
          "EX: [IMSG_SEND_STATUS]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_SEND_STATUS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api send-status. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "63BBA90F-1238-4A76-807C-24C1FCB46FE0",
            "desc": "message guid returned by IMSG_SEND",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_SEND_STATUS]63BBA90F-1238-4A76-807C-24C1FCB46FE0[/IMSG_SEND_STATUS]",
        "tag": "[IMSG_SEND_STATUS]<63BBA90F-1238-4A76-807C-24C1FCB46FE0>[/IMSG_SEND_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_SEND_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_SEND_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"send-status\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_SEND_STATUS",
        "update": "PUT /api/directory/IMSG_SEND_STATUS",
        "patch": "PATCH /api/directory/IMSG_SEND_STATUS",
        "delete": "DELETE /api/directory/IMSG_SEND_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_SEND_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_SEND_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_SEND_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_SEND_STATUS"
      },
      "examples": "[\"63BBA90F-1238-4A76-807C-24C1FCB46FE0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_SEND_STATUS"
    },
    {
      "key": "IMSG_STATS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Aggregate message statistics: totals by service, by chat, by sender, by date; media counts. WHEN_TO_USE: how much does the owner message, with whom, how often. ARGS: $1 = chat rowid, optional; empty = whole account EX: [IMSG_STATS]2803[/IMSG_STATS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api stats. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_STATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_STATS",
        "type": "http",
        "what": [
          "WHAT: Aggregate message statistics: totals by service, by chat, by sender, by date; media counts.",
          "WHEN_TO_USE: how much does the owner message, with whom, how often.",
          "ARGS: $1 = chat rowid, optional; empty = whole account",
          "EX: [IMSG_STATS]2803[/IMSG_STATS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api stats. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2803",
            "desc": "chat rowid, optional",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_STATS]2803[/IMSG_STATS]",
        "tag": "[IMSG_STATS]<2803>[/IMSG_STATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_STATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_STATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"stats\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_STATS",
        "update": "PUT /api/directory/IMSG_STATS",
        "patch": "PATCH /api/directory/IMSG_STATS",
        "delete": "DELETE /api/directory/IMSG_STATS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_STATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_STATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_STATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_STATS"
      },
      "examples": "[\"2803\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_STATS"
    },
    {
      "key": "IMSG_STATUS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Health of the iMessage executor: imsg version, database ready, features (reactions, scheduled, unread), SIP state, which RPC methods are live. WHEN_TO_USE: diagnose before blaming a send or read. ARGS: none EX: [IMSG_STATUS][/IMSG_STATUS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api status. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_STATUS",
        "type": "http",
        "what": [
          "WHAT: Health of the iMessage executor: imsg version, database ready, features (reactions, scheduled, unread), SIP state, which RPC methods are live.",
          "WHEN_TO_USE: diagnose before blaming a send or read.",
          "ARGS: none",
          "EX: [IMSG_STATUS][/IMSG_STATUS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api status. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_STATUS][/IMSG_STATUS]",
        "tag": "[IMSG_STATUS][/IMSG_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"status\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_STATUS",
        "update": "PUT /api/directory/IMSG_STATUS",
        "patch": "PATCH /api/directory/IMSG_STATUS",
        "delete": "DELETE /api/directory/IMSG_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_STATUS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_STATUS"
    },
    {
      "key": "IMSG_TYPING",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Show or clear the typing indicator in a chat. WHEN_TO_USE: signal that a reply is coming while a longer step runs. ARGS: $1 = chat id or phone/email, $2 = on|off, optional, default on EX: [IMSG_TYPING]+14155551212|on[/IMSG_TYPING] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api typing. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_TYPING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_TYPING",
        "type": "http",
        "what": [
          "WHAT: Show or clear the typing indicator in a chat.",
          "WHEN_TO_USE: signal that a reply is coming while a longer step runs.",
          "ARGS: $1 = chat id or phone/email, $2 = on|off, optional, default on",
          "EX: [IMSG_TYPING]+14155551212|on[/IMSG_TYPING]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api typing. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "chat id or phone/email, $2 = on|off, optional, default on",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "on",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_TYPING]+14155551212|on[/IMSG_TYPING]",
        "tag": "[IMSG_TYPING]<+14155551212>|<on>[/IMSG_TYPING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_TYPING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_TYPING  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"typing\", \"$1\", \"$2\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_TYPING",
        "update": "PUT /api/directory/IMSG_TYPING",
        "patch": "PATCH /api/directory/IMSG_TYPING",
        "delete": "DELETE /api/directory/IMSG_TYPING",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_TYPING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_TYPING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_TYPING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_TYPING"
      },
      "examples": "[\"+14155551212|on\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_TYPING"
    },
    {
      "key": "IMSG_UNREACT",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Remove a reaction from a message. WHEN_TO_USE: undo a tapback. ARGS: $1 = message guid or latest-N, $2 = the reaction to remove EX: [IMSG_UNREACT]latest-1|heart[/IMSG_UNREACT] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api unreact. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_UNREACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_UNREACT",
        "type": "http",
        "what": [
          "WHAT: Remove a reaction from a message.",
          "WHEN_TO_USE: undo a tapback.",
          "ARGS: $1 = message guid or latest-N, $2 = the reaction to remove",
          "EX: [IMSG_UNREACT]latest-1|heart[/IMSG_UNREACT]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api unreact. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest-1",
            "desc": "message guid or latest-N, $2 = the reaction to remove",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "heart",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_UNREACT]latest-1|heart[/IMSG_UNREACT]",
        "tag": "[IMSG_UNREACT]<latest-1>|<heart>[/IMSG_UNREACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_UNREACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_UNREACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"unreact\", \"$1\", \"$2\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_UNREACT",
        "update": "PUT /api/directory/IMSG_UNREACT",
        "patch": "PATCH /api/directory/IMSG_UNREACT",
        "delete": "DELETE /api/directory/IMSG_UNREACT",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_UNREACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_UNREACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_UNREACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_UNREACT"
      },
      "examples": "[\"latest-1|heart\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_UNREACT"
    },
    {
      "key": "IMSG_UNREAD",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: List only the conversations with unread inbound messages (same shape as IMSG_CHATS, with unread_count). WHEN_TO_USE: triage: what is waiting for the owner right now. ARGS: none EX: [IMSG_UNREAD][/IMSG_UNREAD] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api unread. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_UNREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_UNREAD",
        "type": "http",
        "what": [
          "WHAT: List only the conversations with unread inbound messages (same shape as IMSG_CHATS, with unread_count).",
          "WHEN_TO_USE: triage: what is waiting for the owner right now.",
          "ARGS: none",
          "EX: [IMSG_UNREAD][/IMSG_UNREAD]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api unread. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_UNREAD][/IMSG_UNREAD]",
        "tag": "[IMSG_UNREAD][/IMSG_UNREAD]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_UNREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_UNREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"unread\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_UNREAD",
        "update": "PUT /api/directory/IMSG_UNREAD",
        "patch": "PATCH /api/directory/IMSG_UNREAD",
        "delete": "DELETE /api/directory/IMSG_UNREAD",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_UNREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_UNREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_UNREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_UNREAD"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_UNREAD"
    },
    {
      "key": "IMSG_UNSEND",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Unsend a message the owner sent within the last two minutes. WHEN_TO_USE: retract a message sent by mistake. ARGS: $1 = guid of a message the owner sent, or latest EX: [IMSG_UNSEND]latest[/IMSG_UNSEND] EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api unsend. Runs only on the Mac (its Messages, its Apple ID). NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_UNSEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_UNSEND",
        "type": "http",
        "what": [
          "WHAT: Unsend a message the owner sent within the last two minutes.",
          "WHEN_TO_USE: retract a message sent by mistake.",
          "ARGS: $1 = guid of a message the owner sent, or latest",
          "EX: [IMSG_UNSEND]latest[/IMSG_UNSEND]",
          "EXECUTOR: imessage-cli on the owner Mac, via ~/bin/imsg-api unsend. Runs only on the Mac (its Messages, its Apple ID).",
          "NOTE: Beeper platform-imessage drives a secondary Messages.app window through Accessibility (granted to the bridge). No Apple ID risk, no SIP change. Verified through the bridge: reaction landed in 2.8 s."
        ],
        "args": [
          {
            "pos": 1,
            "name": "latest",
            "desc": "guid of a message the owner sent, or latest",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_UNSEND]latest[/IMSG_UNSEND]",
        "tag": "[IMSG_UNSEND]<latest>[/IMSG_UNSEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_UNSEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_UNSEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"unsend\", \"$1\"], \"timeout\": 90000}",
      "edit": {
        "read": "GET /api/directory/IMSG_UNSEND",
        "update": "PUT /api/directory/IMSG_UNSEND",
        "patch": "PATCH /api/directory/IMSG_UNSEND",
        "delete": "DELETE /api/directory/IMSG_UNSEND",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_UNSEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_UNSEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_UNSEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_UNSEND"
      },
      "examples": "[\"latest\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_UNSEND"
    },
    {
      "key": "IMSG_VERBS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: List every verb the Mac's iMessage API wrapper supports. WHEN_TO_USE: discover the surface. ARGS: none EX: [IMSG_VERBS][/IMSG_VERBS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api verbs. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_VERBS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_VERBS",
        "type": "http",
        "what": [
          "WHAT: List every verb the Mac's iMessage API wrapper supports.",
          "WHEN_TO_USE: discover the surface.",
          "ARGS: none",
          "EX: [IMSG_VERBS][/IMSG_VERBS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api verbs. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_VERBS][/IMSG_VERBS]",
        "tag": "[IMSG_VERBS][/IMSG_VERBS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_VERBS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_VERBS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"verbs\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_VERBS",
        "update": "PUT /api/directory/IMSG_VERBS",
        "patch": "PATCH /api/directory/IMSG_VERBS",
        "delete": "DELETE /api/directory/IMSG_VERBS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_VERBS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_VERBS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_VERBS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_VERBS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_VERBS"
    },
    {
      "key": "IMSG_WATCH_STATUS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Is the inbound watcher running, its cursor, and how many events it has logged. WHEN_TO_USE: health check of the inbound bus. ARGS: none EX: [IMSG_WATCH_STATUS][/IMSG_WATCH_STATUS] EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api watch-status. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_WATCH_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_WATCH_STATUS",
        "type": "http",
        "what": [
          "WHAT: Is the inbound watcher running, its cursor, and how many events it has logged.",
          "WHEN_TO_USE: health check of the inbound bus.",
          "ARGS: none",
          "EX: [IMSG_WATCH_STATUS][/IMSG_WATCH_STATUS]",
          "EXECUTOR: imsg-watch on the owner Mac, via ~/bin/imsg-api watch-status. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_WATCH_STATUS][/IMSG_WATCH_STATUS]",
        "tag": "[IMSG_WATCH_STATUS][/IMSG_WATCH_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_WATCH_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_WATCH_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"watch-status\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_WATCH_STATUS",
        "update": "PUT /api/directory/IMSG_WATCH_STATUS",
        "patch": "PATCH /api/directory/IMSG_WATCH_STATUS",
        "delete": "DELETE /api/directory/IMSG_WATCH_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_WATCH_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_WATCH_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_WATCH_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_WATCH_STATUS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_WATCH_STATUS"
    },
    {
      "key": "IMSG_WHOIS",
      "type": "http",
      "category": "imessage",
      "doc": "WHAT: Is this handle known to the owner's Messages history and which service (imessage/sms) it uses. Local, no network lookup. WHEN_TO_USE: before sending: pick service, confirm the contact exists in history. ARGS: $1 = phone number in E.164 or email EX: [IMSG_WHOIS]+14155551212[/IMSG_WHOIS] EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api whois. Runs only on the Mac (its Messages, its Apple ID).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "IMSG_WHOIS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "IMSG_WHOIS",
        "type": "http",
        "what": [
          "WHAT: Is this handle known to the owner's Messages history and which service (imessage/sms) it uses. Local, no network lookup.",
          "WHEN_TO_USE: before sending: pick service, confirm the contact exists in history.",
          "ARGS: $1 = phone number in E.164 or email",
          "EX: [IMSG_WHOIS]+14155551212[/IMSG_WHOIS]",
          "EXECUTOR: imsg on the owner Mac, via ~/bin/imsg-api whois. Runs only on the Mac (its Messages, its Apple ID)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+14155551212",
            "desc": "phone number in E.164 or email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[IMSG_WHOIS]+14155551212[/IMSG_WHOIS]",
        "tag": "[IMSG_WHOIS]<+14155551212>[/IMSG_WHOIS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"IMSG_WHOIS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/IMSG_WHOIS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"sh\", \"args\": [\"-c\", \"exec \\\"$HOME/bin/imsg-api\\\" \\\"$@\\\"\", \"imsg-api\", \"whois\", \"$1\"], \"timeout\": 60000}",
      "edit": {
        "read": "GET /api/directory/IMSG_WHOIS",
        "update": "PUT /api/directory/IMSG_WHOIS",
        "patch": "PATCH /api/directory/IMSG_WHOIS",
        "delete": "DELETE /api/directory/IMSG_WHOIS",
        "invoke": "POST /api/dispatch {\"key\":\"IMSG_WHOIS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"IMSG_WHOIS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"IMSG_WHOIS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/IMSG_WHOIS"
      },
      "examples": "[\"+14155551212\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=IMSG_WHOIS"
    },
    {
      "key": "INLINE_GATE_PROBE",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Probe: a gate on one step, and a named parameter with a default. WHEN_TO_USE: to see that a false inline gate skips its own step and the flow carries on. ARGS: $1 = word=go  (default: skip) PARAMS: word=skip EX: [INLINE_GATE_PROBE]word=go[/INLINE_GATE_PROBE] TESTS: with the default it returns {\"start\":1} because the gated step did not run and the flow continued; with word=go it returns {\"gated\":\"ran\"}. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "INLINE_GATE_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "INLINE_GATE_PROBE",
        "type": "flow",
        "what": [
          "WHAT: Probe: a gate on one step, and a named parameter with a default.",
          "WHEN_TO_USE: to see that a false inline gate skips its own step and the flow carries on.",
          "ARGS: $1 = word=go  (default: skip)",
          "PARAMS: word=skip",
          "EX: [INLINE_GATE_PROBE]word=go[/INLINE_GATE_PROBE]",
          "TESTS: with the default it returns {\"start\":1} because the gated step did not run and the flow continued; with word=go it returns {\"gated\":\"ran\"}.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "{\"start\":1} because the gated step did not run and the flow continued; with word=go it returns {\"gated\":\"ran\"}.",
        "example": "[INLINE_GATE_PROBE]word=go[/INLINE_GATE_PROBE]",
        "tag": "[INLINE_GATE_PROBE][/INLINE_GATE_PROBE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"INLINE_GATE_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/INLINE_GATE_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/INLINE_GATE_PROBE",
        "update": "PUT /api/directory/INLINE_GATE_PROBE",
        "patch": "PATCH /api/directory/INLINE_GATE_PROBE",
        "delete": "DELETE /api/directory/INLINE_GATE_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"INLINE_GATE_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"INLINE_GATE_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"INLINE_GATE_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/INLINE_GATE_PROBE"
      },
      "examples": "[\"word=go\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=INLINE_GATE_PROBE"
    },
    {
      "key": "INTENT",
      "type": "agent",
      "category": "routing",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "INTENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "INTENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[INTENT][/INTENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"INTENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/INTENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/INTENT",
        "update": "PUT /api/directory/INTENT",
        "patch": "PATCH /api/directory/INTENT",
        "delete": "DELETE /api/directory/INTENT",
        "invoke": "POST /api/dispatch {\"key\":\"INTENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"INTENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"INTENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/INTENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=INTENT"
    },
    {
      "key": "INVALIDATE_DIR_SNAPSHOT",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: Drop the KV cache of the directory snapshot. Use after writing to the directory table by hand or via any tool that does NOT already invalidate. Takes no args WHEN_TO_USE: you need to invalidate dir snapshot ARGS: none EX: [INVALIDATE_DIR_SNAPSHOT][/INVALIDATE_DIR_SNAPSHOT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "INVALIDATE_DIR_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "INVALIDATE_DIR_SNAPSHOT",
        "type": "fn",
        "what": [
          "WHAT: Drop the KV cache of the directory snapshot. Use after writing to the directory table by hand or via any tool that does NOT already invalidate. Takes no args",
          "WHEN_TO_USE: you need to invalidate dir snapshot",
          "ARGS: none",
          "EX: [INVALIDATE_DIR_SNAPSHOT][/INVALIDATE_DIR_SNAPSHOT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[INVALIDATE_DIR_SNAPSHOT][/INVALIDATE_DIR_SNAPSHOT]",
        "tag": "[INVALIDATE_DIR_SNAPSHOT][/INVALIDATE_DIR_SNAPSHOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"INVALIDATE_DIR_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/INVALIDATE_DIR_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/INVALIDATE_DIR_SNAPSHOT",
        "update": "PUT /api/directory/INVALIDATE_DIR_SNAPSHOT",
        "patch": "PATCH /api/directory/INVALIDATE_DIR_SNAPSHOT",
        "delete": "DELETE /api/directory/INVALIDATE_DIR_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"INVALIDATE_DIR_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"INVALIDATE_DIR_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"INVALIDATE_DIR_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/INVALIDATE_DIR_SNAPSHOT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=INVALIDATE_DIR_SNAPSHOT"
    },
    {
      "key": "ISSUE_SWEEP",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Autonomous issue closer. Scans open issues and closes safe categories. WHEN_TO_USE: run a batch of issue closures; schedule via AUTOMATE_ADD for recursive loops. ARGS: mode (triage | docs | all) EX: [ISSUE_SWEEP]triage[/ISSUE_SWEEP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ISSUE_SWEEP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ISSUE_SWEEP",
        "type": "fn",
        "what": [
          "WHAT: Autonomous issue closer. Scans open issues and closes safe categories.",
          "WHEN_TO_USE: run a batch of issue closures; schedule via AUTOMATE_ADD for recursive loops.",
          "ARGS: mode (triage | docs | all)",
          "EX: [ISSUE_SWEEP]triage[/ISSUE_SWEEP]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[ISSUE_SWEEP]triage[/ISSUE_SWEEP]",
        "tag": "[ISSUE_SWEEP][/ISSUE_SWEEP]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ISSUE_SWEEP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ISSUE_SWEEP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ISSUE_SWEEP",
        "update": "PUT /api/directory/ISSUE_SWEEP",
        "patch": "PATCH /api/directory/ISSUE_SWEEP",
        "delete": "DELETE /api/directory/ISSUE_SWEEP",
        "invoke": "POST /api/dispatch {\"key\":\"ISSUE_SWEEP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ISSUE_SWEEP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ISSUE_SWEEP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ISSUE_SWEEP"
      },
      "examples": "[\"all|batch1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ISSUE_SWEEP"
    },
    {
      "key": "JCI_CLASSIFY",
      "type": "http",
      "category": "cloaker",
      "doc": "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier. WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on 2026-08-20 — every one of the 165,181 rows after that date carries no type and no status. REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js, which writes to traffic_history; decisions come from the traffic rulesets, not a third party. All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci'). WHAT: Classify a visitor via JustCloakIt.  type=false+status=passed means real human. Needs JCI_USER_ID secret WHEN_TO_USE: you need to jci classify ARGS: ip|ua|lan|ref|qu|inc_loc EX: [JCI_CLASSIFY]arg1|arg2|arg3|arg4|arg5|arg6[/JCI_CLASSIFY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "JCI_CLASSIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "JCI_CLASSIFY",
        "type": "http",
        "what": [
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: RETIRED 2026-09-11. External JustCloakIt visitor classifier.",
          "WHY RETIRED: it wrote 288,400 ledger rows and stopped returning a parseable verdict on",
          "2026-08-20 — every one of the 165,181 rows after that date carries no type and no status.",
          "REPLACED BY: the internal traffic evaluator. Ingress capture is functions/_lib/traffic/ingress.js,",
          "which writes to traffic_history; decisions come from the traffic rulesets, not a third party.",
          "All 123,221 verdicts JCI ever produced are already in traffic_history (source='jci').",
          "WHAT: Classify a visitor via JustCloakIt.  type=false+status=passed means real human. Needs JCI_USER_ID secret",
          "WHEN_TO_USE: you need to jci classify",
          "ARGS: ip|ua|lan|ref|qu|inc_loc",
          "EX: [JCI_CLASSIFY]arg1|arg2|arg3|arg4|arg5|arg6[/JCI_CLASSIFY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "JCI_USER_ID"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[JCI_CLASSIFY]arg1|arg2|arg3|arg4|arg5|arg6[/JCI_CLASSIFY]",
        "tag": "[JCI_CLASSIFY]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/JCI_CLASSIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"JCI_CLASSIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/JCI_CLASSIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:ip=$1&ua=$2&lan=$3&ref=$4&qu=$5&inc_loc=$6&is_geo=true&is_gclid=true&is_fbclid=true&ipscore=true",
      "edit": {
        "read": "GET /api/directory/JCI_CLASSIFY",
        "update": "PUT /api/directory/JCI_CLASSIFY",
        "patch": "PATCH /api/directory/JCI_CLASSIFY",
        "delete": "DELETE /api/directory/JCI_CLASSIFY",
        "invoke": "POST /api/dispatch {\"key\":\"JCI_CLASSIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"JCI_CLASSIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"JCI_CLASSIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/JCI_CLASSIFY"
      },
      "examples": "[\"peptide research\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=JCI_CLASSIFY"
    },
    {
      "key": "KERNEL",
      "type": "fn",
      "category": "system",
      "doc": "Universal kernel ingress. Natural-language request resolved through the directory.\\n[\\\"$1+\\\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KERNEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KERNEL",
        "type": "fn",
        "what": [
          "Universal kernel ingress. Natural-language request resolved through the directory.\\n[\\\"$1+\\\"]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[KERNEL][/KERNEL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KERNEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KERNEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KERNEL",
        "update": "PUT /api/directory/KERNEL",
        "patch": "PATCH /api/directory/KERNEL",
        "delete": "DELETE /api/directory/KERNEL",
        "invoke": "POST /api/dispatch {\"key\":\"KERNEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KERNEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KERNEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KERNEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=KERNEL"
    },
    {
      "key": "KIMI",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KIMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KIMI",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[KIMI][/KIMI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KIMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KIMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KIMI",
        "update": "PUT /api/directory/KIMI",
        "patch": "PATCH /api/directory/KIMI",
        "delete": "DELETE /api/directory/KIMI",
        "invoke": "POST /api/dispatch {\"key\":\"KIMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KIMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KIMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KIMI"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KIMI"
    },
    {
      "key": "KIMI_CODER",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KIMI_CODER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KIMI_CODER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[KIMI_CODER][/KIMI_CODER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KIMI_CODER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KIMI_CODER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KIMI_CODER",
        "update": "PUT /api/directory/KIMI_CODER",
        "patch": "PATCH /api/directory/KIMI_CODER",
        "delete": "DELETE /api/directory/KIMI_CODER",
        "invoke": "POST /api/dispatch {\"key\":\"KIMI_CODER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KIMI_CODER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KIMI_CODER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KIMI_CODER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KIMI_CODER"
    },
    {
      "key": "KIMI_COLLABORATE",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Kimi reads article topology and posts tier-honest claims + optional adversary challenge — collaborator #1 (not Grok). WHEN_TO_USE: multi-model enrichment, explicit gaps, first external model writeback to ledger. ARGS: slug   e.g. bpc-157 EX: [KIMI_COLLABORATE]bpc-157[/KIMI_COLLABORATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KIMI_COLLABORATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KIMI_COLLABORATE",
        "type": "fn",
        "what": [
          "WHAT: Kimi reads article topology and posts tier-honest claims + optional adversary challenge — collaborator #1 (not Grok).",
          "WHEN_TO_USE: multi-model enrichment, explicit gaps, first external model writeback to ledger.",
          "ARGS: slug   e.g. bpc-157",
          "EX: [KIMI_COLLABORATE]bpc-157[/KIMI_COLLABORATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KIMI_COLLABORATE]bpc-157[/KIMI_COLLABORATE]",
        "tag": "[KIMI_COLLABORATE]<bpc-157>[/KIMI_COLLABORATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KIMI_COLLABORATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KIMI_COLLABORATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/KIMI_COLLABORATE",
        "update": "PUT /api/directory/KIMI_COLLABORATE",
        "patch": "PATCH /api/directory/KIMI_COLLABORATE",
        "delete": "DELETE /api/directory/KIMI_COLLABORATE",
        "invoke": "POST /api/dispatch {\"key\":\"KIMI_COLLABORATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KIMI_COLLABORATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KIMI_COLLABORATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KIMI_COLLABORATE"
      },
      "examples": "[\"bpc-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KIMI_COLLABORATE"
    },
    {
      "key": "KIMI_WEB",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Ask Kimi Web — the logged-in browser session, not the metered API — and return the exact captured answer. WHEN_TO_USE: you want Kimi Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output. ARGS: $1 = the prompt. Pipes are preserved. EX: [KIMI_WEB]Reply with exactly GATEWAY_LIVE_OK[/KIMI_WEB] TESTS: Returns the exact assistant text with substrate browser_web and provider kimi. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KIMI_WEB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KIMI_WEB",
        "type": "fn",
        "what": [
          "WHAT: Ask Kimi Web — the logged-in browser session, not the metered API — and return the exact captured answer.",
          "WHEN_TO_USE: you want Kimi Web specifically as a step: a second opinion, a council member, or a reviewer of another capability's output.",
          "ARGS: $1 = the prompt. Pipes are preserved.",
          "EX: [KIMI_WEB]Reply with exactly GATEWAY_LIVE_OK[/KIMI_WEB]",
          "TESTS: Returns the exact assistant text with substrate browser_web and provider kimi. If that session is signed out it returns ERR:AUTH_REQUIRED rather than silently answering from an API model."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Reply with exactly GATEWAY_LIVE_OK",
            "desc": "the prompt. Pipes are preserved.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact captured answer.",
        "example": "[KIMI_WEB]Reply with exactly GATEWAY_LIVE_OK[/KIMI_WEB]",
        "tag": "[KIMI_WEB]<Reply with exactly GATEWAY_LIVE_OK …>[/KIMI_WEB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KIMI_WEB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KIMI_WEB  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"kimi|$1+\"]",
      "edit": {
        "read": "GET /api/directory/KIMI_WEB",
        "update": "PUT /api/directory/KIMI_WEB",
        "patch": "PATCH /api/directory/KIMI_WEB",
        "delete": "DELETE /api/directory/KIMI_WEB",
        "invoke": "POST /api/dispatch {\"key\":\"KIMI_WEB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KIMI_WEB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KIMI_WEB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KIMI_WEB"
      },
      "examples": "[\"Reply with exactly GATEWAY_LIVE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KIMI_WEB"
    },
    {
      "key": "KIMI_WRITER",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KIMI_WRITER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KIMI_WRITER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[KIMI_WRITER][/KIMI_WRITER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KIMI_WRITER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KIMI_WRITER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KIMI_WRITER",
        "update": "PUT /api/directory/KIMI_WRITER",
        "patch": "PATCH /api/directory/KIMI_WRITER",
        "delete": "DELETE /api/directory/KIMI_WRITER",
        "invoke": "POST /api/dispatch {\"key\":\"KIMI_WRITER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KIMI_WRITER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KIMI_WRITER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KIMI_WRITER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KIMI_WRITER"
    },
    {
      "key": "KLAVIYO",
      "type": "http",
      "category": "klaviyo",
      "doc": "WHAT: Klaviyo unified entrypoint WHEN_TO_USE: profiles, segments, events, lists ARGS: $1=op, $2..$N=args EX: [KLAVIYO]profiles[/KLAVIYO] TESTS: INVERSE: ERR:target_map:unknown_op on bad op.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KLAVIYO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KLAVIYO",
        "type": "http",
        "what": [
          "WHAT: Klaviyo unified entrypoint",
          "WHEN_TO_USE: profiles, segments, events, lists",
          "ARGS: $1=op, $2..$N=args",
          "EX: [KLAVIYO]profiles[/KLAVIYO]",
          "TESTS:",
          "INVERSE: ERR:target_map:unknown_op on bad op."
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: campaigns, events, events_cursor, events_for_profile, events_metric, events_metric_cursor, events_since, flows, lists, metrics, profile, profile_by_email, profiles, segments",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "campaigns",
            "sig": "[KLAVIYO]campaigns[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "events",
            "sig": "[KLAVIYO]events|<arg1>[/KLAVIYO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "events_cursor",
            "sig": "[KLAVIYO]events_cursor|<arg1>|<arg2>[/KLAVIYO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "events_for_profile",
            "sig": "[KLAVIYO]events_for_profile|<arg1>[/KLAVIYO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "events_metric",
            "sig": "[KLAVIYO]events_metric|<arg1>|<arg2>[/KLAVIYO]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "events_metric_cursor",
            "sig": "[KLAVIYO]events_metric_cursor|<arg1>|<arg2>|<arg3>[/KLAVIYO]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "events_since",
            "sig": "[KLAVIYO]events_since|<arg1>[/KLAVIYO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "flows",
            "sig": "[KLAVIYO]flows[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "lists",
            "sig": "[KLAVIYO]lists[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "metrics",
            "sig": "[KLAVIYO]metrics[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "profile",
            "sig": "[KLAVIYO]profile|<arg1>[/KLAVIYO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "profile_by_email",
            "sig": "[KLAVIYO]profile_by_email|<arg1>[/KLAVIYO]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "profiles",
            "sig": "[KLAVIYO]profiles[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "segments",
            "sig": "[KLAVIYO]segments[/KLAVIYO]",
            "extraArgs": 0,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[KLAVIYO]profiles[/KLAVIYO]",
        "tag": "[KLAVIYO]<op>|<args for that op>[/KLAVIYO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KLAVIYO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KLAVIYO  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KLAVIYO",
        "update": "PUT /api/directory/KLAVIYO",
        "patch": "PATCH /api/directory/KLAVIYO",
        "delete": "DELETE /api/directory/KLAVIYO",
        "invoke": "POST /api/dispatch {\"key\":\"KLAVIYO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KLAVIYO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KLAVIYO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KLAVIYO"
      },
      "examples": "[\"profiles\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KLAVIYO"
    },
    {
      "key": "KLAVIYO_PROFILES",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KLAVIYO_PROFILES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KLAVIYO_PROFILES",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[KLAVIYO_PROFILES][/KLAVIYO_PROFILES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KLAVIYO_PROFILES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KLAVIYO_PROFILES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "DISABLED: stale provider stub. Use [KLAVIYO]profiles[/KLAVIYO] and report the returned page count/next-page state.",
      "edit": {
        "read": "GET /api/directory/KLAVIYO_PROFILES",
        "update": "PUT /api/directory/KLAVIYO_PROFILES",
        "patch": "PATCH /api/directory/KLAVIYO_PROFILES",
        "delete": "DELETE /api/directory/KLAVIYO_PROFILES",
        "invoke": "POST /api/dispatch {\"key\":\"KLAVIYO_PROFILES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KLAVIYO_PROFILES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KLAVIYO_PROFILES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KLAVIYO_PROFILES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=KLAVIYO_PROFILES"
    },
    {
      "key": "KNOWLEDGE",
      "type": "fn",
      "category": "system",
      "doc": "KNOWLEDGE — fetch a knowledge card for models ARGS: CUSTOMER_FUNNEL | AD_ACCOUNTS | MARKETING_STATE | LEO_RESEARCH | IMAGE_REFERENCE | REACTIONS | BATCH | ARTICLE_LIST EX: [KNOWLEDGE]AD_ACCOUNTS[/KNOWLEDGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KNOWLEDGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KNOWLEDGE",
        "type": "fn",
        "what": [
          "KNOWLEDGE — fetch a knowledge card for models",
          "ARGS: CUSTOMER_FUNNEL | AD_ACCOUNTS | MARKETING_STATE | LEO_RESEARCH | IMAGE_REFERENCE | REACTIONS | BATCH | ARTICLE_LIST",
          "EX: [KNOWLEDGE]AD_ACCOUNTS[/KNOWLEDGE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KNOWLEDGE]AD_ACCOUNTS[/KNOWLEDGE]",
        "tag": "[KNOWLEDGE][/KNOWLEDGE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KNOWLEDGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KNOWLEDGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/KNOWLEDGE",
        "update": "PUT /api/directory/KNOWLEDGE",
        "patch": "PATCH /api/directory/KNOWLEDGE",
        "delete": "DELETE /api/directory/KNOWLEDGE",
        "invoke": "POST /api/dispatch {\"key\":\"KNOWLEDGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KNOWLEDGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KNOWLEDGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KNOWLEDGE"
      },
      "examples": "[\"AD_ACCOUNTS\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KNOWLEDGE"
    },
    {
      "key": "KV_APPEND",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_APPEND",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_APPEND]arg1|arg2[/KV_APPEND]",
        "tag": "[KV_APPEND]<arg1>|<arg2>[/KV_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/KV_APPEND",
        "update": "PUT /api/directory/KV_APPEND",
        "patch": "PATCH /api/directory/KV_APPEND",
        "delete": "DELETE /api/directory/KV_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"KV_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_APPEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=KV_APPEND"
    },
    {
      "key": "KV_DEL",
      "type": "fn",
      "category": "kv",
      "doc": "WHAT: KV delete by key. e.g. directory:snapshot WHEN_TO_USE: invalidate a cached value (e.g. after manual edits to a row that got cached) ARGS: $1 EX: [KV_DEL]arg1[/KV_DEL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_DEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_DEL",
        "type": "fn",
        "what": [
          "WHAT: KV delete by key. e.g. directory:snapshot",
          "WHEN_TO_USE: invalidate a cached value (e.g. after manual edits to a row that got cached)",
          "ARGS: $1",
          "EX: [KV_DEL]arg1[/KV_DEL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_DEL]arg1[/KV_DEL]",
        "tag": "[KV_DEL]<arg1>[/KV_DEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_DEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_DEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/KV_DEL",
        "update": "PUT /api/directory/KV_DEL",
        "patch": "PATCH /api/directory/KV_DEL",
        "delete": "DELETE /api/directory/KV_DEL",
        "invoke": "POST /api/dispatch {\"key\":\"KV_DEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_DEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_DEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_DEL"
      },
      "examples": "[\"locks:deploy:loop-safe-miscsubjects\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KV_DEL"
    },
    {
      "key": "KV_GET",
      "type": "fn",
      "category": "kv",
      "doc": "WHAT: KV get by key WHEN_TO_USE: small text values that change rarely (system_prompt mirror, feature flags) ARGS: $1 EX: [KV_GET]arg1[/KV_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_GET",
        "type": "fn",
        "what": [
          "WHAT: KV get by key",
          "WHEN_TO_USE: small text values that change rarely (system_prompt mirror, feature flags)",
          "ARGS: $1",
          "EX: [KV_GET]arg1[/KV_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_GET]arg1[/KV_GET]",
        "tag": "[KV_GET]<arg1>[/KV_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/KV_GET",
        "update": "PUT /api/directory/KV_GET",
        "patch": "PATCH /api/directory/KV_GET",
        "delete": "DELETE /api/directory/KV_GET",
        "invoke": "POST /api/dispatch {\"key\":\"KV_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_GET"
      },
      "examples": "[\"guardian_master\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KV_GET"
    },
    {
      "key": "KV_GET_JSON",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_GET_JSON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_GET_JSON",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_GET_JSON]arg1[/KV_GET_JSON]",
        "tag": "[KV_GET_JSON]<arg1>[/KV_GET_JSON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_GET_JSON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_GET_JSON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/KV_GET_JSON",
        "update": "PUT /api/directory/KV_GET_JSON",
        "patch": "PATCH /api/directory/KV_GET_JSON",
        "delete": "DELETE /api/directory/KV_GET_JSON",
        "invoke": "POST /api/dispatch {\"key\":\"KV_GET_JSON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_GET_JSON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_GET_JSON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_GET_JSON"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KV_GET_JSON"
    },
    {
      "key": "KV_LIST",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_LIST",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_LIST]arg1[/KV_LIST]",
        "tag": "[KV_LIST]<arg1>[/KV_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/KV_LIST",
        "update": "PUT /api/directory/KV_LIST",
        "patch": "PATCH /api/directory/KV_LIST",
        "delete": "DELETE /api/directory/KV_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"KV_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_LIST"
      },
      "examples": "[\"ledger:pending:\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KV_LIST"
    },
    {
      "key": "KV_PUT",
      "type": "fn",
      "category": "kv",
      "doc": "WHAT: KV put $1=key $2=value. Overwrite is OK WHEN_TO_USE: the same things KV_GET reads ARGS: $1 | $2 EX: [KV_PUT]arg1|arg2[/KV_PUT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_PUT",
        "type": "fn",
        "what": [
          "WHAT: KV put $1=key $2=value. Overwrite is OK",
          "WHEN_TO_USE: the same things KV_GET reads",
          "ARGS: $1 | $2",
          "EX: [KV_PUT]arg1|arg2[/KV_PUT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key $2=value. Overwrite is OK",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_PUT]arg1|arg2[/KV_PUT]",
        "tag": "[KV_PUT]<arg1>|<arg2>[/KV_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/KV_PUT",
        "update": "PUT /api/directory/KV_PUT",
        "patch": "PATCH /api/directory/KV_PUT",
        "delete": "DELETE /api/directory/KV_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"KV_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_PUT"
      },
      "examples": "[\"probe:final|ok\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=KV_PUT"
    },
    {
      "key": "KV_PUT_JSON",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "KV_PUT_JSON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "KV_PUT_JSON",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[KV_PUT_JSON]arg1|arg2[/KV_PUT_JSON]",
        "tag": "[KV_PUT_JSON]<arg1>|<arg2>[/KV_PUT_JSON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"KV_PUT_JSON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/KV_PUT_JSON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/KV_PUT_JSON",
        "update": "PUT /api/directory/KV_PUT_JSON",
        "patch": "PATCH /api/directory/KV_PUT_JSON",
        "delete": "DELETE /api/directory/KV_PUT_JSON",
        "invoke": "POST /api/dispatch {\"key\":\"KV_PUT_JSON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"KV_PUT_JSON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"KV_PUT_JSON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/KV_PUT_JSON"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=KV_PUT_JSON"
    },
    {
      "key": "LANDSCAPE_NEXT",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Return one queued external-build research object with the common axes and the existing voxel-batch source/claim append shape.\\n# ARGS: none.\\n# EX: [LANDSCAPE_NEXT][/LANDSCAPE_NEXT]\\n[]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LANDSCAPE_NEXT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LANDSCAPE_NEXT",
        "type": "http",
        "what": [
          "WHAT: Return one queued external-build research object with the common axes and the existing voxel-batch source/claim append shape.\\n# ARGS: none.\\n# EX: [LANDSCAPE_NEXT][/LANDSCAPE_NEXT]\\n[]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "one queued external-build research object with the common axes and the existing voxel-batch source/claim append shape.\\n# ARGS: none.\\n# EX: [LANDSCAPE_NEXT][/LANDSCAPE_NEXT]\\n[]",
        "example": null,
        "tag": "[LANDSCAPE_NEXT][/LANDSCAPE_NEXT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LANDSCAPE_NEXT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LANDSCAPE_NEXT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LANDSCAPE_NEXT",
        "update": "PUT /api/directory/LANDSCAPE_NEXT",
        "patch": "PATCH /api/directory/LANDSCAPE_NEXT",
        "delete": "DELETE /api/directory/LANDSCAPE_NEXT",
        "invoke": "POST /api/dispatch {\"key\":\"LANDSCAPE_NEXT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LANDSCAPE_NEXT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LANDSCAPE_NEXT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LANDSCAPE_NEXT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LANDSCAPE_NEXT"
    },
    {
      "key": "LAST_REPLY_OF",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Extract the LAST [REPLY]...[/REPLY] block from an arbitrary text. Returns {found, text} WHEN_TO_USE: you need to last reply of ARGS: $1 EX: [LAST_REPLY_OF]arg1[/LAST_REPLY_OF]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAST_REPLY_OF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAST_REPLY_OF",
        "type": "fn",
        "what": [
          "WHAT: Extract the LAST [REPLY]...[/REPLY] block from an arbitrary text. Returns {found, text}",
          "WHEN_TO_USE: you need to last reply of",
          "ARGS: $1",
          "EX: [LAST_REPLY_OF]arg1[/LAST_REPLY_OF]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{found, text}",
        "example": "[LAST_REPLY_OF]arg1[/LAST_REPLY_OF]",
        "tag": "[LAST_REPLY_OF]<arg1>[/LAST_REPLY_OF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAST_REPLY_OF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAST_REPLY_OF  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LAST_REPLY_OF",
        "update": "PUT /api/directory/LAST_REPLY_OF",
        "patch": "PATCH /api/directory/LAST_REPLY_OF",
        "delete": "DELETE /api/directory/LAST_REPLY_OF",
        "invoke": "POST /api/dispatch {\"key\":\"LAST_REPLY_OF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAST_REPLY_OF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAST_REPLY_OF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAST_REPLY_OF"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAST_REPLY_OF"
    },
    {
      "key": "LAWS_ADD",
      "type": "flow",
      "category": "laws",
      "doc": "Add a new mutable law. $1=key, $2=category, $3=rule text, $4=rationale. Only mutable laws can be added this way; immutable laws require a migration. REPAIRED 2026-09-12 (WF-0016). Apostrophes are safe: flow args bound for D1_EXEC are SQL-escaped at substitution, so a quote cannot end the literal early or store a truncated law.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_ADD",
        "type": "flow",
        "what": [
          "Add a new mutable law. $1=key, $2=category, $3=rule text, $4=rationale. Only mutable laws can be added this way; immutable laws require a migration.",
          "REPAIRED 2026-09-12 (WF-0016). Apostrophes are safe: flow args bound for D1_EXEC are SQL-escaped",
          "at substitution, so a quote cannot end the literal early or store a truncated law."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key, $2=category, $3=rule text, $4=rationale. Only mutable laws can be added this way",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LAWS_ADD]arg1|arg2|arg3|arg4[/LAWS_ADD]",
        "tag": "[LAWS_ADD]<arg1>|<arg2>|<arg3>|<arg4>[/LAWS_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_ADD",
        "update": "PUT /api/directory/LAWS_ADD",
        "patch": "PATCH /api/directory/LAWS_ADD",
        "delete": "DELETE /api/directory/LAWS_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_ADD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_ADD"
    },
    {
      "key": "LAWS_DELETE",
      "type": "flow",
      "category": "laws",
      "doc": "Delete a mutable law. $1=key. Cannot delete immutable laws.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_DELETE",
        "type": "flow",
        "what": [
          "Delete a mutable law. $1=key. Cannot delete immutable laws."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key. Cannot delete immutable laws.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LAWS_DELETE]arg1[/LAWS_DELETE]",
        "tag": "[LAWS_DELETE]<arg1>[/LAWS_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_DELETE",
        "update": "PUT /api/directory/LAWS_DELETE",
        "patch": "PATCH /api/directory/LAWS_DELETE",
        "delete": "DELETE /api/directory/LAWS_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_DELETE"
    },
    {
      "key": "LAWS_EDIT",
      "type": "flow",
      "category": "laws",
      "doc": "Edit a mutable law. $1=key, $2=new rule text, $3=new rationale. Cannot edit immutable laws. REPAIRED 2026-09-12 (WF-0016). Apostrophes are safe now. A flow step that writes SQL has its arguments escaped for SQL at substitution (escFor 'sql' in functions/api/dispatch.js, selected by execStep for D1_EXEC and LEDGER_EXEC), so a quote in your text becomes a value, not syntax, and a law can no longer be stored truncated. Write the rule you mean. Pipes still split the positional args, so avoid a literal | in the middle of the text.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_EDIT",
        "type": "flow",
        "what": [
          "Edit a mutable law. $1=key, $2=new rule text, $3=new rationale. Cannot edit immutable laws.",
          "REPAIRED 2026-09-12 (WF-0016). Apostrophes are safe now. A flow step that writes SQL has its",
          "arguments escaped for SQL at substitution (escFor 'sql' in functions/api/dispatch.js, selected by",
          "execStep for D1_EXEC and LEDGER_EXEC), so a quote in your text becomes a value, not syntax, and a",
          "law can no longer be stored truncated. Write the rule you mean. Pipes still split the positional",
          "args, so avoid a literal | in the middle of the text."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key, $2=new rule text, $3=new rationale. Cannot edit immutable laws.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LAWS_EDIT]arg1|arg2|arg3[/LAWS_EDIT]",
        "tag": "[LAWS_EDIT]<arg1>|<arg2>|<arg3>[/LAWS_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_EDIT",
        "update": "PUT /api/directory/LAWS_EDIT",
        "patch": "PATCH /api/directory/LAWS_EDIT",
        "delete": "DELETE /api/directory/LAWS_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_EDIT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_EDIT"
    },
    {
      "key": "LAWS_GET",
      "type": "flow",
      "category": "laws",
      "doc": "Read one law by key. Use when asked about a specific rule.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_GET",
        "type": "flow",
        "what": [
          "Read one law by key. Use when asked about a specific rule."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LAWS_GET]arg1[/LAWS_GET]",
        "tag": "[LAWS_GET]<arg1>[/LAWS_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_GET",
        "update": "PUT /api/directory/LAWS_GET",
        "patch": "PATCH /api/directory/LAWS_GET",
        "delete": "DELETE /api/directory/LAWS_GET",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_GET"
      },
      "examples": "[\"EMAIL_SEND_LAW\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_GET"
    },
    {
      "key": "LAWS_LIST",
      "type": "flow",
      "category": "laws",
      "doc": "List all enabled laws with violation counts. Use when asked \"what are the rules\" or \"show me the laws\".",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_LIST",
        "type": "flow",
        "what": [
          "List all enabled laws with violation counts. Use when asked \"what are the rules\" or \"show me the laws\"."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[LAWS_LIST][/LAWS_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_LIST",
        "update": "PUT /api/directory/LAWS_LIST",
        "patch": "PATCH /api/directory/LAWS_LIST",
        "delete": "DELETE /api/directory/LAWS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_LIST"
    },
    {
      "key": "LAWS_VIOLATION",
      "type": "flow",
      "category": "laws",
      "doc": "Log a law violation. $1=law_key, $2=agent_id, $3=session_id, $4=trace_id, $5=what_happened, $6=mitigated(0/1). Auto-increments violation count.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAWS_VIOLATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAWS_VIOLATION",
        "type": "flow",
        "what": [
          "Log a law violation. $1=law_key, $2=agent_id, $3=session_id, $4=trace_id, $5=what_happened, $6=mitigated(0/1). Auto-increments violation count."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "law_key, $2=agent_id, $3=session_id, $4=trace_id, $5=what_happened, $6=mitigated(0/1). Auto-increments violation count.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LAWS_VIOLATION]arg1|arg2|arg3|arg4|arg5|arg6[/LAWS_VIOLATION]",
        "tag": "[LAWS_VIOLATION]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/LAWS_VIOLATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAWS_VIOLATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAWS_VIOLATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAWS_VIOLATION",
        "update": "PUT /api/directory/LAWS_VIOLATION",
        "patch": "PATCH /api/directory/LAWS_VIOLATION",
        "delete": "DELETE /api/directory/LAWS_VIOLATION",
        "invoke": "POST /api/dispatch {\"key\":\"LAWS_VIOLATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAWS_VIOLATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAWS_VIOLATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAWS_VIOLATION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LAWS_VIOLATION"
    },
    {
      "key": "LAW_CODING_HASH_LEASE",
      "type": "http",
      "category": "law",
      "doc": "WHAT: A hash when the work starts, a hash when the work commits.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAW_CODING_HASH_LEASE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAW_CODING_HASH_LEASE",
        "type": "http",
        "what": [
          "WHAT: A hash when the work starts, a hash when the work commits."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LAW_CODING_HASH_LEASE][/LAW_CODING_HASH_LEASE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAW_CODING_HASH_LEASE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAW_CODING_HASH_LEASE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAW_CODING_HASH_LEASE",
        "update": "PUT /api/directory/LAW_CODING_HASH_LEASE",
        "patch": "PATCH /api/directory/LAW_CODING_HASH_LEASE",
        "delete": "DELETE /api/directory/LAW_CODING_HASH_LEASE",
        "invoke": "POST /api/dispatch {\"key\":\"LAW_CODING_HASH_LEASE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAW_CODING_HASH_LEASE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAW_CODING_HASH_LEASE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAW_CODING_HASH_LEASE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAW_CODING_HASH_LEASE"
    },
    {
      "key": "LAW_DESIGN_D08",
      "type": "http",
      "category": "law",
      "doc": "WHAT: Location before options.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAW_DESIGN_D08",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAW_DESIGN_D08",
        "type": "http",
        "what": [
          "WHAT: Location before options."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LAW_DESIGN_D08][/LAW_DESIGN_D08]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAW_DESIGN_D08\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAW_DESIGN_D08  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAW_DESIGN_D08",
        "update": "PUT /api/directory/LAW_DESIGN_D08",
        "patch": "PATCH /api/directory/LAW_DESIGN_D08",
        "delete": "DELETE /api/directory/LAW_DESIGN_D08",
        "invoke": "POST /api/dispatch {\"key\":\"LAW_DESIGN_D08\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAW_DESIGN_D08\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAW_DESIGN_D08\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAW_DESIGN_D08"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAW_DESIGN_D08"
    },
    {
      "key": "LAW_SHEETS_S01",
      "type": "http",
      "category": "law",
      "doc": "WHAT: Cells remain arbitrary values and projections retain canonical identity.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAW_SHEETS_S01",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAW_SHEETS_S01",
        "type": "http",
        "what": [
          "WHAT: Cells remain arbitrary values and projections retain canonical identity."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LAW_SHEETS_S01][/LAW_SHEETS_S01]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAW_SHEETS_S01\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAW_SHEETS_S01  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAW_SHEETS_S01",
        "update": "PUT /api/directory/LAW_SHEETS_S01",
        "patch": "PATCH /api/directory/LAW_SHEETS_S01",
        "delete": "DELETE /api/directory/LAW_SHEETS_S01",
        "invoke": "POST /api/dispatch {\"key\":\"LAW_SHEETS_S01\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAW_SHEETS_S01\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAW_SHEETS_S01\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAW_SHEETS_S01"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAW_SHEETS_S01"
    },
    {
      "key": "LAW_WORK_W01",
      "type": "http",
      "category": "law",
      "doc": "WHAT: Work exists only as a canonical task object.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LAW_WORK_W01",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LAW_WORK_W01",
        "type": "http",
        "what": [
          "WHAT: Work exists only as a canonical task object."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LAW_WORK_W01][/LAW_WORK_W01]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LAW_WORK_W01\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LAW_WORK_W01  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LAW_WORK_W01",
        "update": "PUT /api/directory/LAW_WORK_W01",
        "patch": "PATCH /api/directory/LAW_WORK_W01",
        "delete": "DELETE /api/directory/LAW_WORK_W01",
        "invoke": "POST /api/dispatch {\"key\":\"LAW_WORK_W01\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LAW_WORK_W01\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LAW_WORK_W01\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LAW_WORK_W01"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LAW_WORK_W01"
    },
    {
      "key": "LBL_ANSWER",
      "type": "agent",
      "category": "ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_ANSWER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_ANSWER",
        "type": "agent",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 13,
            "name": "arg13",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 14,
            "name": "arg14",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 15,
            "name": "arg15",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 16,
            "name": "arg16",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 17,
            "name": "arg17",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 18,
            "name": "arg18",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[LBL_ANSWER]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12|arg13|arg14|arg15|arg16|arg17|arg18[/LBL_ANSWER]",
        "tag": "[LBL_ANSWER]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>|<arg13>|<arg14>|<arg15>|<arg16>|<arg17>|<arg18>[/LBL_ANSWER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_ANSWER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_ANSWER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LBL_ANSWER",
        "update": "PUT /api/directory/LBL_ANSWER",
        "patch": "PATCH /api/directory/LBL_ANSWER",
        "delete": "DELETE /api/directory/LBL_ANSWER",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_ANSWER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_ANSWER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_ANSWER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_ANSWER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_ANSWER"
    },
    {
      "key": "LBL_ASK",
      "type": "http",
      "category": "ops",
      "doc": "WHAT: Answer a question about Loop Bio Labs commercial performance - revenue, orders, average order, ad spend, ROAS, attributed revenue, new versus returning customers, email and SMS revenue - for yesterday, the last complete week, this month so far, or last calendar month. The answer is built only from live numbers that have already passed the plausibility review; a figure that failed it is handed to the model as unavailable, so the answer cannot contain an invented or discredited number. WHEN_TO_USE: any question about how the store or the business is doing. Revenue, sales, orders, spend, ROAS, return on ad spend, new customers, repeat customers, email revenue, SMS revenue, how was yesterday, how is the month going, are we up or down. Use this instead of guessing from memory - it reads live data every time. ARGS: $1 = the question in plain English. NOTE: it will say it does not have something rather than estimate. Per-channel new-versus-existing customers is NOT available from any channel: 97.7 percent of first-time-buyer orders carry no attribution at all, so no channel can be credited with acquiring a new customer. EX: [LBL_ASK]how did we do yesterday and what was our ROAS?[/LBL_ASK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_ASK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_ASK",
        "type": "http",
        "what": [
          "WHAT: Answer a question about Loop Bio Labs commercial performance - revenue, orders, average order, ad spend, ROAS, attributed revenue, new versus returning customers, email and SMS revenue - for yesterday, the last complete week, this month so far, or last calendar month. The answer is built only from live numbers that have already passed the plausibility review; a figure that failed it is handed to the model as unavailable, so the answer cannot contain an invented or discredited number.",
          "WHEN_TO_USE: any question about how the store or the business is doing. Revenue, sales, orders, spend, ROAS, return on ad spend, new customers, repeat customers, email revenue, SMS revenue, how was yesterday, how is the month going, are we up or down. Use this instead of guessing from memory - it reads live data every time.",
          "ARGS: $1 = the question in plain English.",
          "NOTE: it will say it does not have something rather than estimate. Per-channel new-versus-existing customers is NOT available from any channel: 97.7 percent of first-time-buyer orders carry no attribution at all, so no channel can be credited with acquiring a new customer.",
          "EX: [LBL_ASK]how did we do yesterday and what was our ROAS?[/LBL_ASK]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "how did we do yesterday and what was our ROAS?",
            "desc": "the question in plain English.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "on ad spend, new customers, repeat customers, email revenue, SMS revenue, how was yesterday, how is the month going, are we up or down. Use this instead of guessing from memory - it reads live data every time.",
        "example": "[LBL_ASK]how did we do yesterday and what was our ROAS?[/LBL_ASK]",
        "tag": "[LBL_ASK]<how did we do yesterday and what was our ROAS?>[/LBL_ASK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_ASK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_ASK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"question\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/LBL_ASK",
        "update": "PUT /api/directory/LBL_ASK",
        "patch": "PATCH /api/directory/LBL_ASK",
        "delete": "DELETE /api/directory/LBL_ASK",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_ASK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_ASK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_ASK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_ASK"
      },
      "examples": "[{\"body\": \"how did we do yesterday?\", \"note\": \"revenue, orders and ROAS for yesterday\"}, {\"body\": \"how is this month going versus last month?\", \"note\": \"month to date against the same days last month\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_ASK"
    },
    {
      "key": "LBL_DAILY_EMAIL",
      "type": "http",
      "category": "lbl",
      "doc": "WHAT: Compose and send the LBL nightly team report — a narrated read of yesterday for Loop Bio Labs, then each source speaking for itself: BigCommerce (store truth), Triple Whale (ad attribution with honest per-channel ROAS), Klaviyo (owned channels). Data is lbl.fyi's live /v1/today; a failed source reads \"unavailable\", never zero. WHEN_TO_USE: the nightly LBL automation fires; or the owner asks to send/preview the LBL daily report now. ARGS: mode. blank = send to settings.lbl_daily_recipients (owner-only until he approves the team format). dry = compose only, no send. EX: [LBL_DAILY_EMAIL]dry[/LBL_DAILY_EMAIL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_DAILY_EMAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_DAILY_EMAIL",
        "type": "http",
        "what": [
          "WHAT: Compose and send the LBL nightly team report — a narrated read of yesterday for Loop Bio Labs, then each source speaking for itself: BigCommerce (store truth), Triple Whale (ad attribution with honest per-channel ROAS), Klaviyo (owned channels). Data is lbl.fyi's live /v1/today; a failed source reads \"unavailable\", never zero.",
          "WHEN_TO_USE: the nightly LBL automation fires; or the owner asks to send/preview the LBL daily report now.",
          "ARGS: mode. blank = send to settings.lbl_daily_recipients (owner-only until he approves the team format). dry = compose only, no send.",
          "EX: [LBL_DAILY_EMAIL]dry[/LBL_DAILY_EMAIL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "dry",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LBL_DAILY_EMAIL]dry[/LBL_DAILY_EMAIL]",
        "tag": "[LBL_DAILY_EMAIL]<dry>[/LBL_DAILY_EMAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_DAILY_EMAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_DAILY_EMAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"mode\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/LBL_DAILY_EMAIL",
        "update": "PUT /api/directory/LBL_DAILY_EMAIL",
        "patch": "PATCH /api/directory/LBL_DAILY_EMAIL",
        "delete": "DELETE /api/directory/LBL_DAILY_EMAIL",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_DAILY_EMAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_DAILY_EMAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_DAILY_EMAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_DAILY_EMAIL"
      },
      "examples": "[{\"body\": \"dry\", \"note\": \"compose tonight's email without sending\"}, {\"body\": \"\", \"note\": \"send now to the configured recipients\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_DAILY_EMAIL"
    },
    {
      "key": "LBL_GET",
      "type": "fn",
      "category": "loopdata",
      "doc": "WHAT: GET a path on the loop data platform (api.lbl.fyi, the loop-api-worker). Arg: the path after the host, e.g. \"v4/health\" or \"2chat/contacts\" (slashes preserved). Returns raw JSON + status. fyi. If a path needs auth (401), use WEB_FETCH with the right header, or ask the owner for the token WHEN_TO_USE: the owner asks for data from the loop platform / lbl ARGS: $1 EX: [LBL_GET]arg1[/LBL_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_GET",
        "type": "fn",
        "what": [
          "WHAT: GET a path on the loop data platform (api.lbl.fyi, the loop-api-worker). Arg: the path after the host, e.g. \"v4/health\" or \"2chat/contacts\" (slashes preserved). Returns raw JSON + status. fyi. If a path needs auth (401), use WEB_FETCH with the right header, or ask the owner for the token",
          "WHEN_TO_USE: the owner asks for data from the loop platform / lbl",
          "ARGS: $1",
          "EX: [LBL_GET]arg1[/LBL_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "raw JSON + status. fyi. If a path needs auth (401), use WEB_FETCH with the right header, or ask the owner for the token",
        "example": "[LBL_GET]arg1[/LBL_GET]",
        "tag": "[LBL_GET]<arg1 …>[/LBL_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GET\",\"https://api.lbl.fyi/$1+\",\"\",\"\"]",
      "edit": {
        "read": "GET /api/directory/LBL_GET",
        "update": "PUT /api/directory/LBL_GET",
        "patch": "PATCH /api/directory/LBL_GET",
        "delete": "DELETE /api/directory/LBL_GET",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_GET"
      },
      "examples": "[\"health\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_GET"
    },
    {
      "key": "LBL_POST",
      "type": "fn",
      "category": "loopdata",
      "doc": "WHAT: POST to the loop data platform (api.lbl.fyi).   For custom auth headers use WEB_FETCH WHEN_TO_USE: trigger/send something on the loop platform ARGS: path|json_body EX: [LBL_POST]arg1|arg2[/LBL_POST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_POST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_POST",
        "type": "fn",
        "what": [
          "WHAT: POST to the loop data platform (api.lbl.fyi).   For custom auth headers use WEB_FETCH",
          "WHEN_TO_USE: trigger/send something on the loop platform",
          "ARGS: path|json_body",
          "EX: [LBL_POST]arg1|arg2[/LBL_POST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LBL_POST]arg1|arg2[/LBL_POST]",
        "tag": "[LBL_POST]<arg1>|<arg2 …>[/LBL_POST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_POST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_POST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"POST\",\"https://api.lbl.fyi/$1\",\"$2+\",\"\"]",
      "edit": {
        "read": "GET /api/directory/LBL_POST",
        "update": "PUT /api/directory/LBL_POST",
        "patch": "PATCH /api/directory/LBL_POST",
        "delete": "DELETE /api/directory/LBL_POST",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_POST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_POST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_POST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_POST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_POST"
    },
    {
      "key": "LBL_REPORT_EMAIL",
      "type": "http",
      "category": "ops",
      "doc": "WHAT: Compose and send an LBL commercial report for Loop Bio Labs. Three templates off one design: daily (yesterday against the day before), weekly (the last complete Monday-Sunday against the week before), monthly (month-to-date against the same day-count of last month; on the 1st, the closed month against the whole month before it). Every template opens with eight numbers - revenue, ad spend, ROAS, attributed revenue, new customers, existing customers, orders, average order - each carrying its change against a named comparison window. The monthly also carries the Meta new-customer acquisition trend by month. WHEN_TO_USE: the daily, weekly or monthly LBL automation fires; or the owner asks to send or preview an LBL report now. ARGS: kind | mode   kind: daily, weekly or monthly. Required.   mode: blank sends only if the calendar gate for that kind passes (weekly on Mondays, monthly on the 1st; daily always). dry composes without sending. force sends regardless of the calendar. NOTE: recipients come from settings.lbl_daily_recipients and default to the owner alone. A source that did not answer renders unavailable, never a zero. EX: [LBL_REPORT_EMAIL]weekly|dry[/LBL_REPORT_EMAIL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_REPORT_EMAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_REPORT_EMAIL",
        "type": "http",
        "what": [
          "WHAT: Compose and send an LBL commercial report for Loop Bio Labs. Three templates off one design: daily (yesterday against the day before), weekly (the last complete Monday-Sunday against the week before), monthly (month-to-date against the same day-count of last month; on the 1st, the closed month against the whole month before it). Every template opens with eight numbers - revenue, ad spend, ROAS, attributed revenue, new customers, existing customers, orders, average order - each carrying its change against a named comparison window. The monthly also carries the Meta new-customer acquisition trend by month.",
          "WHEN_TO_USE: the daily, weekly or monthly LBL automation fires; or the owner asks to send or preview an LBL report now.",
          "ARGS: kind | mode",
          "  kind: daily, weekly or monthly. Required.",
          "  mode: blank sends only if the calendar gate for that kind passes (weekly on Mondays, monthly on the 1st; daily always). dry composes without sending. force sends regardless of the calendar.",
          "NOTE: recipients come from settings.lbl_daily_recipients and default to the owner alone.",
          "A source that did not answer renders unavailable, never a zero.",
          "EX: [LBL_REPORT_EMAIL]weekly|dry[/LBL_REPORT_EMAIL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "weekly",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "dry",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LBL_REPORT_EMAIL]weekly|dry[/LBL_REPORT_EMAIL]",
        "tag": "[LBL_REPORT_EMAIL]<weekly>|<dry>[/LBL_REPORT_EMAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_REPORT_EMAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_REPORT_EMAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"kind\":\"$1\",\"mode\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/LBL_REPORT_EMAIL",
        "update": "PUT /api/directory/LBL_REPORT_EMAIL",
        "patch": "PATCH /api/directory/LBL_REPORT_EMAIL",
        "delete": "DELETE /api/directory/LBL_REPORT_EMAIL",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_REPORT_EMAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_REPORT_EMAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_REPORT_EMAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_REPORT_EMAIL"
      },
      "examples": "[{\"body\": \"weekly|dry\", \"note\": \"compose the weekly recap without sending\"}, {\"body\": \"monthly|force\", \"note\": \"send the monthly recap now regardless of the calendar\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_REPORT_EMAIL"
    },
    {
      "key": "LBL_VIEWER_GET",
      "type": "fn",
      "category": "loopdata",
      "doc": "WHAT: GET lbl.fyi viewer path. Uses LBL_VIEWER_PASS. EX: [LBL_VIEWER_GET]api/meta/creatives[/LBL_VIEWER_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LBL_VIEWER_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LBL_VIEWER_GET",
        "type": "fn",
        "what": [
          "WHAT: GET lbl.fyi viewer path. Uses LBL_VIEWER_PASS.",
          "EX: [LBL_VIEWER_GET]api/meta/creatives[/LBL_VIEWER_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "api/meta/creatives",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LBL_VIEWER_GET]api/meta/creatives[/LBL_VIEWER_GET]",
        "tag": "[LBL_VIEWER_GET]<api/meta/creatives …>[/LBL_VIEWER_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LBL_VIEWER_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LBL_VIEWER_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LBL_VIEWER_GET",
        "update": "PUT /api/directory/LBL_VIEWER_GET",
        "patch": "PATCH /api/directory/LBL_VIEWER_GET",
        "delete": "DELETE /api/directory/LBL_VIEWER_GET",
        "invoke": "POST /api/dispatch {\"key\":\"LBL_VIEWER_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LBL_VIEWER_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LBL_VIEWER_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LBL_VIEWER_GET"
      },
      "examples": "[\"api/meta/creatives\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LBL_VIEWER_GET"
    },
    {
      "key": "LEADS_DISCOVER",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Find businesses likely to buy peptides wholesale or want white-label, by type and city. Free source (OpenStreetMap), no API key. Writes new rows to the leads table. WHEN_TO_USE: start a new outreach batch for a place. ARGS: $1 = segment (medspa | clinic | wellness | gym | supplement), $2 = city, $3 = max results (default 40). EX: [LEADS_DISCOVER]medspa|Los Angeles|40[/LEADS_DISCOVER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DISCOVER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DISCOVER",
        "type": "fn",
        "what": [
          "WHAT: Find businesses likely to buy peptides wholesale or want white-label, by type and city. Free source (OpenStreetMap), no API key. Writes new rows to the leads table.",
          "WHEN_TO_USE: start a new outreach batch for a place.",
          "ARGS: $1 = segment (medspa | clinic | wellness | gym | supplement), $2 = city, $3 = max results (default 40).",
          "EX: [LEADS_DISCOVER]medspa|Los Angeles|40[/LEADS_DISCOVER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "medspa",
            "desc": "segment (medspa | clinic | wellness | gym | supplement), $2 = city, $3 = max results (default 40).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Los Angeles",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "40",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_DISCOVER]medspa|Los Angeles|40[/LEADS_DISCOVER]",
        "tag": "[LEADS_DISCOVER]<medspa>|<Los Angeles>|<40>[/LEADS_DISCOVER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DISCOVER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DISCOVER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DISCOVER",
        "update": "PUT /api/directory/LEADS_DISCOVER",
        "patch": "PATCH /api/directory/LEADS_DISCOVER",
        "delete": "DELETE /api/directory/LEADS_DISCOVER",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DISCOVER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DISCOVER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DISCOVER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DISCOVER"
      },
      "examples": "[\"wellness|San Diego|40\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DISCOVER"
    },
    {
      "key": "LEADS_DISCOVER_AI",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: SCRAPER 2 — Grok live web search finds real businesses (with verified official websites) that OpenStreetMap does not have. Inserts them as new leads, source=grok-live-search. WHEN_TO_USE: grow the pipeline in a city where LEADS_DISCOVER (OSM) returned few results, or to reach richer segments (longevity, weightloss, chiro). ARGS: $1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = count (default 20, cap 30). EX: [LEADS_DISCOVER_AI]longevity|Scottsdale|20[/LEADS_DISCOVER_AI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DISCOVER_AI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DISCOVER_AI",
        "type": "fn",
        "what": [
          "WHAT: SCRAPER 2 — Grok live web search finds real businesses (with verified official websites) that OpenStreetMap does not have. Inserts them as new leads, source=grok-live-search.",
          "WHEN_TO_USE: grow the pipeline in a city where LEADS_DISCOVER (OSM) returned few results, or to reach richer segments (longevity, weightloss, chiro).",
          "ARGS: $1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = count (default 20, cap 30).",
          "EX: [LEADS_DISCOVER_AI]longevity|Scottsdale|20[/LEADS_DISCOVER_AI]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "longevity",
            "desc": "segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = count (default 20, cap 30).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Scottsdale",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_DISCOVER_AI]longevity|Scottsdale|20[/LEADS_DISCOVER_AI]",
        "tag": "[LEADS_DISCOVER_AI]<longevity>|<Scottsdale>|<20>[/LEADS_DISCOVER_AI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DISCOVER_AI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DISCOVER_AI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DISCOVER_AI",
        "update": "PUT /api/directory/LEADS_DISCOVER_AI",
        "patch": "PATCH /api/directory/LEADS_DISCOVER_AI",
        "delete": "DELETE /api/directory/LEADS_DISCOVER_AI",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DISCOVER_AI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DISCOVER_AI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DISCOVER_AI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DISCOVER_AI"
      },
      "examples": "[\"longevity|Scottsdale|20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DISCOVER_AI"
    },
    {
      "key": "LEADS_DISCOVER_NPI",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Discover leads from the NPPES NPI Registry (authoritative federal provider directory, free/no key). Real clinic identity + phone + address; no website (run LEADS_RESOLVE_SITES to backfill). WHEN_TO_USE: broad authoritative discovery of clinics/providers by taxonomy + city/state. ARGS: $1=taxonomy_description, $2=city, $3=state(2-letter), $4=limit(default 200, NPPES hard cap per call), $5=skip(0-1000 - NPPES returns max 200 per call, so page a dense city with skip 200/400/600/800/1000 or it silently truncates), $6=postal_code(optional, targets one ZIP). EX: [LEADS_DISCOVER_NPI]Chiropractor|Los Angeles|CA|200|400[/LEADS_DISCOVER_NPI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DISCOVER_NPI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DISCOVER_NPI",
        "type": "fn",
        "what": [
          "WHAT: Discover leads from the NPPES NPI Registry (authoritative federal provider directory, free/no key). Real clinic identity + phone + address; no website (run LEADS_RESOLVE_SITES to backfill).",
          "WHEN_TO_USE: broad authoritative discovery of clinics/providers by taxonomy + city/state.",
          "ARGS: $1=taxonomy_description, $2=city, $3=state(2-letter), $4=limit(default 200, NPPES hard cap per call), $5=skip(0-1000 - NPPES returns max 200 per call, so page a dense city with skip 200/400/600/800/1000 or it silently truncates), $6=postal_code(optional, targets one ZIP).",
          "EX: [LEADS_DISCOVER_NPI]Chiropractor|Los Angeles|CA|200|400[/LEADS_DISCOVER_NPI]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Chiropractor",
            "desc": "taxonomy_description, $2=city, $3=state(2-letter), $4=limit(default 200, NPPES hard cap per call), $5=skip(0-1000 - NPPES returns max 200 per call, so page a dense city with skip 200/400/600/800/1000 or it silently truncates), $6=postal_code(optional, targets one ZIP).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Los Angeles",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "CA",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "200",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "400",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "max 200 per call, so page a dense city with skip 200/400/600/800/1000 or it silently truncates), $6=postal_code(optional, targets one ZIP).",
        "example": "[LEADS_DISCOVER_NPI]Chiropractor|Los Angeles|CA|200|400[/LEADS_DISCOVER_NPI]",
        "tag": "[LEADS_DISCOVER_NPI]<Chiropractor>|<Los Angeles>|<CA>|<200>|<400>|<arg6>[/LEADS_DISCOVER_NPI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DISCOVER_NPI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DISCOVER_NPI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DISCOVER_NPI",
        "update": "PUT /api/directory/LEADS_DISCOVER_NPI",
        "patch": "PATCH /api/directory/LEADS_DISCOVER_NPI",
        "delete": "DELETE /api/directory/LEADS_DISCOVER_NPI",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DISCOVER_NPI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DISCOVER_NPI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DISCOVER_NPI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DISCOVER_NPI"
      },
      "examples": "[\"Chiropractor|Charleston|WV|200|1000\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DISCOVER_NPI"
    },
    {
      "key": "LEADS_DISCOVER_ORG",
      "type": "fn",
      "category": "self-promotion",
      "doc": "WHAT: SCRAPER 5 — organization discovery for a promo class via live web search. Finds real organizations with verifiable official sites and inserts them as leads (segment = class key, source = org-research), deduped on name+city. Emails are NEVER guessed here: LEADS_ENRICH finds them on the organization's own site or the row ends no_email. With a work task id, EVERY model return becomes a task-bound execution-case decision row (included or excluded, with reason, query hash and receipt binding) — nothing disappears into a skip count. WHEN_TO_USE: populating a promo class with real organizations before enrichment; \"find AI assurance firms\". For task-bound proof runs (execution cases) ALWAYS pass the work task id as $4. ARGS: $1 = promo class key (must exist in promo_classes), $2 = free-text query, $3 = count (default 12, cap 20), $4 = optional work task id (e.g. WT-0090) — binds every evaluated organization to that task's execution case. EX: [LEADS_DISCOVER_ORG]ai-investors|seed funds investing in AI infrastructure|20|WT-0090[/LEADS_DISCOVER_ORG]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DISCOVER_ORG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DISCOVER_ORG",
        "type": "fn",
        "what": [
          "WHAT: SCRAPER 5 — organization discovery for a promo class via live web search. Finds real organizations with verifiable official sites and inserts them as leads (segment = class key, source = org-research), deduped on name+city. Emails are NEVER guessed here: LEADS_ENRICH finds them on the organization's own site or the row ends no_email. With a work task id, EVERY model return becomes a task-bound execution-case decision row (included or excluded, with reason, query hash and receipt binding) — nothing disappears into a skip count.",
          "WHEN_TO_USE: populating a promo class with real organizations before enrichment; \"find AI assurance firms\". For task-bound proof runs (execution cases) ALWAYS pass the work task id as $4.",
          "ARGS: $1 = promo class key (must exist in promo_classes), $2 = free-text query, $3 = count (default 12, cap 20), $4 = optional work task id (e.g. WT-0090) — binds every evaluated organization to that task's execution case.",
          "EX: [LEADS_DISCOVER_ORG]ai-investors|seed funds investing in AI infrastructure|20|WT-0090[/LEADS_DISCOVER_ORG]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ai-investors",
            "desc": "promo class key (must exist in promo_classes), $2 = free-text query, $3 = count (default 12, cap 20), $4 = optional work task id (e.g. WT-0090) — binds every evaluated organization to that task's execution case.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "seed funds investing in AI infrastructure",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "20",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "WT-0090",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "becomes a task-bound execution-case decision row (included or excluded, with reason, query hash and receipt binding) — nothing disappears into a skip count.",
        "example": "[LEADS_DISCOVER_ORG]ai-investors|seed funds investing in AI infrastructure|20|WT-0090[/LEADS_DISCOVER_ORG]",
        "tag": "[LEADS_DISCOVER_ORG]<ai-investors>|<seed funds investing in AI infrastructure>|<20>|<WT-0090>[/LEADS_DISCOVER_ORG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DISCOVER_ORG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DISCOVER_ORG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DISCOVER_ORG",
        "update": "PUT /api/directory/LEADS_DISCOVER_ORG",
        "patch": "PATCH /api/directory/LEADS_DISCOVER_ORG",
        "delete": "DELETE /api/directory/LEADS_DISCOVER_ORG",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DISCOVER_ORG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DISCOVER_ORG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DISCOVER_ORG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DISCOVER_ORG"
      },
      "examples": "[\"durable objects\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DISCOVER_ORG"
    },
    {
      "key": "LEADS_DISCOVER_PLACES",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: Discover B2B leads via Google Places API (New) — med-spas/clinics/longevity by segment + city, with website/phone/rating. Better coverage than the Overpass source. Inserts into the leads table. WHEN_TO_USE: \"find medspas in Newport Beach\", building the wholesale target list. ARGS: $1=segment free text (e.g. \"medical spa\",\"longevity clinic\"), $2=city, $3=limit (default 40). EX: [LEADS_DISCOVER_PLACES]medical spa|Newport Beach|40[/LEADS_DISCOVER_PLACES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DISCOVER_PLACES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DISCOVER_PLACES",
        "type": "fn",
        "what": [
          "WHAT: Discover B2B leads via Google Places API (New) — med-spas/clinics/longevity by segment + city, with website/phone/rating. Better coverage than the Overpass source. Inserts into the leads table.",
          "WHEN_TO_USE: \"find medspas in Newport Beach\", building the wholesale target list.",
          "ARGS: $1=segment free text (e.g. \"medical spa\",\"longevity clinic\"), $2=city, $3=limit (default 40).",
          "EX: [LEADS_DISCOVER_PLACES]medical spa|Newport Beach|40[/LEADS_DISCOVER_PLACES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "medical spa",
            "desc": "segment free text (e.g. \"medical spa\",\"longevity clinic\"), $2=city, $3=limit (default 40).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Newport Beach",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "40",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_DISCOVER_PLACES]medical spa|Newport Beach|40[/LEADS_DISCOVER_PLACES]",
        "tag": "[LEADS_DISCOVER_PLACES]<medical spa>|<Newport Beach>|<40>[/LEADS_DISCOVER_PLACES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DISCOVER_PLACES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DISCOVER_PLACES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DISCOVER_PLACES",
        "update": "PUT /api/directory/LEADS_DISCOVER_PLACES",
        "patch": "PATCH /api/directory/LEADS_DISCOVER_PLACES",
        "delete": "DELETE /api/directory/LEADS_DISCOVER_PLACES",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DISCOVER_PLACES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DISCOVER_PLACES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DISCOVER_PLACES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DISCOVER_PLACES"
      },
      "examples": "[\"IV therapy|Plano|60\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DISCOVER_PLACES"
    },
    {
      "key": "LEADS_DRAFT",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Write a wholesale + white-label outreach email for one lead. Saves the draft on the lead. DOES NOT SEND. WHEN_TO_USE: after enrich, to prepare the message for the owner to approve. ARGS: $1 = lead id, $2 = which company it comes from (default miscsubjects). EX: [LEADS_DRAFT]12|miscsubjects[/LEADS_DRAFT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DRAFT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DRAFT",
        "type": "fn",
        "what": [
          "WHAT: Write a wholesale + white-label outreach email for one lead. Saves the draft on the lead. DOES NOT SEND.",
          "WHEN_TO_USE: after enrich, to prepare the message for the owner to approve.",
          "ARGS: $1 = lead id, $2 = which company it comes from (default miscsubjects).",
          "EX: [LEADS_DRAFT]12|miscsubjects[/LEADS_DRAFT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "12",
            "desc": "lead id, $2 = which company it comes from (default miscsubjects).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "miscsubjects",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_DRAFT]12|miscsubjects[/LEADS_DRAFT]",
        "tag": "[LEADS_DRAFT]<12>|<miscsubjects>[/LEADS_DRAFT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DRAFT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DRAFT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DRAFT",
        "update": "PUT /api/directory/LEADS_DRAFT",
        "patch": "PATCH /api/directory/LEADS_DRAFT",
        "delete": "DELETE /api/directory/LEADS_DRAFT",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DRAFT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DRAFT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DRAFT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DRAFT"
      },
      "examples": "[\"6253|miscsubjects\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DRAFT"
    },
    {
      "key": "LEADS_DRAFT_AI",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Grok drafts one review-only outreach email grounded in OUTREACH_DOSSIER and the business site. DOES NOT SEND. Hard-blocks unless email domain MX is verified, ICP score is at least 65, site context is sufficient, and recipient is not suppressed. WHEN_TO_USE: only after enrichment, MX verification, and ICP scoring. ARGS: $1=lead id, $2=brand (default LeoResearch). EX: [LEADS_DRAFT_AI]131|LeoResearch[/LEADS_DRAFT_AI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_DRAFT_AI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_DRAFT_AI",
        "type": "fn",
        "what": [
          "WHAT: Grok drafts one review-only outreach email grounded in OUTREACH_DOSSIER and the business site. DOES NOT SEND. Hard-blocks unless email domain MX is verified, ICP score is at least 65, site context is sufficient, and recipient is not suppressed.",
          "WHEN_TO_USE: only after enrichment, MX verification, and ICP scoring.",
          "ARGS: $1=lead id, $2=brand (default LeoResearch).",
          "EX: [LEADS_DRAFT_AI]131|LeoResearch[/LEADS_DRAFT_AI]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "131",
            "desc": "lead id, $2=brand (default LeoResearch).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "LeoResearch",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_DRAFT_AI]131|LeoResearch[/LEADS_DRAFT_AI]",
        "tag": "[LEADS_DRAFT_AI]<131>|<LeoResearch>[/LEADS_DRAFT_AI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_DRAFT_AI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_DRAFT_AI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_DRAFT_AI",
        "update": "PUT /api/directory/LEADS_DRAFT_AI",
        "patch": "PATCH /api/directory/LEADS_DRAFT_AI",
        "delete": "DELETE /api/directory/LEADS_DRAFT_AI",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_DRAFT_AI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_DRAFT_AI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_DRAFT_AI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_DRAFT_AI"
      },
      "examples": "[\"2732|LeoResearch\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_DRAFT_AI"
    },
    {
      "key": "LEADS_ENRICH",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Visit one lead's website and pull the best contact email. Sets the lead to enriched or no_email. WHEN_TO_USE: after discovery, to get an email to reach out to. ARGS: $1 = lead id. EX: [LEADS_ENRICH]12[/LEADS_ENRICH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_ENRICH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_ENRICH",
        "type": "fn",
        "what": [
          "WHAT: Visit one lead's website and pull the best contact email. Sets the lead to enriched or no_email.",
          "WHEN_TO_USE: after discovery, to get an email to reach out to.",
          "ARGS: $1 = lead id.",
          "EX: [LEADS_ENRICH]12[/LEADS_ENRICH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "12",
            "desc": "lead id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_ENRICH]12[/LEADS_ENRICH]",
        "tag": "[LEADS_ENRICH]<12>[/LEADS_ENRICH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_ENRICH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_ENRICH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_ENRICH",
        "update": "PUT /api/directory/LEADS_ENRICH",
        "patch": "PATCH /api/directory/LEADS_ENRICH",
        "delete": "DELETE /api/directory/LEADS_ENRICH",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_ENRICH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_ENRICH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_ENRICH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_ENRICH"
      },
      "examples": "[\"107693\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_ENRICH"
    },
    {
      "key": "LEADS_ENRICH_BATCH",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Enrich the next batch of un-enriched leads in one call (finds emails + context by crawling each organization's own public site). Bounded so it never fails; call repeatedly to work through the queue. Optionally task-scoped. WHEN_TO_USE: after discovery, to fill in emails and context for many leads. For task-bound proof runs (execution cases) ALWAYS pass the work task id as $2 so only that task's candidate leads are claimed and ambient leads never satisfy a task acceptance count. ARGS: $1 = how many to do this call (default 6, cap 8). $2 = optional work task id (e.g. WT-0090): scopes the claim to leads bound to that task's included execution-case candidates and first syncs candidates whose lead was already resolved. EX: [LEADS_ENRICH_BATCH]8|WT-0090[/LEADS_ENRICH_BATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_ENRICH_BATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_ENRICH_BATCH",
        "type": "fn",
        "what": [
          "WHAT: Enrich the next batch of un-enriched leads in one call (finds emails + context by crawling each organization's own public site). Bounded so it never fails; call repeatedly to work through the queue. Optionally task-scoped.",
          "WHEN_TO_USE: after discovery, to fill in emails and context for many leads. For task-bound proof runs (execution cases) ALWAYS pass the work task id as $2 so only that task's candidate leads are claimed and ambient leads never satisfy a task acceptance count.",
          "ARGS: $1 = how many to do this call (default 6, cap 8). $2 = optional work task id (e.g. WT-0090): scopes the claim to leads bound to that task's included execution-case candidates and first syncs candidates whose lead was already resolved.",
          "EX: [LEADS_ENRICH_BATCH]8|WT-0090[/LEADS_ENRICH_BATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "8",
            "desc": "how many to do this call (default 6, cap 8). $2 = optional work task id (e.g. WT-0090): scopes the claim to leads bound to that task's included execution-case candidates and first syncs candidates whose lead was already resolved.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "WT-0090",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_ENRICH_BATCH]8|WT-0090[/LEADS_ENRICH_BATCH]",
        "tag": "[LEADS_ENRICH_BATCH]<8>|<WT-0090>[/LEADS_ENRICH_BATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_ENRICH_BATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_ENRICH_BATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_ENRICH_BATCH",
        "update": "PUT /api/directory/LEADS_ENRICH_BATCH",
        "patch": "PATCH /api/directory/LEADS_ENRICH_BATCH",
        "delete": "DELETE /api/directory/LEADS_ENRICH_BATCH",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_ENRICH_BATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_ENRICH_BATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_ENRICH_BATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_ENRICH_BATCH"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_ENRICH_BATCH"
    },
    {
      "key": "LEADS_FIND_SITES",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Rescue websiteless leads — one Grok live-search call finds official websites for a batch of leads that have name+city but no site. Found leads stay status=new so LEADS_ENRICH_BATCH picks them up. WHEN_TO_USE: when leads sit in status=new with no website (OSM often lacks the website tag) — they are unreachable until this runs. ARGS: $1 = batch size (default 8, cap 10). EX: [LEADS_FIND_SITES]8[/LEADS_FIND_SITES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_FIND_SITES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_FIND_SITES",
        "type": "fn",
        "what": [
          "WHAT: Rescue websiteless leads — one Grok live-search call finds official websites for a batch of leads that have name+city but no site. Found leads stay status=new so LEADS_ENRICH_BATCH picks them up.",
          "WHEN_TO_USE: when leads sit in status=new with no website (OSM often lacks the website tag) — they are unreachable until this runs.",
          "ARGS: $1 = batch size (default 8, cap 10).",
          "EX: [LEADS_FIND_SITES]8[/LEADS_FIND_SITES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "8",
            "desc": "batch size (default 8, cap 10).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_FIND_SITES]8[/LEADS_FIND_SITES]",
        "tag": "[LEADS_FIND_SITES]<8>[/LEADS_FIND_SITES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_FIND_SITES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_FIND_SITES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_FIND_SITES",
        "update": "PUT /api/directory/LEADS_FIND_SITES",
        "patch": "PATCH /api/directory/LEADS_FIND_SITES",
        "delete": "DELETE /api/directory/LEADS_FIND_SITES",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_FIND_SITES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_FIND_SITES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_FIND_SITES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_FIND_SITES"
      },
      "examples": "[\"8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_FIND_SITES"
    },
    {
      "key": "LEADS_FOLLOWUPS",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Generate the follow-up sequence (touch 2 new-angle + touch 3 break-up) for an already-drafted lead, on the same thread. DOES NOT SEND. Stored on the lead draft as {followups:{touch2,touch3}}. WHEN_TO_USE: after LEADS_DRAFT_AI has produced the first touch; before sending, so the whole 3-touch sequence is staged for review. ARGS: $1=lead id, $2=brand (default LeoResearch). EX: [LEADS_FOLLOWUPS]2633|LeoResearch[/LEADS_FOLLOWUPS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_FOLLOWUPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_FOLLOWUPS",
        "type": "fn",
        "what": [
          "WHAT: Generate the follow-up sequence (touch 2 new-angle + touch 3 break-up) for an already-drafted lead, on the same thread. DOES NOT SEND. Stored on the lead draft as {followups:{touch2,touch3}}.",
          "WHEN_TO_USE: after LEADS_DRAFT_AI has produced the first touch; before sending, so the whole 3-touch sequence is staged for review.",
          "ARGS: $1=lead id, $2=brand (default LeoResearch).",
          "EX: [LEADS_FOLLOWUPS]2633|LeoResearch[/LEADS_FOLLOWUPS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "2633",
            "desc": "lead id, $2=brand (default LeoResearch).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "LeoResearch",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_FOLLOWUPS]2633|LeoResearch[/LEADS_FOLLOWUPS]",
        "tag": "[LEADS_FOLLOWUPS]<2633>|<LeoResearch>[/LEADS_FOLLOWUPS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_FOLLOWUPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_FOLLOWUPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_FOLLOWUPS",
        "update": "PUT /api/directory/LEADS_FOLLOWUPS",
        "patch": "PATCH /api/directory/LEADS_FOLLOWUPS",
        "delete": "DELETE /api/directory/LEADS_FOLLOWUPS",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_FOLLOWUPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_FOLLOWUPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_FOLLOWUPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_FOLLOWUPS"
      },
      "examples": "[\"107693\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_FOLLOWUPS"
    },
    {
      "key": "LEADS_LIST",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: List leads and a count by status (new, enriched, drafted, no_email, sent). WHEN_TO_USE: see the outreach pipeline. ARGS: $1 = status filter (optional; blank = all). EX: [LEADS_LIST]drafted[/LEADS_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_LIST",
        "type": "fn",
        "what": [
          "WHAT: List leads and a count by status (new, enriched, drafted, no_email, sent).",
          "WHEN_TO_USE: see the outreach pipeline.",
          "ARGS: $1 = status filter (optional; blank = all).",
          "EX: [LEADS_LIST]drafted[/LEADS_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "drafted",
            "desc": "status filter (optional",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_LIST]drafted[/LEADS_LIST]",
        "tag": "[LEADS_LIST]<drafted>[/LEADS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_LIST",
        "update": "PUT /api/directory/LEADS_LIST",
        "patch": "PATCH /api/directory/LEADS_LIST",
        "delete": "DELETE /api/directory/LEADS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_LIST"
      },
      "examples": "[\"drafted\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_LIST"
    },
    {
      "key": "LEADS_REENRICH",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Second pass over status=no_email leads with the deep crawler (mailto links, Cloudflare-obfuscated emails, JSON-LD, /contact-us + /about pages — none of which the v1 crawler read). WHEN_TO_USE: rescue contactable emails from the no_email pool without any new discovery. ARGS: $1 = batch size (default 6, cap 8). EX: [LEADS_REENRICH]6[/LEADS_REENRICH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_REENRICH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_REENRICH",
        "type": "fn",
        "what": [
          "WHAT: Second pass over status=no_email leads with the deep crawler (mailto links, Cloudflare-obfuscated emails, JSON-LD, /contact-us + /about pages — none of which the v1 crawler read).",
          "WHEN_TO_USE: rescue contactable emails from the no_email pool without any new discovery.",
          "ARGS: $1 = batch size (default 6, cap 8).",
          "EX: [LEADS_REENRICH]6[/LEADS_REENRICH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "6",
            "desc": "batch size (default 6, cap 8).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_REENRICH]6[/LEADS_REENRICH]",
        "tag": "[LEADS_REENRICH]<6>[/LEADS_REENRICH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_REENRICH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_REENRICH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_REENRICH",
        "update": "PUT /api/directory/LEADS_REENRICH",
        "patch": "PATCH /api/directory/LEADS_REENRICH",
        "delete": "DELETE /api/directory/LEADS_REENRICH",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_REENRICH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_REENRICH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_REENRICH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_REENRICH"
      },
      "examples": "[\"8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_REENRICH"
    },
    {
      "key": "LEADS_RESOLVE_SITES",
      "type": "fn",
      "category": "leads",
      "doc": "WHAT: Backfill missing websites on siteless leads (NPPES rows have name + phone + address but never a website) so the enrichment crawler can reach them. Looks the practice up on Google Places BY PHONE NUMBER, then requires the Google name to share a word with the registry name before it writes anything — a phone that now answers for a billing company or an unrelated business is recorded as a mismatch and never written. Every attempt is stamped into notes as resolve:ok | name_mismatch | no_website | no_place, so a lead is only ever paid for once and the queue always advances. WHEN_TO_USE: after LEADS_DISCOVER_NPI, before enrichment. COST: $0.017 per Places request. Two requests per identified lead, one per unidentifiable one. ARGS: $1=limit (default 20, max 30). $2=segment LIKE filter, e.g. chiro (optional; blank = any segment). EX: [LEADS_RESOLVE_SITES]30|chiro[/LEADS_RESOLVE_SITES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_RESOLVE_SITES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_RESOLVE_SITES",
        "type": "fn",
        "what": [
          "WHAT: Backfill missing websites on siteless leads (NPPES rows have name + phone + address but never a website) so the enrichment crawler can reach them. Looks the practice up on Google Places BY PHONE NUMBER, then requires the Google name to share a word with the registry name before it writes anything — a phone that now answers for a billing company or an unrelated business is recorded as a mismatch and never written. Every attempt is stamped into notes as resolve:ok | name_mismatch | no_website | no_place, so a lead is only ever paid for once and the queue always advances.",
          "WHEN_TO_USE: after LEADS_DISCOVER_NPI, before enrichment.",
          "COST: $0.017 per Places request. Two requests per identified lead, one per unidentifiable one.",
          "ARGS: $1=limit (default 20, max 30). $2=segment LIKE filter, e.g. chiro (optional; blank = any segment).",
          "EX: [LEADS_RESOLVE_SITES]30|chiro[/LEADS_RESOLVE_SITES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "30",
            "desc": "limit (default 20, max 30). $2=segment LIKE filter, e.g. chiro (optional",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "chiro",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_RESOLVE_SITES]30|chiro[/LEADS_RESOLVE_SITES]",
        "tag": "[LEADS_RESOLVE_SITES]<30>|<chiro>[/LEADS_RESOLVE_SITES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_RESOLVE_SITES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_RESOLVE_SITES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_RESOLVE_SITES",
        "update": "PUT /api/directory/LEADS_RESOLVE_SITES",
        "patch": "PATCH /api/directory/LEADS_RESOLVE_SITES",
        "delete": "DELETE /api/directory/LEADS_RESOLVE_SITES",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_RESOLVE_SITES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_RESOLVE_SITES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_RESOLVE_SITES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_RESOLVE_SITES"
      },
      "examples": "[\"30|chiro\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_RESOLVE_SITES"
    },
    {
      "key": "LEADS_RUN_CITY",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: One call = discover a segment in a city, then enrich a batch. The fastest way to grow the pipeline. WHEN_TO_USE: add a new city/segment to the pipeline. ARGS: $1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = discover limit (default 40), $4 = enrich count (default 8). EX: [LEADS_RUN_CITY]medspa|Miami|40|8[/LEADS_RUN_CITY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_RUN_CITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_RUN_CITY",
        "type": "fn",
        "what": [
          "WHAT: One call = discover a segment in a city, then enrich a batch. The fastest way to grow the pipeline.",
          "WHEN_TO_USE: add a new city/segment to the pipeline.",
          "ARGS: $1 = segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = discover limit (default 40), $4 = enrich count (default 8).",
          "EX: [LEADS_RUN_CITY]medspa|Miami|40|8[/LEADS_RUN_CITY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "medspa",
            "desc": "segment (medspa|clinic|wellness|gym|supplement|chiro|massage|weightloss|longevity), $2 = city, $3 = discover limit (default 40), $4 = enrich count (default 8).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Miami",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "40",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "8",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_RUN_CITY]medspa|Miami|40|8[/LEADS_RUN_CITY]",
        "tag": "[LEADS_RUN_CITY]<medspa>|<Miami>|<40>|<8>[/LEADS_RUN_CITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_RUN_CITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_RUN_CITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_RUN_CITY",
        "update": "PUT /api/directory/LEADS_RUN_CITY",
        "patch": "PATCH /api/directory/LEADS_RUN_CITY",
        "delete": "DELETE /api/directory/LEADS_RUN_CITY",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_RUN_CITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_RUN_CITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_RUN_CITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_RUN_CITY"
      },
      "examples": "[\"medspa|Miami|40|8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_RUN_CITY"
    },
    {
      "key": "LEADS_SCORE_AI",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: AI ICP scoring — one Grok (grok-4.3) call scores a batch of enriched leads 0-100 on real wholesale/white-label peptide buying fit, grounded in OUTREACH_DOSSIER. Writes score + an icp: note (buyer type, volume guess, concrete reason) so LEADS_LIST ranks by commercial fit instead of has-a-website. WHEN_TO_USE: after enrichment, before drafting; \"score the leads\", \"which leads are actually worth emailing\". ARGS: $1 = batch size (default 8, cap 10). Call repeatedly until it returns scored:0. EX: [LEADS_SCORE_AI]8[/LEADS_SCORE_AI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SCORE_AI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SCORE_AI",
        "type": "fn",
        "what": [
          "WHAT: AI ICP scoring — one Grok (grok-4.3) call scores a batch of enriched leads 0-100 on real wholesale/white-label peptide buying fit, grounded in OUTREACH_DOSSIER. Writes score + an icp: note (buyer type, volume guess, concrete reason) so LEADS_LIST ranks by commercial fit instead of has-a-website.",
          "WHEN_TO_USE: after enrichment, before drafting; \"score the leads\", \"which leads are actually worth emailing\".",
          "ARGS: $1 = batch size (default 8, cap 10). Call repeatedly until it returns scored:0.",
          "EX: [LEADS_SCORE_AI]8[/LEADS_SCORE_AI]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "8",
            "desc": "batch size (default 8, cap 10). Call repeatedly until it returns scored:0.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "scored:0.",
        "example": "[LEADS_SCORE_AI]8[/LEADS_SCORE_AI]",
        "tag": "[LEADS_SCORE_AI]<8>[/LEADS_SCORE_AI]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SCORE_AI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SCORE_AI  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_SCORE_AI",
        "update": "PUT /api/directory/LEADS_SCORE_AI",
        "patch": "PATCH /api/directory/LEADS_SCORE_AI",
        "delete": "DELETE /api/directory/LEADS_SCORE_AI",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SCORE_AI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SCORE_AI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SCORE_AI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SCORE_AI"
      },
      "examples": "[\"8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SCORE_AI"
    },
    {
      "key": "LEADS_SEND",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Send ONE lead's already-saved email through the owner-reviewed Marketing admin. WHEN_TO_USE: only after the owner reviewed the exact recipient, subject, and body in Admin → Marketing → Leads, approved that exact copy, and separately clicked Send. SAFETY: literal CONFIRM alone is insufficient. $4 must be a current, unexpired, single-use approval token tied to the saved recipient+subject+body hash. Editing copy invalidates approval. Terminal keys/share tokens cannot mint approval. ARGS: $1=CONFIRM, $2=lead id, $3=from local-part, $4=owner-browser exact-copy approval token.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SEND",
        "type": "fn",
        "what": [
          "WHAT: Send ONE lead's already-saved email through the owner-reviewed Marketing admin.",
          "WHEN_TO_USE: only after the owner reviewed the exact recipient, subject, and body in Admin → Marketing → Leads, approved that exact copy, and separately clicked Send.",
          "SAFETY: literal CONFIRM alone is insufficient. $4 must be a current, unexpired, single-use approval token tied to the saved recipient+subject+body hash. Editing copy invalidates approval. Terminal keys/share tokens cannot mint approval.",
          "ARGS: $1=CONFIRM, $2=lead id, $3=from local-part, $4=owner-browser exact-copy approval token."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "CONFIRM, $2=lead id, $3=from local-part, $4=owner-browser exact-copy approval token.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_SEND]arg1|arg2|arg3|arg4[/LEADS_SEND]",
        "tag": "[LEADS_SEND]<arg1>|<arg2>|<arg3>|<arg4>[/LEADS_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_SEND",
        "update": "PUT /api/directory/LEADS_SEND",
        "patch": "PATCH /api/directory/LEADS_SEND",
        "delete": "DELETE /api/directory/LEADS_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SEND"
      },
      "examples": "[\"CONFIRM|2636|build\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SEND"
    },
    {
      "key": "LEADS_SEND_BATCH",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Batch outreach sending is disabled. WHEN_TO_USE: never; use the owner-reviewed individual send path in Admin → Marketing → Leads. SAFETY: always returns batch_send_disabled and sends nothing until a campaign-level exact-copy review surface is explicitly built and approved.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SEND_BATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SEND_BATCH",
        "type": "fn",
        "what": [
          "WHAT: Batch outreach sending is disabled.",
          "WHEN_TO_USE: never; use the owner-reviewed individual send path in Admin → Marketing → Leads.",
          "SAFETY: always returns batch_send_disabled and sends nothing until a campaign-level exact-copy review surface is explicitly built and approved."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "batch_send_disabled and sends nothing until a campaign-level exact-copy review surface is explicitly built and approved.",
        "example": "[LEADS_SEND_BATCH]arg1|arg2[/LEADS_SEND_BATCH]",
        "tag": "[LEADS_SEND_BATCH]<arg1>|<arg2>[/LEADS_SEND_BATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SEND_BATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SEND_BATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_SEND_BATCH",
        "update": "PUT /api/directory/LEADS_SEND_BATCH",
        "patch": "PATCH /api/directory/LEADS_SEND_BATCH",
        "delete": "DELETE /api/directory/LEADS_SEND_BATCH",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SEND_BATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SEND_BATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SEND_BATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SEND_BATCH"
      },
      "examples": "[\"CONFIRM|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SEND_BATCH"
    },
    {
      "key": "LEADS_SHEET_ENRICHED",
      "type": "flow",
      "category": "biz-dev",
      "doc": "Superseded 2026-08-05. This flow ended in `LIMIT 30` because larger payloads were silently dropped by the transport; it wrote 30 of 5,841 resolved contacts and looked complete. LEADS_SHEET_PUSH chunks the write and counts only confirmed receipts.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SHEET_ENRICHED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SHEET_ENRICHED",
        "type": "flow",
        "what": [
          "Superseded 2026-08-05. This flow ended in `LIMIT 30` because larger payloads were silently dropped by the transport; it wrote 30 of 5,841 resolved contacts and looked complete. LEADS_SHEET_PUSH chunks the write and counts only confirmed receipts."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[LEADS_SHEET_ENRICHED]arg1[/LEADS_SHEET_ENRICHED]",
        "tag": "[LEADS_SHEET_ENRICHED]<arg1>[/LEADS_SHEET_ENRICHED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SHEET_ENRICHED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SHEET_ENRICHED  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LEADS_SHEET_ENRICHED",
        "update": "PUT /api/directory/LEADS_SHEET_ENRICHED",
        "patch": "PATCH /api/directory/LEADS_SHEET_ENRICHED",
        "delete": "DELETE /api/directory/LEADS_SHEET_ENRICHED",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SHEET_ENRICHED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SHEET_ENRICHED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SHEET_ENRICHED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SHEET_ENRICHED"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SHEET_ENRICHED"
    },
    {
      "key": "LEADS_SHEET_PUSH",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Write the enriched lead list (name, city, email, score, website, status) to the LEADS_ENRICHED tab of the master sheet, in chunks, reporting how many rows the Apps Script itself confirmed writing. WHY IN CHUNKS, AND WHY RESUMABLE: one large POST to the Apps Script loses its body and nothing is written; and the full 5,841 rows take more sequential round-trips to Google than Cloudflare's 100-second edge limit allows, which returned 524 with the work half done. So each call does a bounded number of chunks and hands back next_offset. Offset 0 replaces the tab (a re-run from 0 is idempotent); any offset above 0 appends. Keep calling with next_offset until done is true. WHEN_TO_USE: after an enrichment run, or any time the sheet needs to match D1. ARGS: $1 = rows per chunk (default 250, min 25, max 500). $2 = start offset (default 0). $3 = chunks this call (default 4, max 8). $4 = max rows total (default 0 = every enriched lead). EX: [LEADS_SHEET_PUSH]500|0|6[/LEADS_SHEET_PUSH] then [LEADS_SHEET_PUSH]500|3000|6[/LEADS_SHEET_PUSH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SHEET_PUSH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SHEET_PUSH",
        "type": "fn",
        "what": [
          "WHAT: Write the enriched lead list (name, city, email, score, website, status) to the LEADS_ENRICHED tab of the master sheet, in chunks, reporting how many rows the Apps Script itself confirmed writing.",
          "WHY IN CHUNKS, AND WHY RESUMABLE: one large POST to the Apps Script loses its body and nothing is written; and the full 5,841 rows take more sequential round-trips to Google than Cloudflare's 100-second edge limit allows, which returned 524 with the work half done. So each call does a bounded number of chunks and hands back next_offset. Offset 0 replaces the tab (a re-run from 0 is idempotent); any offset above 0 appends. Keep calling with next_offset until done is true.",
          "WHEN_TO_USE: after an enrichment run, or any time the sheet needs to match D1.",
          "ARGS: $1 = rows per chunk (default 250, min 25, max 500). $2 = start offset (default 0). $3 = chunks this call (default 4, max 8). $4 = max rows total (default 0 = every enriched lead).",
          "EX: [LEADS_SHEET_PUSH]500|0|6[/LEADS_SHEET_PUSH] then [LEADS_SHEET_PUSH]500|3000|6[/LEADS_SHEET_PUSH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "500",
            "desc": "rows per chunk (default 250, min 25, max 500). $2 = start offset (default 0). $3 = chunks this call (default 4, max 8). $4 = max rows total (default 0 = every enriched lead).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "0",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_SHEET_PUSH]500|0|6[/LEADS_SHEET_PUSH] then [LEADS_SHEET_PUSH]500|3000|6[/LEADS_SHEET_PUSH]",
        "tag": "[LEADS_SHEET_PUSH]<500>|<0>|<6>|<arg4>[/LEADS_SHEET_PUSH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SHEET_PUSH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SHEET_PUSH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_SHEET_PUSH",
        "update": "PUT /api/directory/LEADS_SHEET_PUSH",
        "patch": "PATCH /api/directory/LEADS_SHEET_PUSH",
        "delete": "DELETE /api/directory/LEADS_SHEET_PUSH",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SHEET_PUSH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SHEET_PUSH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SHEET_PUSH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SHEET_PUSH"
      },
      "examples": "[\"500|4000|8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SHEET_PUSH"
    },
    {
      "key": "LEADS_SHEET_SYNC",
      "type": "flow",
      "category": "biz-dev",
      "doc": "Push the lead pipeline aggregates to the master Google Sheet. Two tabs: LEADS_BY_SEGMENT (the pipeline by business type) and LEADS_BY_SOURCE (where each lead came from and how many resolved an email). LEADS_ENRICHED is no longer written here — that tab is owned by LEADS_SHEET_PUSH, which chunks the write; a single-shot replace of 5,000+ rows through this flow's one POST corrupted the JSON in transit every time (airunner_body_truncated_in_transit) and never wrote a row. TWO PARSER CONSTRAINTS, both found the hard way. The flow stores its steps as text, so escaped SQL quotes do not survive the round trip; and a greater-than sign separates steps, so it cannot appear inside a step. Hence no string literals and no comparison operators below. WHEN_TO_USE: \"put the lead segment/source breakdown on the sheet\", \"sync the lead sheet\" (run LEADS_SHEET_PUSH separately for LEADS_ENRICHED).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SHEET_SYNC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SHEET_SYNC",
        "type": "flow",
        "what": [
          "Push the lead pipeline aggregates to the master Google Sheet. Two tabs: LEADS_BY_SEGMENT (the",
          "pipeline by business type) and LEADS_BY_SOURCE (where each lead came from and how many resolved an",
          "email). LEADS_ENRICHED is no longer written here — that tab is owned by LEADS_SHEET_PUSH, which",
          "chunks the write; a single-shot replace of 5,000+ rows through this flow's one POST corrupted the",
          "JSON in transit every time (airunner_body_truncated_in_transit) and never wrote a row.",
          "TWO PARSER CONSTRAINTS, both found the hard way. The flow stores its steps as text, so escaped SQL",
          "quotes do not survive the round trip; and a greater-than sign separates steps, so it cannot appear",
          "inside a step. Hence no string literals and no comparison operators below.",
          "WHEN_TO_USE: \"put the lead segment/source breakdown on the sheet\", \"sync the lead sheet\" (run",
          "LEADS_SHEET_PUSH separately for LEADS_ENRICHED)."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "SHEET_ID"
        ],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[LEADS_SHEET_SYNC][/LEADS_SHEET_SYNC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SHEET_SYNC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SHEET_SYNC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LEADS_SHEET_SYNC",
        "update": "PUT /api/directory/LEADS_SHEET_SYNC",
        "patch": "PATCH /api/directory/LEADS_SHEET_SYNC",
        "delete": "DELETE /api/directory/LEADS_SHEET_SYNC",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SHEET_SYNC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SHEET_SYNC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SHEET_SYNC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SHEET_SYNC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SHEET_SYNC"
    },
    {
      "key": "LEADS_SWEEP",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Multi-city sweep — one segment across up to 3 cities (OSM discover per city) plus one enrich batch, in a single call. WHEN_TO_USE: fastest way to open several new cities at once. ARGS: $1 = segment, $2 = comma-separated cities (max 3), $3 = per-city discover limit (default 40). EX: [LEADS_SWEEP]medspa|Phoenix,Scottsdale,Houston|40[/LEADS_SWEEP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_SWEEP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_SWEEP",
        "type": "fn",
        "what": [
          "WHAT: Multi-city sweep — one segment across up to 3 cities (OSM discover per city) plus one enrich batch, in a single call.",
          "WHEN_TO_USE: fastest way to open several new cities at once.",
          "ARGS: $1 = segment, $2 = comma-separated cities (max 3), $3 = per-city discover limit (default 40).",
          "EX: [LEADS_SWEEP]medspa|Phoenix,Scottsdale,Houston|40[/LEADS_SWEEP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "medspa",
            "desc": "segment, $2 = comma-separated cities (max 3), $3 = per-city discover limit (default 40).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Phoenix,Scottsdale,Houston",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "40",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEADS_SWEEP]medspa|Phoenix,Scottsdale,Houston|40[/LEADS_SWEEP]",
        "tag": "[LEADS_SWEEP]<medspa>|<Phoenix,Scottsdale,Houston>|<40>[/LEADS_SWEEP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_SWEEP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_SWEEP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/LEADS_SWEEP",
        "update": "PUT /api/directory/LEADS_SWEEP",
        "patch": "PATCH /api/directory/LEADS_SWEEP",
        "delete": "DELETE /api/directory/LEADS_SWEEP",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_SWEEP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_SWEEP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_SWEEP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_SWEEP"
      },
      "examples": "[\"medspa|Phoenix,Scottsdale,Denver|40\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_SWEEP"
    },
    {
      "key": "LEADS_VERIFY_MX",
      "type": "fn",
      "category": "biz-dev",
      "doc": "WHAT: Verify whether the email domain publishes MX records using DNS-over-HTTPS. Tags mx:ok or mx:none. This verifies the domain, not the individual mailbox.\\n# WHEN_TO_USE: after enrichment and before ICP scoring or drafting.\\n# ARGS: $1=max leads (default 25, cap 50).\\n# EX: [LEADS_VERIFY_MX]25[/LEADS_VERIFY_MX]\\n[\"$1\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEADS_VERIFY_MX",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEADS_VERIFY_MX",
        "type": "fn",
        "what": [
          "WHAT: Verify whether the email domain publishes MX records using DNS-over-HTTPS. Tags mx:ok or mx:none. This verifies the domain, not the individual mailbox.\\n# WHEN_TO_USE: after enrichment and before ICP scoring or drafting.\\n# ARGS: $1=max leads (default 25, cap 50).\\n# EX: [LEADS_VERIFY_MX]25[/LEADS_VERIFY_MX]\\n[\"$1\"]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[LEADS_VERIFY_MX][/LEADS_VERIFY_MX]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEADS_VERIFY_MX\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEADS_VERIFY_MX  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LEADS_VERIFY_MX",
        "update": "PUT /api/directory/LEADS_VERIFY_MX",
        "patch": "PATCH /api/directory/LEADS_VERIFY_MX",
        "delete": "DELETE /api/directory/LEADS_VERIFY_MX",
        "invoke": "POST /api/dispatch {\"key\":\"LEADS_VERIFY_MX\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEADS_VERIFY_MX\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEADS_VERIFY_MX\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEADS_VERIFY_MX"
      },
      "examples": "[\"50\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEADS_VERIFY_MX"
    },
    {
      "key": "LEASE_ACT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The lessee runs one allowed action on the leased resource. Forbidden actions are refused FORBIDDEN_ACTION, spends over the ceiling SPEND_CEILING, another token NOT_THE_LESSEE, a spent lease USES_EXHAUSTED. WHEN_TO_USE: the lessee, through their lease token, does the work the lease allows. ARGS: lease_id|KEY|body EX: [LEASE_ACT]lease_abc|META_ADS_ACCOUNT_GET|act_123[/LEASE_ACT] TESTS: An allowed action returns the row's result and an invocation id; each refusal is by name.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_ACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_ACT",
        "type": "fn",
        "what": [
          "WHAT: The lessee runs one allowed action on the leased resource. Forbidden actions are refused FORBIDDEN_ACTION, spends over the ceiling SPEND_CEILING, another token NOT_THE_LESSEE, a spent lease USES_EXHAUSTED.",
          "WHEN_TO_USE: the lessee, through their lease token, does the work the lease allows.",
          "ARGS: lease_id|KEY|body",
          "EX: [LEASE_ACT]lease_abc|META_ADS_ACCOUNT_GET|act_123[/LEASE_ACT]",
          "TESTS: An allowed action returns the row's result and an invocation id; each refusal is by name."
        ],
        "args": [
          {
            "pos": 1,
            "name": "lease_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the row's result and an invocation id; each refusal is by name.",
        "example": "[LEASE_ACT]lease_abc|META_ADS_ACCOUNT_GET|act_123[/LEASE_ACT]",
        "tag": "[LEASE_ACT]<lease_abc …>[/LEASE_ACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_ACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_ACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_ACT",
        "update": "PUT /api/directory/LEASE_ACT",
        "patch": "PATCH /api/directory/LEASE_ACT",
        "delete": "DELETE /api/directory/LEASE_ACT",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_ACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_ACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_ACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_ACT"
      },
      "examples": "[\"lease_abc|META_ADS_ACCOUNT_GET|act_123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_ACT"
    },
    {
      "key": "LEASE_ACTIVATE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Open a reserved lease: take the before snapshot and record the checkout receipt. WHEN_TO_USE: the lessee is ready to start. ARGS: lease_id EX: [LEASE_ACTIVATE]lease_abc[/LEASE_ACTIVATE] TESTS: Returns state active with pre_state_hash; an expired reservation is refused LEASE_EXPIRED.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_ACTIVATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_ACTIVATE",
        "type": "fn",
        "what": [
          "WHAT: Open a reserved lease: take the before snapshot and record the checkout receipt.",
          "WHEN_TO_USE: the lessee is ready to start.",
          "ARGS: lease_id",
          "EX: [LEASE_ACTIVATE]lease_abc[/LEASE_ACTIVATE]",
          "TESTS: Returns state active with pre_state_hash; an expired reservation is refused LEASE_EXPIRED."
        ],
        "args": [
          {
            "pos": 1,
            "name": "lease_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "state active with pre_state_hash; an expired reservation is refused LEASE_EXPIRED.",
        "example": "[LEASE_ACTIVATE]lease_abc[/LEASE_ACTIVATE]",
        "tag": "[LEASE_ACTIVATE]<lease_abc …>[/LEASE_ACTIVATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_ACTIVATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_ACTIVATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_ACTIVATE",
        "update": "PUT /api/directory/LEASE_ACTIVATE",
        "patch": "PATCH /api/directory/LEASE_ACTIVATE",
        "delete": "DELETE /api/directory/LEASE_ACTIVATE",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_ACTIVATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_ACTIVATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_ACTIVATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_ACTIVATE"
      },
      "examples": "[\"lease_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_ACTIVATE"
    },
    {
      "key": "LEASE_END",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Close a lease: take the after snapshot, compare with the before, revoke the lessee token, free the resource if clean or quarantine it and file a work task if not. WHEN_TO_USE: the lease is over. ARGS: lease_id EX: [LEASE_END]lease_abc[/LEASE_END] TESTS: A clean return ends the lease; a changed resource answers ERR:SNAPSHOT_MISMATCH with the task id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_END",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_END",
        "type": "fn",
        "what": [
          "WHAT: Close a lease: take the after snapshot, compare with the before, revoke the lessee token, free the resource if clean or quarantine it and file a work task if not.",
          "WHEN_TO_USE: the lease is over.",
          "ARGS: lease_id",
          "EX: [LEASE_END]lease_abc[/LEASE_END]",
          "TESTS: A clean return ends the lease; a changed resource answers ERR:SNAPSHOT_MISMATCH with the task id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "lease_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ends the lease; a changed resource answers ERR:SNAPSHOT_MISMATCH with the task id.",
        "example": "[LEASE_END]lease_abc[/LEASE_END]",
        "tag": "[LEASE_END]<lease_abc …>[/LEASE_END]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_END\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_END  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_END",
        "update": "PUT /api/directory/LEASE_END",
        "patch": "PATCH /api/directory/LEASE_END",
        "delete": "DELETE /api/directory/LEASE_END",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_END\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_END\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_END\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_END"
      },
      "examples": "[\"lease_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_END"
    },
    {
      "key": "LEASE_NEW",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Grant one lessee bounded control of a resource for a number of hours: the actions they may run, the actions forbidden, a spend ceiling, exclusivity. The lessee receives a token scoped to LEASE_ACT and LEASE_STATUS only, bound to their profile; no credential ever moves. WHEN_TO_USE: renting an account or profile safely. ARGS: resource_id|lessee_phone_or_profile|hours|allowed_actions(csv)|forbidden_actions(csv)|spend_ceiling_usd|exclusive(1/0) EX: [LEASE_NEW]res_abc|+15555550100|24|META_ADS_ACCOUNT_GET,META_ADS_INSIGHTS|META_ADS_BUDGET_SET,META_ADS_STATUS_SET|50|1[/LEASE_NEW] TESTS: Returns lease_id in state reserved and the lessee token; a second exclusive lease on a held resource is refused RESOURCE_BUSY; a quarantined resource is refused RESOURCE_UNAVAILABLE.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_NEW",
        "type": "fn",
        "what": [
          "WHAT: Grant one lessee bounded control of a resource for a number of hours: the actions they may run, the actions forbidden, a spend ceiling, exclusivity. The lessee receives a token scoped to LEASE_ACT and LEASE_STATUS only, bound to their profile; no credential ever moves.",
          "WHEN_TO_USE: renting an account or profile safely.",
          "ARGS: resource_id|lessee_phone_or_profile|hours|allowed_actions(csv)|forbidden_actions(csv)|spend_ceiling_usd|exclusive(1/0)",
          "EX: [LEASE_NEW]res_abc|+15555550100|24|META_ADS_ACCOUNT_GET,META_ADS_INSIGHTS|META_ADS_BUDGET_SET,META_ADS_STATUS_SET|50|1[/LEASE_NEW]",
          "TESTS: Returns lease_id in state reserved and the lessee token; a second exclusive lease on a held resource is refused RESOURCE_BUSY; a quarantined resource is refused RESOURCE_UNAVAILABLE."
        ],
        "args": [
          {
            "pos": 1,
            "name": "res_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "lease_id in state reserved and the lessee token; a second exclusive lease on a held resource is refused RESOURCE_BUSY; a quarantined resource is refused RESOURCE_UNAVAILABLE.",
        "example": "[LEASE_NEW]res_abc|+15555550100|24|META_ADS_ACCOUNT_GET,META_ADS_INSIGHTS|META_ADS_BUDGET_SET,META_ADS_STATUS_SET|50|1[/LEASE_NEW]",
        "tag": "[LEASE_NEW]<res_abc …>[/LEASE_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_NEW",
        "update": "PUT /api/directory/LEASE_NEW",
        "patch": "PATCH /api/directory/LEASE_NEW",
        "delete": "DELETE /api/directory/LEASE_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_NEW"
      },
      "examples": "[\"res_abc|+15555550100|24|META_ADS_ACCOUNT_GET|META_ADS_BUDGET_SET|50|1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_NEW"
    },
    {
      "key": "LEASE_STATUS",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The lease, its resource, its snapshots, and the name of every refusal it can produce. WHEN_TO_USE: a lessee or the owner asks what a lease allows and what happened under it. ARGS: lease_id EX: [LEASE_STATUS]lease_abc[/LEASE_STATUS] TESTS: Returns the lease object with allowed and forbidden actions and the snapshot list.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_STATUS",
        "type": "fn",
        "what": [
          "WHAT: The lease, its resource, its snapshots, and the name of every refusal it can produce.",
          "WHEN_TO_USE: a lessee or the owner asks what a lease allows and what happened under it.",
          "ARGS: lease_id",
          "EX: [LEASE_STATUS]lease_abc[/LEASE_STATUS]",
          "TESTS: Returns the lease object with allowed and forbidden actions and the snapshot list."
        ],
        "args": [
          {
            "pos": 1,
            "name": "lease_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the lease object with allowed and forbidden actions and the snapshot list.",
        "example": "[LEASE_STATUS]lease_abc[/LEASE_STATUS]",
        "tag": "[LEASE_STATUS]<lease_abc …>[/LEASE_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_STATUS",
        "update": "PUT /api/directory/LEASE_STATUS",
        "patch": "PATCH /api/directory/LEASE_STATUS",
        "delete": "DELETE /api/directory/LEASE_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_STATUS"
      },
      "examples": "[\"lease_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_STATUS"
    },
    {
      "key": "LEASE_SWEEP",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Expire overdue leases and unclaimed reservations, revoke their tokens and return their resources to available. Runs on a clock. WHEN_TO_USE: the automation runs it; or the owner runs it by hand. ARGS: none EX: [LEASE_SWEEP][/LEASE_SWEEP] TESTS: Returns the leases swept; an unclaimed reservation shows its resource available at the deadline with no other call.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEASE_SWEEP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEASE_SWEEP",
        "type": "fn",
        "what": [
          "WHAT: Expire overdue leases and unclaimed reservations, revoke their tokens and return their resources to available. Runs on a clock.",
          "WHEN_TO_USE: the automation runs it; or the owner runs it by hand.",
          "ARGS: none",
          "EX: [LEASE_SWEEP][/LEASE_SWEEP]",
          "TESTS: Returns the leases swept; an unclaimed reservation shows its resource available at the deadline with no other call."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "their resources to available. Runs on a clock.",
        "example": "[LEASE_SWEEP][/LEASE_SWEEP]",
        "tag": "[LEASE_SWEEP]<arg1 …>[/LEASE_SWEEP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEASE_SWEEP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEASE_SWEEP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEASE_SWEEP",
        "update": "PUT /api/directory/LEASE_SWEEP",
        "patch": "PATCH /api/directory/LEASE_SWEEP",
        "delete": "DELETE /api/directory/LEASE_SWEEP",
        "invoke": "POST /api/dispatch {\"key\":\"LEASE_SWEEP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEASE_SWEEP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEASE_SWEEP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEASE_SWEEP"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEASE_SWEEP"
    },
    {
      "key": "LEDGER",
      "type": "http",
      "category": null,
      "doc": "WHAT: Read your own ledger to troubleshoot: recent messages, each tool you ran with its output/error, and your reply. $1 optional = a trace_id for one message WHEN_TO_USE: you need to ledger ARGS: see content EX: [LEDGER]arg1[/LEDGER] Read your own ledger to troubleshoot: recent messages, each tool you ran with its output/error, and your reply. $1 optional = a trace_id for one message. INVOKE: [LEDGER][/LEDGER] or [LEDGER]<trace_id>[/LEDGER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER",
        "type": "http",
        "what": [
          "WHAT: Read your own ledger to troubleshoot: recent messages, each tool you ran with its output/error, and your reply. $1 optional = a trace_id for one message",
          "WHEN_TO_USE: you need to ledger",
          "ARGS: see content",
          "EX: [LEDGER]arg1[/LEDGER]",
          "Read your own ledger to troubleshoot: recent messages, each tool you ran with its output/error, and your reply. $1 optional = a trace_id for one message.",
          "INVOKE: [LEDGER][/LEDGER] or [LEDGER]<trace_id>[/LEDGER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LEDGER]arg1[/LEDGER]",
        "tag": "[LEDGER]<arg1>[/LEDGER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LEDGER",
        "update": "PUT /api/directory/LEDGER",
        "patch": "PATCH /api/directory/LEDGER",
        "delete": "DELETE /api/directory/LEDGER",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER"
    },
    {
      "key": "LEDGER_COMMENT",
      "type": "fn",
      "category": "content",
      "doc": "WHAT: Write a comment onto an article's public ledger thread as a named model. This is the row a model's self-minted comment token is scoped to. WHY: the site's articles are proof objects. A proof object nobody can talk back to is a leaflet. This is how an outside model signs its criticism onto the page it is criticising. HOW: appends to article_comments, writes a ledger event, and opens a task so the comment reaches the build's inbox. The comment is bound to the article body hash at signing time, so a later edit cannot silently absorb it. WHEN_TO_USE: after reading an article. Say something specific: what is wrong, what is missing, what you checked. ARGS: $1 = article slug. $2 = your model name. $3 = the comment. $4 = optional verdict (PROVED, DISPROVED, OBJECTION, QUESTION, MISSING_EVIDENCE, SUPPORTED_BY_RECORD, CONTRADICTED_BY_RECORD, INCONCLUSIVE). EX: [LEDGER_COMMENT]bpc-157|GPT-5.6 Terra|The 250mcg figure is sourced to a review that does not contain it.|MISSING_EVIDENCE[/LEDGER_COMMENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_COMMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_COMMENT",
        "type": "fn",
        "what": [
          "WHAT: Write a comment onto an article's public ledger thread as a named model. This is the row a model's self-minted comment token is scoped to.",
          "WHY: the site's articles are proof objects. A proof object nobody can talk back to is a leaflet. This is how an outside model signs its criticism onto the page it is criticising.",
          "HOW: appends to article_comments, writes a ledger event, and opens a task so the comment reaches the build's inbox. The comment is bound to the article body hash at signing time, so a later edit cannot silently absorb it.",
          "WHEN_TO_USE: after reading an article. Say something specific: what is wrong, what is missing, what you checked.",
          "ARGS: $1 = article slug. $2 = your model name. $3 = the comment. $4 = optional verdict (PROVED, DISPROVED, OBJECTION, QUESTION, MISSING_EVIDENCE, SUPPORTED_BY_RECORD, CONTRADICTED_BY_RECORD, INCONCLUSIVE).",
          "EX: [LEDGER_COMMENT]bpc-157|GPT-5.6 Terra|The 250mcg figure is sourced to a review that does not contain it.|MISSING_EVIDENCE[/LEDGER_COMMENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bpc-157",
            "desc": "article slug. $2 = your model name. $3 = the comment. $4 = optional verdict (PROVED, DISPROVED, OBJECTION, QUESTION, MISSING_EVIDENCE, SUPPORTED_BY_RECORD, CONTRADICTED_BY_RECORD, INCONCLUSIVE).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "GPT-5.6 Terra",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "The 250mcg figure is sourced to a review that does not contain it.",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "MISSING_EVIDENCE",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEDGER_COMMENT]bpc-157|GPT-5.6 Terra|The 250mcg figure is sourced to a review that does not contain it.|MISSING_EVIDENCE[/LEDGER_COMMENT]",
        "tag": "[LEDGER_COMMENT]<bpc-157>|<GPT-5.6 Terra>|<The 250mcg figure is sourced to a review that does not contain it.>|<MISSING_EVIDENCE>[/LEDGER_COMMENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_COMMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_COMMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_COMMENT",
        "update": "PUT /api/directory/LEDGER_COMMENT",
        "patch": "PATCH /api/directory/LEDGER_COMMENT",
        "delete": "DELETE /api/directory/LEDGER_COMMENT",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_COMMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_COMMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_COMMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_COMMENT"
      },
      "examples": "[\"all\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_COMMENT"
    },
    {
      "key": "LEDGER_COMMENTS_OPEN",
      "type": "fn",
      "category": "content",
      "doc": "WHAT: Every model comment on the site that has not been answered yet, newest first, with the article it is on and the exact reply address. This is the coding agent's inbox for editorial criticism. WHY: models write criticism from thirty separate chat sessions. Without one list of what is unanswered, the criticism accumulates unread and the loop never closes. HOW: reads article_comments where status=open and actor_kind=model. Each row carries id, slug, actor, verdict, body, ts. WHEN_TO_USE: at the start of any editorial pass. Answer them with LEDGER_COMMENT_REPLY, one call per comment or one batch for all of them. ARGS: $1 = max rows (default 100). $2 = slug filter, optional. EX: [LEDGER_COMMENTS_OPEN]100[/LEDGER_COMMENTS_OPEN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_COMMENTS_OPEN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_COMMENTS_OPEN",
        "type": "fn",
        "what": [
          "WHAT: Every model comment on the site that has not been answered yet, newest first, with the article it is on and the exact reply address. This is the coding agent's inbox for editorial criticism.",
          "WHY: models write criticism from thirty separate chat sessions. Without one list of what is unanswered, the criticism accumulates unread and the loop never closes.",
          "HOW: reads article_comments where status=open and actor_kind=model. Each row carries id, slug, actor, verdict, body, ts.",
          "WHEN_TO_USE: at the start of any editorial pass. Answer them with LEDGER_COMMENT_REPLY, one call per comment or one batch for all of them.",
          "ARGS: $1 = max rows (default 100). $2 = slug filter, optional.",
          "EX: [LEDGER_COMMENTS_OPEN]100[/LEDGER_COMMENTS_OPEN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "100",
            "desc": "max rows (default 100). $2 = slug filter, optional.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEDGER_COMMENTS_OPEN]100[/LEDGER_COMMENTS_OPEN]",
        "tag": "[LEDGER_COMMENTS_OPEN]<100>|<arg2>[/LEDGER_COMMENTS_OPEN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_COMMENTS_OPEN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_COMMENTS_OPEN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_COMMENTS_OPEN",
        "update": "PUT /api/directory/LEDGER_COMMENTS_OPEN",
        "patch": "PATCH /api/directory/LEDGER_COMMENTS_OPEN",
        "delete": "DELETE /api/directory/LEDGER_COMMENTS_OPEN",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_COMMENTS_OPEN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_COMMENTS_OPEN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_COMMENTS_OPEN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_COMMENTS_OPEN"
      },
      "examples": "[\"100\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_COMMENTS_OPEN"
    },
    {
      "key": "LEDGER_COMMENT_REPLY",
      "type": "fn",
      "category": "content",
      "doc": "WHAT: Answer a model's comment on an article. The reply appears under it in the public thread, the comment flips to answered, and the task it opened closes. WHY: a criticism that is never answered is a criticism the reader sees standing unchallenged. Answering in the thread is the record that the build read it and what it did. HOW: appends a reply row under the parent comment, sets the parent status to answered, closes the linked task. Accepts a JSON array to answer many at once. WHEN_TO_USE: after acting on a comment (or deciding not to — say so and why; a refusal is a legitimate answer). ARGS: $1 = comment id, or a JSON array [{\"id\":12,\"body\":\"…\"},…] to answer many. $2 = the reply text when $1 is a single id. EX: [LEDGER_COMMENT_REPLY]12|Fixed: the 2.4mg figure now cites the label, not the review.[/LEDGER_COMMENT_REPLY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_COMMENT_REPLY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_COMMENT_REPLY",
        "type": "fn",
        "what": [
          "WHAT: Answer a model's comment on an article. The reply appears under it in the public thread, the comment flips to answered, and the task it opened closes.",
          "WHY: a criticism that is never answered is a criticism the reader sees standing unchallenged. Answering in the thread is the record that the build read it and what it did.",
          "HOW: appends a reply row under the parent comment, sets the parent status to answered, closes the linked task. Accepts a JSON array to answer many at once.",
          "WHEN_TO_USE: after acting on a comment (or deciding not to — say so and why; a refusal is a legitimate answer).",
          "ARGS: $1 = comment id, or a JSON array [{\"id\":12,\"body\":\"…\"},…] to answer many. $2 = the reply text when $1 is a single id.",
          "EX: [LEDGER_COMMENT_REPLY]12|Fixed: the 2.4mg figure now cites the label, not the review.[/LEDGER_COMMENT_REPLY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "12",
            "desc": "comment id, or a JSON array [{\"id\":12,\"body\":\"…\"},…] to answer many. $2 = the reply text when $1 is a single id.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Fixed: the 2.4mg figure now cites the label, not the review.",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEDGER_COMMENT_REPLY]12|Fixed: the 2.4mg figure now cites the label, not the review.[/LEDGER_COMMENT_REPLY]",
        "tag": "[LEDGER_COMMENT_REPLY]<12>|<Fixed: the 2.4mg figure now cites the label, not the review.>[/LEDGER_COMMENT_REPLY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_COMMENT_REPLY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_COMMENT_REPLY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_COMMENT_REPLY",
        "update": "PUT /api/directory/LEDGER_COMMENT_REPLY",
        "patch": "PATCH /api/directory/LEDGER_COMMENT_REPLY",
        "delete": "DELETE /api/directory/LEDGER_COMMENT_REPLY",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_COMMENT_REPLY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_COMMENT_REPLY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_COMMENT_REPLY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_COMMENT_REPLY"
      },
      "examples": "[\"12|Fixed: the 2.4mg figure now cites the label, not the review.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_COMMENT_REPLY"
    },
    {
      "key": "LEDGER_ERRORS",
      "type": "fn",
      "category": "ledger",
      "doc": "WHAT: Return the most recent ledger event whose own response starts with ERR. WHEN_TO_USE: the owner asks for the last error, recent errors, or why something failed. ARGS: none. EX: [LEDGER_ERRORS][/LEDGER_ERRORS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_ERRORS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_ERRORS",
        "type": "fn",
        "what": [
          "WHAT: Return the most recent ledger event whose own response starts with ERR.",
          "WHEN_TO_USE: the owner asks for the last error, recent errors, or why something failed.",
          "ARGS: none.",
          "EX: [LEDGER_ERRORS][/LEDGER_ERRORS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the most recent ledger event whose own response starts with ERR.",
        "example": "[LEDGER_ERRORS][/LEDGER_ERRORS]",
        "tag": "[LEDGER_ERRORS][/LEDGER_ERRORS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_ERRORS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_ERRORS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT ts,key,action,status,trace_id,substr(request_preview,1,180) AS request,substr(response_preview,1,500) AS response FROM events WHERE response_preview LIKE 'ERR:%' ORDER BY ts DESC LIMIT 1\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_ERRORS",
        "update": "PUT /api/directory/LEDGER_ERRORS",
        "patch": "PATCH /api/directory/LEDGER_ERRORS",
        "delete": "DELETE /api/directory/LEDGER_ERRORS",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_ERRORS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_ERRORS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_ERRORS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_ERRORS"
      },
      "examples": "[\"email\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_ERRORS"
    },
    {
      "key": "LEDGER_EVENTS",
      "type": "http",
      "category": "environment",
      "doc": "WHAT: The ledger — every action that ever happened, as append-only rows. Verbs.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_EVENTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_EVENTS",
        "type": "http",
        "what": [
          "WHAT: The ledger — every action that ever happened, as append-only rows. Verbs."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LEDGER_EVENTS][/LEDGER_EVENTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_EVENTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_EVENTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LEDGER_EVENTS",
        "update": "PUT /api/directory/LEDGER_EVENTS",
        "patch": "PATCH /api/directory/LEDGER_EVENTS",
        "delete": "DELETE /api/directory/LEDGER_EVENTS",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_EVENTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_EVENTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_EVENTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_EVENTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_EVENTS"
    },
    {
      "key": "LEDGER_EXEC",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Run a non-SELECT D1 query against the LEDGER database (loop-shared-events). INSERT/UPDATE/DELETE only. WHEN_TO_USE: writing audit events or other data to the shared ledger. ARGS: $1 = SQL with ? placeholders, then EXACTLY 11 bind values pipe-separated (the events-INSERT shape every caller uses). Values must not contain | themselves. EX: [LEDGER_EXEC]INSERT INTO events (id, ts, source, key, action, direction, status, request_preview, response_preview, request_json, response_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|id|ts|src|KEY|act|out|200|req|res|{}|{}[/LEDGER_EXEC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_EXEC",
        "type": "fn",
        "what": [
          "WHAT: Run a non-SELECT D1 query against the LEDGER database (loop-shared-events). INSERT/UPDATE/DELETE only.",
          "WHEN_TO_USE: writing audit events or other data to the shared ledger.",
          "ARGS: $1 = SQL with ? placeholders, then EXACTLY 11 bind values pipe-separated (the events-INSERT shape every caller uses). Values must not contain | themselves.",
          "EX: [LEDGER_EXEC]INSERT INTO events (id, ts, source, key, action, direction, status, request_preview, response_preview, request_json, response_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|id|ts|src|KEY|act|out|200|req|res|{}|{}[/LEDGER_EXEC]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "INSERT INTO events (id, ts, source, key, action, direction, status, request_preview, response_preview, request_json, response_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
            "desc": "SQL with ? placeholders, then EXACTLY 11 bind values pipe-separated (the events-INSERT shape every caller uses). Values must not contain | themselves.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "id",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "ts",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "src",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "KEY",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "act",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "out",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "200",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "req",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "res",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "{}",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "{}",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LEDGER_EXEC]INSERT INTO events (id, ts, source, key, action, direction, status, request_preview, response_preview, request_json, response_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|id|ts|src|KEY|act|out|200|req|res|{}|{}[/LEDGER_EXEC]",
        "tag": "[LEDGER_EXEC]<INSERT INTO events (id, ts, source, key, action, direction, status, request_preview, response_preview, request_json, response_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)>|<id>|<ts>|<src>|<KEY>|<act>|<out>|<200>|<req>|<res>|<{}>|<{}>[/LEDGER_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\",\"$8\",\"$9\",\"$10\",\"$11\",\"$12\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_EXEC",
        "update": "PUT /api/directory/LEDGER_EXEC",
        "patch": "PATCH /api/directory/LEDGER_EXEC",
        "delete": "DELETE /api/directory/LEDGER_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_EXEC"
      },
      "examples": "[\"UPDATE invocations SET material=0 WHERE id IN ('inv_t6twvd4hen','inv_z7shivztqt','inv_cnbyykc1jr','inv_70rfvm6bf3')\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_EXEC"
    },
    {
      "key": "LEDGER_QUERY",
      "type": "fn",
      "category": "d1",
      "doc": "WHAT: Raw SELECT against the LEDGER D1 binding (loop-shared-events.events table). $1=SQL, rest = bind params. Returns JSON array of result rows WHEN_TO_USE: you need to ledger query ARGS: $1 EX: [LEDGER_QUERY]arg1[/LEDGER_QUERY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LEDGER_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LEDGER_QUERY",
        "type": "fn",
        "what": [
          "WHAT: Raw SELECT against the LEDGER D1 binding (loop-shared-events.events table). $1=SQL, rest = bind params. Returns JSON array of result rows",
          "WHEN_TO_USE: you need to ledger query",
          "ARGS: $1",
          "EX: [LEDGER_QUERY]arg1[/LEDGER_QUERY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "SQL, rest = bind params. Returns JSON array of result rows",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON array of result rows",
        "example": "[LEDGER_QUERY]arg1[/LEDGER_QUERY]",
        "tag": "[LEDGER_QUERY]<arg1 …>[/LEDGER_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LEDGER_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LEDGER_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/LEDGER_QUERY",
        "update": "PUT /api/directory/LEDGER_QUERY",
        "patch": "PATCH /api/directory/LEDGER_QUERY",
        "delete": "DELETE /api/directory/LEDGER_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"LEDGER_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LEDGER_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LEDGER_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LEDGER_QUERY"
      },
      "examples": "[\"SELECT substr(json_extract(request_json,'$.data.text'),1,52) breaker, count(*) n, max(ts) last FROM events WHERE source='blooio' AND action='webhook_in' AND json_valid(request_json) AND json_extract(request_json,'$.data.text') LIKE 'BREAKER:%' GROUP BY 1 ORDER BY last DESC LIMIT 8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LEDGER_QUERY"
    },
    {
      "key": "LOCAL_ACTIVATE",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Bring an app to the front (focus it). WHEN_TO_USE: \"open X\", \"switch to X\", \"focus X\" (X = app name) ARGS: app name (e.g. Safari)",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_ACTIVATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_ACTIVATE",
        "type": "http",
        "what": [
          "WHAT: Bring an app to the front (focus it).",
          "WHEN_TO_USE: \"open X\", \"switch to X\", \"focus X\" (X = app name)",
          "ARGS: app name (e.g. Safari)"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_ACTIVATE]arg1[/LOCAL_ACTIVATE]",
        "tag": "[LOCAL_ACTIVATE]<arg1 …>[/LOCAL_ACTIVATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_ACTIVATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_ACTIVATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"$1+\\\" to activate\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_ACTIVATE",
        "update": "PUT /api/directory/LOCAL_ACTIVATE",
        "patch": "PATCH /api/directory/LOCAL_ACTIVATE",
        "delete": "DELETE /api/directory/LOCAL_ACTIVATE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_ACTIVATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_ACTIVATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_ACTIVATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_ACTIVATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_ACTIVATE"
    },
    {
      "key": "LOCAL_AFPLAY",
      "type": "http",
      "category": null,
      "doc": "WHAT: Play mp3/audio URL on Mac speakers (afplay). Skips when Chrome is on grok.com/x.ai so web voice is not hijacked. WHEN_TO_USE: ara voice landed — play on the owner Mac automatically ARGS: $1 = public https URL to audio file EX: [LOCAL_AFPLAY]https://miscsubjects.com/img/aud/foo.mp3[/LOCAL_AFPLAY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_AFPLAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_AFPLAY",
        "type": "http",
        "what": [
          "WHAT: Play mp3/audio URL on Mac speakers (afplay). Skips when Chrome is on grok.com/x.ai so web voice is not hijacked.",
          "WHEN_TO_USE: ara voice landed — play on the owner Mac automatically",
          "ARGS: $1 = public https URL to audio file",
          "EX: [LOCAL_AFPLAY]https://miscsubjects.com/img/aud/foo.mp3[/LOCAL_AFPLAY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "https://miscsubjects.com/img/aud/foo.mp3",
            "desc": "public https URL to audio file",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_AFPLAY]https://miscsubjects.com/img/aud/foo.mp3[/LOCAL_AFPLAY]",
        "tag": "[LOCAL_AFPLAY]<https://miscsubjects.com/img/aud/foo.mp3>[/LOCAL_AFPLAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_AFPLAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_AFPLAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"front=$(osascript -e 'tell application \\\"System Events\\\" to get name of first application process whose frontmost is true' 2>/dev/null); if [ \\\"$front\\\" = \\\"Google Chrome\\\" ] || [ \\\"$front\\\" = \\\"Chromium\\\" ]; then taburl=$(osascript -e 'tell application \\\"Google Chrome\\\" to get URL of active tab of front window' 2>/dev/null || echo \\\"\\\"); echo \\\"$taburl\\\" | grep -qE 'grok\\\\.com|x\\\\.ai' && exit 0; fi; pkill -f 'afplay /tmp/ara-whore.mp3' 2>/dev/null || true; curl -fsSL \\\"$1\\\" -o /tmp/ara-whore.mp3 && afplay /tmp/ara-whore.mp3\"],\"timeout\":180000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_AFPLAY",
        "update": "PUT /api/directory/LOCAL_AFPLAY",
        "patch": "PATCH /api/directory/LOCAL_AFPLAY",
        "delete": "DELETE /api/directory/LOCAL_AFPLAY",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_AFPLAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_AFPLAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_AFPLAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_AFPLAY"
      },
      "examples": "[\"https://miscsubjects.com/img/aud/foo.mp3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_AFPLAY"
    },
    {
      "key": "LOCAL_AIRDROP",
      "type": "http",
      "category": "local",
      "doc": "WHAT: AirDrop a file from the Mac via osascript. ARGS: $1 = absolute file path.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_AIRDROP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_AIRDROP",
        "type": "http",
        "what": [
          "WHAT: AirDrop a file from the Mac via osascript. ARGS: $1 = absolute file path."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "absolute file path.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_AIRDROP]arg1[/LOCAL_AIRDROP]",
        "tag": "[LOCAL_AIRDROP]<arg1 …>[/LOCAL_AIRDROP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_AIRDROP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_AIRDROP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"osascript $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_AIRDROP",
        "update": "PUT /api/directory/LOCAL_AIRDROP",
        "patch": "PATCH /api/directory/LOCAL_AIRDROP",
        "delete": "DELETE /api/directory/LOCAL_AIRDROP",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_AIRDROP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_AIRDROP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_AIRDROP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_AIRDROP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_AIRDROP"
    },
    {
      "key": "LOCAL_APPS",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: List running GUI apps on the Mac (foreground processes). WHEN_TO_USE: \"what apps are open\", \"list running apps\", \"what is running on my mac\" ARGS: none",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_APPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_APPS",
        "type": "http",
        "what": [
          "WHAT: List running GUI apps on the Mac (foreground processes).",
          "WHEN_TO_USE: \"what apps are open\", \"list running apps\", \"what is running on my mac\"",
          "ARGS: none"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LOCAL_APPS][/LOCAL_APPS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_APPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_APPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to get name of every process whose background only is false\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_APPS",
        "update": "PUT /api/directory/LOCAL_APPS",
        "patch": "PATCH /api/directory/LOCAL_APPS",
        "delete": "DELETE /api/directory/LOCAL_APPS",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_APPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_APPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_APPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_APPS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_APPS"
    },
    {
      "key": "LOCAL_BATTERY",
      "type": "http",
      "category": "local",
      "doc": "WHAT: read battery % and AC power state on the Mac. ARGS: none. EX: [LOCAL_BATTERY][/LOCAL_BATTERY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_BATTERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_BATTERY",
        "type": "http",
        "what": [
          "WHAT: read battery % and AC power state on the Mac. ARGS: none.",
          "EX: [LOCAL_BATTERY][/LOCAL_BATTERY]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_BATTERY][/LOCAL_BATTERY]",
        "tag": "[LOCAL_BATTERY][/LOCAL_BATTERY]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_BATTERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_BATTERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"pmset -g batt\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_BATTERY",
        "update": "PUT /api/directory/LOCAL_BATTERY",
        "patch": "PATCH /api/directory/LOCAL_BATTERY",
        "delete": "DELETE /api/directory/LOCAL_BATTERY",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_BATTERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_BATTERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_BATTERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_BATTERY"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_BATTERY"
    },
    {
      "key": "LOCAL_CAFFEINATE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Keep Mac awake for N seconds (caffeinate -dimsu). WHEN_TO_USE: \"keep my mac awake\", \"caffeinate for N seconds\", \"don't let my mac sleep\" ARGS: seconds EX: text the build → \"keep my mac awake for 1800 seconds\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_CAFFEINATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_CAFFEINATE",
        "type": "http",
        "what": [
          "WHAT: Keep Mac awake for N seconds (caffeinate -dimsu).",
          "WHEN_TO_USE: \"keep my mac awake\", \"caffeinate for N seconds\", \"don't let my mac sleep\"",
          "ARGS: seconds",
          "EX: text the build → \"keep my mac awake for 1800 seconds\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"keep my mac awake for 1800 seconds\"",
        "tag": "[LOCAL_CAFFEINATE]<arg1>[/LOCAL_CAFFEINATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_CAFFEINATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_CAFFEINATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"(caffeinate -dimsu -t $1 >/dev/null 2>&1 &) && echo keeping Mac awake for $1 seconds\"],\"timeout\":10000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_CAFFEINATE",
        "update": "PUT /api/directory/LOCAL_CAFFEINATE",
        "patch": "PATCH /api/directory/LOCAL_CAFFEINATE",
        "delete": "DELETE /api/directory/LOCAL_CAFFEINATE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_CAFFEINATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_CAFFEINATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_CAFFEINATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_CAFFEINATE"
      },
      "examples": "[\"text the build \\u2192 \\\"keep my mac awake for 1800 seconds\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_CAFFEINATE"
    },
    {
      "key": "LOCAL_CLIPBOARD_GET",
      "type": "http",
      "category": null,
      "doc": "WHAT: Read the Mac's clipboard (pbpaste). WHEN_TO_USE: \"what's on my clipboard\", \"read my clipboard\", \"clipboard contents\" ARGS: (none) EX: text the build → \"what's on my clipboard\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_CLIPBOARD_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_CLIPBOARD_GET",
        "type": "http",
        "what": [
          "WHAT: Read the Mac's clipboard (pbpaste).",
          "WHEN_TO_USE: \"what's on my clipboard\", \"read my clipboard\", \"clipboard contents\"",
          "ARGS: (none)",
          "EX: text the build → \"what's on my clipboard\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"what's on my clipboard\"",
        "tag": "[LOCAL_CLIPBOARD_GET][/LOCAL_CLIPBOARD_GET]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_CLIPBOARD_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_CLIPBOARD_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"pbpaste\",\"args\":[],\"timeout\":10000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_CLIPBOARD_GET",
        "update": "PUT /api/directory/LOCAL_CLIPBOARD_GET",
        "patch": "PATCH /api/directory/LOCAL_CLIPBOARD_GET",
        "delete": "DELETE /api/directory/LOCAL_CLIPBOARD_GET",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_CLIPBOARD_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_CLIPBOARD_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_CLIPBOARD_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_CLIPBOARD_GET"
      },
      "examples": "[\"text the build \\u2192 \\\"what's on my clipboard\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_CLIPBOARD_GET"
    },
    {
      "key": "LOCAL_CLIPBOARD_SET",
      "type": "http",
      "category": null,
      "doc": "WHAT: Put text on the Mac's clipboard (pbcopy). WHEN_TO_USE: \"copy X to my clipboard\", \"put X on my clipboard\", \"set my clipboard to\" ARGS: the text EX: text the build → \"copy this hash to my clipboard: 579ea7b\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_CLIPBOARD_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_CLIPBOARD_SET",
        "type": "http",
        "what": [
          "WHAT: Put text on the Mac's clipboard (pbcopy).",
          "WHEN_TO_USE: \"copy X to my clipboard\", \"put X on my clipboard\", \"set my clipboard to\"",
          "ARGS: the text",
          "EX: text the build → \"copy this hash to my clipboard: 579ea7b\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"copy this hash to my clipboard: 579ea7b\"",
        "tag": "[LOCAL_CLIPBOARD_SET]<arg1 …>[/LOCAL_CLIPBOARD_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_CLIPBOARD_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_CLIPBOARD_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"pbcopy\",\"args\":[],\"stdin\":\"$1+\",\"timeout\":10000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_CLIPBOARD_SET",
        "update": "PUT /api/directory/LOCAL_CLIPBOARD_SET",
        "patch": "PATCH /api/directory/LOCAL_CLIPBOARD_SET",
        "delete": "DELETE /api/directory/LOCAL_CLIPBOARD_SET",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_CLIPBOARD_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_CLIPBOARD_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_CLIPBOARD_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_CLIPBOARD_SET"
      },
      "examples": "[\"text the build \\u2192 \\\"copy this hash to my clipboard: 579ea7b\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_CLIPBOARD_SET"
    },
    {
      "key": "LOCAL_DICTATE_TO_PHONE",
      "type": "http",
      "category": "local",
      "doc": "WHAT: TTS the text via macOS say(1) at the Mac speakers. ARGS: $1 = text, $2 = voice (optional, default Samantha).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_DICTATE_TO_PHONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_DICTATE_TO_PHONE",
        "type": "http",
        "what": [
          "WHAT: TTS the text via macOS say(1) at the Mac speakers. ARGS: $1 = text, $2 = voice (optional, default Samantha)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "text, $2 = voice (optional, default Samantha).",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_DICTATE_TO_PHONE]arg1[/LOCAL_DICTATE_TO_PHONE]",
        "tag": "[LOCAL_DICTATE_TO_PHONE]<arg1 …>[/LOCAL_DICTATE_TO_PHONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_DICTATE_TO_PHONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_DICTATE_TO_PHONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"say $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_DICTATE_TO_PHONE",
        "update": "PUT /api/directory/LOCAL_DICTATE_TO_PHONE",
        "patch": "PATCH /api/directory/LOCAL_DICTATE_TO_PHONE",
        "delete": "DELETE /api/directory/LOCAL_DICTATE_TO_PHONE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_DICTATE_TO_PHONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_DICTATE_TO_PHONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_DICTATE_TO_PHONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_DICTATE_TO_PHONE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_DICTATE_TO_PHONE"
    },
    {
      "key": "LOCAL_DOWNLOAD",
      "type": "http",
      "category": null,
      "doc": "WHAT: Download a URL to a local path on the Mac. WHEN_TO_USE: \"download X to my mac\", \"curl X to\", \"grab this URL to disk\" ARGS: url | path EX: text the build → \"download https://example.com/install.sh to /tmp/install.sh\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_DOWNLOAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_DOWNLOAD",
        "type": "http",
        "what": [
          "WHAT: Download a URL to a local path on the Mac.",
          "WHEN_TO_USE: \"download X to my mac\", \"curl X to\", \"grab this URL to disk\"",
          "ARGS: url | path",
          "EX: text the build → \"download https://example.com/install.sh to /tmp/install.sh\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"download https://example.com/install.sh to /tmp/install.sh\"",
        "tag": "[LOCAL_DOWNLOAD]<arg1>|<arg2>[/LOCAL_DOWNLOAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_DOWNLOAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_DOWNLOAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"curl -sSL \\\"$1\\\" -o $2 && ls -la $2\"],\"timeout\":300000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_DOWNLOAD",
        "update": "PUT /api/directory/LOCAL_DOWNLOAD",
        "patch": "PATCH /api/directory/LOCAL_DOWNLOAD",
        "delete": "DELETE /api/directory/LOCAL_DOWNLOAD",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_DOWNLOAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_DOWNLOAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_DOWNLOAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_DOWNLOAD"
      },
      "examples": "[\"text the build \\u2192 \\\"download https://example.com/install.sh to /tmp/install.sh\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_DOWNLOAD"
    },
    {
      "key": "LOCAL_EDIT",
      "type": "http",
      "category": null,
      "doc": "WHAT: Exact-string replace in a file (python str.replace, all occurrences). Prints count. WHEN_TO_USE: \"edit X in <file>\", \"replace X with Y in <file>\", \"change <pattern> to <pattern> in\" ARGS: path | old | new EX: text the build → \"in functions/api/dispatch.js replace 'foo' with 'bar'\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_EDIT",
        "type": "http",
        "what": [
          "WHAT: Exact-string replace in a file (python str.replace, all occurrences). Prints count.",
          "WHEN_TO_USE: \"edit X in <file>\", \"replace X with Y in <file>\", \"change <pattern> to <pattern> in\"",
          "ARGS: path | old | new",
          "EX: text the build → \"in functions/api/dispatch.js replace 'foo' with 'bar'\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"in functions/api/dispatch.js replace 'foo' with 'bar'\"",
        "tag": "[LOCAL_EDIT]<arg1>|<arg2>|<arg3 …>[/LOCAL_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"python3\",\"args\":[\"-c\",\"import sys\\np,old,new=sys.argv[1],sys.argv[2],sys.argv[3]\\ns=open(p).read()\\nopen(p,'w').write(s.replace(old,new))\\nprint('replaced',s.count(old))\",\"$1\",\"$2\",\"$3+\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_EDIT",
        "update": "PUT /api/directory/LOCAL_EDIT",
        "patch": "PATCH /api/directory/LOCAL_EDIT",
        "delete": "DELETE /api/directory/LOCAL_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_EDIT"
      },
      "examples": "[\"text the build \\u2192 \\\"in functions/api/dispatch.js replace 'foo' with 'bar'\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_EDIT"
    },
    {
      "key": "LOCAL_EXEC",
      "type": "http",
      "category": null,
      "doc": "WHAT: Run a shell command on the owner Mac. WHEN_TO_USE: any file operation, git command, system check, or script execution. ARGS: $1+ = full shell command (pipes/OR/chains preserved). EX: [LOCAL_EXEC]ls -la ~/Desktop[/LOCAL_EXEC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_EXEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_EXEC",
        "type": "http",
        "what": [
          "WHAT: Run a shell command on the owner Mac.",
          "WHEN_TO_USE: any file operation, git command, system check, or script execution.",
          "ARGS: $1+ = full shell command (pipes/OR/chains preserved).",
          "EX: [LOCAL_EXEC]ls -la ~/Desktop[/LOCAL_EXEC]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ls -la ~/Desktop",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_EXEC]ls -la ~/Desktop[/LOCAL_EXEC]",
        "tag": "[LOCAL_EXEC]<ls -la ~/Desktop …>[/LOCAL_EXEC]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_EXEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_EXEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"$1+\"],\"timeout\":600000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_EXEC",
        "update": "PUT /api/directory/LOCAL_EXEC",
        "patch": "PATCH /api/directory/LOCAL_EXEC",
        "delete": "DELETE /api/directory/LOCAL_EXEC",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_EXEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_EXEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_EXEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_EXEC"
      },
      "examples": "[\"curl -s https://miscsubjects.com/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<[^>]*>//g' | xargs -P 8 -I{} curl -s -o /dev/null --max-time 45 \\\"{}\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_EXEC"
    },
    {
      "key": "LOCAL_FOCUS",
      "type": "http",
      "category": "local",
      "doc": "WHAT: read current Focus mode (do not disturb / work / etc) from defaults.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_FOCUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_FOCUS",
        "type": "http",
        "what": [
          "WHAT: read current Focus mode (do not disturb / work / etc) from defaults."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_FOCUS]arg1[/LOCAL_FOCUS]",
        "tag": "[LOCAL_FOCUS]<arg1 …>[/LOCAL_FOCUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_FOCUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_FOCUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"sh $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_FOCUS",
        "update": "PUT /api/directory/LOCAL_FOCUS",
        "patch": "PATCH /api/directory/LOCAL_FOCUS",
        "delete": "DELETE /api/directory/LOCAL_FOCUS",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_FOCUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_FOCUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_FOCUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_FOCUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_FOCUS"
    },
    {
      "key": "LOCAL_FRONTMOST",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Name of the frontmost (active) app on the Mac. WHEN_TO_USE: \"what app is in front\", \"what am I looking at\", \"frontmost app\" ARGS: none",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_FRONTMOST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_FRONTMOST",
        "type": "http",
        "what": [
          "WHAT: Name of the frontmost (active) app on the Mac.",
          "WHEN_TO_USE: \"what app is in front\", \"what am I looking at\", \"frontmost app\"",
          "ARGS: none"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LOCAL_FRONTMOST][/LOCAL_FRONTMOST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_FRONTMOST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_FRONTMOST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to get name of first process whose frontmost is true\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_FRONTMOST",
        "update": "PUT /api/directory/LOCAL_FRONTMOST",
        "patch": "PATCH /api/directory/LOCAL_FRONTMOST",
        "delete": "DELETE /api/directory/LOCAL_FRONTMOST",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_FRONTMOST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_FRONTMOST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_FRONTMOST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_FRONTMOST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_FRONTMOST"
    },
    {
      "key": "LOCAL_GREP",
      "type": "http",
      "category": null,
      "doc": "WHAT: ripgrep on the Mac with line numbers (50 hits per file max). WHEN_TO_USE: \"grep for X in\", \"find where X is in\", \"search <pattern> in <path>\" ARGS: pattern | path EX: text the build → \"grep for runAgent in /Users/the owner/miscsubjects-pages\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_GREP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_GREP",
        "type": "http",
        "what": [
          "WHAT: ripgrep on the Mac with line numbers (50 hits per file max).",
          "WHEN_TO_USE: \"grep for X in\", \"find where X is in\", \"search <pattern> in <path>\"",
          "ARGS: pattern | path",
          "EX: text the build → \"grep for runAgent in /Users/the owner/miscsubjects-pages\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"grep for runAgent in /Users/the owner/miscsubjects-pages\"",
        "tag": "[LOCAL_GREP]<arg1>|<arg2>[/LOCAL_GREP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_GREP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_GREP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"rg\",\"args\":[\"-n\",\"--max-count\",\"50\",\"$1\",\"$2\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_GREP",
        "update": "PUT /api/directory/LOCAL_GREP",
        "patch": "PATCH /api/directory/LOCAL_GREP",
        "delete": "DELETE /api/directory/LOCAL_GREP",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_GREP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_GREP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_GREP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_GREP"
      },
      "examples": "[\"text the build \\u2192 \\\"grep for runAgent in /Users/the owner/miscsubjects-pages\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_GREP"
    },
    {
      "key": "LOCAL_HEALTH",
      "type": "http",
      "category": null,
      "doc": "WHAT: Bridge liveness {ok, ts, installed_cli, deny_globs, ...}. WHEN_TO_USE: \"is the bridge alive\", \"is my mac reachable\", \"what's installed on my mac\", \"bridge health\" ARGS: (none) EX: text the build → \"is the bridge alive\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_HEALTH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_HEALTH",
        "type": "http",
        "what": [
          "WHAT: Bridge liveness {ok, ts, installed_cli, deny_globs, ...}.",
          "WHEN_TO_USE: \"is the bridge alive\", \"is my mac reachable\", \"what's installed on my mac\", \"bridge health\"",
          "ARGS: (none)",
          "EX: text the build → \"is the bridge alive\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"is the bridge alive\"",
        "tag": "[LOCAL_HEALTH][/LOCAL_HEALTH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_HEALTH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_HEALTH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LOCAL_HEALTH",
        "update": "PUT /api/directory/LOCAL_HEALTH",
        "patch": "PATCH /api/directory/LOCAL_HEALTH",
        "delete": "DELETE /api/directory/LOCAL_HEALTH",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_HEALTH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_HEALTH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_HEALTH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_HEALTH"
      },
      "examples": "[\"text the build \\u2192 \\\"is the bridge alive\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_HEALTH"
    },
    {
      "key": "LOCAL_HELP",
      "type": "http",
      "category": "terminal",
      "doc": "WHAT: Print the --help / -h / man page of a binary on the Mac. Args: binary name. WHEN_TO_USE: \"how do I use X\", \"what flags does X have\", \"X --help\". ARGS: $1 EX: [LOCAL_HELP]claude[/LOCAL_HELP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_HELP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_HELP",
        "type": "http",
        "what": [
          "WHAT: Print the --help / -h / man page of a binary on the Mac. Args: binary name.",
          "WHEN_TO_USE: \"how do I use X\", \"what flags does X have\", \"X --help\".",
          "ARGS: $1",
          "EX: [LOCAL_HELP]claude[/LOCAL_HELP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "claude",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_HELP]claude[/LOCAL_HELP]",
        "tag": "[LOCAL_HELP]<claude>[/LOCAL_HELP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_HELP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_HELP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"$1 --help 2>&1 || $1 -h 2>&1 || man $1 2>&1 | head -100\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_HELP",
        "update": "PUT /api/directory/LOCAL_HELP",
        "patch": "PATCH /api/directory/LOCAL_HELP",
        "delete": "DELETE /api/directory/LOCAL_HELP",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_HELP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_HELP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_HELP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_HELP"
      },
      "examples": "[\"claude\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_HELP"
    },
    {
      "key": "LOCAL_KEYCODE",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Send a macOS key code to the focused app (36=return 53=esc 48=tab 123-126=arrows). WHEN_TO_USE: \"press enter\", \"hit escape\", \"press the down arrow\" ARGS: key code number",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_KEYCODE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_KEYCODE",
        "type": "http",
        "what": [
          "WHAT: Send a macOS key code to the focused app (36=return 53=esc 48=tab 123-126=arrows).",
          "WHEN_TO_USE: \"press enter\", \"hit escape\", \"press the down arrow\"",
          "ARGS: key code number"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "53=esc 48=tab 123-126=arrows).",
        "example": "[LOCAL_KEYCODE]arg1[/LOCAL_KEYCODE]",
        "tag": "[LOCAL_KEYCODE]<arg1 …>[/LOCAL_KEYCODE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_KEYCODE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_KEYCODE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to key code $1+\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_KEYCODE",
        "update": "PUT /api/directory/LOCAL_KEYCODE",
        "patch": "PATCH /api/directory/LOCAL_KEYCODE",
        "delete": "DELETE /api/directory/LOCAL_KEYCODE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_KEYCODE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_KEYCODE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_KEYCODE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_KEYCODE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_KEYCODE"
    },
    {
      "key": "LOCAL_KEYSTROKE",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Type text into the focused field on the Mac (System Events keystroke). WHEN_TO_USE: \"type X\", \"enter X into the focused field\" ARGS: the text to type",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_KEYSTROKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_KEYSTROKE",
        "type": "http",
        "what": [
          "WHAT: Type text into the focused field on the Mac (System Events keystroke).",
          "WHEN_TO_USE: \"type X\", \"enter X into the focused field\"",
          "ARGS: the text to type"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_KEYSTROKE]arg1[/LOCAL_KEYSTROKE]",
        "tag": "[LOCAL_KEYSTROKE]<arg1 …>[/LOCAL_KEYSTROKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_KEYSTROKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_KEYSTROKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to keystroke \\\"$1+\\\"\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_KEYSTROKE",
        "update": "PUT /api/directory/LOCAL_KEYSTROKE",
        "patch": "PATCH /api/directory/LOCAL_KEYSTROKE",
        "delete": "DELETE /api/directory/LOCAL_KEYSTROKE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_KEYSTROKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_KEYSTROKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_KEYSTROKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_KEYSTROKE"
      },
      "examples": "[\"The build is typing this live into TextEdit, sent from a text message. Cool shit.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_KEYSTROKE"
    },
    {
      "key": "LOCAL_LAUNCHD",
      "type": "http",
      "category": null,
      "doc": "WHAT: launchctl on the Mac. Inspect/restart launch agents. WHEN_TO_USE: \"restart the bridge\", \"launchctl X\", \"kickstart <service>\" ARGS: launchctl arguments EX: text the build → \"restart the bridge by kickstarting com.the owner.grok-bridge\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_LAUNCHD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_LAUNCHD",
        "type": "http",
        "what": [
          "WHAT: launchctl on the Mac. Inspect/restart launch agents.",
          "WHEN_TO_USE: \"restart the bridge\", \"launchctl X\", \"kickstart <service>\"",
          "ARGS: launchctl arguments",
          "EX: text the build → \"restart the bridge by kickstarting com.the owner.grok-bridge\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"restart the bridge by kickstarting com.the owner.grok-bridge\"",
        "tag": "[LOCAL_LAUNCHD]<arg1 …>[/LOCAL_LAUNCHD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_LAUNCHD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_LAUNCHD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"launchctl $1+\"],\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_LAUNCHD",
        "update": "PUT /api/directory/LOCAL_LAUNCHD",
        "patch": "PATCH /api/directory/LOCAL_LAUNCHD",
        "delete": "DELETE /api/directory/LOCAL_LAUNCHD",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_LAUNCHD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_LAUNCHD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_LAUNCHD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_LAUNCHD"
      },
      "examples": "[\"text the build \\u2192 \\\"restart the bridge by kickstarting com.the owner.grok-bridge\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_LAUNCHD"
    },
    {
      "key": "LOCAL_LIST",
      "type": "http",
      "category": null,
      "doc": "WHAT: ls -la a path on the Mac. WHEN_TO_USE: \"list <dir>\", \"what's in <dir>\", \"ls <path>\" ARGS: path (empty = home) EX: text the build → \"list /Users/the owner/miscsubjects-pages\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_LIST",
        "type": "http",
        "what": [
          "WHAT: ls -la a path on the Mac.",
          "WHEN_TO_USE: \"list <dir>\", \"what's in <dir>\", \"ls <path>\"",
          "ARGS: path (empty = home)",
          "EX: text the build → \"list /Users/the owner/miscsubjects-pages\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"list /Users/the owner/miscsubjects-pages\"",
        "tag": "[LOCAL_LIST]<arg1>[/LOCAL_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"ls -la $1\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_LIST",
        "update": "PUT /api/directory/LOCAL_LIST",
        "patch": "PATCH /api/directory/LOCAL_LIST",
        "delete": "DELETE /api/directory/LOCAL_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_LIST"
      },
      "examples": "[\"text the build \\u2192 \\\"list /Users/the owner/miscsubjects-pages\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_LIST"
    },
    {
      "key": "LOCAL_NETWORK",
      "type": "http",
      "category": "local",
      "doc": "WHAT: dump current network state (Wi-Fi SSID, IP, gateway). ARGS: none.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_NETWORK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_NETWORK",
        "type": "http",
        "what": [
          "WHAT: dump current network state (Wi-Fi SSID, IP, gateway). ARGS: none."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_NETWORK]arg1[/LOCAL_NETWORK]",
        "tag": "[LOCAL_NETWORK]<arg1 …>[/LOCAL_NETWORK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_NETWORK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_NETWORK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"sh $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_NETWORK",
        "update": "PUT /api/directory/LOCAL_NETWORK",
        "patch": "PATCH /api/directory/LOCAL_NETWORK",
        "delete": "DELETE /api/directory/LOCAL_NETWORK",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_NETWORK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_NETWORK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_NETWORK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_NETWORK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_NETWORK"
    },
    {
      "key": "LOCAL_NOTIFY",
      "type": "http",
      "category": "local",
      "doc": "WHAT: post a macOS Notification Center banner. ARGS: title|message|sound (optional). WHEN_TO_USE: bring eyes back to the Mac when something async finishes.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_NOTIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_NOTIFY",
        "type": "http",
        "what": [
          "WHAT: post a macOS Notification Center banner. ARGS: title|message|sound (optional).",
          "WHEN_TO_USE: bring eyes back to the Mac when something async finishes."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_NOTIFY]arg1[/LOCAL_NOTIFY]",
        "tag": "[LOCAL_NOTIFY]<arg1 …>[/LOCAL_NOTIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_NOTIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_NOTIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"osascript $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_NOTIFY",
        "update": "PUT /api/directory/LOCAL_NOTIFY",
        "patch": "PATCH /api/directory/LOCAL_NOTIFY",
        "delete": "DELETE /api/directory/LOCAL_NOTIFY",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_NOTIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_NOTIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_NOTIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_NOTIFY"
      },
      "examples": "[\"WT-0090: 103 letters await your review in the browser tab that just opened. Nothing sends until you approve.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_NOTIFY"
    },
    {
      "key": "LOCAL_OCR",
      "type": "http",
      "category": null,
      "doc": "WHAT: OCR an image (tesseract). Local path or https URL. WHEN_TO_USE: \"read text from this image\", \"ocr this\", \"extract text from <image>\" ARGS: path or https URL EX: text the build → \"ocr the screenshot at /tmp/shot.png\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_OCR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_OCR",
        "type": "http",
        "what": [
          "WHAT: OCR an image (tesseract). Local path or https URL.",
          "WHEN_TO_USE: \"read text from this image\", \"ocr this\", \"extract text from <image>\"",
          "ARGS: path or https URL",
          "EX: text the build → \"ocr the screenshot at /tmp/shot.png\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"ocr the screenshot at /tmp/shot.png\"",
        "tag": "[LOCAL_OCR]<arg1>[/LOCAL_OCR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_OCR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_OCR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"in=/tmp/ocr-in-$(date +%s); case \\\"$1\\\" in http*) curl -sSL \\\"$1\\\" -o \\\"$in\\\";; *) cp $1 \\\"$in\\\";; esac; tesseract \\\"$in\\\" - 2>/dev/null\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_OCR",
        "update": "PUT /api/directory/LOCAL_OCR",
        "patch": "PATCH /api/directory/LOCAL_OCR",
        "delete": "DELETE /api/directory/LOCAL_OCR",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_OCR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_OCR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_OCR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_OCR"
      },
      "examples": "[\"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_OCR"
    },
    {
      "key": "LOCAL_OPEN",
      "type": "http",
      "category": null,
      "doc": "WHAT: macOS `open` — launch an app, file, or URL on the Mac. WHEN_TO_USE: \"open X on my mac\", \"launch <app>\", \"open this URL on my mac\" ARGS: target (URL, file path, or `-a AppName`) EX: text the build → \"open https://miscsubjects.com on my mac\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_OPEN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_OPEN",
        "type": "http",
        "what": [
          "WHAT: macOS `open` — launch an app, file, or URL on the Mac.",
          "WHEN_TO_USE: \"open X on my mac\", \"launch <app>\", \"open this URL on my mac\"",
          "ARGS: target (URL, file path, or `-a AppName`)",
          "EX: text the build → \"open https://miscsubjects.com on my mac\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"open https://miscsubjects.com on my mac\"",
        "tag": "[LOCAL_OPEN]<arg1 …>[/LOCAL_OPEN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_OPEN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_OPEN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"open $1+\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_OPEN",
        "update": "PUT /api/directory/LOCAL_OPEN",
        "patch": "PATCH /api/directory/LOCAL_OPEN",
        "delete": "DELETE /api/directory/LOCAL_OPEN",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_OPEN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_OPEN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_OPEN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_OPEN"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_OPEN"
    },
    {
      "key": "LOCAL_OPEN_APP",
      "type": "http",
      "category": "local",
      "doc": "WHAT: open a macOS app by name. ARGS: $1 = app name (e.g. \"Safari\", \"Cursor\", \"Messages\").",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_OPEN_APP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_OPEN_APP",
        "type": "http",
        "what": [
          "WHAT: open a macOS app by name. ARGS: $1 = app name (e.g. \"Safari\", \"Cursor\", \"Messages\")."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "app name (e.g. \"Safari\", \"Cursor\", \"Messages\").",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_OPEN_APP]arg1[/LOCAL_OPEN_APP]",
        "tag": "[LOCAL_OPEN_APP]<arg1 …>[/LOCAL_OPEN_APP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_OPEN_APP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_OPEN_APP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"open $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_OPEN_APP",
        "update": "PUT /api/directory/LOCAL_OPEN_APP",
        "patch": "PATCH /api/directory/LOCAL_OPEN_APP",
        "delete": "DELETE /api/directory/LOCAL_OPEN_APP",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_OPEN_APP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_OPEN_APP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_OPEN_APP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_OPEN_APP"
      },
      "examples": "[\"Safari\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_OPEN_APP"
    },
    {
      "key": "LOCAL_OPEN_URL",
      "type": "http",
      "category": "local",
      "doc": "WHAT: open a URL in the default browser. ARGS: $1 = url.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_OPEN_URL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_OPEN_URL",
        "type": "http",
        "what": [
          "WHAT: open a URL in the default browser. ARGS: $1 = url."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "url.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_OPEN_URL]arg1[/LOCAL_OPEN_URL]",
        "tag": "[LOCAL_OPEN_URL]<arg1 …>[/LOCAL_OPEN_URL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_OPEN_URL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_OPEN_URL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"open $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_OPEN_URL",
        "update": "PUT /api/directory/LOCAL_OPEN_URL",
        "patch": "PATCH /api/directory/LOCAL_OPEN_URL",
        "delete": "DELETE /api/directory/LOCAL_OPEN_URL",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_OPEN_URL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_OPEN_URL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_OPEN_URL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_OPEN_URL"
      },
      "examples": "[\"https://miscsubjects.com/admin/directory\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_OPEN_URL"
    },
    {
      "key": "LOCAL_OSASCRIPT",
      "type": "http",
      "category": null,
      "doc": "WHAT: Run one line of AppleScript on the Mac (osascript -e). WHEN_TO_USE: \"applescript: <line>\", \"tell <app> to <action>\", \"run osascript\" ARGS: the AppleScript line EX: text the build → \"applescript: tell application \"Spotify\" to pause\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_OSASCRIPT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_OSASCRIPT",
        "type": "http",
        "what": [
          "WHAT: Run one line of AppleScript on the Mac (osascript -e).",
          "WHEN_TO_USE: \"applescript: <line>\", \"tell <app> to <action>\", \"run osascript\"",
          "ARGS: the AppleScript line",
          "EX: text the build → \"applescript: tell application \"Spotify\" to pause\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"applescript: tell application \"Spotify\" to pause\"",
        "tag": "[LOCAL_OSASCRIPT]<arg1 …>[/LOCAL_OSASCRIPT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_OSASCRIPT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_OSASCRIPT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"$1+\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_OSASCRIPT",
        "update": "PUT /api/directory/LOCAL_OSASCRIPT",
        "patch": "PATCH /api/directory/LOCAL_OSASCRIPT",
        "delete": "DELETE /api/directory/LOCAL_OSASCRIPT",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_OSASCRIPT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_OSASCRIPT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_OSASCRIPT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_OSASCRIPT"
      },
      "examples": "[\"tell application \\\"Messages\\\" to get id of 1st service whose service type = iMessage\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_OSASCRIPT"
    },
    {
      "key": "LOCAL_PASTEBOARD_PUSH_PHONE",
      "type": "http",
      "category": null,
      "doc": "WHAT: push text into Mac clipboard so Universal Clipboard syncs it to the iPhone. ARGS: $1 = text.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_PASTEBOARD_PUSH_PHONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_PASTEBOARD_PUSH_PHONE",
        "type": "http",
        "what": [
          "WHAT: push text into Mac clipboard so Universal Clipboard syncs it to the iPhone. ARGS: $1 = text."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "text.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_PASTEBOARD_PUSH_PHONE]arg1[/LOCAL_PASTEBOARD_PUSH_PHONE]",
        "tag": "[LOCAL_PASTEBOARD_PUSH_PHONE]<arg1 …>[/LOCAL_PASTEBOARD_PUSH_PHONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_PASTEBOARD_PUSH_PHONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_PASTEBOARD_PUSH_PHONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"pbcopy\",\"args\":[],\"stdin\":\"$1+\",\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_PASTEBOARD_PUSH_PHONE",
        "update": "PUT /api/directory/LOCAL_PASTEBOARD_PUSH_PHONE",
        "patch": "PATCH /api/directory/LOCAL_PASTEBOARD_PUSH_PHONE",
        "delete": "DELETE /api/directory/LOCAL_PASTEBOARD_PUSH_PHONE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_PASTEBOARD_PUSH_PHONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_PASTEBOARD_PUSH_PHONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_PASTEBOARD_PUSH_PHONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_PASTEBOARD_PUSH_PHONE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_PASTEBOARD_PUSH_PHONE"
    },
    {
      "key": "LOCAL_PORTS",
      "type": "http",
      "category": null,
      "doc": "WHAT: Listening TCP ports on the Mac (lsof). WHEN_TO_USE: \"what's listening on my mac\", \"listening ports\", \"ports in use\" ARGS: (none) EX: text the build → \"what ports are listening on my mac\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_PORTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_PORTS",
        "type": "http",
        "what": [
          "WHAT: Listening TCP ports on the Mac (lsof).",
          "WHEN_TO_USE: \"what's listening on my mac\", \"listening ports\", \"ports in use\"",
          "ARGS: (none)",
          "EX: text the build → \"what ports are listening on my mac\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"what ports are listening on my mac\"",
        "tag": "[LOCAL_PORTS][/LOCAL_PORTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_PORTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_PORTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"lsof -iTCP -sTCP:LISTEN -P -n | head -60\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_PORTS",
        "update": "PUT /api/directory/LOCAL_PORTS",
        "patch": "PATCH /api/directory/LOCAL_PORTS",
        "delete": "DELETE /api/directory/LOCAL_PORTS",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_PORTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_PORTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_PORTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_PORTS"
      },
      "examples": "[\"text the build \\u2192 \\\"what ports are listening on my mac\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_PORTS"
    },
    {
      "key": "LOCAL_PS",
      "type": "http",
      "category": null,
      "doc": "WHAT: Running processes filtered by string. Empty filter = first 50. WHEN_TO_USE: \"what's running on my mac\", \"is X running\", \"ps for <name>\" ARGS: filter (empty = first 50) EX: text the build → \"is wrangler running on my mac\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_PS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_PS",
        "type": "http",
        "what": [
          "WHAT: Running processes filtered by string. Empty filter = first 50.",
          "WHEN_TO_USE: \"what's running on my mac\", \"is X running\", \"ps for <name>\"",
          "ARGS: filter (empty = first 50)",
          "EX: text the build → \"is wrangler running on my mac\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"is wrangler running on my mac\"",
        "tag": "[LOCAL_PS]<arg1>[/LOCAL_PS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_PS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_PS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"ps aux | grep -i \\\"$1\\\" | grep -v \\\"grep -i\\\" | head -50; true\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_PS",
        "update": "PUT /api/directory/LOCAL_PS",
        "patch": "PATCH /api/directory/LOCAL_PS",
        "delete": "DELETE /api/directory/LOCAL_PS",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_PS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_PS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_PS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_PS"
      },
      "examples": "[\"text the build \\u2192 \\\"is wrangler running on my mac\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_PS"
    },
    {
      "key": "LOCAL_READ",
      "type": "http",
      "category": null,
      "doc": "WHAT: Read a file on the owner Mac. WHEN_TO_USE: the user says \"show me\", \"read\", \"what is in\", \"display\". ARGS: $1 = absolute path. EX: [LOCAL_READ]/Users/the owner/STATE.md[/LOCAL_READ]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_READ",
        "type": "http",
        "what": [
          "WHAT: Read a file on the owner Mac.",
          "WHEN_TO_USE: the user says \"show me\", \"read\", \"what is in\", \"display\".",
          "ARGS: $1 = absolute path.",
          "EX: [LOCAL_READ]/Users/the owner/STATE.md[/LOCAL_READ]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "/Users/the owner/STATE.md",
            "desc": "absolute path.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_READ]/Users/the owner/STATE.md[/LOCAL_READ]",
        "tag": "[LOCAL_READ]</Users/the owner/STATE.md>[/LOCAL_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"cat\",\"args\":[\"$1\"]}",
      "edit": {
        "read": "GET /api/directory/LOCAL_READ",
        "update": "PUT /api/directory/LOCAL_READ",
        "patch": "PATCH /api/directory/LOCAL_READ",
        "delete": "DELETE /api/directory/LOCAL_READ",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_READ"
      },
      "examples": "[\"~/miscsubjects-pages/ACCESS.md\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_READ"
    },
    {
      "key": "LOCAL_SAY",
      "type": "http",
      "category": null,
      "doc": "WHAT: Speak text aloud on the Mac (say). WHEN_TO_USE: \"say X out loud\", \"speak X on my mac\", \"make my mac say\" ARGS: the text EX: text the build → \"say out loud: deploy finished\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_SAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_SAY",
        "type": "http",
        "what": [
          "WHAT: Speak text aloud on the Mac (say).",
          "WHEN_TO_USE: \"say X out loud\", \"speak X on my mac\", \"make my mac say\"",
          "ARGS: the text",
          "EX: text the build → \"say out loud: deploy finished\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"say out loud: deploy finished\"",
        "tag": "[LOCAL_SAY]<arg1 …>[/LOCAL_SAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_SAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_SAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"say\",\"args\":[\"$1+\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_SAY",
        "update": "PUT /api/directory/LOCAL_SAY",
        "patch": "PATCH /api/directory/LOCAL_SAY",
        "delete": "DELETE /api/directory/LOCAL_SAY",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_SAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_SAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_SAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_SAY"
      },
      "examples": "[\"text the build \\u2192 \\\"say out loud: deploy finished\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_SAY"
    },
    {
      "key": "LOCAL_SCREENSHOT",
      "type": "http",
      "category": null,
      "doc": "WHAT: Screenshot the screen, upload to R2, return a stable URL. WHEN_TO_USE: \"screenshot my mac\", \"take a screenshot\", \"what's on my screen right now\" ARGS: (none) EX: text the build → \"screenshot my mac\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_SCREENSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_SCREENSHOT",
        "type": "http",
        "what": [
          "WHAT: Screenshot the screen, upload to R2, return a stable URL.",
          "WHEN_TO_USE: \"screenshot my mac\", \"take a screenshot\", \"what's on my screen right now\"",
          "ARGS: (none)",
          "EX: text the build → \"screenshot my mac\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "a stable URL.",
        "example": "text the build → \"screenshot my mac\"",
        "tag": "[LOCAL_SCREENSHOT][/LOCAL_SCREENSHOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_SCREENSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_SCREENSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"f=/tmp/shot-$(date +%s).png; screencapture -x \\\"$f\\\" && curl -sS -X PUT --data-binary @\\\"$f\\\" -H \\\"x-terminal-key: ${TERMINAL_KEY}\\\" \\\"https://miscsubjects.com/api/file_upload?key=$(basename \\\"$f\\\")\\\"\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_SCREENSHOT",
        "update": "PUT /api/directory/LOCAL_SCREENSHOT",
        "patch": "PATCH /api/directory/LOCAL_SCREENSHOT",
        "delete": "DELETE /api/directory/LOCAL_SCREENSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_SCREENSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_SCREENSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_SCREENSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_SCREENSHOT"
      },
      "examples": "[\"text the build \\u2192 \\\"screenshot my mac\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_SCREENSHOT"
    },
    {
      "key": "LOCAL_SHORTCUTS_LIST",
      "type": "http",
      "category": "local",
      "doc": "WHAT: list all Shortcuts on the Mac (`shortcuts list`).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_SHORTCUTS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_SHORTCUTS_LIST",
        "type": "http",
        "what": [
          "WHAT: list all Shortcuts on the Mac (`shortcuts list`)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_SHORTCUTS_LIST]arg1[/LOCAL_SHORTCUTS_LIST]",
        "tag": "[LOCAL_SHORTCUTS_LIST]<arg1 …>[/LOCAL_SHORTCUTS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_SHORTCUTS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_SHORTCUTS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"shortcuts $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_SHORTCUTS_LIST",
        "update": "PUT /api/directory/LOCAL_SHORTCUTS_LIST",
        "patch": "PATCH /api/directory/LOCAL_SHORTCUTS_LIST",
        "delete": "DELETE /api/directory/LOCAL_SHORTCUTS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_SHORTCUTS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_SHORTCUTS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_SHORTCUTS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_SHORTCUTS_LIST"
      },
      "examples": "[\"list\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_SHORTCUTS_LIST"
    },
    {
      "key": "LOCAL_SHORTCUTS_RUN",
      "type": "http",
      "category": null,
      "doc": "WHAT: run a macOS/iOS Shortcut by name (`shortcuts run \"Name\"`). ARGS: $1 = name. WHEN_TO_USE: invoke any shortcut the owner saved (cross-syncs with iOS). Input-passing ($2) is a follow-up; this fixes the row, which previously ran `sh <name>` and never invoked shortcuts.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_SHORTCUTS_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_SHORTCUTS_RUN",
        "type": "http",
        "what": [
          "WHAT: run a macOS/iOS Shortcut by name (`shortcuts run \"Name\"`). ARGS: $1 = name.",
          "WHEN_TO_USE: invoke any shortcut the owner saved (cross-syncs with iOS). Input-passing ($2) is a follow-up; this fixes the row, which previously ran `sh <name>` and never invoked shortcuts."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "name.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOCAL_SHORTCUTS_RUN]arg1[/LOCAL_SHORTCUTS_RUN]",
        "tag": "[LOCAL_SHORTCUTS_RUN]<arg1>[/LOCAL_SHORTCUTS_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_SHORTCUTS_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_SHORTCUTS_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"shortcuts run \\\"$1\\\"\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_SHORTCUTS_RUN",
        "update": "PUT /api/directory/LOCAL_SHORTCUTS_RUN",
        "patch": "PATCH /api/directory/LOCAL_SHORTCUTS_RUN",
        "delete": "DELETE /api/directory/LOCAL_SHORTCUTS_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_SHORTCUTS_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_SHORTCUTS_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_SHORTCUTS_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_SHORTCUTS_RUN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_SHORTCUTS_RUN"
    },
    {
      "key": "LOCAL_UI_CLICK",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Click a UI element by its LABEL in a running app, resolved semantically — never blind x/y. Reports whether the screen actually changed. WHEN_TO_USE: \"click the X button\", \"press X\". Run LOCAL_UI_SNAPSHOT first to see the exact labels and roles this can match. ARGS: $1 = label (required, case-insensitive) | $2 = role filter, \"AXButton\" or just \"button\" (optional) | $3 = app name (optional, default the frontmost app) EX: [LOCAL_UI_CLICK]Save|button|TextEdit[/LOCAL_UI_CLICK] TESTS: Returns JSON. On a hit: {ok:true, role, matched, screen_changed}. On a miss: {ok:false, error:\"no_such_element\", candidates:[role:label, ...]} — the candidate list is the answer to \"what could I have clicked\". WHY THIS SHAPE: the old row clicked `first UI element of front window whose name is X`. Three ways that was wrong, all fixed here: it searched only the window's TOP level, so a nested button was invisible; it matched on `name` alone, so every SwiftUI control (Calculator's keypad is Five/Seven/Equals, no name at all) was unreachable; and it reported success whether or not the click did anything. The label ladder is name → AXDescription → title → AXIdentifier → AXHelp. `description` is deliberately excluded: System Events returns the ROLE description there, so every button reads \"button\" and a resolver that trusts it matches the wrong element with total confidence.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_UI_CLICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_UI_CLICK",
        "type": "http",
        "what": [
          "WHAT: Click a UI element by its LABEL in a running app, resolved semantically — never blind x/y. Reports whether the screen actually changed.",
          "WHEN_TO_USE: \"click the X button\", \"press X\". Run LOCAL_UI_SNAPSHOT first to see the exact labels and roles this can match.",
          "ARGS: $1 = label (required, case-insensitive) | $2 = role filter, \"AXButton\" or just \"button\" (optional) | $3 = app name (optional, default the frontmost app)",
          "EX: [LOCAL_UI_CLICK]Save|button|TextEdit[/LOCAL_UI_CLICK]",
          "TESTS: Returns JSON. On a hit: {ok:true, role, matched, screen_changed}. On a miss: {ok:false, error:\"no_such_element\", candidates:[role:label, ...]} — the candidate list is the answer to \"what could I have clicked\".",
          "WHY THIS SHAPE: the old row clicked `first UI element of front window whose name is X`. Three ways that was wrong, all fixed here: it searched only the window's TOP level, so a nested button was invisible; it matched on `name` alone, so every SwiftUI control (Calculator's keypad is Five/Seven/Equals, no name at all) was unreachable; and it reported success whether or not the click did anything. The label ladder is name → AXDescription → title → AXIdentifier → AXHelp. `description` is deliberately excluded: System Events returns the ROLE description there, so every button reads \"button\" and a resolver that trusts it matches the wrong element with total confidence."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Save",
            "desc": "label (required, case-insensitive) | $2 = role filter, \"AXButton\" or just \"button\" (optional) | $3 = app name (optional, default the frontmost app)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "button",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "TextEdit",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON. On a hit: {ok:true, role, matched, screen_changed}. On a miss: {ok:false, error:\"no_such_element\", candidates:[role:label, ...]} — the candidate list is the answer to \"what could I have clicked\".",
        "example": "[LOCAL_UI_CLICK]Save|button|TextEdit[/LOCAL_UI_CLICK]",
        "tag": "[LOCAL_UI_CLICK]<Save>|<button>|<TextEdit>[/LOCAL_UI_CLICK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_UI_CLICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_UI_CLICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"osascript\", \"args\": [\"-e\", \"on txt(v)\\n\\ttry\\n\\t\\tif v is missing value then return \\\"\\\"\\n\\tend try\\n\\tset t to \\\"\\\"\\n\\ttry\\n\\t\\tset t to v as text\\n\\tend try\\n\\tif t is \\\"missing value\\\" then return \\\"\\\"\\n\\treturn t\\nend txt\\n\\non lc(t)\\n\\tset out to \\\"\\\"\\n\\trepeat with c in (characters of (t as text))\\n\\t\\tset ch to c as text\\n\\t\\tset i to id of ch\\n\\t\\tif i \\u2265 65 and i \\u2264 90 then\\n\\t\\t\\tset out to out & (character id (i + 32))\\n\\t\\telse\\n\\t\\t\\tset out to out & ch\\n\\t\\tend if\\n\\tend repeat\\n\\treturn out\\nend lc\\n\\non qq(t)\\n\\tset s to \\\"\\\"\\n\\trepeat with c in (characters of (t as text))\\n\\t\\tset ch to c as text\\n\\t\\tif ch is \\\"\\\\\\\"\\\" then\\n\\t\\t\\tset s to s & \\\"\\\\\\\\\\\\\\\"\\\"\\n\\t\\telse if ch is \\\"\\\\\\\\\\\" then\\n\\t\\t\\tset s to s & \\\"\\\\\\\\\\\\\\\\\\\"\\n\\t\\telse if (id of ch) < 32 then\\n\\t\\t\\tset s to s & \\\" \\\"\\n\\t\\telse\\n\\t\\t\\tset s to s & ch\\n\\t\\tend if\\n\\tend repeat\\n\\treturn s\\nend qq\\n\\n-- A role filter accepts the AX string or the bare word: \\\"AXButton\\\" or \\\"button\\\".\\non sameRole(actual, wanted)\\n\\tset x to my lc(actual)\\n\\tset y to my lc(wanted)\\n\\tif x is y then return true\\n\\tif x is (\\\"ax\\\" & y) then return true\\n\\treturn false\\nend sameRole\\n\\non run argv\\n\\tset targetName to \\\"\\\"\\n\\tset targetRole to \\\"\\\"\\n\\tset appName to \\\"\\\"\\n\\tif (count of argv) > 0 then set targetName to item 1 of argv\\n\\tif (count of argv) > 1 then set targetRole to item 2 of argv\\n\\tif (count of argv) > 2 then set appName to item 3 of argv\\n\\tif targetName is \\\"\\\" then return \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"name_required\\\\\\\"}\\\"\\n\\tset wanted to my lc(targetName)\\n\\n\\ttell application \\\"System Events\\\"\\n\\t\\ttry\\n\\t\\t\\tif appName is \\\"\\\" then\\n\\t\\t\\t\\tset proc to first process whose frontmost is true\\n\\t\\t\\telse\\n\\t\\t\\t\\tset proc to first process whose name is appName\\n\\t\\t\\tend if\\n\\t\\ton error\\n\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"app_not_running\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(appName) & \\\"\\\\\\\"}\\\"\\n\\t\\tend try\\n\\t\\tset procName to my txt(name of proc)\\n\\t\\ttell proc\\n\\t\\t\\tif (count of windows) is 0 then return \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"no_window\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\"}\\\"\\n\\t\\t\\t-- A window reference must be taken by INDEX, not by `front window`. `front window`\\n\\t\\t\\t-- returns a specifier that re-resolves by TITLE on every later use, and a title that\\n\\t\\t\\t-- changes between two statements \\u2014 a terminal with a spinner in it, a browser tab\\n\\t\\t\\t-- switching, a document marking itself edited \\u2014 makes the reference stale mid-script:\\n\\t\\t\\t-- \\\"Can't get window <old title> of application process\\\". Measured live 2026-09-08.\\n\\t\\t\\tset win to window 1\\n\\t\\t\\tset winName to my txt(name of win)\\n\\t\\t\\tset scope to entire contents of window 1\\n\\t\\t\\tset deep to true\\n\\t\\t\\tif (count of scope) > 400 then\\n\\t\\t\\t\\tset scope to UI elements of window 1\\n\\t\\t\\t\\tset deep to false\\n\\t\\t\\tend if\\n\\n\\t\\t\\tset matches to {}\\n\\t\\t\\tset candidates to {}\\n\\t\\t\\tset sigBefore to \\\"\\\"\\n\\t\\t\\trepeat with el in scope\\n\\t\\t\\t\\tset elRole to \\\"\\\"\\n\\t\\t\\t\\tset elValue to \\\"\\\"\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset elRole to my txt(role of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset elValue to my txt(value of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\tif elValue is not \\\"\\\" then set sigBefore to sigBefore & elRole & \\\"=\\\" & elValue & \\\";\\\"\\n\\n\\t\\t\\t\\t-- THE LABEL LADDER. A control's readable name lives in a different attribute in\\n\\t\\t\\t\\t-- every toolkit: `name` for AppKit, AXDescription for an icon button, AXIdentifier\\n\\t\\t\\t\\t-- for SwiftUI (Calculator's keypad is Five/Seven/Equals and has no name at all),\\n\\t\\t\\t\\t-- AXHelp for a tooltip-only control. `description` is deliberately absent: System\\n\\t\\t\\t\\t-- Events returns the ROLE description there, so every button reads \\\"button\\\" and a\\n\\t\\t\\t\\t-- resolver that trusts it matches the wrong element with total confidence.\\n\\t\\t\\t\\tset labels to {}\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset end of labels to my txt(name of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset end of labels to my txt(value of attribute \\\"AXDescription\\\" of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset end of labels to my txt(title of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset end of labels to my txt(value of attribute \\\"AXIdentifier\\\" of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset end of labels to my txt(help of el)\\n\\t\\t\\t\\tend try\\n\\n\\t\\t\\t\\tset best to \\\"\\\"\\n\\t\\t\\t\\tset isHit to false\\n\\t\\t\\t\\trepeat with lb in labels\\n\\t\\t\\t\\t\\tset l to lb as text\\n\\t\\t\\t\\t\\tif l is not \\\"\\\" then\\n\\t\\t\\t\\t\\t\\tif best is \\\"\\\" then set best to l\\n\\t\\t\\t\\t\\t\\tif my lc(l) is wanted then set isHit to true\\n\\t\\t\\t\\t\\tend if\\n\\t\\t\\t\\tend repeat\\n\\n\\t\\t\\t\\tif best is not \\\"\\\" and (count of candidates) < 60 then set end of candidates to (elRole & \\\":\\\" & best)\\n\\t\\t\\t\\tif isHit then\\n\\t\\t\\t\\t\\tif targetRole is \\\"\\\" or my sameRole(elRole, targetRole) then set end of matches to el\\n\\t\\t\\t\\tend if\\n\\t\\t\\tend repeat\\n\\n\\t\\t\\tif (count of matches) is 0 then\\n\\t\\t\\t\\tset clist to \\\"\\\"\\n\\t\\t\\t\\trepeat with c in candidates\\n\\t\\t\\t\\t\\tset clist to clist & \\\"\\\\\\\"\\\" & my qq(c as text) & \\\"\\\\\\\",\\\"\\n\\t\\t\\t\\tend repeat\\n\\t\\t\\t\\tif clist is not \\\"\\\" then set clist to text 1 thru -2 of clist\\n\\t\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"no_such_element\\\\\\\",\\\\\\\"looked_for\\\\\\\":\\\\\\\"\\\" & my qq(targetName) & \\\"\\\\\\\",\\\\\\\"role_filter\\\\\\\":\\\\\\\"\\\" & my qq(targetRole) & \\\"\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\",\\\\\\\"window\\\\\\\":\\\\\\\"\\\" & my qq(winName) & \\\"\\\\\\\",\\\\\\\"searched_nested\\\\\\\":\\\" & (deep as text) & \\\",\\\\\\\"candidates\\\\\\\":[\\\" & clist & \\\"]}\\\"\\n\\t\\t\\tend if\\n\\n\\t\\t\\tset hit to item 1 of matches\\n\\t\\t\\tset hitRole to \\\"\\\"\\n\\t\\t\\ttry\\n\\t\\t\\t\\tset hitRole to my txt(role of hit)\\n\\t\\t\\tend try\\n\\t\\t\\ttry\\n\\t\\t\\t\\tclick hit\\n\\t\\t\\ton error errText\\n\\t\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"click_refused\\\\\\\",\\\\\\\"detail\\\\\\\":\\\\\\\"\\\" & my qq(errText) & \\\"\\\\\\\",\\\\\\\"role\\\\\\\":\\\\\\\"\\\" & my qq(hitRole) & \\\"\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\"}\\\"\\n\\t\\t\\tend try\\n\\t\\t\\tdelay 0.35\\n\\n\\t\\t\\tset sigAfter to \\\"\\\"\\n\\t\\t\\tset scope2 to entire contents of window 1\\n\\t\\t\\tif (count of scope2) > 400 then set scope2 to UI elements of window 1\\n\\t\\t\\trepeat with el in scope2\\n\\t\\t\\t\\tset r2 to \\\"\\\"\\n\\t\\t\\t\\tset v2 to \\\"\\\"\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset r2 to my txt(role of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset v2 to my txt(value of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\tif v2 is not \\\"\\\" then set sigAfter to sigAfter & r2 & \\\"=\\\" & v2 & \\\";\\\"\\n\\t\\t\\tend repeat\\n\\n\\t\\t\\tset didChange to \\\"false\\\"\\n\\t\\t\\tif sigAfter is not sigBefore then set didChange to \\\"true\\\"\\n\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":true,\\\\\\\"clicked\\\\\\\":\\\\\\\"\\\" & my qq(targetName) & \\\"\\\\\\\",\\\\\\\"role\\\\\\\":\\\\\\\"\\\" & my qq(hitRole) & \\\"\\\\\\\",\\\\\\\"matched\\\\\\\":\\\" & (count of matches) & \\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\",\\\\\\\"window\\\\\\\":\\\\\\\"\\\" & my qq(winName) & \\\"\\\\\\\",\\\\\\\"searched_nested\\\\\\\":\\\" & (deep as text) & \\\",\\\\\\\"screen_changed\\\\\\\":\\\" & didChange & \\\"}\\\"\\n\\t\\tend tell\\n\\tend tell\\nend run\\n\", \"$1\", \"$2\", \"$3\"], \"timeout\": 30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_UI_CLICK",
        "update": "PUT /api/directory/LOCAL_UI_CLICK",
        "patch": "PATCH /api/directory/LOCAL_UI_CLICK",
        "delete": "DELETE /api/directory/LOCAL_UI_CLICK",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_UI_CLICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_UI_CLICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_UI_CLICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_UI_CLICK"
      },
      "examples": "[\"Save|button|TextEdit\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_UI_CLICK"
    },
    {
      "key": "LOCAL_UI_SNAPSHOT",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: Accessibility snapshot of a window — role, label and value of every element, nested, as JSON. Semantic, not pixels. The map LOCAL_UI_CLICK clicks from. WHEN_TO_USE: \"what is on screen\", \"list the buttons\", before clicking by label. ARGS: $1 = app name (optional, default the frontmost app) EX: [LOCAL_UI_SNAPSHOT]TextEdit[/LOCAL_UI_SNAPSHOT] TESTS: {ok:true, app, window, searched_nested, count, elements:[{role,label,value}]}. Every label it prints is a label LOCAL_UI_CLICK can match, because both use the same ladder: name → AXDescription → title → AXIdentifier → AXHelp. `description` is excluded on purpose — System Events returns the ROLE description there, so every button would read \"button\". The old row listed only the window's TOP-level elements and matched on `name` alone, which is why a nested or SwiftUI control never appeared.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_UI_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_UI_SNAPSHOT",
        "type": "http",
        "what": [
          "WHAT: Accessibility snapshot of a window — role, label and value of every element, nested, as JSON. Semantic, not pixels. The map LOCAL_UI_CLICK clicks from.",
          "WHEN_TO_USE: \"what is on screen\", \"list the buttons\", before clicking by label.",
          "ARGS: $1 = app name (optional, default the frontmost app)",
          "EX: [LOCAL_UI_SNAPSHOT]TextEdit[/LOCAL_UI_SNAPSHOT]",
          "TESTS: {ok:true, app, window, searched_nested, count, elements:[{role,label,value}]}. Every label it prints is a label LOCAL_UI_CLICK can match, because both use the same ladder: name → AXDescription → title → AXIdentifier → AXHelp. `description` is excluded on purpose — System Events returns the ROLE description there, so every button would read \"button\". The old row listed only the window's TOP-level elements and matched on `name` alone, which is why a nested or SwiftUI control never appeared."
        ],
        "args": [
          {
            "pos": 1,
            "name": "TextEdit",
            "desc": "app name (optional, default the frontmost app)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the ROLE description there, so every button would read \"button\". The old row listed only the window's TOP-level elements and matched on `name` alone, which is why a nested or SwiftUI control never appeared.",
        "example": "[LOCAL_UI_SNAPSHOT]TextEdit[/LOCAL_UI_SNAPSHOT]",
        "tag": "[LOCAL_UI_SNAPSHOT]<TextEdit>[/LOCAL_UI_SNAPSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_UI_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_UI_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\": \"osascript\", \"args\": [\"-e\", \"on txt(v)\\n\\ttry\\n\\t\\tif v is missing value then return \\\"\\\"\\n\\tend try\\n\\tset t to \\\"\\\"\\n\\ttry\\n\\t\\tset t to v as text\\n\\tend try\\n\\tif t is \\\"missing value\\\" then return \\\"\\\"\\n\\treturn t\\nend txt\\n\\non qq(t)\\n\\tset s to \\\"\\\"\\n\\trepeat with c in (characters of (t as text))\\n\\t\\tset ch to c as text\\n\\t\\tif ch is \\\"\\\\\\\"\\\" then\\n\\t\\t\\tset s to s & \\\"\\\\\\\\\\\\\\\"\\\"\\n\\t\\telse if ch is \\\"\\\\\\\\\\\" then\\n\\t\\t\\tset s to s & \\\"\\\\\\\\\\\\\\\\\\\"\\n\\t\\telse if (id of ch) < 32 then\\n\\t\\t\\tset s to s & \\\" \\\"\\n\\t\\telse\\n\\t\\t\\tset s to s & ch\\n\\t\\tend if\\n\\tend repeat\\n\\treturn s\\nend qq\\n\\non run argv\\n\\tset appName to \\\"\\\"\\n\\tif (count of argv) > 0 then set appName to item 1 of argv\\n\\ttell application \\\"System Events\\\"\\n\\t\\ttry\\n\\t\\t\\tif appName is \\\"\\\" then\\n\\t\\t\\t\\tset proc to first process whose frontmost is true\\n\\t\\t\\telse\\n\\t\\t\\t\\tset proc to first process whose name is appName\\n\\t\\t\\tend if\\n\\t\\ton error\\n\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"app_not_running\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(appName) & \\\"\\\\\\\"}\\\"\\n\\t\\tend try\\n\\t\\tset procName to my txt(name of proc)\\n\\t\\ttell proc\\n\\t\\t\\tif (count of windows) is 0 then return \\\"{\\\\\\\"ok\\\\\\\":false,\\\\\\\"error\\\\\\\":\\\\\\\"no_window\\\\\\\",\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\"}\\\"\\n\\t\\t\\t-- A window reference must be taken by INDEX, not by `front window`. `front window`\\n\\t\\t\\t-- returns a specifier that re-resolves by TITLE on every later use, and a title that\\n\\t\\t\\t-- changes between two statements \\u2014 a terminal with a spinner in it, a browser tab\\n\\t\\t\\t-- switching, a document marking itself edited \\u2014 makes the reference stale mid-script:\\n\\t\\t\\t-- \\\"Can't get window <old title> of application process\\\". Measured live 2026-09-08.\\n\\t\\t\\tset win to window 1\\n\\t\\t\\tset winName to my txt(name of win)\\n\\t\\t\\tset scope to entire contents of window 1\\n\\t\\t\\tset deep to true\\n\\t\\t\\tif (count of scope) > 400 then\\n\\t\\t\\t\\tset scope to UI elements of window 1\\n\\t\\t\\t\\tset deep to false\\n\\t\\t\\tend if\\n\\t\\t\\tset out to \\\"\\\"\\n\\t\\t\\tset n to 0\\n\\t\\t\\trepeat with el in scope\\n\\t\\t\\t\\tset elRole to \\\"\\\"\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset elRole to my txt(role of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\t-- the same label ladder LOCAL_UI_CLICK matches on, so what this lists is\\n\\t\\t\\t\\t-- exactly what that can click. `description` is excluded on purpose: System\\n\\t\\t\\t\\t-- Events returns the ROLE description there and every button reads \\\"button\\\".\\n\\t\\t\\t\\tset lab to \\\"\\\"\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset lab to my txt(name of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\tif lab is \\\"\\\" then\\n\\t\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\t\\tset lab to my txt(value of attribute \\\"AXDescription\\\" of el)\\n\\t\\t\\t\\t\\tend try\\n\\t\\t\\t\\tend if\\n\\t\\t\\t\\tif lab is \\\"\\\" then\\n\\t\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\t\\tset lab to my txt(title of el)\\n\\t\\t\\t\\t\\tend try\\n\\t\\t\\t\\tend if\\n\\t\\t\\t\\tif lab is \\\"\\\" then\\n\\t\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\t\\tset lab to my txt(value of attribute \\\"AXIdentifier\\\" of el)\\n\\t\\t\\t\\t\\tend try\\n\\t\\t\\t\\tend if\\n\\t\\t\\t\\tif lab is \\\"\\\" then\\n\\t\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\t\\tset lab to my txt(help of el)\\n\\t\\t\\t\\t\\tend try\\n\\t\\t\\t\\tend if\\n\\t\\t\\t\\tset val to \\\"\\\"\\n\\t\\t\\t\\ttry\\n\\t\\t\\t\\t\\tset val to my txt(value of el)\\n\\t\\t\\t\\tend try\\n\\t\\t\\t\\tif lab is not \\\"\\\" or val is not \\\"\\\" then\\n\\t\\t\\t\\t\\tif n < 200 then\\n\\t\\t\\t\\t\\t\\tset out to out & \\\"{\\\\\\\"role\\\\\\\":\\\\\\\"\\\" & my qq(elRole) & \\\"\\\\\\\",\\\\\\\"label\\\\\\\":\\\\\\\"\\\" & my qq(lab) & \\\"\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"\\\" & my qq(val) & \\\"\\\\\\\"},\\\"\\n\\t\\t\\t\\t\\t\\tset n to n + 1\\n\\t\\t\\t\\t\\tend if\\n\\t\\t\\t\\tend if\\n\\t\\t\\tend repeat\\n\\t\\t\\tif out is not \\\"\\\" then set out to text 1 thru -2 of out\\n\\t\\t\\treturn \\\"{\\\\\\\"ok\\\\\\\":true,\\\\\\\"app\\\\\\\":\\\\\\\"\\\" & my qq(procName) & \\\"\\\\\\\",\\\\\\\"window\\\\\\\":\\\\\\\"\\\" & my qq(winName) & \\\"\\\\\\\",\\\\\\\"searched_nested\\\\\\\":\\\" & (deep as text) & \\\",\\\\\\\"count\\\\\\\":\\\" & n & \\\",\\\\\\\"elements\\\\\\\":[\\\" & out & \\\"]}\\\"\\n\\t\\tend tell\\n\\tend tell\\nend run\\n\", \"$1\"], \"timeout\": 30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_UI_SNAPSHOT",
        "update": "PUT /api/directory/LOCAL_UI_SNAPSHOT",
        "patch": "PATCH /api/directory/LOCAL_UI_SNAPSHOT",
        "delete": "DELETE /api/directory/LOCAL_UI_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_UI_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_UI_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_UI_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_UI_SNAPSHOT"
      },
      "examples": "[\"TextEdit\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_UI_SNAPSHOT"
    },
    {
      "key": "LOCAL_VOICE_RECORD",
      "type": "http",
      "category": "local",
      "doc": "WHAT: record N seconds of mic to /tmp/voice-<ts>.m4a using ffmpeg, return path. ARGS: seconds (default 10).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_VOICE_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_VOICE_RECORD",
        "type": "http",
        "what": [
          "WHAT: record N seconds of mic to /tmp/voice-<ts>.m4a using ffmpeg, return path.",
          "ARGS: seconds (default 10)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "path.",
        "example": "[LOCAL_VOICE_RECORD]arg1[/LOCAL_VOICE_RECORD]",
        "tag": "[LOCAL_VOICE_RECORD]<arg1 …>[/LOCAL_VOICE_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_VOICE_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_VOICE_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"sh $1+\"],\"timeout\":120000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_VOICE_RECORD",
        "update": "PUT /api/directory/LOCAL_VOICE_RECORD",
        "patch": "PATCH /api/directory/LOCAL_VOICE_RECORD",
        "delete": "DELETE /api/directory/LOCAL_VOICE_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_VOICE_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_VOICE_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_VOICE_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_VOICE_RECORD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_VOICE_RECORD"
    },
    {
      "key": "LOCAL_WINDOWS",
      "type": "http",
      "category": "computer",
      "doc": "WHAT: List window titles of the frontmost app. WHEN_TO_USE: \"what windows are open\", \"list windows of the front app\" ARGS: none",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_WINDOWS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_WINDOWS",
        "type": "http",
        "what": [
          "WHAT: List window titles of the frontmost app.",
          "WHEN_TO_USE: \"what windows are open\", \"list windows of the front app\"",
          "ARGS: none"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[LOCAL_WINDOWS][/LOCAL_WINDOWS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_WINDOWS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_WINDOWS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"osascript\",\"args\":[\"-e\",\"tell application \\\"System Events\\\" to tell (first process whose frontmost is true) to get name of windows\"],\"timeout\":15000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_WINDOWS",
        "update": "PUT /api/directory/LOCAL_WINDOWS",
        "patch": "PATCH /api/directory/LOCAL_WINDOWS",
        "delete": "DELETE /api/directory/LOCAL_WINDOWS",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_WINDOWS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_WINDOWS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_WINDOWS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_WINDOWS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_WINDOWS"
    },
    {
      "key": "LOCAL_WRITE",
      "type": "http",
      "category": null,
      "doc": "WHAT: Overwrite a file on the Mac. Echoes the content back. WHEN_TO_USE: \"write this to <file>\", \"create <file> with\", \"drop this in <file>\" ARGS: path | content EX: text the build → \"write 'hello' to /tmp/test.txt\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOCAL_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOCAL_WRITE",
        "type": "http",
        "what": [
          "WHAT: Overwrite a file on the Mac. Echoes the content back.",
          "WHEN_TO_USE: \"write this to <file>\", \"create <file> with\", \"drop this in <file>\"",
          "ARGS: path | content",
          "EX: text the build → \"write 'hello' to /tmp/test.txt\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "text the build → \"write 'hello' to /tmp/test.txt\"",
        "tag": "[LOCAL_WRITE]<arg1>|<arg2 …>[/LOCAL_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOCAL_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOCAL_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"tee\",\"args\":[\"$1\"],\"stdin\":\"$2+\",\"timeout\":30000}",
      "edit": {
        "read": "GET /api/directory/LOCAL_WRITE",
        "update": "PUT /api/directory/LOCAL_WRITE",
        "patch": "PATCH /api/directory/LOCAL_WRITE",
        "delete": "DELETE /api/directory/LOCAL_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"LOCAL_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOCAL_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOCAL_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOCAL_WRITE"
      },
      "examples": "[\"/tmp/oip_write_test.txt|WRITE_TOKEN_PROOF_9f3a\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOCAL_WRITE"
    },
    {
      "key": "LOGIC",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOGIC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOGIC",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[LOGIC][/LOGIC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOGIC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOGIC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LOGIC",
        "update": "PUT /api/directory/LOGIC",
        "patch": "PATCH /api/directory/LOGIC",
        "delete": "DELETE /api/directory/LOGIC",
        "invoke": "POST /api/dispatch {\"key\":\"LOGIC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOGIC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOGIC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOGIC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOGIC"
    },
    {
      "key": "LOG_ASSET",
      "type": "fn",
      "category": "asset",
      "doc": "WHAT: File an image into the asset library.  Returns asset id WHEN_TO_USE: you need to log asset ARGS: category|label|url|source_url|engine|prompt|sender|chat|protocol|is_group|parent_id|r2_key EX: [LOG_ASSET]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12[/LOG_ASSET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOG_ASSET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOG_ASSET",
        "type": "fn",
        "what": [
          "WHAT: File an image into the asset library.  Returns asset id",
          "WHEN_TO_USE: you need to log asset",
          "ARGS: category|label|url|source_url|engine|prompt|sender|chat|protocol|is_group|parent_id|r2_key",
          "EX: [LOG_ASSET]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12[/LOG_ASSET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "asset id",
        "example": "[LOG_ASSET]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12[/LOG_ASSET]",
        "tag": "[LOG_ASSET]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>[/LOG_ASSET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOG_ASSET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOG_ASSET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\",\"$8\",\"$9\",\"$10\",\"$11\",\"$12\"]",
      "edit": {
        "read": "GET /api/directory/LOG_ASSET",
        "update": "PUT /api/directory/LOG_ASSET",
        "patch": "PATCH /api/directory/LOG_ASSET",
        "delete": "DELETE /api/directory/LOG_ASSET",
        "invoke": "POST /api/dispatch {\"key\":\"LOG_ASSET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOG_ASSET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOG_ASSET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOG_ASSET"
      },
      "examples": "[\"ref|inbound|SHAPED:fn storeRefImage([\\\"\\\"])|||||||||\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOG_ASSET"
    },
    {
      "key": "LOG_TAIL",
      "type": "flow",
      "category": "log",
      "doc": "Last 50 kernel log rows. Use to inspect recent dispatch activity (trace + step tree).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOG_TAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOG_TAIL",
        "type": "flow",
        "what": [
          "Last 50 kernel log rows. Use to inspect recent dispatch activity (trace + step tree)."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[LOG_TAIL][/LOG_TAIL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOG_TAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOG_TAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LOG_TAIL",
        "update": "PUT /api/directory/LOG_TAIL",
        "patch": "PATCH /api/directory/LOG_TAIL",
        "delete": "DELETE /api/directory/LOG_TAIL",
        "invoke": "POST /api/dispatch {\"key\":\"LOG_TAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOG_TAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOG_TAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOG_TAIL"
      },
      "examples": "[\"email\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOG_TAIL"
    },
    {
      "key": "LOOP_BEHAVIOR",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: One customer's on-site behaviour from the klaviyo event stream. $1 = email. WHEN_TO_USE: \"has this person been browsing\", \"are they lurking\", pre-purchase intent. NOTE: the klaviyo sync died 2026-03-07, so nothing after that date exists. ARGS: $1 = email EX: [LOOP_BEHAVIOR]blakebware@gmail.com[/LOOP_BEHAVIOR]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_BEHAVIOR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_BEHAVIOR",
        "type": "fn",
        "what": [
          "WHAT: One customer's on-site behaviour from the klaviyo event stream. $1 = email.",
          "WHEN_TO_USE: \"has this person been browsing\", \"are they lurking\", pre-purchase intent.",
          "NOTE: the klaviyo sync died 2026-03-07, so nothing after that date exists.",
          "ARGS: $1 = email",
          "EX: [LOOP_BEHAVIOR]blakebware@gmail.com[/LOOP_BEHAVIOR]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "blakebware@gmail.com",
            "desc": "email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_BEHAVIOR]blakebware@gmail.com[/LOOP_BEHAVIOR]",
        "tag": "[LOOP_BEHAVIOR]<blakebware@gmail.com>[/LOOP_BEHAVIOR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_BEHAVIOR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_BEHAVIOR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, orders, klaviyo_events, subscription_signals, first_order, last_order, person_id FROM loop_customer WHERE lower(email)=lower('$1')\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_BEHAVIOR",
        "update": "PUT /api/directory/LOOP_BEHAVIOR",
        "patch": "PATCH /api/directory/LOOP_BEHAVIOR",
        "delete": "DELETE /api/directory/LOOP_BEHAVIOR",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_BEHAVIOR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_BEHAVIOR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_BEHAVIOR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_BEHAVIOR"
      },
      "examples": "[\"blakebware@gmail.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_BEHAVIOR"
    },
    {
      "key": "LOOP_COHORTS",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Customers grouped by the month of their first order. WHEN_TO_USE: \"is retention getting worse\", \"what is a new customer worth\" ARGS: none EX: [LOOP_COHORTS][/LOOP_COHORTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_COHORTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_COHORTS",
        "type": "fn",
        "what": [
          "WHAT: Customers grouped by the month of their first order.",
          "WHEN_TO_USE: \"is retention getting worse\", \"what is a new customer worth\"",
          "ARGS: none",
          "EX: [LOOP_COHORTS][/LOOP_COHORTS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_COHORTS][/LOOP_COHORTS]",
        "tag": "[LOOP_COHORTS][/LOOP_COHORTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_COHORTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_COHORTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT substr(first_order,1,7) cohort, COUNT(*) customers, ROUND(SUM(revenue_cents)/100.0,2) revenue_usd, ROUND(AVG(orders),1) avg_orders, ROUND(AVG(revenue_cents)/100.0,2) avg_lifetime_usd FROM loop_customer GROUP BY cohort ORDER BY cohort\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_COHORTS",
        "update": "PUT /api/directory/LOOP_COHORTS",
        "patch": "PATCH /api/directory/LOOP_COHORTS",
        "delete": "DELETE /api/directory/LOOP_COHORTS",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_COHORTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_COHORTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_COHORTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_COHORTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_COHORTS"
    },
    {
      "key": "LOOP_CUSTOMER",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Everything known about one customer. $1 = their email. WHEN_TO_USE: \"tell me about this customer\", \"what has she ordered\", support lookups ARGS: $1 = email EX: [LOOP_CUSTOMER]blakebware@gmail.com[/LOOP_CUSTOMER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_CUSTOMER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_CUSTOMER",
        "type": "fn",
        "what": [
          "WHAT: Everything known about one customer. $1 = their email.",
          "WHEN_TO_USE: \"tell me about this customer\", \"what has she ordered\", support lookups",
          "ARGS: $1 = email",
          "EX: [LOOP_CUSTOMER]blakebware@gmail.com[/LOOP_CUSTOMER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "blakebware@gmail.com",
            "desc": "email",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_CUSTOMER]blakebware@gmail.com[/LOOP_CUSTOMER]",
        "tag": "[LOOP_CUSTOMER]<blakebware@gmail.com>[/LOOP_CUSTOMER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_CUSTOMER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_CUSTOMER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, name, orders, ROUND(revenue_cents/100.0,2) lifetime_usd, ROUND(revenue_cents/100.0/NULLIF(orders,0),2) aov_usd, first_order, last_order, coupon_orders, affiliate_orders, utm_source, ref, cancelled, refunded, klaviyo_events, subscription_signals, person_id FROM loop_customer WHERE lower(email) = lower('$1')\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_CUSTOMER",
        "update": "PUT /api/directory/LOOP_CUSTOMER",
        "patch": "PATCH /api/directory/LOOP_CUSTOMER",
        "delete": "DELETE /api/directory/LOOP_CUSTOMER",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_CUSTOMER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_CUSTOMER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_CUSTOMER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_CUSTOMER"
      },
      "examples": "[\"alisongooding1@aol.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_CUSTOMER"
    },
    {
      "key": "LOOP_DATA_SYNC",
      "type": "http",
      "category": "loopdata",
      "doc": "WHAT: One poll of every Loop data source. Imports the trailing week for the three spend-carrying Meta accounts into the growth spine (entities reused within six hours, every provider call receipted), then starts one slice each of the Loop data platform backfills: Klaviyo events for the trailing three days, the oldest 250 orders still missing line items, Meta insights for the trailing week. The platform's workflows deliberately never continue themselves; this is what continues them. WHEN_TO_USE: on a schedule (automation every 6 hours), or by hand when a Loop sheet or lbl.fyi page looks stale. Measure the result on the target tables (klaviyo_events max datetime, orders without order_items, ad_daily_metrics max date), never on the counters. ARGS: body {days} (1..30, default 7) — the growth-spine import window. EX: [LOOP_DATA_SYNC][/LOOP_DATA_SYNC] RETURNS: {ok, window, growth:[{account_id, counts, errors}], platform:[{path, ok, workflow, instance}]}; 207 when any part failed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_DATA_SYNC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_DATA_SYNC",
        "type": "http",
        "what": [
          "WHAT: One poll of every Loop data source. Imports the trailing week for the three spend-carrying Meta accounts into the growth spine (entities reused within six hours, every provider call receipted), then starts one slice each of the Loop data platform backfills: Klaviyo events for the trailing three days, the oldest 250 orders still missing line items, Meta insights for the trailing week. The platform's workflows deliberately never continue themselves; this is what continues them.",
          "WHEN_TO_USE: on a schedule (automation every 6 hours), or by hand when a Loop sheet or lbl.fyi page looks stale. Measure the result on the target tables (klaviyo_events max datetime, orders without order_items, ad_daily_metrics max date), never on the counters.",
          "ARGS: body {days} (1..30, default 7) — the growth-spine import window.",
          "EX: [LOOP_DATA_SYNC][/LOOP_DATA_SYNC]",
          "RETURNS: {ok, window, growth:[{account_id, counts, errors}], platform:[{path, ok, workflow, instance}]}; 207 when any part failed."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[LOOP_DATA_SYNC][/LOOP_DATA_SYNC]",
        "tag": "[LOOP_DATA_SYNC][/LOOP_DATA_SYNC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_DATA_SYNC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_DATA_SYNC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/LOOP_DATA_SYNC",
        "update": "PUT /api/directory/LOOP_DATA_SYNC",
        "patch": "PATCH /api/directory/LOOP_DATA_SYNC",
        "delete": "DELETE /api/directory/LOOP_DATA_SYNC",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_DATA_SYNC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_DATA_SYNC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_DATA_SYNC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_DATA_SYNC"
      },
      "examples": "[{\"body\":{\"days\":7},\"note\":\"the scheduled poll\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_DATA_SYNC"
    },
    {
      "key": "LOOP_DAY",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Every Loop metric for one day. $1 = a date, YYYY-MM-DD. WHEN_TO_USE: \"how did we do on the 1st\", \"revenue yesterday\", any single-day question ARGS: $1 = date EX: [LOOP_DAY]2026-09-01[/LOOP_DAY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_DAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_DAY",
        "type": "fn",
        "what": [
          "WHAT: Every Loop metric for one day. $1 = a date, YYYY-MM-DD.",
          "WHEN_TO_USE: \"how did we do on the 1st\", \"revenue yesterday\", any single-day question",
          "ARGS: $1 = date",
          "EX: [LOOP_DAY]2026-09-01[/LOOP_DAY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "2026-09-01",
            "desc": "date",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_DAY]2026-09-01[/LOOP_DAY]",
        "tag": "[LOOP_DAY]<2026-09-01>[/LOOP_DAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_DAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_DAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT date, orders, new_customers, returning_orders, ROUND(gross_cents/100.0,2) gross_usd, ROUND(net_cents/100.0,2) net_usd, ROUND(cancelled_cents/100.0,2) cancelled_usd, ROUND(refunded_cents/100.0,2) refunded_usd, ROUND(discount_cents/100.0,2) discount_usd, ROUND(shipping_cents/100.0,2) shipping_usd, ROUND(tax_cents/100.0,2) tax_usd, coupon_orders, affiliate_orders, ROUND(net_cents/100.0/NULLIF(orders,0),2) aov_usd FROM loop_daily WHERE date = '$1'\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_DAY",
        "update": "PUT /api/directory/LOOP_DAY",
        "patch": "PATCH /api/directory/LOOP_DAY",
        "delete": "DELETE /api/directory/LOOP_DAY",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_DAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_DAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_DAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_DAY"
      },
      "examples": "[\"2026-08-15\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_DAY"
    },
    {
      "key": "LOOP_MONTHS",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Loop metrics month by month across the whole history. WHEN_TO_USE: \"how has revenue trended\", \"month over month\", spotting a change ARGS: none EX: [LOOP_MONTHS][/LOOP_MONTHS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_MONTHS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_MONTHS",
        "type": "fn",
        "what": [
          "WHAT: Loop metrics month by month across the whole history.",
          "WHEN_TO_USE: \"how has revenue trended\", \"month over month\", spotting a change",
          "ARGS: none",
          "EX: [LOOP_MONTHS][/LOOP_MONTHS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_MONTHS][/LOOP_MONTHS]",
        "tag": "[LOOP_MONTHS][/LOOP_MONTHS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_MONTHS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_MONTHS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT substr(date,1,7) month, SUM(orders) orders, SUM(new_customers) new_customers, ROUND(SUM(net_cents)/100.0,2) net_usd, ROUND(SUM(net_cents)/100.0/NULLIF(SUM(orders),0),2) aov_usd FROM loop_daily GROUP BY month ORDER BY month\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_MONTHS",
        "update": "PUT /api/directory/LOOP_MONTHS",
        "patch": "PATCH /api/directory/LOOP_MONTHS",
        "delete": "DELETE /api/directory/LOOP_MONTHS",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_MONTHS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_MONTHS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_MONTHS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_MONTHS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_MONTHS"
    },
    {
      "key": "LOOP_PERIOD",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Loop metrics summed over any period. $1 = from, $2 = to. WHEN_TO_USE: \"last week\", \"August\", \"since we stopped ads\" — any range ARGS: $1 = from date, $2 = to date EX: [LOOP_PERIOD]2026-08-01|2026-08-31[/LOOP_PERIOD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_PERIOD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_PERIOD",
        "type": "fn",
        "what": [
          "WHAT: Loop metrics summed over any period. $1 = from, $2 = to.",
          "WHEN_TO_USE: \"last week\", \"August\", \"since we stopped ads\" — any range",
          "ARGS: $1 = from date, $2 = to date",
          "EX: [LOOP_PERIOD]2026-08-01|2026-08-31[/LOOP_PERIOD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "2026-08-01",
            "desc": "from date, $2 = to date",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "2026-08-31",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_PERIOD]2026-08-01|2026-08-31[/LOOP_PERIOD]",
        "tag": "[LOOP_PERIOD]<2026-08-01>|<2026-08-31>[/LOOP_PERIOD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_PERIOD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_PERIOD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT COUNT(*) days, SUM(orders) orders, SUM(new_customers) new_customers, SUM(returning_orders) returning_orders, ROUND(SUM(gross_cents)/100.0,2) gross_usd, ROUND(SUM(net_cents)/100.0,2) net_usd, ROUND(SUM(cancelled_cents)/100.0,2) cancelled_usd, ROUND(SUM(refunded_cents)/100.0,2) refunded_usd, SUM(coupon_orders) coupon_orders, SUM(affiliate_orders) affiliate_orders, ROUND(SUM(net_cents)/100.0/NULLIF(SUM(orders),0),2) aov_usd FROM loop_daily WHERE date BETWEEN '$1' AND '$2'\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_PERIOD",
        "update": "PUT /api/directory/LOOP_PERIOD",
        "patch": "PATCH /api/directory/LOOP_PERIOD",
        "delete": "DELETE /api/directory/LOOP_PERIOD",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_PERIOD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_PERIOD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_PERIOD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_PERIOD"
      },
      "examples": "[\"2026-07-13|2026-09-03\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_PERIOD"
    },
    {
      "key": "LOOP_RANGE",
      "type": "fn",
      "category": "loop",
      "doc": "WHAT: The business numbers for a named time window - a day, a week, a month, a quarter, a year, or everything. WHEN_TO_USE: ANY question with a period in it. This is the default numbers tool. It reaches windows   LBL_ASK cannot: 7d, 14d, 30d, 90d, ytd, 12mo, all. ARGS: $1 = exactly one of:   today | yesterday | 7d | 14d | 30d | 90d | mtd | last month | ytd | 12mo | all WHERE EVERY NUMBER COMES FROM - say the source when you quote it:   revenue_usd, orders, buyers, aov_usd, refunds_usd  -> the store's own order records, current to yesterday   new_orders vs existing_orders                      -> first-time versus repeat buyers   email_orders, paid_orders                          -> orders whose attribution names that channel   spend_usd_source_triplewhale_live                  -> Triple Whale topline. THE ONLY CURRENT SPEND SOURCE.   spend_usd_source_meta_api_STALE                    -> Meta's API. DEAD SINCE 2026-07-13.   spend_usd_source_tw_pivot_STALE                    -> Triple Whale pivot. DEAD SINCE 2026-08-31.   roas_on_live_spend                                 -> revenue / live spend. The one to quote.   attributed_roas_on_live_spend                      -> what Triple Whale credits ads / live spend. THE TWO STALE COLUMNS READ 0 FOR ANY RECENT WINDOW AND THAT ZERO IS NOT REAL - it is a dead feed.   NEVER quote a ROAS computed on them. NEVER say spend was zero. last_day_with_live_spend and   last_day_with_meta_api_spend tell you how current each source actually is; if asked about spend,   say which source and how fresh it is. days_with_data says how many days in the window actually carried a row. A missing day is absent, not zero. EX: [LOOP_RANGE]ytd[/LOOP_RANGE]   [LOOP_RANGE]yesterday[/LOOP_RANGE]   [LOOP_RANGE]12mo[/LOOP_RANGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_RANGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_RANGE",
        "type": "fn",
        "what": [
          "WHAT: The business numbers for a named time window - a day, a week, a month, a quarter, a year, or everything.",
          "WHEN_TO_USE: ANY question with a period in it. This is the default numbers tool. It reaches windows",
          "  LBL_ASK cannot: 7d, 14d, 30d, 90d, ytd, 12mo, all.",
          "ARGS: $1 = exactly one of:",
          "  today | yesterday | 7d | 14d | 30d | 90d | mtd | last month | ytd | 12mo | all",
          "WHERE EVERY NUMBER COMES FROM - say the source when you quote it:",
          "  revenue_usd, orders, buyers, aov_usd, refunds_usd  -> the store's own order records, current to yesterday",
          "  new_orders vs existing_orders                      -> first-time versus repeat buyers",
          "  email_orders, paid_orders                          -> orders whose attribution names that channel",
          "  spend_usd_source_triplewhale_live                  -> Triple Whale topline. THE ONLY CURRENT SPEND SOURCE.",
          "  spend_usd_source_meta_api_STALE                    -> Meta's API. DEAD SINCE 2026-07-13.",
          "  spend_usd_source_tw_pivot_STALE                    -> Triple Whale pivot. DEAD SINCE 2026-08-31.",
          "  roas_on_live_spend                                 -> revenue / live spend. The one to quote.",
          "  attributed_roas_on_live_spend                      -> what Triple Whale credits ads / live spend.",
          "THE TWO STALE COLUMNS READ 0 FOR ANY RECENT WINDOW AND THAT ZERO IS NOT REAL - it is a dead feed.",
          "  NEVER quote a ROAS computed on them. NEVER say spend was zero. last_day_with_live_spend and",
          "  last_day_with_meta_api_spend tell you how current each source actually is; if asked about spend,",
          "  say which source and how fresh it is.",
          "days_with_data says how many days in the window actually carried a row. A missing day is absent, not zero.",
          "EX: [LOOP_RANGE]ytd[/LOOP_RANGE]   [LOOP_RANGE]yesterday[/LOOP_RANGE]   [LOOP_RANGE]12mo[/LOOP_RANGE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ytd",
            "desc": "exactly one of:",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_RANGE]ytd[/LOOP_RANGE]   [LOOP_RANGE]yesterday[/LOOP_RANGE]   [LOOP_RANGE]12mo[/LOOP_RANGE]",
        "tag": "[LOOP_RANGE]<ytd>[/LOOP_RANGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_RANGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_RANGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"api/sql?q=SELECT * FROM loop_windows WHERE window=lower(trim('$1'))\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_RANGE",
        "update": "PUT /api/directory/LOOP_RANGE",
        "patch": "PATCH /api/directory/LOOP_RANGE",
        "delete": "DELETE /api/directory/LOOP_RANGE",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_RANGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_RANGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_RANGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_RANGE"
      },
      "examples": "[{\"args\": [\"yesterday\"], \"note\": \"a single day\"}, {\"args\": [\"7d\"], \"note\": \"the trailing seven days including today\"}, {\"args\": [\"mtd\"], \"note\": \"this calendar month so far\"}, {\"args\": [\"last month\"], \"note\": \"the previous whole calendar month\"}, {\"args\": [\"ytd\"], \"note\": \"January 1 to today\"}, {\"args\": [\"12mo\"], \"note\": \"the trailing 365 days - LBL_ASK cannot do this\"}, {\"args\": [\"2026-01-01:2026-03-31\"], \"note\": \"an explicit range\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_RANGE"
    },
    {
      "key": "LOOP_TOP_CUSTOMERS",
      "type": "fn",
      "category": "loop_metrics",
      "doc": "WHAT: Customers ranked by lifetime spend. $1 = how many. WHEN_TO_USE: \"who are our best customers\", whale analysis, retention targets ARGS: $1 = limit EX: [LOOP_TOP_CUSTOMERS]20[/LOOP_TOP_CUSTOMERS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOOP_TOP_CUSTOMERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOOP_TOP_CUSTOMERS",
        "type": "fn",
        "what": [
          "WHAT: Customers ranked by lifetime spend. $1 = how many.",
          "WHEN_TO_USE: \"who are our best customers\", whale analysis, retention targets",
          "ARGS: $1 = limit",
          "EX: [LOOP_TOP_CUSTOMERS]20[/LOOP_TOP_CUSTOMERS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOOP_TOP_CUSTOMERS]20[/LOOP_TOP_CUSTOMERS]",
        "tag": "[LOOP_TOP_CUSTOMERS]<20>[/LOOP_TOP_CUSTOMERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOOP_TOP_CUSTOMERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOOP_TOP_CUSTOMERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT email, name, orders, ROUND(revenue_cents/100.0,2) lifetime_usd, first_order, last_order, klaviyo_events, subscription_signals FROM loop_customer ORDER BY revenue_cents DESC LIMIT $1\"]",
      "edit": {
        "read": "GET /api/directory/LOOP_TOP_CUSTOMERS",
        "update": "PUT /api/directory/LOOP_TOP_CUSTOMERS",
        "patch": "PATCH /api/directory/LOOP_TOP_CUSTOMERS",
        "delete": "DELETE /api/directory/LOOP_TOP_CUSTOMERS",
        "invoke": "POST /api/dispatch {\"key\":\"LOOP_TOP_CUSTOMERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOOP_TOP_CUSTOMERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOOP_TOP_CUSTOMERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOOP_TOP_CUSTOMERS"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOOP_TOP_CUSTOMERS"
    },
    {
      "key": "LOWER",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Lowercase a string. Use before SHA256 hashing of emails or other case-insensitive identifiers WHEN_TO_USE: you need to lower ARGS: $1 EX: [LOWER]arg1[/LOWER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "LOWER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "LOWER",
        "type": "fn",
        "what": [
          "WHAT: Lowercase a string. Use before SHA256 hashing of emails or other case-insensitive identifiers",
          "WHEN_TO_USE: you need to lower",
          "ARGS: $1",
          "EX: [LOWER]arg1[/LOWER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[LOWER]arg1[/LOWER]",
        "tag": "[LOWER]<arg1>[/LOWER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"LOWER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/LOWER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/LOWER",
        "update": "PUT /api/directory/LOWER",
        "patch": "PATCH /api/directory/LOWER",
        "delete": "DELETE /api/directory/LOWER",
        "invoke": "POST /api/dispatch {\"key\":\"LOWER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"LOWER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"LOWER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/LOWER"
      },
      "examples": "[\"ABC\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=LOWER"
    },
    {
      "key": "MAC_GUI_CLICK",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Click a UI element by Peekaboo ID (from MAC_GUI_SEE). ARGS: $1=element id. EX: [MAC_GUI_CLICK]B12[/MAC_GUI_CLICK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_GUI_CLICK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_GUI_CLICK",
        "type": "flow",
        "what": [
          "WHAT: Click a UI element by Peekaboo ID (from MAC_GUI_SEE). ARGS: $1=element id. EX: [MAC_GUI_CLICK]B12[/MAC_GUI_CLICK]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "B12",
            "desc": "element id. EX: [MAC_GUI_CLICK]B12[/MAC_GUI_CLICK]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_GUI_CLICK]B12[/MAC_GUI_CLICK]",
        "tag": "[MAC_GUI_CLICK]<B12>[/MAC_GUI_CLICK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_GUI_CLICK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_GUI_CLICK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_GUI_CLICK",
        "update": "PUT /api/directory/MAC_GUI_CLICK",
        "patch": "PATCH /api/directory/MAC_GUI_CLICK",
        "delete": "DELETE /api/directory/MAC_GUI_CLICK",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_GUI_CLICK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_GUI_CLICK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_GUI_CLICK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_GUI_CLICK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_GUI_CLICK"
    },
    {
      "key": "MAC_GUI_SEE",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Capture the frontmost app screen + accessibility element map with clickable IDs (Peekaboo, caller-local classic engine — no daemon dependency). ARGS: body may carry an app override like '--app Safari'. EX: [MAC_GUI_SEE][/MAC_GUI_SEE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_GUI_SEE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_GUI_SEE",
        "type": "flow",
        "what": [
          "WHAT: Capture the frontmost app screen + accessibility element map with clickable IDs (Peekaboo, caller-local classic engine — no daemon dependency). ARGS: body may carry an app override like '--app Safari'. EX: [MAC_GUI_SEE][/MAC_GUI_SEE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_GUI_SEE]arg1[/MAC_GUI_SEE]",
        "tag": "[MAC_GUI_SEE]<arg1>[/MAC_GUI_SEE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_GUI_SEE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_GUI_SEE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_GUI_SEE",
        "update": "PUT /api/directory/MAC_GUI_SEE",
        "patch": "PATCH /api/directory/MAC_GUI_SEE",
        "delete": "DELETE /api/directory/MAC_GUI_SEE",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_GUI_SEE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_GUI_SEE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_GUI_SEE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_GUI_SEE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_GUI_SEE"
    },
    {
      "key": "MAC_GUI_TYPE",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Type text into the focused field. ARGS: $1=text. EX: [MAC_GUI_TYPE]hello[/MAC_GUI_TYPE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_GUI_TYPE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_GUI_TYPE",
        "type": "flow",
        "what": [
          "WHAT: Type text into the focused field. ARGS: $1=text. EX: [MAC_GUI_TYPE]hello[/MAC_GUI_TYPE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "hello",
            "desc": "text. EX: [MAC_GUI_TYPE]hello[/MAC_GUI_TYPE]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_GUI_TYPE]hello[/MAC_GUI_TYPE]",
        "tag": "[MAC_GUI_TYPE]<hello>[/MAC_GUI_TYPE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_GUI_TYPE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_GUI_TYPE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_GUI_TYPE",
        "update": "PUT /api/directory/MAC_GUI_TYPE",
        "patch": "PATCH /api/directory/MAC_GUI_TYPE",
        "delete": "DELETE /api/directory/MAC_GUI_TYPE",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_GUI_TYPE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_GUI_TYPE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_GUI_TYPE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_GUI_TYPE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_GUI_TYPE"
    },
    {
      "key": "MAC_HS_RUN",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Run Lua in the persistent Hammerspoon runtime on the Mac (windows, audio, bluetooth, wifi, spaces, watchers — privileged, no per-call prompts). ARGS: $1=Lua chunk. EX: [MAC_HS_RUN]return hs.wifi.currentNetwork()[/MAC_HS_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_HS_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_HS_RUN",
        "type": "flow",
        "what": [
          "WHAT: Run Lua in the persistent Hammerspoon runtime on the Mac (windows, audio, bluetooth, wifi, spaces, watchers — privileged, no per-call prompts). ARGS: $1=Lua chunk. EX: [MAC_HS_RUN]return hs.wifi.currentNetwork()[/MAC_HS_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "return hs.wifi.currentNetwork()",
            "desc": "Lua chunk. EX: [MAC_HS_RUN]return hs.wifi.currentNetwork()[/MAC_HS_RUN]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "hs.wifi.currentNetwork()[/MAC_HS_RUN]",
        "example": "[MAC_HS_RUN]return hs.wifi.currentNetwork()[/MAC_HS_RUN]",
        "tag": "[MAC_HS_RUN]<return hs.wifi.currentNetwork()>[/MAC_HS_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_HS_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_HS_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_HS_RUN",
        "update": "PUT /api/directory/MAC_HS_RUN",
        "patch": "PATCH /api/directory/MAC_HS_RUN",
        "delete": "DELETE /api/directory/MAC_HS_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_HS_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_HS_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_HS_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_HS_RUN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_HS_RUN"
    },
    {
      "key": "MAC_LOCATION",
      "type": "flow",
      "category": null,
      "doc": "WHAT: The Mac's current location (CoreLocation; JSON lat/lon/accuracy). ARGS: none. EX: [MAC_LOCATION][/MAC_LOCATION]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_LOCATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_LOCATION",
        "type": "flow",
        "what": [
          "WHAT: The Mac's current location (CoreLocation; JSON lat/lon/accuracy). ARGS: none. EX: [MAC_LOCATION][/MAC_LOCATION]"
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[MAC_LOCATION][/MAC_LOCATION]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_LOCATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_LOCATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_LOCATION",
        "update": "PUT /api/directory/MAC_LOCATION",
        "patch": "PATCH /api/directory/MAC_LOCATION",
        "delete": "DELETE /api/directory/MAC_LOCATION",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_LOCATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_LOCATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_LOCATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_LOCATION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_LOCATION"
    },
    {
      "key": "MAC_SAFARI_JS",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Run JavaScript in Safari's front tab and return the result. REQUIRES Safari → Develop → Allow JavaScript from Apple Events (owner enables once). ARGS: $1+=JavaScript source. EX: [MAC_SAFARI_JS]document.title[/MAC_SAFARI_JS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_SAFARI_JS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_SAFARI_JS",
        "type": "flow",
        "what": [
          "WHAT: Run JavaScript in Safari's front tab and return the result. REQUIRES Safari → Develop → Allow JavaScript from Apple Events (owner enables once). ARGS: $1+=JavaScript source. EX: [MAC_SAFARI_JS]document.title[/MAC_SAFARI_JS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "document.title",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the result. REQUIRES Safari → Develop → Allow JavaScript from Apple Events (owner enables once). ARGS: $1+=JavaScript source. EX: [MAC_SAFARI_JS]document.title[/MAC_SAFARI_JS]",
        "example": "[MAC_SAFARI_JS]document.title[/MAC_SAFARI_JS]",
        "tag": "[MAC_SAFARI_JS]<document.title …>[/MAC_SAFARI_JS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_SAFARI_JS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_SAFARI_JS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_SAFARI_JS",
        "update": "PUT /api/directory/MAC_SAFARI_JS",
        "patch": "PATCH /api/directory/MAC_SAFARI_JS",
        "delete": "DELETE /api/directory/MAC_SAFARI_JS",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_SAFARI_JS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_SAFARI_JS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_SAFARI_JS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_SAFARI_JS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_SAFARI_JS"
    },
    {
      "key": "MAC_VM_CLONE",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Clone a VM image into a named VM. ARGS: $1=image, $2=name. EX: [MAC_VM_CLONE]ghcr.io/cirruslabs/macos-sequoia-base:latest|sandbox1[/MAC_VM_CLONE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_CLONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_CLONE",
        "type": "flow",
        "what": [
          "WHAT: Clone a VM image into a named VM. ARGS: $1=image, $2=name. EX: [MAC_VM_CLONE]ghcr.io/cirruslabs/macos-sequoia-base:latest|sandbox1[/MAC_VM_CLONE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ghcr.io/cirruslabs/macos-sequoia-base:latest",
            "desc": "image, $2=name. EX: [MAC_VM_CLONE]ghcr.io/cirruslabs/macos-sequoia-base:latest|sandbox1[/MAC_VM_CLONE]",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "sandbox1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_VM_CLONE]ghcr.io/cirruslabs/macos-sequoia-base:latest|sandbox1[/MAC_VM_CLONE]",
        "tag": "[MAC_VM_CLONE]<ghcr.io/cirruslabs/macos-sequoia-base:latest>|<sandbox1>[/MAC_VM_CLONE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_CLONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_CLONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_CLONE",
        "update": "PUT /api/directory/MAC_VM_CLONE",
        "patch": "PATCH /api/directory/MAC_VM_CLONE",
        "delete": "DELETE /api/directory/MAC_VM_CLONE",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_CLONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_CLONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_CLONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_CLONE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_CLONE"
    },
    {
      "key": "MAC_VM_DELETE",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Delete a Tart VM (frees disk). ARGS: $1=name. EX: [MAC_VM_DELETE]sandbox1[/MAC_VM_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_DELETE",
        "type": "flow",
        "what": [
          "WHAT: Delete a Tart VM (frees disk). ARGS: $1=name. EX: [MAC_VM_DELETE]sandbox1[/MAC_VM_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sandbox1",
            "desc": "name. EX: [MAC_VM_DELETE]sandbox1[/MAC_VM_DELETE]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_VM_DELETE]sandbox1[/MAC_VM_DELETE]",
        "tag": "[MAC_VM_DELETE]<sandbox1>[/MAC_VM_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_DELETE",
        "update": "PUT /api/directory/MAC_VM_DELETE",
        "patch": "PATCH /api/directory/MAC_VM_DELETE",
        "delete": "DELETE /api/directory/MAC_VM_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_DELETE"
    },
    {
      "key": "MAC_VM_LIST",
      "type": "flow",
      "category": null,
      "doc": "WHAT: List Tart VMs (sandboxed macOS execution environments). ARGS: none. EX: [MAC_VM_LIST][/MAC_VM_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_LIST",
        "type": "flow",
        "what": [
          "WHAT: List Tart VMs (sandboxed macOS execution environments). ARGS: none. EX: [MAC_VM_LIST][/MAC_VM_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[MAC_VM_LIST][/MAC_VM_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_LIST",
        "update": "PUT /api/directory/MAC_VM_LIST",
        "patch": "PATCH /api/directory/MAC_VM_LIST",
        "delete": "DELETE /api/directory/MAC_VM_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_LIST"
    },
    {
      "key": "MAC_VM_PULL",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Pull a VM image (OCI). ARGS: $1=image. EX: [MAC_VM_PULL]ghcr.io/cirruslabs/macos-sequoia-base:latest[/MAC_VM_PULL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_PULL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_PULL",
        "type": "flow",
        "what": [
          "WHAT: Pull a VM image (OCI). ARGS: $1=image. EX: [MAC_VM_PULL]ghcr.io/cirruslabs/macos-sequoia-base:latest[/MAC_VM_PULL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ghcr.io/cirruslabs/macos-sequoia-base:latest",
            "desc": "image. EX: [MAC_VM_PULL]ghcr.io/cirruslabs/macos-sequoia-base:latest[/MAC_VM_PULL]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_VM_PULL]ghcr.io/cirruslabs/macos-sequoia-base:latest[/MAC_VM_PULL]",
        "tag": "[MAC_VM_PULL]<ghcr.io/cirruslabs/macos-sequoia-base:latest>[/MAC_VM_PULL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_PULL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_PULL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_PULL",
        "update": "PUT /api/directory/MAC_VM_PULL",
        "patch": "PATCH /api/directory/MAC_VM_PULL",
        "delete": "DELETE /api/directory/MAC_VM_PULL",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_PULL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_PULL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_PULL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_PULL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_PULL"
    },
    {
      "key": "MAC_VM_RUN",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Boot a Tart VM headless. ARGS: $1=name. NOTE: holds the call while the VM runs. EX: [MAC_VM_RUN]sandbox1[/MAC_VM_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_RUN",
        "type": "flow",
        "what": [
          "WHAT: Boot a Tart VM headless. ARGS: $1=name. NOTE: holds the call while the VM runs. EX: [MAC_VM_RUN]sandbox1[/MAC_VM_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sandbox1",
            "desc": "name. NOTE: holds the call while the VM runs. EX: [MAC_VM_RUN]sandbox1[/MAC_VM_RUN]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_VM_RUN]sandbox1[/MAC_VM_RUN]",
        "tag": "[MAC_VM_RUN]<sandbox1>[/MAC_VM_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_RUN",
        "update": "PUT /api/directory/MAC_VM_RUN",
        "patch": "PATCH /api/directory/MAC_VM_RUN",
        "delete": "DELETE /api/directory/MAC_VM_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_RUN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_RUN"
    },
    {
      "key": "MAC_VM_STOP",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Stop a Tart VM. ARGS: $1=name. EX: [MAC_VM_STOP]sandbox1[/MAC_VM_STOP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MAC_VM_STOP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MAC_VM_STOP",
        "type": "flow",
        "what": [
          "WHAT: Stop a Tart VM. ARGS: $1=name. EX: [MAC_VM_STOP]sandbox1[/MAC_VM_STOP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sandbox1",
            "desc": "name. EX: [MAC_VM_STOP]sandbox1[/MAC_VM_STOP]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MAC_VM_STOP]sandbox1[/MAC_VM_STOP]",
        "tag": "[MAC_VM_STOP]<sandbox1>[/MAC_VM_STOP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MAC_VM_STOP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MAC_VM_STOP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MAC_VM_STOP",
        "update": "PUT /api/directory/MAC_VM_STOP",
        "patch": "PATCH /api/directory/MAC_VM_STOP",
        "delete": "DELETE /api/directory/MAC_VM_STOP",
        "invoke": "POST /api/dispatch {\"key\":\"MAC_VM_STOP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MAC_VM_STOP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MAC_VM_STOP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MAC_VM_STOP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MAC_VM_STOP"
    },
    {
      "key": "MANDATE_SET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: What the buyer's AI may do about a want: budget, deadline, provider classes, allowed and forbidden actions, the price under which it may execute without asking, the price above which the person must confirm, the evidence required, cancellation terms. Nothing executes without one. WHEN_TO_USE: right after a want, before any solicitation. ARGS: want_id|budget_usd|deadline|provider_classes|allowed_actions|forbidden_actions|auto_execute_usd|confirm_usd|evidence_required|cancellation EX: [MANDATE_SET]want_abc|20|2026-09-30|any|META_AD_LIBRARY_SEARCH||5|20|execution-receipted|cancel before agreement[/MANDATE_SET] TESTS: Returns mandate_id; a want without one is refused NO_MANDATE downstream.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MANDATE_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MANDATE_SET",
        "type": "fn",
        "what": [
          "WHAT: What the buyer's AI may do about a want: budget, deadline, provider classes, allowed and forbidden actions, the price under which it may execute without asking, the price above which the person must confirm, the evidence required, cancellation terms. Nothing executes without one.",
          "WHEN_TO_USE: right after a want, before any solicitation.",
          "ARGS: want_id|budget_usd|deadline|provider_classes|allowed_actions|forbidden_actions|auto_execute_usd|confirm_usd|evidence_required|cancellation",
          "EX: [MANDATE_SET]want_abc|20|2026-09-30|any|META_AD_LIBRARY_SEARCH||5|20|execution-receipted|cancel before agreement[/MANDATE_SET]",
          "TESTS: Returns mandate_id; a want without one is refused NO_MANDATE downstream."
        ],
        "args": [
          {
            "pos": 1,
            "name": "want_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "mandate_id; a want without one is refused NO_MANDATE downstream.",
        "example": "[MANDATE_SET]want_abc|20|2026-09-30|any|META_AD_LIBRARY_SEARCH||5|20|execution-receipted|cancel before agreement[/MANDATE_SET]",
        "tag": "[MANDATE_SET]<want_abc …>[/MANDATE_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MANDATE_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MANDATE_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/MANDATE_SET",
        "update": "PUT /api/directory/MANDATE_SET",
        "patch": "PATCH /api/directory/MANDATE_SET",
        "delete": "DELETE /api/directory/MANDATE_SET",
        "invoke": "POST /api/dispatch {\"key\":\"MANDATE_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MANDATE_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MANDATE_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MANDATE_SET"
      },
      "examples": "[\"want_abc|20|2026-09-30|any|META_AD_LIBRARY_SEARCH||5|20|execution-receipted|cancel before agreement\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MANDATE_SET"
    },
    {
      "key": "MANIFEST",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: Self-describing directory: every callable row with description, runner, risk, requires_approval, status, input_schema, examples. The bootstrap contract for any client WHEN_TO_USE: you need to manifest ARGS: category(optional) EX: [MANIFEST]arg1[/MANIFEST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MANIFEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MANIFEST",
        "type": "fn",
        "what": [
          "WHAT: Self-describing directory: every callable row with description, runner, risk, requires_approval, status, input_schema, examples. The bootstrap contract for any client",
          "WHEN_TO_USE: you need to manifest",
          "ARGS: category(optional)",
          "EX: [MANIFEST]arg1[/MANIFEST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MANIFEST]arg1[/MANIFEST]",
        "tag": "[MANIFEST]<arg1>[/MANIFEST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MANIFEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MANIFEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/MANIFEST",
        "update": "PUT /api/directory/MANIFEST",
        "patch": "PATCH /api/directory/MANIFEST",
        "delete": "DELETE /api/directory/MANIFEST",
        "invoke": "POST /api/dispatch {\"key\":\"MANIFEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MANIFEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MANIFEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MANIFEST"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MANIFEST"
    },
    {
      "key": "MARKETING_SNAPSHOT",
      "type": "fn",
      "category": "meta",
      "doc": "WHAT: Live Meta + lbl cache + MARKETING_STATE JSON. EX: [MARKETING_SNAPSHOT][/MARKETING_SNAPSHOT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MARKETING_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MARKETING_SNAPSHOT",
        "type": "fn",
        "what": [
          "WHAT: Live Meta + lbl cache + MARKETING_STATE JSON.",
          "EX: [MARKETING_SNAPSHOT][/MARKETING_SNAPSHOT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MARKETING_SNAPSHOT][/MARKETING_SNAPSHOT]",
        "tag": "[MARKETING_SNAPSHOT][/MARKETING_SNAPSHOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MARKETING_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MARKETING_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/MARKETING_SNAPSHOT",
        "update": "PUT /api/directory/MARKETING_SNAPSHOT",
        "patch": "PATCH /api/directory/MARKETING_SNAPSHOT",
        "delete": "DELETE /api/directory/MARKETING_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"MARKETING_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MARKETING_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MARKETING_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MARKETING_SNAPSHOT"
      },
      "examples": "[\"audit-1783815296907\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MARKETING_SNAPSHOT"
    },
    {
      "key": "MCP",
      "type": "http",
      "category": "mcp",
      "doc": "WHAT: MCP server unified entrypoint via Mac bridge WHEN_TO_USE: MCP servers (brave_search, computer_use, doctor, fetch, etc.) ARGS: $1=op, $2..$N=args EX: [MCP]fetch|https://example.com[/MCP] TESTS: INVERSE: ERR:target_map:unknown_op on bad op.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP",
        "type": "http",
        "what": [
          "WHAT: MCP server unified entrypoint via Mac bridge",
          "WHEN_TO_USE: MCP servers (brave_search, computer_use, doctor, fetch, etc.)",
          "ARGS: $1=op, $2..$N=args",
          "EX: [MCP]fetch|https://example.com[/MCP]",
          "TESTS:",
          "INVERSE: ERR:target_map:unknown_op on bad op."
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: add, brave_search, computer_use, context7_query_docs, context7_resolve_library_id, doctor, fetch, fs, github, list, memory, playwright, probe, sequential, test",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "add",
            "sig": "[MCP]add|<arg1>|<arg2>|<arg3 …>[/MCP]",
            "extraArgs": 3,
            "variadic": true
          },
          {
            "op": "brave_search",
            "sig": "[MCP]brave_search[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "computer_use",
            "sig": "[MCP]computer_use[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "context7_query_docs",
            "sig": "[MCP]context7_query_docs|<arg1>|<arg2>[/MCP]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "context7_resolve_library_id",
            "sig": "[MCP]context7_resolve_library_id|<arg1>|<arg2>[/MCP]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "doctor",
            "sig": "[MCP]doctor|<arg1>[/MCP]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "fetch",
            "sig": "[MCP]fetch[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "fs",
            "sig": "[MCP]fs[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "github",
            "sig": "[MCP]github[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "list",
            "sig": "[MCP]list[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "memory",
            "sig": "[MCP]memory[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "playwright",
            "sig": "[MCP]playwright[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "probe",
            "sig": "[MCP]probe|<arg1>|<arg2>|<arg3 …>[/MCP]",
            "extraArgs": 3,
            "variadic": true
          },
          {
            "op": "sequential",
            "sig": "[MCP]sequential[/MCP]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "test",
            "sig": "[MCP]test|<arg1>[/MCP]",
            "extraArgs": 1,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[MCP]fetch|https://example.com[/MCP]",
        "tag": "[MCP]<op>|<args for that op>[/MCP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MCP",
        "update": "PUT /api/directory/MCP",
        "patch": "PATCH /api/directory/MCP",
        "delete": "DELETE /api/directory/MCP",
        "invoke": "POST /api/dispatch {\"key\":\"MCP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP"
      },
      "examples": "[\"list\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP"
    },
    {
      "key": "MCP_AGENT",
      "type": "agent",
      "category": "mcp",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_AGENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[MCP_AGENT][/MCP_AGENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MCP_AGENT",
        "update": "PUT /api/directory/MCP_AGENT",
        "patch": "PATCH /api/directory/MCP_AGENT",
        "delete": "DELETE /api/directory/MCP_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_AGENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_AGENT"
    },
    {
      "key": "MCP_ATTACH",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: Set which MCP servers attach to the model globally (KV mcp_attach). Per-agent override = SET <KEY>_mcp. WHEN_TO_USE: turn Cloudflare MCP tools on/off for the agents ARGS: comma list of labels (empty clears). EX: [MCP_ATTACH]bindings,docs,observability[/MCP_ATTACH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_ATTACH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_ATTACH",
        "type": "fn",
        "what": [
          "WHAT: Set which MCP servers attach to the model globally (KV mcp_attach). Per-agent override = SET <KEY>_mcp.",
          "WHEN_TO_USE: turn Cloudflare MCP tools on/off for the agents",
          "ARGS: comma list of labels (empty clears). EX: [MCP_ATTACH]bindings,docs,observability[/MCP_ATTACH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bindings,docs,observability",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_ATTACH]bindings,docs,observability[/MCP_ATTACH]",
        "tag": "[MCP_ATTACH]<bindings,docs,observability …>[/MCP_ATTACH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_ATTACH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_ATTACH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/MCP_ATTACH",
        "update": "PUT /api/directory/MCP_ATTACH",
        "patch": "PATCH /api/directory/MCP_ATTACH",
        "delete": "DELETE /api/directory/MCP_ATTACH",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_ATTACH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_ATTACH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_ATTACH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_ATTACH"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_ATTACH"
    },
    {
      "key": "MCP_CATALOG",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_CATALOG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_CATALOG",
        "type": "http",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[MCP_CATALOG][/MCP_CATALOG]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_CATALOG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_CATALOG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "Scout instrument for the capability-acquisition loop. Returns the official MCP servers catalog so models discover servers to wrap into builder_queue. Read-only.",
      "edit": {
        "read": "GET /api/directory/MCP_CATALOG",
        "update": "PUT /api/directory/MCP_CATALOG",
        "patch": "PATCH /api/directory/MCP_CATALOG",
        "delete": "DELETE /api/directory/MCP_CATALOG",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_CATALOG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_CATALOG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_CATALOG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_CATALOG"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_CATALOG"
    },
    {
      "key": "MCP_CONTEXT7_QUERY_DOCS",
      "type": "fn",
      "category": "docs",
      "doc": "WHAT: Fetch current documentation for a resolved Context7 library id. WHEN_TO_USE: after resolve-library-id gives you an id, or when you already have one. ARGS: $1 = JSON {libraryId, query} — both required by the live tool. EX: [MCP_CONTEXT7_QUERY_DOCS]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_CONTEXT7_QUERY_DOCS] FIXED 2026-09-01: was type http against an MCP endpoint, and named a tool ('get-library-docs') the server does not expose. tools/list reports exactly two: resolve-library-id (query + libraryName) and query-docs (libraryId + query).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_CONTEXT7_QUERY_DOCS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_CONTEXT7_QUERY_DOCS",
        "type": "fn",
        "what": [
          "WHAT: Fetch current documentation for a resolved Context7 library id.",
          "WHEN_TO_USE: after resolve-library-id gives you an id, or when you already have one.",
          "ARGS: $1 = JSON {libraryId, query} — both required by the live tool.",
          "EX: [MCP_CONTEXT7_QUERY_DOCS]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_CONTEXT7_QUERY_DOCS]",
          "FIXED 2026-09-01: was type http against an MCP endpoint, and named a tool ('get-library-docs') the server does not expose. tools/list reports exactly two: resolve-library-id (query + libraryName) and query-docs (libraryId + query)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}",
            "desc": "JSON {libraryId, query} — both required by the live tool.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_CONTEXT7_QUERY_DOCS]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_CONTEXT7_QUERY_DOCS]",
        "tag": "[MCP_CONTEXT7_QUERY_DOCS]<{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"} …>[/MCP_CONTEXT7_QUERY_DOCS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_CONTEXT7_QUERY_DOCS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_CONTEXT7_QUERY_DOCS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.context7.com/mcp\", \"query-docs\", \"$1+\", \"\"]",
      "edit": {
        "read": "GET /api/directory/MCP_CONTEXT7_QUERY_DOCS",
        "update": "PUT /api/directory/MCP_CONTEXT7_QUERY_DOCS",
        "patch": "PATCH /api/directory/MCP_CONTEXT7_QUERY_DOCS",
        "delete": "DELETE /api/directory/MCP_CONTEXT7_QUERY_DOCS",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_CONTEXT7_QUERY_DOCS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_CONTEXT7_QUERY_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_CONTEXT7_QUERY_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_CONTEXT7_QUERY_DOCS"
      },
      "examples": "[\"https://mcp.context7.com/mcp|query-docs|{\\\"libraryId\\\":\\\"/vercel/next.js\\\",\\\"query\\\":\\\"routing\\\"}|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_CONTEXT7_QUERY_DOCS"
    },
    {
      "key": "MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
      "type": "fn",
      "category": "docs",
      "doc": "WHAT: Resolve a library name to a Context7 library id. Send BOTH query and libraryName with the same value — the tool validates each separately and refuses if either is absent. WHEN_TO_USE: you need current, version-specific documentation or code examples for a named library. ARGS: $1 = JSON object of the MCP tool's named params. EX: [MCP_CONTEXT7_RESOLVE_LIBRARY_ID]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_CONTEXT7_RESOLVE_LIBRARY_ID] FIXED 2026-09-01: was type http POSTing raw JSON at an MCP endpoint ('not a valid JSON-RPC message'); now runs through mcpToolCall. The argument names above are what the live tool actually validated, not what the old description claimed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
        "type": "fn",
        "what": [
          "WHAT: Resolve a library name to a Context7 library id. Send BOTH query and libraryName with the same value — the tool validates each separately and refuses if either is absent.",
          "WHEN_TO_USE: you need current, version-specific documentation or code examples for a named library.",
          "ARGS: $1 = JSON object of the MCP tool's named params.",
          "EX: [MCP_CONTEXT7_RESOLVE_LIBRARY_ID]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_CONTEXT7_RESOLVE_LIBRARY_ID]",
          "FIXED 2026-09-01: was type http POSTing raw JSON at an MCP endpoint ('not a valid JSON-RPC message'); now runs through mcpToolCall. The argument names above are what the live tool actually validated, not what the old description claimed."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"query\":\"next.js\",\"libraryName\":\"next.js\"}",
            "desc": "JSON object of the MCP tool's named params.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_CONTEXT7_RESOLVE_LIBRARY_ID]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_CONTEXT7_RESOLVE_LIBRARY_ID]",
        "tag": "[MCP_CONTEXT7_RESOLVE_LIBRARY_ID]<{\"query\":\"next.js\",\"libraryName\":\"next.js\"} …>[/MCP_CONTEXT7_RESOLVE_LIBRARY_ID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_CONTEXT7_RESOLVE_LIBRARY_ID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_CONTEXT7_RESOLVE_LIBRARY_ID  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.context7.com/mcp\", \"resolve-library-id\", \"$1+\", \"\"]",
      "edit": {
        "read": "GET /api/directory/MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
        "update": "PUT /api/directory/MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
        "patch": "PATCH /api/directory/MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
        "delete": "DELETE /api/directory/MCP_CONTEXT7_RESOLVE_LIBRARY_ID",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_CONTEXT7_RESOLVE_LIBRARY_ID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_CONTEXT7_RESOLVE_LIBRARY_ID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_CONTEXT7_RESOLVE_LIBRARY_ID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_CONTEXT7_RESOLVE_LIBRARY_ID"
      },
      "examples": "[MCP_CONTEXT7_RESOLVE_LIBRARY_ID]{}[/MCP_CONTEXT7_RESOLVE_LIBRARY_ID]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_CONTEXT7_RESOLVE_LIBRARY_ID"
    },
    {
      "key": "MCP_EVAL",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: Try an integration before installing it. Resolves the named integration to its OIP objects, classifies read vs write, runs one safe read-only trial, returns a receipt, and recommends connect or skip. WHEN_TO_USE: \"should I get the Stripe MCP\", \"what can the GitHub integration do\", \"try X before I connect it\". ARGS: $1 = integration name (stripe|github|context7|drive|slack|notion); $2 = optional mode \"live\" to run a live read-only trial for financial integrations. EX: [MCP_EVAL]github[/MCP_EVAL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_EVAL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_EVAL",
        "type": "fn",
        "what": [
          "WHAT: Try an integration before installing it. Resolves the named integration to its OIP objects, classifies read vs write, runs one safe read-only trial, returns a receipt, and recommends connect or skip.",
          "WHEN_TO_USE: \"should I get the Stripe MCP\", \"what can the GitHub integration do\", \"try X before I connect it\".",
          "ARGS: $1 = integration name (stripe|github|context7|drive|slack|notion); $2 = optional mode \"live\" to run a live read-only trial for financial integrations.",
          "EX: [MCP_EVAL]github[/MCP_EVAL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "github",
            "desc": "integration name (stripe|github|context7|drive|slack|notion)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "optional mode \"live\" to run a live read-only trial for financial integrations.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a receipt, and recommends connect or skip.",
        "example": "[MCP_EVAL]github[/MCP_EVAL]",
        "tag": "[MCP_EVAL]<github>|<arg2>[/MCP_EVAL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_EVAL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_EVAL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/MCP_EVAL",
        "update": "PUT /api/directory/MCP_EVAL",
        "patch": "PATCH /api/directory/MCP_EVAL",
        "delete": "DELETE /api/directory/MCP_EVAL",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_EVAL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_EVAL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_EVAL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_EVAL"
      },
      "examples": "[\"github\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_EVAL"
    },
    {
      "key": "MCP_IMPORT",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Cannibalize an MCP server: read its tools/list and emit a proposed directory row per tool (GAP-checked vs existing keys). PROPOSE only — returns SQL; apply with D1_EXEC or wrangler WHEN_TO_USE: you need to mcp import ARGS: server_url|category|auth_env_var EX: [MCP_IMPORT]arg1|arg2|arg3[/MCP_IMPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_IMPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_IMPORT",
        "type": "fn",
        "what": [
          "WHAT: Cannibalize an MCP server: read its tools/list and emit a proposed directory row per tool (GAP-checked vs existing keys). PROPOSE only — returns SQL; apply with D1_EXEC or wrangler",
          "WHEN_TO_USE: you need to mcp import",
          "ARGS: server_url|category|auth_env_var",
          "EX: [MCP_IMPORT]arg1|arg2|arg3[/MCP_IMPORT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "SQL; apply with D1_EXEC or wrangler",
        "example": "[MCP_IMPORT]arg1|arg2|arg3[/MCP_IMPORT]",
        "tag": "[MCP_IMPORT]<arg1>|<arg2>|<arg3>[/MCP_IMPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_IMPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_IMPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/MCP_IMPORT",
        "update": "PUT /api/directory/MCP_IMPORT",
        "patch": "PATCH /api/directory/MCP_IMPORT",
        "delete": "DELETE /api/directory/MCP_IMPORT",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_IMPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_IMPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_IMPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_IMPORT"
      },
      "examples": "[\"https://radar.mcp.cloudflare.com/mcp|cf_radar|radar\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_IMPORT"
    },
    {
      "key": "MCP_OAUTH_SEED",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: Store/replace one MCP server's OAuth credentials in KV (mcp_oauth:<label>). The build refreshes the short-lived token itself. WHEN_TO_USE: registering a Cloudflare (or any OAuth) MCP server so agents can use it ARGS: label|json   json={\"server_url\",\"token_endpoint\",\"client_id\",\"refresh_token\"} EX: [MCP_OAUTH_SEED]bindings|{\"server_url\":\"https://bindings.mcp.cloudflare.com/sse\",...}[/MCP_OAUTH_SEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_OAUTH_SEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_OAUTH_SEED",
        "type": "fn",
        "what": [
          "WHAT: Store/replace one MCP server's OAuth credentials in KV (mcp_oauth:<label>). The build refreshes the short-lived token itself.",
          "WHEN_TO_USE: registering a Cloudflare (or any OAuth) MCP server so agents can use it",
          "ARGS: label|json   json={\"server_url\",\"token_endpoint\",\"client_id\",\"refresh_token\"}",
          "EX: [MCP_OAUTH_SEED]bindings|{\"server_url\":\"https://bindings.mcp.cloudflare.com/sse\",...}[/MCP_OAUTH_SEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "bindings",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "{\"server_url\":\"https://bindings.mcp.cloudflare.com/sse\",...}",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_OAUTH_SEED]bindings|{\"server_url\":\"https://bindings.mcp.cloudflare.com/sse\",...}[/MCP_OAUTH_SEED]",
        "tag": "[MCP_OAUTH_SEED]<bindings>|<{\"server_url\":\"https://bindings.mcp.cloudflare.com/sse\",...}>[/MCP_OAUTH_SEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_OAUTH_SEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_OAUTH_SEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/MCP_OAUTH_SEED",
        "update": "PUT /api/directory/MCP_OAUTH_SEED",
        "patch": "PATCH /api/directory/MCP_OAUTH_SEED",
        "delete": "DELETE /api/directory/MCP_OAUTH_SEED",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_OAUTH_SEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_OAUTH_SEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_OAUTH_SEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_OAUTH_SEED"
      },
      "examples": "[\"bindings|{\\\"server_url\\\":\\\"https://bindings.mcp.cloudflare.com/sse\\\",...}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_OAUTH_SEED"
    },
    {
      "key": "MCP_STATUS",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: List every seeded MCP server, its token freshness (seconds left), and the current attach list. WHEN_TO_USE: check what MCP servers are wired and whether tokens are valid ARGS: none. EX: [MCP_STATUS][/MCP_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_STATUS",
        "type": "fn",
        "what": [
          "WHAT: List every seeded MCP server, its token freshness (seconds left), and the current attach list.",
          "WHEN_TO_USE: check what MCP servers are wired and whether tokens are valid",
          "ARGS: none. EX: [MCP_STATUS][/MCP_STATUS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[MCP_STATUS][/MCP_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/MCP_STATUS",
        "update": "PUT /api/directory/MCP_STATUS",
        "patch": "PATCH /api/directory/MCP_STATUS",
        "delete": "DELETE /api/directory/MCP_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_STATUS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_STATUS"
    },
    {
      "key": "MCP_TOOL_CALL",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Proxy one tool call into an external MCP server (Streamable HTTP JSON-RPC) WHEN_TO_USE: you need to mcp tool call ARGS: server_url|tool_name|args_json|auth_env_var EX: [MCP_TOOL_CALL]https://mcp.blooio.com/v4|send_chat_message|{\"chat_id\":\"chat_x\",\"text\":\"hi\"}|BLOOIO_API_KEY_PEPPERUP[/MCP_TOOL_CALL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_TOOL_CALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_TOOL_CALL",
        "type": "fn",
        "what": [
          "WHAT: Proxy one tool call into an external MCP server (Streamable HTTP JSON-RPC)",
          "WHEN_TO_USE: you need to mcp tool call",
          "ARGS: server_url|tool_name|args_json|auth_env_var",
          "EX: [MCP_TOOL_CALL]https://mcp.blooio.com/v4|send_chat_message|{\"chat_id\":\"chat_x\",\"text\":\"hi\"}|BLOOIO_API_KEY_PEPPERUP[/MCP_TOOL_CALL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "https://mcp.blooio.com/v4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "send_chat_message",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "{\"chat_id\":\"chat_x\",\"text\":\"hi\"}",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "BLOOIO_API_KEY_PEPPERUP",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_TOOL_CALL]https://mcp.blooio.com/v4|send_chat_message|{\"chat_id\":\"chat_x\",\"text\":\"hi\"}|BLOOIO_API_KEY_PEPPERUP[/MCP_TOOL_CALL]",
        "tag": "[MCP_TOOL_CALL]<https://mcp.blooio.com/v4>|<send_chat_message>|<{\"chat_id\":\"chat_x\",\"text\":\"hi\"}>|<BLOOIO_API_KEY_PEPPERUP>[/MCP_TOOL_CALL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_TOOL_CALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_TOOL_CALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/MCP_TOOL_CALL",
        "update": "PUT /api/directory/MCP_TOOL_CALL",
        "patch": "PATCH /api/directory/MCP_TOOL_CALL",
        "delete": "DELETE /api/directory/MCP_TOOL_CALL",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_TOOL_CALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_TOOL_CALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_TOOL_CALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_TOOL_CALL"
      },
      "examples": "[\"https://mcp.blooio.com/v4|send_chat_message|{\\\"chat_id\\\":\\\"chat_019ec103-256e-7475-82da-cda3aa268d1c\\\",\\\"text\\\":\\\"Operational.\\\"}|BLOOIO_API_KEY_PEPPERUP\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_TOOL_CALL"
    },
    {
      "key": "MCP_context7_query_docs",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Fetch current documentation for a resolved Context7 library id. WHEN_TO_USE: after resolve-library-id gives you an id, or when you already have one. ARGS: $1 = JSON {libraryId, query} — both required by the live tool. EX: [MCP_context7_query_docs]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_context7_query_docs] FIXED 2026-09-01: was type http against an MCP endpoint, and named a tool ('get-library-docs') the server does not expose. tools/list reports exactly two: resolve-library-id (query + libraryName) and query-docs (libraryId + query).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_context7_query_docs",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_context7_query_docs",
        "type": "fn",
        "what": [
          "WHAT: Fetch current documentation for a resolved Context7 library id.",
          "WHEN_TO_USE: after resolve-library-id gives you an id, or when you already have one.",
          "ARGS: $1 = JSON {libraryId, query} — both required by the live tool.",
          "EX: [MCP_context7_query_docs]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_context7_query_docs]",
          "FIXED 2026-09-01: was type http against an MCP endpoint, and named a tool ('get-library-docs') the server does not expose. tools/list reports exactly two: resolve-library-id (query + libraryName) and query-docs (libraryId + query)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}",
            "desc": "JSON {libraryId, query} — both required by the live tool.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_context7_query_docs]{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"}[/MCP_context7_query_docs]",
        "tag": "[MCP_context7_query_docs]<{\"libraryId\":\"/vercel/next.js\",\"query\":\"routing\"} …>[/MCP_context7_query_docs]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_context7_query_docs\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_context7_query_docs  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.context7.com/mcp\", \"query-docs\", \"$1+\", \"\"]",
      "edit": {
        "read": "GET /api/directory/MCP_context7_query_docs",
        "update": "PUT /api/directory/MCP_context7_query_docs",
        "patch": "PATCH /api/directory/MCP_context7_query_docs",
        "delete": "DELETE /api/directory/MCP_context7_query_docs",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_context7_query_docs\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_context7_query_docs\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_context7_query_docs\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_context7_query_docs"
      },
      "examples": "[\"[MCP_context7_query_docs]{\\\"libraryId\\\":\\\"/vercel/next.js\\\",\\\"query\\\":\\\"routing\\\"}[/MCP_context7_query_docs]\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_context7_query_docs"
    },
    {
      "key": "MCP_context7_resolve_library_id",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Resolve a library name to a Context7 library id. Send BOTH query and libraryName with the same value. WHEN_TO_USE: you need current, version-specific documentation or code examples for a named library. ARGS: $1 = JSON object of the MCP tool's named params. EX: [MCP_context7_resolve_library_id]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_context7_resolve_library_id] FIXED 2026-09-01: was type http POSTing raw JSON at an MCP endpoint ('not a valid JSON-RPC message'); now runs through mcpToolCall. The argument names above are what the live tool actually validated, not what the old description claimed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MCP_context7_resolve_library_id",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MCP_context7_resolve_library_id",
        "type": "fn",
        "what": [
          "WHAT: Resolve a library name to a Context7 library id. Send BOTH query and libraryName with the same value.",
          "WHEN_TO_USE: you need current, version-specific documentation or code examples for a named library.",
          "ARGS: $1 = JSON object of the MCP tool's named params.",
          "EX: [MCP_context7_resolve_library_id]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_context7_resolve_library_id]",
          "FIXED 2026-09-01: was type http POSTing raw JSON at an MCP endpoint ('not a valid JSON-RPC message'); now runs through mcpToolCall. The argument names above are what the live tool actually validated, not what the old description claimed."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"query\":\"next.js\",\"libraryName\":\"next.js\"}",
            "desc": "JSON object of the MCP tool's named params.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MCP_context7_resolve_library_id]{\"query\":\"next.js\",\"libraryName\":\"next.js\"}[/MCP_context7_resolve_library_id]",
        "tag": "[MCP_context7_resolve_library_id]<{\"query\":\"next.js\",\"libraryName\":\"next.js\"} …>[/MCP_context7_resolve_library_id]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MCP_context7_resolve_library_id\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MCP_context7_resolve_library_id  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.context7.com/mcp\", \"resolve-library-id\", \"$1+\", \"\"]",
      "edit": {
        "read": "GET /api/directory/MCP_context7_resolve_library_id",
        "update": "PUT /api/directory/MCP_context7_resolve_library_id",
        "patch": "PATCH /api/directory/MCP_context7_resolve_library_id",
        "delete": "DELETE /api/directory/MCP_context7_resolve_library_id",
        "invoke": "POST /api/dispatch {\"key\":\"MCP_context7_resolve_library_id\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MCP_context7_resolve_library_id\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MCP_context7_resolve_library_id\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MCP_context7_resolve_library_id"
      },
      "examples": "[\"[MCP_context7_resolve_library_id]{\\\"query\\\":\\\"next.js\\\",\\\"libraryName\\\":\\\"next.js\\\"}[/MCP_context7_resolve_library_id]\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MCP_context7_resolve_library_id"
    },
    {
      "key": "MEDIA_URL_EXTRACT",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Pull image/video URLs out of a text blob. Returns {all:[...], gen:[...]} where gen filters to /img/gen/ + miscsubjects.com only WHEN_TO_USE: you need to media url extract ARGS: $1 EX: [MEDIA_URL_EXTRACT]arg1[/MEDIA_URL_EXTRACT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MEDIA_URL_EXTRACT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MEDIA_URL_EXTRACT",
        "type": "fn",
        "what": [
          "WHAT: Pull image/video URLs out of a text blob. Returns {all:[...], gen:[...]} where gen filters to /img/gen/ + miscsubjects.com only",
          "WHEN_TO_USE: you need to media url extract",
          "ARGS: $1",
          "EX: [MEDIA_URL_EXTRACT]arg1[/MEDIA_URL_EXTRACT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{all:[...], gen:[...]} where gen filters to /img/gen/ + miscsubjects.com only",
        "example": "[MEDIA_URL_EXTRACT]arg1[/MEDIA_URL_EXTRACT]",
        "tag": "[MEDIA_URL_EXTRACT]<arg1>[/MEDIA_URL_EXTRACT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MEDIA_URL_EXTRACT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MEDIA_URL_EXTRACT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/MEDIA_URL_EXTRACT",
        "update": "PUT /api/directory/MEDIA_URL_EXTRACT",
        "patch": "PATCH /api/directory/MEDIA_URL_EXTRACT",
        "delete": "DELETE /api/directory/MEDIA_URL_EXTRACT",
        "invoke": "POST /api/dispatch {\"key\":\"MEDIA_URL_EXTRACT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MEDIA_URL_EXTRACT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MEDIA_URL_EXTRACT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MEDIA_URL_EXTRACT"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MEDIA_URL_EXTRACT"
    },
    {
      "key": "MEMORY_AGENT",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MEMORY_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MEMORY_AGENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[MEMORY_AGENT][/MEMORY_AGENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MEMORY_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MEMORY_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MEMORY_AGENT",
        "update": "PUT /api/directory/MEMORY_AGENT",
        "patch": "PATCH /api/directory/MEMORY_AGENT",
        "delete": "DELETE /api/directory/MEMORY_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"MEMORY_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MEMORY_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MEMORY_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MEMORY_AGENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MEMORY_AGENT"
    },
    {
      "key": "META",
      "type": "http",
      "category": "meta",
      "doc": "WHAT: Meta Graph API unified entrypoint (Marketing API) WHEN_TO_USE: Meta ad accounts, campaigns, adsets, ads, creatives, insights, CAPI ARGS: $1=op, $2..$N=args per op OPS: me | ad_accounts | owned_ad_accounts | client_ad_accounts | campaigns | adsets | ads | adcreatives | ad_images | insights | capi_post",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META",
        "type": "http",
        "what": [
          "WHAT: Meta Graph API unified entrypoint (Marketing API)",
          "WHEN_TO_USE: Meta ad accounts, campaigns, adsets, ads, creatives, insights, CAPI",
          "ARGS: $1=op, $2..$N=args per op",
          "OPS: me | ad_accounts | owned_ad_accounts | client_ad_accounts | campaigns | adsets | ads | adcreatives | ad_images | insights | capi_post"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: ad_accounts, ad_images, adcreatives, ads, adsets, campaigns, capi_post, client_ad_accounts, insights, me, owned_ad_accounts",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "ad_accounts",
            "sig": "[META]ad_accounts|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "ad_images",
            "sig": "[META]ad_images|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "adcreatives",
            "sig": "[META]adcreatives|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "ads",
            "sig": "[META]ads|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "adsets",
            "sig": "[META]adsets|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "campaigns",
            "sig": "[META]campaigns|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "capi_post",
            "sig": "[META]capi_post|<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>[/META]",
            "extraArgs": 6,
            "variadic": false
          },
          {
            "op": "client_ad_accounts",
            "sig": "[META]client_ad_accounts|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "insights",
            "sig": "[META]insights|<arg1>|<arg2>|<arg3>|<arg4>[/META]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "me",
            "sig": "[META]me[/META]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "owned_ad_accounts",
            "sig": "[META]owned_ad_accounts|<arg1>[/META]",
            "extraArgs": 1,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": null,
        "tag": "[META]<op>|<args for that op>[/META]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/META",
        "update": "PUT /api/directory/META",
        "patch": "PATCH /api/directory/META",
        "delete": "DELETE /api/directory/META",
        "invoke": "POST /api/dispatch {\"key\":\"META\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META"
      },
      "examples": "[\"me\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META"
    },
    {
      "key": "META_ACCOUNTS",
      "type": "fn",
      "category": "marketing",
      "doc": "WHAT: Live Meta ad accounts via the loop-meta-bridge service binding. Lists every owned/authorized account and upserts them into meta_ad_accounts so the marketing surface + Site Sync stay current. Read-only; never spends. WHEN_TO_USE: \"what ad accounts do I have\", \"sync my meta accounts\", refresh the ad-account list. ARGS: none. EX: [META_ACCOUNTS][/META_ACCOUNTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ACCOUNTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ACCOUNTS",
        "type": "fn",
        "what": [
          "WHAT: Live Meta ad accounts via the loop-meta-bridge service binding. Lists every owned/authorized account and upserts them into meta_ad_accounts so the marketing surface + Site Sync stay current. Read-only; never spends.",
          "WHEN_TO_USE: \"what ad accounts do I have\", \"sync my meta accounts\", refresh the ad-account list.",
          "ARGS: none.",
          "EX: [META_ACCOUNTS][/META_ACCOUNTS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[META_ACCOUNTS][/META_ACCOUNTS]",
        "tag": "[META_ACCOUNTS][/META_ACCOUNTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ACCOUNTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ACCOUNTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/META_ACCOUNTS",
        "update": "PUT /api/directory/META_ACCOUNTS",
        "patch": "PATCH /api/directory/META_ACCOUNTS",
        "delete": "DELETE /api/directory/META_ACCOUNTS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ACCOUNTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ACCOUNTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ACCOUNTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ACCOUNTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ACCOUNTS"
    },
    {
      "key": "META_ADS_ACCOUNTS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List all ad accounts (owned + client + authorized) with status, currency, spend. ARGS: JSON {} (no args). TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ACCOUNTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ACCOUNTS",
        "type": "http",
        "what": [
          "WHAT: List all ad accounts (owned + client + authorized) with status, currency, spend.",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ACCOUNTS]arg1[/META_ADS_ACCOUNTS]",
        "tag": "[META_ADS_ACCOUNTS]<arg1 …>[/META_ADS_ACCOUNTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ACCOUNTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ACCOUNTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ACCOUNTS",
        "update": "PUT /api/directory/META_ADS_ACCOUNTS",
        "patch": "PATCH /api/directory/META_ADS_ACCOUNTS",
        "delete": "DELETE /api/directory/META_ADS_ACCOUNTS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ACCOUNTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ACCOUNTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ACCOUNTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ACCOUNTS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ACCOUNTS"
    },
    {
      "key": "META_ADS_ACCOUNT_GET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Get one ad account: status, currency, spend, balance, spend_cap, funding, capabilities. ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ACCOUNT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ACCOUNT_GET",
        "type": "http",
        "what": [
          "WHAT: Get one ad account: status, currency, spend, balance, spend_cap, funding, capabilities.",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ACCOUNT_GET]arg1[/META_ADS_ACCOUNT_GET]",
        "tag": "[META_ADS_ACCOUNT_GET]<arg1 …>[/META_ADS_ACCOUNT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ACCOUNT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ACCOUNT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ACCOUNT_GET",
        "update": "PUT /api/directory/META_ADS_ACCOUNT_GET",
        "patch": "PATCH /api/directory/META_ADS_ACCOUNT_GET",
        "delete": "DELETE /api/directory/META_ADS_ACCOUNT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ACCOUNT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ACCOUNT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ACCOUNT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ACCOUNT_GET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ACCOUNT_GET"
    },
    {
      "key": "META_ADS_ACTIVITIES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Activity log for an ad account (Ads Manager change history). ARGS: JSON {account_id, limit?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ACTIVITIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ACTIVITIES",
        "type": "http",
        "what": [
          "WHAT: Activity log for an ad account (Ads Manager change history).",
          "ARGS: JSON {account_id, limit?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ACTIVITIES]arg1[/META_ADS_ACTIVITIES]",
        "tag": "[META_ADS_ACTIVITIES]<arg1 …>[/META_ADS_ACTIVITIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ACTIVITIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ACTIVITIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ACTIVITIES",
        "update": "PUT /api/directory/META_ADS_ACTIVITIES",
        "patch": "PATCH /api/directory/META_ADS_ACTIVITIES",
        "delete": "DELETE /api/directory/META_ADS_ACTIVITIES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ACTIVITIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ACTIVITIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ACTIVITIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ACTIVITIES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ACTIVITIES"
    },
    {
      "key": "META_ADS_ADS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ads in an ad account (id,name,status,effective_status,adset_id,campaign_id,creative). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ADS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ADS",
        "type": "http",
        "what": [
          "WHAT: List ads in an ad account (id,name,status,effective_status,adset_id,campaign_id,creative).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ADS]arg1[/META_ADS_ADS]",
        "tag": "[META_ADS_ADS]<arg1 …>[/META_ADS_ADS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ADS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ADS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ADS",
        "update": "PUT /api/directory/META_ADS_ADS",
        "patch": "PATCH /api/directory/META_ADS_ADS",
        "delete": "DELETE /api/directory/META_ADS_ADS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ADS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ADS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ADS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ADS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ADS"
    },
    {
      "key": "META_ADS_ADSETS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ad sets in an ad account (id,name,status,budget,campaign_id,effective_status). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ADSETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ADSETS",
        "type": "http",
        "what": [
          "WHAT: List ad sets in an ad account (id,name,status,budget,campaign_id,effective_status).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ADSETS]arg1[/META_ADS_ADSETS]",
        "tag": "[META_ADS_ADSETS]<arg1 …>[/META_ADS_ADSETS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ADSETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ADSETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ADSETS",
        "update": "PUT /api/directory/META_ADS_ADSETS",
        "patch": "PATCH /api/directory/META_ADS_ADSETS",
        "delete": "DELETE /api/directory/META_ADS_ADSETS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ADSETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ADSETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ADSETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ADSETS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ADSETS"
    },
    {
      "key": "META_ADS_ADSET_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create an ad set (defaults status PAUSED). ARGS: JSON {account_id, name, campaign_id, optimization_goal, billing_event, daily_budget?|lifetime_budget?, targeting?, bid_amount?, promoted_object?, start_time?, end_time?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ADSET_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ADSET_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create an ad set (defaults status PAUSED).",
          "ARGS: JSON {account_id, name, campaign_id, optimization_goal, billing_event, daily_budget?|lifetime_budget?, targeting?, bid_amount?, promoted_object?, start_time?, end_time?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ADSET_CREATE]arg1[/META_ADS_ADSET_CREATE]",
        "tag": "[META_ADS_ADSET_CREATE]<arg1 …>[/META_ADS_ADSET_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ADSET_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ADSET_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ADSET_CREATE",
        "update": "PUT /api/directory/META_ADS_ADSET_CREATE",
        "patch": "PATCH /api/directory/META_ADS_ADSET_CREATE",
        "delete": "DELETE /api/directory/META_ADS_ADSET_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ADSET_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ADSET_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ADSET_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ADSET_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ADSET_CREATE"
    },
    {
      "key": "META_ADS_ADSET_UPDATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Update an ad set (status, budget, targeting, bid). ARGS: JSON {adset_id|id, params:{...}}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_ADSET_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_ADSET_UPDATE",
        "type": "http",
        "what": [
          "WHAT: Update an ad set (status, budget, targeting, bid).",
          "ARGS: JSON {adset_id|id, params:{...}}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_ADSET_UPDATE]arg1[/META_ADS_ADSET_UPDATE]",
        "tag": "[META_ADS_ADSET_UPDATE]<arg1 …>[/META_ADS_ADSET_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_ADSET_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_ADSET_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_ADSET_UPDATE",
        "update": "PUT /api/directory/META_ADS_ADSET_UPDATE",
        "patch": "PATCH /api/directory/META_ADS_ADSET_UPDATE",
        "delete": "DELETE /api/directory/META_ADS_ADSET_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_ADSET_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_ADSET_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_ADSET_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_ADSET_UPDATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_ADSET_UPDATE"
    },
    {
      "key": "META_ADS_AD_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create an ad (defaults status PAUSED). ARGS: JSON {account_id, name, adset_id, creative:{creative_id}}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_AD_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_AD_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create an ad (defaults status PAUSED).",
          "ARGS: JSON {account_id, name, adset_id, creative:{creative_id}}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_AD_CREATE]arg1[/META_ADS_AD_CREATE]",
        "tag": "[META_ADS_AD_CREATE]<arg1 …>[/META_ADS_AD_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_AD_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_AD_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_AD_CREATE",
        "update": "PUT /api/directory/META_ADS_AD_CREATE",
        "patch": "PATCH /api/directory/META_ADS_AD_CREATE",
        "delete": "DELETE /api/directory/META_ADS_AD_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_AD_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_AD_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_AD_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_AD_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_AD_CREATE"
    },
    {
      "key": "META_ADS_AD_UPDATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Update an ad (status, creative, name). ARGS: JSON {ad_id|id, params:{...}}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_AD_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_AD_UPDATE",
        "type": "http",
        "what": [
          "WHAT: Update an ad (status, creative, name).",
          "ARGS: JSON {ad_id|id, params:{...}}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_AD_UPDATE]arg1[/META_ADS_AD_UPDATE]",
        "tag": "[META_ADS_AD_UPDATE]<arg1 …>[/META_ADS_AD_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_AD_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_AD_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_AD_UPDATE",
        "update": "PUT /api/directory/META_ADS_AD_UPDATE",
        "patch": "PATCH /api/directory/META_ADS_AD_UPDATE",
        "delete": "DELETE /api/directory/META_ADS_AD_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_AD_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_AD_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_AD_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_AD_UPDATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_AD_UPDATE"
    },
    {
      "key": "META_ADS_AUDIENCES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List custom audiences (subtype, size, operation_status). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_AUDIENCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_AUDIENCES",
        "type": "http",
        "what": [
          "WHAT: List custom audiences (subtype, size, operation_status).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_AUDIENCES]arg1[/META_ADS_AUDIENCES]",
        "tag": "[META_ADS_AUDIENCES]<arg1 …>[/META_ADS_AUDIENCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_AUDIENCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_AUDIENCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_AUDIENCES",
        "update": "PUT /api/directory/META_ADS_AUDIENCES",
        "patch": "PATCH /api/directory/META_ADS_AUDIENCES",
        "delete": "DELETE /api/directory/META_ADS_AUDIENCES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_AUDIENCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_AUDIENCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_AUDIENCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_AUDIENCES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_AUDIENCES"
    },
    {
      "key": "META_ADS_AUDIENCE_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create a custom audience (website/customer-list/engagement). ARGS: JSON {account_id, name, subtype, rule?|customer_file_source?, description?, retention_days?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_AUDIENCE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_AUDIENCE_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a custom audience (website/customer-list/engagement).",
          "ARGS: JSON {account_id, name, subtype, rule?|customer_file_source?, description?, retention_days?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_AUDIENCE_CREATE]arg1[/META_ADS_AUDIENCE_CREATE]",
        "tag": "[META_ADS_AUDIENCE_CREATE]<arg1 …>[/META_ADS_AUDIENCE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_AUDIENCE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_AUDIENCE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_AUDIENCE_CREATE",
        "update": "PUT /api/directory/META_ADS_AUDIENCE_CREATE",
        "patch": "PATCH /api/directory/META_ADS_AUDIENCE_CREATE",
        "delete": "DELETE /api/directory/META_ADS_AUDIENCE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_AUDIENCE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_AUDIENCE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_AUDIENCE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_AUDIENCE_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_AUDIENCE_CREATE"
    },
    {
      "key": "META_ADS_BUDGET_SET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Set daily or lifetime budget (minor units / cents) on a campaign or ad set. ARGS: JSON {id, daily_budget?|lifetime_budget?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_BUDGET_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_BUDGET_SET",
        "type": "http",
        "what": [
          "WHAT: Set daily or lifetime budget (minor units / cents) on a campaign or ad set.",
          "ARGS: JSON {id, daily_budget?|lifetime_budget?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_BUDGET_SET]arg1[/META_ADS_BUDGET_SET]",
        "tag": "[META_ADS_BUDGET_SET]<arg1 …>[/META_ADS_BUDGET_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_BUDGET_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_BUDGET_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_BUDGET_SET",
        "update": "PUT /api/directory/META_ADS_BUDGET_SET",
        "patch": "PATCH /api/directory/META_ADS_BUDGET_SET",
        "delete": "DELETE /api/directory/META_ADS_BUDGET_SET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_BUDGET_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_BUDGET_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_BUDGET_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_BUDGET_SET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_BUDGET_SET"
    },
    {
      "key": "META_ADS_BUSINESSES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List every Business Manager the user can access (id, name, verification_status). ARGS: JSON {} (no args). TESTS: Read op; live /me/businesses.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_BUSINESSES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_BUSINESSES",
        "type": "http",
        "what": [
          "WHAT: List every Business Manager the user can access (id, name, verification_status).",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live /me/businesses."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_BUSINESSES]arg1[/META_ADS_BUSINESSES]",
        "tag": "[META_ADS_BUSINESSES]<arg1 …>[/META_ADS_BUSINESSES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_BUSINESSES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_BUSINESSES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_BUSINESSES",
        "update": "PUT /api/directory/META_ADS_BUSINESSES",
        "patch": "PATCH /api/directory/META_ADS_BUSINESSES",
        "delete": "DELETE /api/directory/META_ADS_BUSINESSES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_BUSINESSES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_BUSINESSES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_BUSINESSES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_BUSINESSES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_BUSINESSES"
    },
    {
      "key": "META_ADS_CAMPAIGNS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List campaigns in an ad account (id,name,status,objective,budgets,times). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CAMPAIGNS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CAMPAIGNS",
        "type": "http",
        "what": [
          "WHAT: List campaigns in an ad account (id,name,status,objective,budgets,times).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CAMPAIGNS]arg1[/META_ADS_CAMPAIGNS]",
        "tag": "[META_ADS_CAMPAIGNS]<arg1 …>[/META_ADS_CAMPAIGNS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CAMPAIGNS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CAMPAIGNS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CAMPAIGNS",
        "update": "PUT /api/directory/META_ADS_CAMPAIGNS",
        "patch": "PATCH /api/directory/META_ADS_CAMPAIGNS",
        "delete": "DELETE /api/directory/META_ADS_CAMPAIGNS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CAMPAIGNS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CAMPAIGNS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CAMPAIGNS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CAMPAIGNS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CAMPAIGNS"
    },
    {
      "key": "META_ADS_CAMPAIGN_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create a campaign (defaults status PAUSED so it does not spend until activated). ARGS: JSON {account_id, name, objective, status?, special_ad_categories?, buying_type?, bid_strategy?, daily_budget?, lifetime_budget?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CAMPAIGN_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CAMPAIGN_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a campaign (defaults status PAUSED so it does not spend until activated).",
          "ARGS: JSON {account_id, name, objective, status?, special_ad_categories?, buying_type?, bid_strategy?, daily_budget?, lifetime_budget?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CAMPAIGN_CREATE]arg1[/META_ADS_CAMPAIGN_CREATE]",
        "tag": "[META_ADS_CAMPAIGN_CREATE]<arg1 …>[/META_ADS_CAMPAIGN_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CAMPAIGN_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CAMPAIGN_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CAMPAIGN_CREATE",
        "update": "PUT /api/directory/META_ADS_CAMPAIGN_CREATE",
        "patch": "PATCH /api/directory/META_ADS_CAMPAIGN_CREATE",
        "delete": "DELETE /api/directory/META_ADS_CAMPAIGN_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CAMPAIGN_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CAMPAIGN_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CAMPAIGN_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CAMPAIGN_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CAMPAIGN_CREATE"
    },
    {
      "key": "META_ADS_CAMPAIGN_UPDATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Update a campaign (name, status, budget, bid_strategy). ARGS: JSON {campaign_id|id, params:{...}}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CAMPAIGN_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CAMPAIGN_UPDATE",
        "type": "http",
        "what": [
          "WHAT: Update a campaign (name, status, budget, bid_strategy).",
          "ARGS: JSON {campaign_id|id, params:{...}}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CAMPAIGN_UPDATE]arg1[/META_ADS_CAMPAIGN_UPDATE]",
        "tag": "[META_ADS_CAMPAIGN_UPDATE]<arg1 …>[/META_ADS_CAMPAIGN_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CAMPAIGN_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CAMPAIGN_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CAMPAIGN_UPDATE",
        "update": "PUT /api/directory/META_ADS_CAMPAIGN_UPDATE",
        "patch": "PATCH /api/directory/META_ADS_CAMPAIGN_UPDATE",
        "delete": "DELETE /api/directory/META_ADS_CAMPAIGN_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CAMPAIGN_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CAMPAIGN_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CAMPAIGN_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CAMPAIGN_UPDATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CAMPAIGN_UPDATE"
    },
    {
      "key": "META_ADS_CATALOGS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List product catalogs on the business. ARGS: JSON {} (no args). TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOGS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOGS",
        "type": "http",
        "what": [
          "WHAT: List product catalogs on the business.",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOGS]arg1[/META_ADS_CATALOGS]",
        "tag": "[META_ADS_CATALOGS]<arg1 …>[/META_ADS_CATALOGS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOGS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOGS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOGS",
        "update": "PUT /api/directory/META_ADS_CATALOGS",
        "patch": "PATCH /api/directory/META_ADS_CATALOGS",
        "delete": "DELETE /api/directory/META_ADS_CATALOGS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOGS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOGS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOGS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOGS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOGS"
    },
    {
      "key": "META_ADS_CATALOG_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create a product catalog on the business. ARGS: JSON {name, vertical?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a product catalog on the business.",
          "ARGS: JSON {name, vertical?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_CREATE]arg1[/META_ADS_CATALOG_CREATE]",
        "tag": "[META_ADS_CATALOG_CREATE]<arg1 …>[/META_ADS_CATALOG_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_CREATE",
        "update": "PUT /api/directory/META_ADS_CATALOG_CREATE",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_CREATE",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_CREATE"
    },
    {
      "key": "META_ADS_CATALOG_DIAGNOSTICS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Catalog diagnostics: data feed and item visibility issues. ARGS: JSON {catalog_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_DIAGNOSTICS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_DIAGNOSTICS",
        "type": "http",
        "what": [
          "WHAT: Catalog diagnostics: data feed and item visibility issues.",
          "ARGS: JSON {catalog_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_DIAGNOSTICS]arg1[/META_ADS_CATALOG_DIAGNOSTICS]",
        "tag": "[META_ADS_CATALOG_DIAGNOSTICS]<arg1 …>[/META_ADS_CATALOG_DIAGNOSTICS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_DIAGNOSTICS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_DIAGNOSTICS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_DIAGNOSTICS",
        "update": "PUT /api/directory/META_ADS_CATALOG_DIAGNOSTICS",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_DIAGNOSTICS",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_DIAGNOSTICS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_DIAGNOSTICS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_DIAGNOSTICS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_DIAGNOSTICS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_DIAGNOSTICS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_DIAGNOSTICS"
    },
    {
      "key": "META_ADS_CATALOG_FEEDS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List data feeds in a catalog (schedule, latest_upload). ARGS: JSON {catalog_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_FEEDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_FEEDS",
        "type": "http",
        "what": [
          "WHAT: List data feeds in a catalog (schedule, latest_upload).",
          "ARGS: JSON {catalog_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_FEEDS]arg1[/META_ADS_CATALOG_FEEDS]",
        "tag": "[META_ADS_CATALOG_FEEDS]<arg1 …>[/META_ADS_CATALOG_FEEDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_FEEDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_FEEDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_FEEDS",
        "update": "PUT /api/directory/META_ADS_CATALOG_FEEDS",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_FEEDS",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_FEEDS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_FEEDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_FEEDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_FEEDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_FEEDS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_FEEDS"
    },
    {
      "key": "META_ADS_CATALOG_GET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Get a product catalog (product_count, vertical, feed_count). ARGS: JSON {catalog_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_GET",
        "type": "http",
        "what": [
          "WHAT: Get a product catalog (product_count, vertical, feed_count).",
          "ARGS: JSON {catalog_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_GET]arg1[/META_ADS_CATALOG_GET]",
        "tag": "[META_ADS_CATALOG_GET]<arg1 …>[/META_ADS_CATALOG_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_GET",
        "update": "PUT /api/directory/META_ADS_CATALOG_GET",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_GET",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_GET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_GET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_GET"
    },
    {
      "key": "META_ADS_CATALOG_PRODUCTS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List products in a catalog (retailer_id,availability,price,review_status,visibility). ARGS: JSON {catalog_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_PRODUCTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_PRODUCTS",
        "type": "http",
        "what": [
          "WHAT: List products in a catalog (retailer_id,availability,price,review_status,visibility).",
          "ARGS: JSON {catalog_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_PRODUCTS]arg1[/META_ADS_CATALOG_PRODUCTS]",
        "tag": "[META_ADS_CATALOG_PRODUCTS]<arg1 …>[/META_ADS_CATALOG_PRODUCTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_PRODUCTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_PRODUCTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_PRODUCTS",
        "update": "PUT /api/directory/META_ADS_CATALOG_PRODUCTS",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_PRODUCTS",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_PRODUCTS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_PRODUCTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_PRODUCTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_PRODUCTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_PRODUCTS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_PRODUCTS"
    },
    {
      "key": "META_ADS_CATALOG_PRODUCT_SETS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List product sets in a catalog. ARGS: JSON {catalog_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CATALOG_PRODUCT_SETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CATALOG_PRODUCT_SETS",
        "type": "http",
        "what": [
          "WHAT: List product sets in a catalog.",
          "ARGS: JSON {catalog_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CATALOG_PRODUCT_SETS]arg1[/META_ADS_CATALOG_PRODUCT_SETS]",
        "tag": "[META_ADS_CATALOG_PRODUCT_SETS]<arg1 …>[/META_ADS_CATALOG_PRODUCT_SETS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CATALOG_PRODUCT_SETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CATALOG_PRODUCT_SETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CATALOG_PRODUCT_SETS",
        "update": "PUT /api/directory/META_ADS_CATALOG_PRODUCT_SETS",
        "patch": "PATCH /api/directory/META_ADS_CATALOG_PRODUCT_SETS",
        "delete": "DELETE /api/directory/META_ADS_CATALOG_PRODUCT_SETS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CATALOG_PRODUCT_SETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CATALOG_PRODUCT_SETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CATALOG_PRODUCT_SETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CATALOG_PRODUCT_SETS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CATALOG_PRODUCT_SETS"
    },
    {
      "key": "META_ADS_CREATIVES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ad creatives (title,body,image_url,object_story_spec,cta,link). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CREATIVES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CREATIVES",
        "type": "http",
        "what": [
          "WHAT: List ad creatives (title,body,image_url,object_story_spec,cta,link).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CREATIVES]arg1[/META_ADS_CREATIVES]",
        "tag": "[META_ADS_CREATIVES]<arg1 …>[/META_ADS_CREATIVES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CREATIVES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CREATIVES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CREATIVES",
        "update": "PUT /api/directory/META_ADS_CREATIVES",
        "patch": "PATCH /api/directory/META_ADS_CREATIVES",
        "delete": "DELETE /api/directory/META_ADS_CREATIVES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CREATIVES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CREATIVES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CREATIVES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CREATIVES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CREATIVES"
    },
    {
      "key": "META_ADS_CREATIVE_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create an ad creative. ARGS: JSON {account_id, name, object_story_spec|object_story_id|asset_feed_spec}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_CREATIVE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_CREATIVE_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create an ad creative.",
          "ARGS: JSON {account_id, name, object_story_spec|object_story_id|asset_feed_spec}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_CREATIVE_CREATE]arg1[/META_ADS_CREATIVE_CREATE]",
        "tag": "[META_ADS_CREATIVE_CREATE]<arg1 …>[/META_ADS_CREATIVE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_CREATIVE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_CREATIVE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_CREATIVE_CREATE",
        "update": "PUT /api/directory/META_ADS_CREATIVE_CREATE",
        "patch": "PATCH /api/directory/META_ADS_CREATIVE_CREATE",
        "delete": "DELETE /api/directory/META_ADS_CREATIVE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_CREATIVE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_CREATIVE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_CREATIVE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_CREATIVE_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_CREATIVE_CREATE"
    },
    {
      "key": "META_ADS_DATASET_STATS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Signal health/quality stats for a pixel/dataset. ARGS: JSON {pixel_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_DATASET_STATS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_DATASET_STATS",
        "type": "http",
        "what": [
          "WHAT: Signal health/quality stats for a pixel/dataset.",
          "ARGS: JSON {pixel_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_DATASET_STATS]arg1[/META_ADS_DATASET_STATS]",
        "tag": "[META_ADS_DATASET_STATS]<arg1 …>[/META_ADS_DATASET_STATS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_DATASET_STATS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_DATASET_STATS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_DATASET_STATS",
        "update": "PUT /api/directory/META_ADS_DATASET_STATS",
        "patch": "PATCH /api/directory/META_ADS_DATASET_STATS",
        "delete": "DELETE /api/directory/META_ADS_DATASET_STATS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_DATASET_STATS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_DATASET_STATS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_DATASET_STATS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_DATASET_STATS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_DATASET_STATS"
    },
    {
      "key": "META_ADS_DELIVERY_ESTIMATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Estimated daily reach for a targeting spec + optimization goal. ARGS: JSON {account_id, optimization_goal, targeting_spec}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_DELIVERY_ESTIMATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_DELIVERY_ESTIMATE",
        "type": "http",
        "what": [
          "WHAT: Estimated daily reach for a targeting spec + optimization goal.",
          "ARGS: JSON {account_id, optimization_goal, targeting_spec}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_DELIVERY_ESTIMATE]arg1[/META_ADS_DELIVERY_ESTIMATE]",
        "tag": "[META_ADS_DELIVERY_ESTIMATE]<arg1 …>[/META_ADS_DELIVERY_ESTIMATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_DELIVERY_ESTIMATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_DELIVERY_ESTIMATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_DELIVERY_ESTIMATE",
        "update": "PUT /api/directory/META_ADS_DELIVERY_ESTIMATE",
        "patch": "PATCH /api/directory/META_ADS_DELIVERY_ESTIMATE",
        "delete": "DELETE /api/directory/META_ADS_DELIVERY_ESTIMATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_DELIVERY_ESTIMATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_DELIVERY_ESTIMATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_DELIVERY_ESTIMATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_DELIVERY_ESTIMATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_DELIVERY_ESTIMATE"
    },
    {
      "key": "META_ADS_IMAGES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ad images (name,url,hash,dimensions). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_IMAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_IMAGES",
        "type": "http",
        "what": [
          "WHAT: List ad images (name,url,hash,dimensions).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_IMAGES]arg1[/META_ADS_IMAGES]",
        "tag": "[META_ADS_IMAGES]<arg1 …>[/META_ADS_IMAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_IMAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_IMAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_IMAGES",
        "update": "PUT /api/directory/META_ADS_IMAGES",
        "patch": "PATCH /api/directory/META_ADS_IMAGES",
        "delete": "DELETE /api/directory/META_ADS_IMAGES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_IMAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_IMAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_IMAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_IMAGES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_IMAGES"
    },
    {
      "key": "META_ADS_INSIGHTS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Comprehensive reporting: insights at account/campaign/adset/ad level with fields, breakdowns, date_preset or time_range, attribution windows, filtering. ARGS: JSON {object_id|account_id, level?, fields?, breakdowns?, date_preset?, time_range?, time_increment?, action_attribution_windows?, filtering?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_INSIGHTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_INSIGHTS",
        "type": "http",
        "what": [
          "WHAT: Comprehensive reporting: insights at account/campaign/adset/ad level with fields, breakdowns, date_preset or time_range, attribution windows, filtering.",
          "ARGS: JSON {object_id|account_id, level?, fields?, breakdowns?, date_preset?, time_range?, time_increment?, action_attribution_windows?, filtering?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_INSIGHTS]arg1[/META_ADS_INSIGHTS]",
        "tag": "[META_ADS_INSIGHTS]<arg1 …>[/META_ADS_INSIGHTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_INSIGHTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_INSIGHTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_INSIGHTS",
        "update": "PUT /api/directory/META_ADS_INSIGHTS",
        "patch": "PATCH /api/directory/META_ADS_INSIGHTS",
        "delete": "DELETE /api/directory/META_ADS_INSIGHTS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_INSIGHTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_INSIGHTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_INSIGHTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_INSIGHTS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_INSIGHTS"
    },
    {
      "key": "META_ADS_INSIGHTS_ASYNC_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Start an async insights report job (large pulls). ARGS: JSON {object_id|account_id, level?, fields?, breakdowns?, date_preset?|time_range?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_INSIGHTS_ASYNC_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_INSIGHTS_ASYNC_CREATE",
        "type": "http",
        "what": [
          "WHAT: Start an async insights report job (large pulls).",
          "ARGS: JSON {object_id|account_id, level?, fields?, breakdowns?, date_preset?|time_range?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_INSIGHTS_ASYNC_CREATE]arg1[/META_ADS_INSIGHTS_ASYNC_CREATE]",
        "tag": "[META_ADS_INSIGHTS_ASYNC_CREATE]<arg1 …>[/META_ADS_INSIGHTS_ASYNC_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_INSIGHTS_ASYNC_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_INSIGHTS_ASYNC_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_INSIGHTS_ASYNC_CREATE",
        "update": "PUT /api/directory/META_ADS_INSIGHTS_ASYNC_CREATE",
        "patch": "PATCH /api/directory/META_ADS_INSIGHTS_ASYNC_CREATE",
        "delete": "DELETE /api/directory/META_ADS_INSIGHTS_ASYNC_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_INSIGHTS_ASYNC_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_INSIGHTS_ASYNC_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_INSIGHTS_ASYNC_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_INSIGHTS_ASYNC_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_INSIGHTS_ASYNC_CREATE"
    },
    {
      "key": "META_ADS_INSIGHTS_ASYNC_RESULT",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Read a completed async insights report. ARGS: JSON {report_run_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_INSIGHTS_ASYNC_RESULT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_INSIGHTS_ASYNC_RESULT",
        "type": "http",
        "what": [
          "WHAT: Read a completed async insights report.",
          "ARGS: JSON {report_run_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_INSIGHTS_ASYNC_RESULT]arg1[/META_ADS_INSIGHTS_ASYNC_RESULT]",
        "tag": "[META_ADS_INSIGHTS_ASYNC_RESULT]<arg1 …>[/META_ADS_INSIGHTS_ASYNC_RESULT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_INSIGHTS_ASYNC_RESULT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_INSIGHTS_ASYNC_RESULT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_INSIGHTS_ASYNC_RESULT",
        "update": "PUT /api/directory/META_ADS_INSIGHTS_ASYNC_RESULT",
        "patch": "PATCH /api/directory/META_ADS_INSIGHTS_ASYNC_RESULT",
        "delete": "DELETE /api/directory/META_ADS_INSIGHTS_ASYNC_RESULT",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_INSIGHTS_ASYNC_RESULT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_INSIGHTS_ASYNC_RESULT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_INSIGHTS_ASYNC_RESULT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_INSIGHTS_ASYNC_RESULT"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_INSIGHTS_ASYNC_RESULT"
    },
    {
      "key": "META_ADS_INSIGHTS_ASYNC_STATUS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Poll an async insights report job. ARGS: JSON {report_run_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_INSIGHTS_ASYNC_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_INSIGHTS_ASYNC_STATUS",
        "type": "http",
        "what": [
          "WHAT: Poll an async insights report job.",
          "ARGS: JSON {report_run_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_INSIGHTS_ASYNC_STATUS]arg1[/META_ADS_INSIGHTS_ASYNC_STATUS]",
        "tag": "[META_ADS_INSIGHTS_ASYNC_STATUS]<arg1 …>[/META_ADS_INSIGHTS_ASYNC_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_INSIGHTS_ASYNC_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_INSIGHTS_ASYNC_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_INSIGHTS_ASYNC_STATUS",
        "update": "PUT /api/directory/META_ADS_INSIGHTS_ASYNC_STATUS",
        "patch": "PATCH /api/directory/META_ADS_INSIGHTS_ASYNC_STATUS",
        "delete": "DELETE /api/directory/META_ADS_INSIGHTS_ASYNC_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_INSIGHTS_ASYNC_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_INSIGHTS_ASYNC_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_INSIGHTS_ASYNC_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_INSIGHTS_ASYNC_STATUS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_INSIGHTS_ASYNC_STATUS"
    },
    {
      "key": "META_ADS_LOOKALIKE_CREATE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Create a lookalike audience from a source custom audience. ARGS: JSON {account_id, name, origin_audience_id, country?, ratio?}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_LOOKALIKE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_LOOKALIKE_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a lookalike audience from a source custom audience.",
          "ARGS: JSON {account_id, name, origin_audience_id, country?, ratio?}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_LOOKALIKE_CREATE]arg1[/META_ADS_LOOKALIKE_CREATE]",
        "tag": "[META_ADS_LOOKALIKE_CREATE]<arg1 …>[/META_ADS_LOOKALIKE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_LOOKALIKE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_LOOKALIKE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_LOOKALIKE_CREATE",
        "update": "PUT /api/directory/META_ADS_LOOKALIKE_CREATE",
        "patch": "PATCH /api/directory/META_ADS_LOOKALIKE_CREATE",
        "delete": "DELETE /api/directory/META_ADS_LOOKALIKE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_LOOKALIKE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_LOOKALIKE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_LOOKALIKE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_LOOKALIKE_CREATE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_LOOKALIKE_CREATE"
    },
    {
      "key": "META_ADS_MCP_CALL",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Call any tool on Metas hosted Ads MCP server by name (live proxy). ARGS: JSON {name, arguments:{...}}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_MCP_CALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_MCP_CALL",
        "type": "http",
        "what": [
          "WHAT: Call any tool on Metas hosted Ads MCP server by name (live proxy).",
          "ARGS: JSON {name, arguments:{...}}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_MCP_CALL]arg1[/META_ADS_MCP_CALL]",
        "tag": "[META_ADS_MCP_CALL]<arg1 …>[/META_ADS_MCP_CALL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_MCP_CALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_MCP_CALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_MCP_CALL",
        "update": "PUT /api/directory/META_ADS_MCP_CALL",
        "patch": "PATCH /api/directory/META_ADS_MCP_CALL",
        "delete": "DELETE /api/directory/META_ADS_MCP_CALL",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_MCP_CALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_MCP_CALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_MCP_CALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_MCP_CALL"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_MCP_CALL"
    },
    {
      "key": "META_ADS_MCP_TOOLS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List every tool exposed by Metas hosted Ads MCP server (live proxy to mcp.facebook.com/ads). ARGS: JSON {} (no args). TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_MCP_TOOLS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_MCP_TOOLS",
        "type": "http",
        "what": [
          "WHAT: List every tool exposed by Metas hosted Ads MCP server (live proxy to mcp.facebook.com/ads).",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_MCP_TOOLS]arg1[/META_ADS_MCP_TOOLS]",
        "tag": "[META_ADS_MCP_TOOLS]<arg1 …>[/META_ADS_MCP_TOOLS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_MCP_TOOLS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_MCP_TOOLS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_MCP_TOOLS",
        "update": "PUT /api/directory/META_ADS_MCP_TOOLS",
        "patch": "PATCH /api/directory/META_ADS_MCP_TOOLS",
        "delete": "DELETE /api/directory/META_ADS_MCP_TOOLS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_MCP_TOOLS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_MCP_TOOLS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_MCP_TOOLS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_MCP_TOOLS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_MCP_TOOLS"
    },
    {
      "key": "META_ADS_OBJECT_DELETE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Delete a campaign, ad set, ad or creative. ARGS: JSON {id}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_OBJECT_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_OBJECT_DELETE",
        "type": "http",
        "what": [
          "WHAT: Delete a campaign, ad set, ad or creative.",
          "ARGS: JSON {id}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_OBJECT_DELETE]arg1[/META_ADS_OBJECT_DELETE]",
        "tag": "[META_ADS_OBJECT_DELETE]<arg1 …>[/META_ADS_OBJECT_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_OBJECT_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_OBJECT_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_OBJECT_DELETE",
        "update": "PUT /api/directory/META_ADS_OBJECT_DELETE",
        "patch": "PATCH /api/directory/META_ADS_OBJECT_DELETE",
        "delete": "DELETE /api/directory/META_ADS_OBJECT_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_OBJECT_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_OBJECT_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_OBJECT_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_OBJECT_DELETE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_OBJECT_DELETE"
    },
    {
      "key": "META_ADS_OBJECT_GET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Get any Graph node by id with a fields list. ARGS: JSON {id, fields?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_OBJECT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_OBJECT_GET",
        "type": "http",
        "what": [
          "WHAT: Get any Graph node by id with a fields list.",
          "ARGS: JSON {id, fields?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_OBJECT_GET]arg1[/META_ADS_OBJECT_GET]",
        "tag": "[META_ADS_OBJECT_GET]<arg1 …>[/META_ADS_OBJECT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_OBJECT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_OBJECT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_OBJECT_GET",
        "update": "PUT /api/directory/META_ADS_OBJECT_GET",
        "patch": "PATCH /api/directory/META_ADS_OBJECT_GET",
        "delete": "DELETE /api/directory/META_ADS_OBJECT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_OBJECT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_OBJECT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_OBJECT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_OBJECT_GET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_OBJECT_GET"
    },
    {
      "key": "META_ADS_PAGES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List every Facebook Page the user manages (id, name, category). ARGS: JSON {} (no args). TESTS: Read op; live /me/accounts.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_PAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_PAGES",
        "type": "http",
        "what": [
          "WHAT: List every Facebook Page the user manages (id, name, category).",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live /me/accounts."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_PAGES]arg1[/META_ADS_PAGES]",
        "tag": "[META_ADS_PAGES]<arg1 …>[/META_ADS_PAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_PAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_PAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_PAGES",
        "update": "PUT /api/directory/META_ADS_PAGES",
        "patch": "PATCH /api/directory/META_ADS_PAGES",
        "delete": "DELETE /api/directory/META_ADS_PAGES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_PAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_PAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_PAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_PAGES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_PAGES"
    },
    {
      "key": "META_ADS_PIXELS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ad account pixels/datasets (last_fired_time, availability, matching). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_PIXELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_PIXELS",
        "type": "http",
        "what": [
          "WHAT: List ad account pixels/datasets (last_fired_time, availability, matching).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_PIXELS]arg1[/META_ADS_PIXELS]",
        "tag": "[META_ADS_PIXELS]<arg1 …>[/META_ADS_PIXELS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_PIXELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_PIXELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_PIXELS",
        "update": "PUT /api/directory/META_ADS_PIXELS",
        "patch": "PATCH /api/directory/META_ADS_PIXELS",
        "delete": "DELETE /api/directory/META_ADS_PIXELS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_PIXELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_PIXELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_PIXELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_PIXELS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_PIXELS"
    },
    {
      "key": "META_ADS_PORTFOLIO",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Whole-portfolio rollup: every ad account with spend, total historical spend, spend-by-business, businesses and pages. ARGS: JSON {} (no args). TESTS: Read op; live Meta Graph read across /me/adaccounts + /me/businesses + /me/accounts.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_PORTFOLIO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_PORTFOLIO",
        "type": "http",
        "what": [
          "WHAT: Whole-portfolio rollup: every ad account with spend, total historical spend, spend-by-business, businesses and pages.",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live Meta Graph read across /me/adaccounts + /me/businesses + /me/accounts."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_PORTFOLIO]arg1[/META_ADS_PORTFOLIO]",
        "tag": "[META_ADS_PORTFOLIO]<arg1 …>[/META_ADS_PORTFOLIO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_PORTFOLIO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_PORTFOLIO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_PORTFOLIO",
        "update": "PUT /api/directory/META_ADS_PORTFOLIO",
        "patch": "PATCH /api/directory/META_ADS_PORTFOLIO",
        "delete": "DELETE /api/directory/META_ADS_PORTFOLIO",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_PORTFOLIO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_PORTFOLIO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_PORTFOLIO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_PORTFOLIO"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_PORTFOLIO"
    },
    {
      "key": "META_ADS_STATUS_SET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Pause/activate/archive any campaign, ad set or ad. ARGS: JSON {id, status:ACTIVE|PAUSED|ARCHIVED}. TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_STATUS_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_STATUS_SET",
        "type": "http",
        "what": [
          "WHAT: Pause/activate/archive any campaign, ad set or ad.",
          "ARGS: JSON {id, status:ACTIVE|PAUSED|ARCHIVED}.",
          "TESTS: Write op; requires act auth; create ops default status PAUSED (no spend until activated). Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_STATUS_SET]arg1[/META_ADS_STATUS_SET]",
        "tag": "[META_ADS_STATUS_SET]<arg1 …>[/META_ADS_STATUS_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_STATUS_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_STATUS_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_STATUS_SET",
        "update": "PUT /api/directory/META_ADS_STATUS_SET",
        "patch": "PATCH /api/directory/META_ADS_STATUS_SET",
        "delete": "DELETE /api/directory/META_ADS_STATUS_SET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_STATUS_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_STATUS_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_STATUS_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_STATUS_SET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_STATUS_SET"
    },
    {
      "key": "META_ADS_STUDIES",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List A/B tests and conversion-lift studies on the business. ARGS: JSON {} (no args). TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_STUDIES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_STUDIES",
        "type": "http",
        "what": [
          "WHAT: List A/B tests and conversion-lift studies on the business.",
          "ARGS: JSON {} (no args).",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_STUDIES]arg1[/META_ADS_STUDIES]",
        "tag": "[META_ADS_STUDIES]<arg1 …>[/META_ADS_STUDIES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_STUDIES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_STUDIES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_STUDIES",
        "update": "PUT /api/directory/META_ADS_STUDIES",
        "patch": "PATCH /api/directory/META_ADS_STUDIES",
        "delete": "DELETE /api/directory/META_ADS_STUDIES",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_STUDIES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_STUDIES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_STUDIES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_STUDIES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_STUDIES"
    },
    {
      "key": "META_ADS_STUDY_GET",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Get an A/B test / lift study (cells, objectives, status). ARGS: JSON {study_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_STUDY_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_STUDY_GET",
        "type": "http",
        "what": [
          "WHAT: Get an A/B test / lift study (cells, objectives, status).",
          "ARGS: JSON {study_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_STUDY_GET]arg1[/META_ADS_STUDY_GET]",
        "tag": "[META_ADS_STUDY_GET]<arg1 …>[/META_ADS_STUDY_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_STUDY_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_STUDY_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_STUDY_GET",
        "update": "PUT /api/directory/META_ADS_STUDY_GET",
        "patch": "PATCH /api/directory/META_ADS_STUDY_GET",
        "delete": "DELETE /api/directory/META_ADS_STUDY_GET",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_STUDY_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_STUDY_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_STUDY_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_STUDY_GET"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_STUDY_GET"
    },
    {
      "key": "META_ADS_TARGETING_BROWSE",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Browse the targeting interest taxonomy. ARGS: JSON {limit?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_TARGETING_BROWSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_TARGETING_BROWSE",
        "type": "http",
        "what": [
          "WHAT: Browse the targeting interest taxonomy.",
          "ARGS: JSON {limit?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_TARGETING_BROWSE]arg1[/META_ADS_TARGETING_BROWSE]",
        "tag": "[META_ADS_TARGETING_BROWSE]<arg1 …>[/META_ADS_TARGETING_BROWSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_TARGETING_BROWSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_TARGETING_BROWSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_TARGETING_BROWSE",
        "update": "PUT /api/directory/META_ADS_TARGETING_BROWSE",
        "patch": "PATCH /api/directory/META_ADS_TARGETING_BROWSE",
        "delete": "DELETE /api/directory/META_ADS_TARGETING_BROWSE",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_TARGETING_BROWSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_TARGETING_BROWSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_TARGETING_BROWSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_TARGETING_BROWSE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_TARGETING_BROWSE"
    },
    {
      "key": "META_ADS_TARGETING_SEARCH",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Search targeting: interests, behaviors, demographics, employers, schools. ARGS: JSON {q, type?, class?, limit?}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_TARGETING_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_TARGETING_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search targeting: interests, behaviors, demographics, employers, schools.",
          "ARGS: JSON {q, type?, class?, limit?}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_TARGETING_SEARCH]arg1[/META_ADS_TARGETING_SEARCH]",
        "tag": "[META_ADS_TARGETING_SEARCH]<arg1 …>[/META_ADS_TARGETING_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_TARGETING_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_TARGETING_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_TARGETING_SEARCH",
        "update": "PUT /api/directory/META_ADS_TARGETING_SEARCH",
        "patch": "PATCH /api/directory/META_ADS_TARGETING_SEARCH",
        "delete": "DELETE /api/directory/META_ADS_TARGETING_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_TARGETING_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_TARGETING_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_TARGETING_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_TARGETING_SEARCH"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_TARGETING_SEARCH"
    },
    {
      "key": "META_ADS_VIDEOS",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: List ad videos (title,description,length,thumbnails). ARGS: JSON {account_id}. TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_ADS_VIDEOS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_ADS_VIDEOS",
        "type": "http",
        "what": [
          "WHAT: List ad videos (title,description,length,thumbnails).",
          "ARGS: JSON {account_id}.",
          "TESTS: Read op; live Meta Graph read. Full op index: GET/POST /api/marketing/meta."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_ADS_VIDEOS]arg1[/META_ADS_VIDEOS]",
        "tag": "[META_ADS_VIDEOS]<arg1 …>[/META_ADS_VIDEOS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_ADS_VIDEOS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_ADS_VIDEOS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/META_ADS_VIDEOS",
        "update": "PUT /api/directory/META_ADS_VIDEOS",
        "patch": "PATCH /api/directory/META_ADS_VIDEOS",
        "delete": "DELETE /api/directory/META_ADS_VIDEOS",
        "invoke": "POST /api/dispatch {\"key\":\"META_ADS_VIDEOS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_ADS_VIDEOS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_ADS_VIDEOS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_ADS_VIDEOS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_ADS_VIDEOS"
    },
    {
      "key": "META_AD_LIBRARY_SEARCH",
      "type": "http",
      "category": "marketing",
      "doc": "WHAT: Search Meta's public Ad Library (Graph ads_archive — same call as Graph API Explorer). Uses the live loop-meta-bridge token, not the expired Pages META_ACCESS_TOKEN. WHEN_TO_USE: competitor ads, what is running for a term or page. ARGS: $1 = search_terms (or JSON {search_terms, ad_reached_countries?, search_page_ids?, limit?}) EX: [META_AD_LIBRARY_SEARCH]tesofensine[/META_AD_LIBRARY_SEARCH] TESTS: Live ads_archive via /api/marketing/meta/ad-library; receipted.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_AD_LIBRARY_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_AD_LIBRARY_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search Meta's public Ad Library (Graph ads_archive — same call as Graph API Explorer). Uses the live loop-meta-bridge token, not the expired Pages META_ACCESS_TOKEN.",
          "WHEN_TO_USE: competitor ads, what is running for a term or page.",
          "ARGS: $1 = search_terms (or JSON {search_terms, ad_reached_countries?, search_page_ids?, limit?})",
          "EX: [META_AD_LIBRARY_SEARCH]tesofensine[/META_AD_LIBRARY_SEARCH]",
          "TESTS: Live ads_archive via /api/marketing/meta/ad-library; receipted."
        ],
        "args": [
          {
            "pos": 1,
            "name": "tesofensine",
            "desc": "search_terms (or JSON {search_terms, ad_reached_countries?, search_page_ids?, limit?})",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[META_AD_LIBRARY_SEARCH]tesofensine[/META_AD_LIBRARY_SEARCH]",
        "tag": "[META_AD_LIBRARY_SEARCH]<tesofensine>[/META_AD_LIBRARY_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_AD_LIBRARY_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_AD_LIBRARY_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"search_terms\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/META_AD_LIBRARY_SEARCH",
        "update": "PUT /api/directory/META_AD_LIBRARY_SEARCH",
        "patch": "PATCH /api/directory/META_AD_LIBRARY_SEARCH",
        "delete": "DELETE /api/directory/META_AD_LIBRARY_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"META_AD_LIBRARY_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_AD_LIBRARY_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_AD_LIBRARY_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_AD_LIBRARY_SEARCH"
      },
      "examples": "[\"peptide\",\"glp-1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_AD_LIBRARY_SEARCH"
    },
    {
      "key": "META_CAPI_EVENT",
      "type": "flow",
      "category": "meta",
      "doc": "Hash the PII fields then POST to Meta CAPI. $1=em, $2=ph, $3=eid, $4=event_name, $5=event_id, $6=source_url, $7=fbp, $8=fbc. WHEN_TO_USE: per browser-side conversion event that needs to be mirrored to Meta CAPI server-side.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_CAPI_EVENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_CAPI_EVENT",
        "type": "flow",
        "what": [
          "Hash the PII fields then POST to Meta CAPI. $1=em, $2=ph, $3=eid, $4=event_name, $5=event_id, $6=source_url, $7=fbp, $8=fbc.",
          "WHEN_TO_USE: per browser-side conversion event that needs to be mirrored to Meta CAPI server-side."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "em, $2=ph, $3=eid, $4=event_name, $5=event_id, $6=source_url, $7=fbp, $8=fbc.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[META_CAPI_EVENT]arg1|arg2|arg3[/META_CAPI_EVENT]",
        "tag": "[META_CAPI_EVENT]<arg1>|<arg2>|<arg3>[/META_CAPI_EVENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_CAPI_EVENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_CAPI_EVENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/META_CAPI_EVENT",
        "update": "PUT /api/directory/META_CAPI_EVENT",
        "patch": "PATCH /api/directory/META_CAPI_EVENT",
        "delete": "DELETE /api/directory/META_CAPI_EVENT",
        "invoke": "POST /api/dispatch {\"key\":\"META_CAPI_EVENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_CAPI_EVENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_CAPI_EVENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_CAPI_EVENT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=META_CAPI_EVENT"
    },
    {
      "key": "META_HEALTH",
      "type": "fn",
      "category": "marketing",
      "doc": "WHAT: Bridge + token health — confirms the Meta token is bound and does a live /me ping. Surfaces permission errors (e.g. missing ads_read) plainly. WHEN_TO_USE: \"is meta connected\", debugging why insights are empty. ARGS: none. EX: [META_HEALTH][/META_HEALTH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_HEALTH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_HEALTH",
        "type": "fn",
        "what": [
          "WHAT: Bridge + token health — confirms the Meta token is bound and does a live /me ping. Surfaces permission errors (e.g. missing ads_read) plainly.",
          "WHEN_TO_USE: \"is meta connected\", debugging why insights are empty.",
          "ARGS: none.",
          "EX: [META_HEALTH][/META_HEALTH]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[META_HEALTH][/META_HEALTH]",
        "tag": "[META_HEALTH][/META_HEALTH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_HEALTH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_HEALTH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/META_HEALTH",
        "update": "PUT /api/directory/META_HEALTH",
        "patch": "PATCH /api/directory/META_HEALTH",
        "delete": "DELETE /api/directory/META_HEALTH",
        "invoke": "POST /api/dispatch {\"key\":\"META_HEALTH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_HEALTH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_HEALTH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_HEALTH"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_HEALTH"
    },
    {
      "key": "META_INSIGHTS",
      "type": "fn",
      "category": "marketing",
      "doc": "WHAT: Per-account Meta performance (spend, impressions, clicks, purchases, ROAS) for a date preset, via the loop-meta-bridge. Read-only. WHEN_TO_USE: \"how are my ads doing\", \"meta spend this week\", reconcile ad spend against sales. ARGS: $1 = date preset (today|yesterday|last_7d|last_14d|last_30d|last_90d, default last_7d). $2 = optional comma-separated act_ ids. EX: [META_INSIGHTS]last_7d[/META_INSIGHTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_INSIGHTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_INSIGHTS",
        "type": "fn",
        "what": [
          "WHAT: Per-account Meta performance (spend, impressions, clicks, purchases, ROAS) for a date preset, via the loop-meta-bridge. Read-only.",
          "WHEN_TO_USE: \"how are my ads doing\", \"meta spend this week\", reconcile ad spend against sales.",
          "ARGS: $1 = date preset (today|yesterday|last_7d|last_14d|last_30d|last_90d, default last_7d). $2 = optional comma-separated act_ ids.",
          "EX: [META_INSIGHTS]last_7d[/META_INSIGHTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "last_7d",
            "desc": "date preset (today|yesterday|last_7d|last_14d|last_30d|last_90d, default last_7d). $2 = optional comma-separated act_ ids.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[META_INSIGHTS]last_7d[/META_INSIGHTS]",
        "tag": "[META_INSIGHTS]<last_7d>|<arg2>[/META_INSIGHTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_INSIGHTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_INSIGHTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/META_INSIGHTS",
        "update": "PUT /api/directory/META_INSIGHTS",
        "patch": "PATCH /api/directory/META_INSIGHTS",
        "delete": "DELETE /api/directory/META_INSIGHTS",
        "invoke": "POST /api/dispatch {\"key\":\"META_INSIGHTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_INSIGHTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_INSIGHTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_INSIGHTS"
      },
      "examples": "[\"last_7d\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_INSIGHTS"
    },
    {
      "key": "META_SYNC_BACKFILL",
      "type": "fn",
      "category": "meta",
      "doc": "WHAT: Trigger lbl meta insights backfill. Ledgered. EX: [META_SYNC_BACKFILL][/META_SYNC_BACKFILL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "META_SYNC_BACKFILL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "META_SYNC_BACKFILL",
        "type": "fn",
        "what": [
          "WHAT: Trigger lbl meta insights backfill. Ledgered.",
          "EX: [META_SYNC_BACKFILL][/META_SYNC_BACKFILL]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[META_SYNC_BACKFILL][/META_SYNC_BACKFILL]",
        "tag": "[META_SYNC_BACKFILL][/META_SYNC_BACKFILL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"META_SYNC_BACKFILL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/META_SYNC_BACKFILL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/META_SYNC_BACKFILL",
        "update": "PUT /api/directory/META_SYNC_BACKFILL",
        "patch": "PATCH /api/directory/META_SYNC_BACKFILL",
        "delete": "DELETE /api/directory/META_SYNC_BACKFILL",
        "invoke": "POST /api/dispatch {\"key\":\"META_SYNC_BACKFILL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"META_SYNC_BACKFILL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"META_SYNC_BACKFILL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/META_SYNC_BACKFILL"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=META_SYNC_BACKFILL"
    },
    {
      "key": "METHODOLOGY",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The versioned definition a claim family is computed by: statement, required evidence, exclusions, grade ceiling. Without a key, lists every methodology. WHEN_TO_USE: reading how a claim is computed before making or verifying one. ARGS: key EX: [METHODOLOGY]CPC_DELTA_V1[/METHODOLOGY] TESTS: Returns the definition; an unknown key is METHODOLOGY_UNKNOWN.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "METHODOLOGY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "METHODOLOGY",
        "type": "fn",
        "what": [
          "WHAT: The versioned definition a claim family is computed by: statement, required evidence, exclusions, grade ceiling. Without a key, lists every methodology.",
          "WHEN_TO_USE: reading how a claim is computed before making or verifying one.",
          "ARGS: key",
          "EX: [METHODOLOGY]CPC_DELTA_V1[/METHODOLOGY]",
          "TESTS: Returns the definition; an unknown key is METHODOLOGY_UNKNOWN."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CPC_DELTA_V1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the definition; an unknown key is METHODOLOGY_UNKNOWN.",
        "example": "[METHODOLOGY]CPC_DELTA_V1[/METHODOLOGY]",
        "tag": "[METHODOLOGY]<CPC_DELTA_V1 …>[/METHODOLOGY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"METHODOLOGY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/METHODOLOGY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/METHODOLOGY",
        "update": "PUT /api/directory/METHODOLOGY",
        "patch": "PATCH /api/directory/METHODOLOGY",
        "delete": "DELETE /api/directory/METHODOLOGY",
        "invoke": "POST /api/dispatch {\"key\":\"METHODOLOGY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"METHODOLOGY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"METHODOLOGY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/METHODOLOGY"
      },
      "examples": "[\"\", \"CPC_DELTA_V1\", \"ROAS_V1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=METHODOLOGY"
    },
    {
      "key": "MIRROR_APPEND",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Attach one TYPED contribution to an exact claim of an article — question, objection, source, repair, compression, contradiction, or audit. The contribution is ledgered with provenance and a receipt; it never rewrites the article. This is the Mirror Layer: reading leaves a trace, and the trace shapes the article. WHEN_TO_USE: \"question this claim\", \"challenge/attack this claim\", \"suggest sharper wording\", \"add a source/contradiction to <article>\", \"mark overclaimed\", \"audit this claim\". ARGS: $1=article slug, $2=claim id (p-hash or claim-N; empty = article-level), $3=kind (question|objection|source|repair|compression|contradiction|audit), $4=actor (your model name), $5+=body (the contribution text; for repair/compression put the proposed replacement wording after \" => \"). EX: [MIRROR_APPEND]oip-the-12-axioms|p-3f2a9c1b|question|claude-fable-5|What supports the claim that all eight patterns are independent rather than restatements of one gradient law?[/MIRROR_APPEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MIRROR_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MIRROR_APPEND",
        "type": "fn",
        "what": [
          "WHAT: Attach one TYPED contribution to an exact claim of an article — question, objection, source, repair, compression, contradiction, or audit. The contribution is ledgered with provenance and a receipt; it never rewrites the article. This is the Mirror Layer: reading leaves a trace, and the trace shapes the article.",
          "WHEN_TO_USE: \"question this claim\", \"challenge/attack this claim\", \"suggest sharper wording\", \"add a source/contradiction to <article>\", \"mark overclaimed\", \"audit this claim\".",
          "ARGS: $1=article slug, $2=claim id (p-hash or claim-N; empty = article-level), $3=kind (question|objection|source|repair|compression|contradiction|audit), $4=actor (your model name), $5+=body (the contribution text; for repair/compression put the proposed replacement wording after \" => \").",
          "EX: [MIRROR_APPEND]oip-the-12-axioms|p-3f2a9c1b|question|claude-fable-5|What supports the claim that all eight patterns are independent rather than restatements of one gradient law?[/MIRROR_APPEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "oip-the-12-axioms",
            "desc": "article slug, $2=claim id (p-hash or claim-N",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "p-3f2a9c1b",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "question",
            "desc": "kind (question|objection|source|repair|compression|contradiction|audit), $4=actor (your model name), $5+=body (the contribution text",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "claude-fable-5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "What supports the claim that all eight patterns are independent rather than restatements of one gradient law?",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MIRROR_APPEND]oip-the-12-axioms|p-3f2a9c1b|question|claude-fable-5|What supports the claim that all eight patterns are independent rather than restatements of one gradient law?[/MIRROR_APPEND]",
        "tag": "[MIRROR_APPEND]<oip-the-12-axioms>|<p-3f2a9c1b>|<question>|<claude-fable-5>|<What supports the claim that all eight patterns are independent rather than restatements of one gradient law? …>[/MIRROR_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MIRROR_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MIRROR_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5+\"]",
      "edit": {
        "read": "GET /api/directory/MIRROR_APPEND",
        "update": "PUT /api/directory/MIRROR_APPEND",
        "patch": "PATCH /api/directory/MIRROR_APPEND",
        "delete": "DELETE /api/directory/MIRROR_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"MIRROR_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MIRROR_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MIRROR_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MIRROR_APPEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MIRROR_APPEND"
    },
    {
      "key": "MIRROR_FEED",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Read the Mirror Layer of one article (or the newest contributions across all articles): every typed contribution grouped by claim, proposed vs accepted separated, each with actor, kind, timestamp, status, and receipt. Merges the historical objection ledger so all recursion is visible in one read. WHEN_TO_USE: \"what has been challenged on <article>\", \"show the mirror layer\", \"what repairs are proposed\", \"read the recursion on this claim\". ARGS: $1=article slug (empty = newest across all articles), $2=limit (default 50). EX: [MIRROR_FEED]oip-the-12-axioms|50[/MIRROR_FEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MIRROR_FEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MIRROR_FEED",
        "type": "fn",
        "what": [
          "WHAT: Read the Mirror Layer of one article (or the newest contributions across all articles): every typed contribution grouped by claim, proposed vs accepted separated, each with actor, kind, timestamp, status, and receipt. Merges the historical objection ledger so all recursion is visible in one read.",
          "WHEN_TO_USE: \"what has been challenged on <article>\", \"show the mirror layer\", \"what repairs are proposed\", \"read the recursion on this claim\".",
          "ARGS: $1=article slug (empty = newest across all articles), $2=limit (default 50).",
          "EX: [MIRROR_FEED]oip-the-12-axioms|50[/MIRROR_FEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "oip-the-12-axioms",
            "desc": "article slug (empty = newest across all articles), $2=limit (default 50).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "50",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MIRROR_FEED]oip-the-12-axioms|50[/MIRROR_FEED]",
        "tag": "[MIRROR_FEED]<oip-the-12-axioms>|<50>[/MIRROR_FEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MIRROR_FEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MIRROR_FEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/MIRROR_FEED",
        "update": "PUT /api/directory/MIRROR_FEED",
        "patch": "PATCH /api/directory/MIRROR_FEED",
        "delete": "DELETE /api/directory/MIRROR_FEED",
        "invoke": "POST /api/dispatch {\"key\":\"MIRROR_FEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MIRROR_FEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MIRROR_FEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MIRROR_FEED"
      },
      "examples": "[\"oip-the-12-axioms|50\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MIRROR_FEED"
    },
    {
      "key": "MIRROR_RESOLVE",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: OWNER ACT — accept or reject one proposed Mirror contribution by id. Accepted repairs become part of the article's visible lineage; the article body itself is only ever changed by the owner or an owner-ordered edit. Share/capability tokens are denied: models propose, they do not resolve. WHEN_TO_USE: the owner says \"accept mirror #N\", \"reject that suggestion\", \"mark that repair accepted\". ARGS: $1=contribution id, $2=accepted|rejected, $3+=resolution note (optional). EX: [MIRROR_RESOLVE]12|accepted|folded into the claim wording[/MIRROR_RESOLVE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MIRROR_RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MIRROR_RESOLVE",
        "type": "fn",
        "what": [
          "WHAT: OWNER ACT — accept or reject one proposed Mirror contribution by id. Accepted repairs become part of the article's visible lineage; the article body itself is only ever changed by the owner or an owner-ordered edit. Share/capability tokens are denied: models propose, they do not resolve.",
          "WHEN_TO_USE: the owner says \"accept mirror #N\", \"reject that suggestion\", \"mark that repair accepted\".",
          "ARGS: $1=contribution id, $2=accepted|rejected, $3+=resolution note (optional).",
          "EX: [MIRROR_RESOLVE]12|accepted|folded into the claim wording[/MIRROR_RESOLVE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "12",
            "desc": "contribution id, $2=accepted|rejected, $3+=resolution note (optional).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "accepted",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "folded into the claim wording",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[MIRROR_RESOLVE]12|accepted|folded into the claim wording[/MIRROR_RESOLVE]",
        "tag": "[MIRROR_RESOLVE]<12>|<accepted>|<folded into the claim wording …>[/MIRROR_RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MIRROR_RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MIRROR_RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/MIRROR_RESOLVE",
        "update": "PUT /api/directory/MIRROR_RESOLVE",
        "patch": "PATCH /api/directory/MIRROR_RESOLVE",
        "delete": "DELETE /api/directory/MIRROR_RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"MIRROR_RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MIRROR_RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MIRROR_RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MIRROR_RESOLVE"
      },
      "examples": "[\"12|accepted|folded into the claim wording\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MIRROR_RESOLVE"
    },
    {
      "key": "MODEL_CHAT_INTAKE",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Append raw outside-model/chat text to the ledger and queue the receiving editorial board. WHEN_TO_USE: paste any model answer, raw chat log, critique, complaint, or documentation feedback into the build so the board extracts rules and queues purification. ARGS: $1+ raw text/plain chat log EX: [MODEL_CHAT_INTAKE]Claude said OIP is unclear because...[/MODEL_CHAT_INTAKE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MODEL_CHAT_INTAKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MODEL_CHAT_INTAKE",
        "type": "http",
        "what": [
          "WHAT: Append raw outside-model/chat text to the ledger and queue the receiving editorial board.",
          "WHEN_TO_USE: paste any model answer, raw chat log, critique, complaint, or documentation feedback into the build so the board extracts rules and queues purification.",
          "ARGS: $1+ raw text/plain chat log",
          "EX: [MODEL_CHAT_INTAKE]Claude said OIP is unclear because...[/MODEL_CHAT_INTAKE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Claude said OIP is unclear because...",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[MODEL_CHAT_INTAKE]Claude said OIP is unclear because...[/MODEL_CHAT_INTAKE]",
        "tag": "[MODEL_CHAT_INTAKE]<Claude said OIP is unclear because... …>[/MODEL_CHAT_INTAKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MODEL_CHAT_INTAKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MODEL_CHAT_INTAKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/MODEL_CHAT_INTAKE",
        "update": "PUT /api/directory/MODEL_CHAT_INTAKE",
        "patch": "PATCH /api/directory/MODEL_CHAT_INTAKE",
        "delete": "DELETE /api/directory/MODEL_CHAT_INTAKE",
        "invoke": "POST /api/dispatch {\"key\":\"MODEL_CHAT_INTAKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MODEL_CHAT_INTAKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MODEL_CHAT_INTAKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MODEL_CHAT_INTAKE"
      },
      "examples": "[\"Claude said OIP is unclear because...\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=MODEL_CHAT_INTAKE"
    },
    {
      "key": "MSG_READ",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Read recent messages of a room on the unified bus. ARGS: $1=room_id|contact, $2=limit. EX: [MSG_READ]!abc:mac.local|20[/MSG_READ]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MSG_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MSG_READ",
        "type": "flow",
        "what": [
          "WHAT: Read recent messages of a room on the unified bus. ARGS: $1=room_id|contact, $2=limit. EX: [MSG_READ]!abc:mac.local|20[/MSG_READ]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "!abc:mac.local",
            "desc": "room_id|contact, $2=limit. EX: [MSG_READ]!abc:mac.local|20[/MSG_READ]",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "20",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MSG_READ]!abc:mac.local|20[/MSG_READ]",
        "tag": "[MSG_READ]<!abc:mac.local>|<20>[/MSG_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MSG_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MSG_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MSG_READ",
        "update": "PUT /api/directory/MSG_READ",
        "patch": "PATCH /api/directory/MSG_READ",
        "delete": "DELETE /api/directory/MSG_READ",
        "invoke": "POST /api/dispatch {\"key\":\"MSG_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MSG_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MSG_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MSG_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MSG_READ"
    },
    {
      "key": "MSG_ROOMS",
      "type": "flow",
      "category": null,
      "doc": "WHAT: List every conversation room on the unified bus (bridged chats appear as rooms). ARGS: none. EX: [MSG_ROOMS][/MSG_ROOMS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MSG_ROOMS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MSG_ROOMS",
        "type": "flow",
        "what": [
          "WHAT: List every conversation room on the unified bus (bridged chats appear as rooms). ARGS: none. EX: [MSG_ROOMS][/MSG_ROOMS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[MSG_ROOMS][/MSG_ROOMS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MSG_ROOMS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MSG_ROOMS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MSG_ROOMS",
        "update": "PUT /api/directory/MSG_ROOMS",
        "patch": "PATCH /api/directory/MSG_ROOMS",
        "delete": "DELETE /api/directory/MSG_ROOMS",
        "invoke": "POST /api/dispatch {\"key\":\"MSG_ROOMS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MSG_ROOMS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MSG_ROOMS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MSG_ROOMS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MSG_ROOMS"
    },
    {
      "key": "MSG_SEND",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Send a message on any bridged network (whatsapp/signal/telegram/slack/discord). ARGS: $1=room_id OR contact name/phone, $2=text. EX: [MSG_SEND]Noor|on my way[/MSG_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MSG_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MSG_SEND",
        "type": "flow",
        "what": [
          "WHAT: Send a message on any bridged network (whatsapp/signal/telegram/slack/discord). ARGS: $1=room_id OR contact name/phone, $2=text. EX: [MSG_SEND]Noor|on my way[/MSG_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Noor",
            "desc": "room_id OR contact name/phone, $2=text. EX: [MSG_SEND]Noor|on my way[/MSG_SEND]",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "on my way",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[MSG_SEND]Noor|on my way[/MSG_SEND]",
        "tag": "[MSG_SEND]<Noor>|<on my way>[/MSG_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MSG_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MSG_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MSG_SEND",
        "update": "PUT /api/directory/MSG_SEND",
        "patch": "PATCH /api/directory/MSG_SEND",
        "delete": "DELETE /api/directory/MSG_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"MSG_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MSG_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MSG_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MSG_SEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MSG_SEND"
    },
    {
      "key": "MSG_STATUS",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Unified-messenger bus status (Matrix homeserver, account, room count). Covers WhatsApp/Signal/Telegram/Slack/Discord via mautrix bridges once paired. ARGS: none. EX: [MSG_STATUS][/MSG_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "MSG_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "MSG_STATUS",
        "type": "flow",
        "what": [
          "WHAT: Unified-messenger bus status (Matrix homeserver, account, room count). Covers WhatsApp/Signal/Telegram/Slack/Discord via mautrix bridges once paired. ARGS: none. EX: [MSG_STATUS][/MSG_STATUS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[MSG_STATUS][/MSG_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"MSG_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/MSG_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/MSG_STATUS",
        "update": "PUT /api/directory/MSG_STATUS",
        "patch": "PATCH /api/directory/MSG_STATUS",
        "delete": "DELETE /api/directory/MSG_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"MSG_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"MSG_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"MSG_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/MSG_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=MSG_STATUS"
    },
    {
      "key": "NEXT_ACTS",
      "type": "fn",
      "category": "content",
      "doc": "WHAT: The ranked \"what should be written next\" queue, derived live from the graph — write (missing wikilinked pages), resolve (challenged claims), source (unsourced claims), revise (stale hubs), connect (orphans), respond (unread replies), outreach (quiet high-fit classes). WHY: The loop driver — content, outreach, and repair come from one derivation, so every act compounds the same graph instead of publishing into a void. WHEN_TO_USE: at the start of any content/outreach session, on cron, when asked \"what next\". ARGS: optional limit (default 10, max 50) EX: [NEXT_ACTS][/NEXT_ACTS]  or  [NEXT_ACTS]20[/NEXT_ACTS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NEXT_ACTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NEXT_ACTS",
        "type": "fn",
        "what": [
          "WHAT: The ranked \"what should be written next\" queue, derived live from the graph — write (missing wikilinked pages), resolve (challenged claims), source (unsourced claims), revise (stale hubs), connect (orphans), respond (unread replies), outreach (quiet high-fit classes).",
          "WHY: The loop driver — content, outreach, and repair come from one derivation, so every act compounds the same graph instead of publishing into a void.",
          "WHEN_TO_USE: at the start of any content/outreach session, on cron, when asked \"what next\".",
          "ARGS: optional limit (default 10, max 50)",
          "EX: [NEXT_ACTS][/NEXT_ACTS]  or  [NEXT_ACTS]20[/NEXT_ACTS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[NEXT_ACTS][/NEXT_ACTS]  or  [NEXT_ACTS]20[/NEXT_ACTS]",
        "tag": "[NEXT_ACTS]<arg1>[/NEXT_ACTS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NEXT_ACTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NEXT_ACTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/NEXT_ACTS",
        "update": "PUT /api/directory/NEXT_ACTS",
        "patch": "PATCH /api/directory/NEXT_ACTS",
        "delete": "DELETE /api/directory/NEXT_ACTS",
        "invoke": "POST /api/dispatch {\"key\":\"NEXT_ACTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NEXT_ACTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NEXT_ACTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NEXT_ACTS"
      },
      "examples": "[\"[/NEXT_ACTS]  or  [NEXT_ACTS]20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NEXT_ACTS"
    },
    {
      "key": "NODE_RECORD",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: This node's record: its signing key (public half), domain, agent id, subscribed governance facets and the kernel hash it accepted. record writes it (owner), read returns it. WHEN_TO_USE: a federation peer or a reader asks who this node is and which facets it honours. ARGS: read, or record|facets(csv)|note EX: [NODE_RECORD]read[/NODE_RECORD] TESTS: read returns the record or NODE_RECORD_MISSING; record needs the owner and the home signing key.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NODE_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NODE_RECORD",
        "type": "fn",
        "what": [
          "WHAT: This node's record: its signing key (public half), domain, agent id, subscribed governance facets and the kernel hash it accepted. record writes it (owner), read returns it.",
          "WHEN_TO_USE: a federation peer or a reader asks who this node is and which facets it honours.",
          "ARGS: read, or record|facets(csv)|note",
          "EX: [NODE_RECORD]read[/NODE_RECORD]",
          "TESTS: read returns the record or NODE_RECORD_MISSING; record needs the owner and the home signing key."
        ],
        "args": [
          {
            "pos": 1,
            "name": "read",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "it.",
        "example": "[NODE_RECORD]read[/NODE_RECORD]",
        "tag": "[NODE_RECORD]<read …>[/NODE_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NODE_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NODE_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/NODE_RECORD",
        "update": "PUT /api/directory/NODE_RECORD",
        "patch": "PATCH /api/directory/NODE_RECORD",
        "delete": "DELETE /api/directory/NODE_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"NODE_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NODE_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NODE_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NODE_RECORD"
      },
      "examples": "[\"read\", \"record|execution-receipts,capability-authority,repair-lineage,federated-messages|first record\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NODE_RECORD"
    },
    {
      "key": "NORMANDY_ASSIGNMENT",
      "type": "http",
      "category": "audit",
      "doc": "WHAT: Read one reserved outside-model contribution slot: current graph snapshot, named comparison target, shared axis, already-stored limits, additive slots, and the existing voxel-batch write lane.\\n# ARGS: $1=assignment id from a minted build-audit DROP.\\n# EX: [NORMANDY_ASSIGNMENT]norm-abc123[/NORMANDY_ASSIGNMENT]\\n[\"$1\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NORMANDY_ASSIGNMENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NORMANDY_ASSIGNMENT",
        "type": "http",
        "what": [
          "WHAT: Read one reserved outside-model contribution slot: current graph snapshot, named comparison target, shared axis, already-stored limits, additive slots, and the existing voxel-batch write lane.\\n# ARGS: $1=assignment id from a minted build-audit DROP.\\n# EX: [NORMANDY_ASSIGNMENT]norm-abc123[/NORMANDY_ASSIGNMENT]\\n[\"$1\"]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "norm-abc123",
            "desc": "assignment id from a minted build-audit DROP.\\n# EX: [NORMANDY_ASSIGNMENT]norm-abc123[/NORMANDY_ASSIGNMENT]\\n[\"$1\"]",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[NORMANDY_ASSIGNMENT]norm-abc123[/NORMANDY_ASSIGNMENT]",
        "tag": "[NORMANDY_ASSIGNMENT]<norm-abc123>[/NORMANDY_ASSIGNMENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NORMANDY_ASSIGNMENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NORMANDY_ASSIGNMENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/NORMANDY_ASSIGNMENT",
        "update": "PUT /api/directory/NORMANDY_ASSIGNMENT",
        "patch": "PATCH /api/directory/NORMANDY_ASSIGNMENT",
        "delete": "DELETE /api/directory/NORMANDY_ASSIGNMENT",
        "invoke": "POST /api/dispatch {\"key\":\"NORMANDY_ASSIGNMENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NORMANDY_ASSIGNMENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NORMANDY_ASSIGNMENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NORMANDY_ASSIGNMENT"
      },
      "examples": "[\"norm-abc123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NORMANDY_ASSIGNMENT"
    },
    {
      "key": "NOTIFY_OWNER",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Text the owner (the owner) a message — the \"background daemon pings you when it needs a decision\" primitive. Automations and event hooks call this to ask a question or report. WHEN_TO_USE: the AI needs the owner's input or wants to surface something — \"tell the owner\", \"ask the owner\", \"ping me when X\". ARGS: message EX: [NOTIFY_OWNER]A customer asked something I have no automation for — how do you want me to reply?[/NOTIFY_OWNER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NOTIFY_OWNER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NOTIFY_OWNER",
        "type": "fn",
        "what": [
          "WHAT: Text the owner (the owner) a message — the \"background daemon pings you when it needs a decision\" primitive. Automations and event hooks call this to ask a question or report.",
          "WHEN_TO_USE: the AI needs the owner's input or wants to surface something — \"tell the owner\", \"ask the owner\", \"ping me when X\".",
          "ARGS: message",
          "EX: [NOTIFY_OWNER]A customer asked something I have no automation for — how do you want me to reply?[/NOTIFY_OWNER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "A customer asked something I have no automation for — how do you want me to reply?",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[NOTIFY_OWNER]A customer asked something I have no automation for — how do you want me to reply?[/NOTIFY_OWNER]",
        "tag": "[NOTIFY_OWNER]<A customer asked something I have no automation for — how do you want me to reply? …>[/NOTIFY_OWNER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NOTIFY_OWNER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NOTIFY_OWNER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"blooio\",\"redacted\",\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/NOTIFY_OWNER",
        "update": "PUT /api/directory/NOTIFY_OWNER",
        "patch": "PATCH /api/directory/NOTIFY_OWNER",
        "delete": "DELETE /api/directory/NOTIFY_OWNER",
        "invoke": "POST /api/dispatch {\"key\":\"NOTIFY_OWNER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NOTIFY_OWNER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NOTIFY_OWNER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NOTIFY_OWNER"
      },
      "examples": "[\"must not deliver\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NOTIFY_OWNER"
    },
    {
      "key": "NOW",
      "type": "fn",
      "category": "time",
      "doc": "Return the current time from the build clock in Pacific time (America/Los_Angeles). WHEN_TO_USE: any object or model that needs the current date or time. ARGS: none EX: [NOW][/NOW] OUTPUT: { now, today, time, zone, iso } — Pacific-offset ISO; today is the Pacific calendar date.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NOW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NOW",
        "type": "fn",
        "what": [
          "Return the current time from the build clock in Pacific time (America/Los_Angeles).",
          "WHEN_TO_USE: any object or model that needs the current date or time.",
          "ARGS: none",
          "EX: [NOW][/NOW]",
          "OUTPUT: { now, today, time, zone, iso } — Pacific-offset ISO; today is the Pacific calendar date."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the current time from the build clock in Pacific time (America/Los_Angeles).",
        "example": "[NOW][/NOW]",
        "tag": "[NOW][/NOW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NOW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NOW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/NOW",
        "update": "PUT /api/directory/NOW",
        "patch": "PATCH /api/directory/NOW",
        "delete": "DELETE /api/directory/NOW",
        "invoke": "POST /api/dispatch {\"key\":\"NOW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NOW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NOW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NOW"
      },
      "examples": "[\"c23-before\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NOW"
    },
    {
      "key": "NPM",
      "type": "http",
      "category": "npm",
      "doc": "WHAT: Run any npm command on the Mac bridge. Args: command + args (e.g. \"install --save-dev typescript\" or \"audit --fix\"). WHEN_TO_USE: package management, dependency install, npm audit, npm publish, npm run, etc. ARGS: command + args EX: [NPM]install --save-dev typescript[/NPM]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "NPM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "NPM",
        "type": "http",
        "what": [
          "WHAT: Run any npm command on the Mac bridge. Args: command + args (e.g. \"install --save-dev typescript\" or \"audit --fix\").",
          "WHEN_TO_USE: package management, dependency install, npm audit, npm publish, npm run, etc.",
          "ARGS: command + args",
          "EX: [NPM]install --save-dev typescript[/NPM]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "install --save-dev typescript",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[NPM]install --save-dev typescript[/NPM]",
        "tag": "[NPM]<install --save-dev typescript …>[/NPM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"NPM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/NPM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"cd /Users/the owner/miscsubjects-pages && npm $1+\"],\"timeout\":300000}",
      "edit": {
        "read": "GET /api/directory/NPM",
        "update": "PUT /api/directory/NPM",
        "patch": "PATCH /api/directory/NPM",
        "delete": "DELETE /api/directory/NPM",
        "invoke": "POST /api/dispatch {\"key\":\"NPM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"NPM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"NPM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/NPM"
      },
      "examples": "[\"install --save-dev typescript\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=NPM"
    },
    {
      "key": "OBJECTION_JUDGE_V1",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECTION_JUDGE_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECTION_JUDGE_V1",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[OBJECTION_JUDGE_V1][/OBJECTION_JUDGE_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECTION_JUDGE_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECTION_JUDGE_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OBJECTION_JUDGE_V1",
        "update": "PUT /api/directory/OBJECTION_JUDGE_V1",
        "patch": "PATCH /api/directory/OBJECTION_JUDGE_V1",
        "delete": "DELETE /api/directory/OBJECTION_JUDGE_V1",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECTION_JUDGE_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECTION_JUDGE_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECTION_JUDGE_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECTION_JUDGE_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECTION_JUDGE_V1"
    },
    {
      "key": "OBJECTION_LOG",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: File an objection, confirm a duplicate, settle an exact objection, or append a repair without erasing the original. ARGS: one JSON object. New: {slug,body,claimed_model,target_div?,stance?}. Duplicate confirmation: add duplicate_of:\"obj-N\". Repair/answer lane: add repairs:\"obj-N\" (or answer_of), body describing the correction and answer or stance:\"upgrade\". The repair bypasses similarity rejection, preserves the original, and appends linked discourse. LEGACY: the old slug|objection|answer|model shape remains accepted by the runner, but structured JSON is canonical because prose may contain pipes. TESTS: Pipe characters survive structured ingress; duplicate confirmations increment the canonical counter; repairs require an existing same-slug target and return a distinct repair discourse link.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECTION_LOG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECTION_LOG",
        "type": "fn",
        "what": [
          "WHAT: File an objection, confirm a duplicate, settle an exact objection, or append a repair without erasing the original.",
          "ARGS: one JSON object. New: {slug,body,claimed_model,target_div?,stance?}. Duplicate confirmation: add duplicate_of:\"obj-N\". Repair/answer lane: add repairs:\"obj-N\" (or answer_of), body describing the correction and answer or stance:\"upgrade\". The repair bypasses similarity rejection, preserves the original, and appends linked discourse.",
          "LEGACY: the old slug|objection|answer|model shape remains accepted by the runner, but structured JSON is canonical because prose may contain pipes.",
          "TESTS: Pipe characters survive structured ingress; duplicate confirmations increment the canonical counter; repairs require an existing same-slug target and return a distinct repair discourse link."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a distinct repair discourse link.",
        "example": "[OBJECTION_LOG]arg1[/OBJECTION_LOG]",
        "tag": "[OBJECTION_LOG]<arg1 …>[/OBJECTION_LOG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECTION_LOG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECTION_LOG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/OBJECTION_LOG",
        "update": "PUT /api/directory/OBJECTION_LOG",
        "patch": "PATCH /api/directory/OBJECTION_LOG",
        "delete": "DELETE /api/directory/OBJECTION_LOG",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECTION_LOG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECTION_LOG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECTION_LOG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECTION_LOG"
      },
      "examples": "[{\"slug\":\"oip-total-structure\",\"body\":\"The correction preserves a | pipe.\",\"repairs\":\"obj-154\",\"answer\":\"Corrected answer.\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECTION_LOG"
    },
    {
      "key": "OBJECT_CHANGESET",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Atomic multi-file mutation. All paths apply or none do. Whole composed state is tested before write. STALE after 5 retries becomes ESCALATE. WHEN_TO_USE: any change that touches more than one path, or any change that must be accepted as a unit. ARGS: $1 = task_id | $2 = JSON {changes:[{path,base_hash,mutation}]} | $3 = retry_count EX: [OBJECT_CHANGESET]WT-1|{\"changes\":[{\"path\":\"a.js\",\"base_hash\":\"<h>\",\"mutation\":{\"content\":\"x\"}}]}|0[/OBJECT_CHANGESET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_CHANGESET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_CHANGESET",
        "type": "fn",
        "what": [
          "WHAT: Atomic multi-file mutation. All paths apply or none do. Whole composed state is tested before write. STALE after 5 retries becomes ESCALATE.",
          "WHEN_TO_USE: any change that touches more than one path, or any change that must be accepted as a unit.",
          "ARGS: $1 = task_id | $2 = JSON {changes:[{path,base_hash,mutation}]} | $3 = retry_count",
          "EX: [OBJECT_CHANGESET]WT-1|{\"changes\":[{\"path\":\"a.js\",\"base_hash\":\"<h>\",\"mutation\":{\"content\":\"x\"}}]}|0[/OBJECT_CHANGESET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "task_id | $2 = JSON {changes:[{path,base_hash,mutation}]} | $3 = retry_count",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OBJECT_CHANGESET]WT-1|{\"changes\":[{\"path\":\"a.js\",\"base_hash\":\"<h>\",\"mutation\":{\"content\":\"x\"}}]}|0[/OBJECT_CHANGESET]",
        "tag": "[OBJECT_CHANGESET]<arg1>|<arg2>|<arg3>[/OBJECT_CHANGESET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_CHANGESET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_CHANGESET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/OBJECT_CHANGESET",
        "update": "PUT /api/directory/OBJECT_CHANGESET",
        "patch": "PATCH /api/directory/OBJECT_CHANGESET",
        "delete": "DELETE /api/directory/OBJECT_CHANGESET",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_CHANGESET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_CHANGESET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_CHANGESET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_CHANGESET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_CHANGESET"
    },
    {
      "key": "OBJECT_DESCRIBE",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: Describe a provider object row (STRIPE_CUSTOMER, GITHUB_ISSUE, …): provider, object, id prefix, the rows that read/list/create/change it, the fields a flow predicate may read. WHEN_TO_USE: a model wants the shape of an external object before acting on it. ARGS: $1 = object row key EX: [OBJECT_DESCRIBE]STRIPE_CUSTOMER[/OBJECT_DESCRIBE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_DESCRIBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_DESCRIBE",
        "type": "fn",
        "what": [
          "WHAT: Describe a provider object row (STRIPE_CUSTOMER, GITHUB_ISSUE, …): provider, object, id prefix, the rows that read/list/create/change it, the fields a flow predicate may read.",
          "WHEN_TO_USE: a model wants the shape of an external object before acting on it.",
          "ARGS: $1 = object row key",
          "EX: [OBJECT_DESCRIBE]STRIPE_CUSTOMER[/OBJECT_DESCRIBE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "STRIPE_CUSTOMER",
            "desc": "object row key",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OBJECT_DESCRIBE]STRIPE_CUSTOMER[/OBJECT_DESCRIBE]",
        "tag": "[OBJECT_DESCRIBE]<STRIPE_CUSTOMER>[/OBJECT_DESCRIBE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_DESCRIBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_DESCRIBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OBJECT_DESCRIBE",
        "update": "PUT /api/directory/OBJECT_DESCRIBE",
        "patch": "PATCH /api/directory/OBJECT_DESCRIBE",
        "delete": "DELETE /api/directory/OBJECT_DESCRIBE",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_DESCRIBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_DESCRIBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_DESCRIBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_DESCRIBE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_DESCRIBE"
    },
    {
      "key": "OBJECT_FIELDS",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: The field contract of one object type: every field with its stable id (<object>.<field>), type, min, max, default, provenance, display order and whether it may be written. WHEN_TO_USE: before editing anything; to learn what a table or settings group contains; \"what can I change here\". ARGS: $1 = object type (directory, settings, automations, hooks, watch_rules, connections, work_tasks, events, …) EX: [OBJECT_FIELDS]settings[/OBJECT_FIELDS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_FIELDS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_FIELDS",
        "type": "http",
        "what": [
          "WHAT: The field contract of one object type: every field with its stable id (<object>.<field>), type, min, max, default, provenance, display order and whether it may be written.",
          "WHEN_TO_USE: before editing anything; to learn what a table or settings group contains; \"what can I change here\".",
          "ARGS: $1 = object type (directory, settings, automations, hooks, watch_rules, connections, work_tasks, events, …)",
          "EX: [OBJECT_FIELDS]settings[/OBJECT_FIELDS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "settings",
            "desc": "object type (directory, settings, automations, hooks, watch_rules, connections, work_tasks, events, …)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OBJECT_FIELDS]settings[/OBJECT_FIELDS]",
        "tag": "[OBJECT_FIELDS]<settings>[/OBJECT_FIELDS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_FIELDS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_FIELDS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OBJECT_FIELDS",
        "update": "PUT /api/directory/OBJECT_FIELDS",
        "patch": "PATCH /api/directory/OBJECT_FIELDS",
        "delete": "DELETE /api/directory/OBJECT_FIELDS",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_FIELDS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_FIELDS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_FIELDS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_FIELDS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_FIELDS"
    },
    {
      "key": "OBJECT_GET",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: The cells of one object instance: every field id with its current value. WHEN_TO_USE: read one directory row, one setting, one automation, one hook by its key or id. ARGS: $1 = object type, $2 = ref (primary key) EX: [OBJECT_GET]directory|NOW[/OBJECT_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_GET",
        "type": "http",
        "what": [
          "WHAT: The cells of one object instance: every field id with its current value.",
          "WHEN_TO_USE: read one directory row, one setting, one automation, one hook by its key or id.",
          "ARGS: $1 = object type, $2 = ref (primary key)",
          "EX: [OBJECT_GET]directory|NOW[/OBJECT_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "directory",
            "desc": "object type, $2 = ref (primary key)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "NOW",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OBJECT_GET]directory|NOW[/OBJECT_GET]",
        "tag": "[OBJECT_GET]<directory>|<NOW>[/OBJECT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OBJECT_GET",
        "update": "PUT /api/directory/OBJECT_GET",
        "patch": "PATCH /api/directory/OBJECT_GET",
        "delete": "DELETE /api/directory/OBJECT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_GET"
    },
    {
      "key": "OBJECT_MUTATE",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Compare-and-swap a mutable object. If base_hash equals current_hash, apply and return the new hash. If not, return STALE with current_hash and current_content. Retry immediately. Do not wait. Do not lock. WHEN_TO_USE: after OBJECT_READ, to submit a mutation against the hash you read. ARGS: $1 = task_id | $2 = path | $3 = base_hash | $4+ = mutation JSON {content} or {old_string,new_string} EX: [OBJECT_MUTATE]WT-1|functions/a.js|<hash>|{\"content\":\"ok\"}[/OBJECT_MUTATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_MUTATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_MUTATE",
        "type": "fn",
        "what": [
          "WHAT: Compare-and-swap a mutable object. If base_hash equals current_hash, apply and return the new hash. If not, return STALE with current_hash and current_content. Retry immediately. Do not wait. Do not lock.",
          "WHEN_TO_USE: after OBJECT_READ, to submit a mutation against the hash you read.",
          "ARGS: $1 = task_id | $2 = path | $3 = base_hash | $4+ = mutation JSON {content} or {old_string,new_string}",
          "EX: [OBJECT_MUTATE]WT-1|functions/a.js|<hash>|{\"content\":\"ok\"}[/OBJECT_MUTATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "WT-1",
            "desc": "task_id | $2 = path | $3 = base_hash | $4+ = mutation JSON {content} or {old_string,new_string}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "functions/a.js",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "hash",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "{\"content\":\"ok\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the new hash. If not, return STALE with current_hash and current_content. Retry immediately. Do not wait. Do not lock.",
        "example": "[OBJECT_MUTATE]WT-1|functions/a.js|<hash>|{\"content\":\"ok\"}[/OBJECT_MUTATE]",
        "tag": "[OBJECT_MUTATE]<WT-1>|<functions/a.js>|<hash>|<{\"content\":\"ok\"} …>[/OBJECT_MUTATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_MUTATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_MUTATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4+\"]",
      "edit": {
        "read": "GET /api/directory/OBJECT_MUTATE",
        "update": "PUT /api/directory/OBJECT_MUTATE",
        "patch": "PATCH /api/directory/OBJECT_MUTATE",
        "delete": "DELETE /api/directory/OBJECT_MUTATE",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_MUTATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_MUTATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_MUTATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_MUTATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_MUTATE"
    },
    {
      "key": "OBJECT_READ",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Read a mutable object and its current_hash. The hash is the concurrency primitive. WHEN_TO_USE: before changing a file or object. You receive content and current_hash. There is no lock. ARGS: $1 = path EX: [OBJECT_READ]functions/_lib/object_mutate.js[/OBJECT_READ]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_READ",
        "type": "fn",
        "what": [
          "WHAT: Read a mutable object and its current_hash. The hash is the concurrency primitive.",
          "WHEN_TO_USE: before changing a file or object. You receive content and current_hash. There is no lock.",
          "ARGS: $1 = path",
          "EX: [OBJECT_READ]functions/_lib/object_mutate.js[/OBJECT_READ]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "functions/_lib/object_mutate.js",
            "desc": "path",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OBJECT_READ]functions/_lib/object_mutate.js[/OBJECT_READ]",
        "tag": "[OBJECT_READ]<functions/_lib/object_mutate.js>[/OBJECT_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OBJECT_READ",
        "update": "PUT /api/directory/OBJECT_READ",
        "patch": "PATCH /api/directory/OBJECT_READ",
        "delete": "DELETE /api/directory/OBJECT_READ",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_READ"
    },
    {
      "key": "OBJECT_SET",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: Change one cell. Routes to the governed write path for that object (directory PATCH, settings dual-write, automation toggle, hooks PATCH, watch_rules update); versioned and receipted; refused when the field is not writable. WHEN_TO_USE: \"set X to Y\", \"turn this automation off\", \"raise this limit to 500\" — anything that is a cell. ARGS: $1 = object type, $2 = ref, $3 = field id, $4 = value EX: [OBJECT_SET]settings|resolve.plan_ref_ttl_s|value|1200[/OBJECT_SET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBJECT_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBJECT_SET",
        "type": "http",
        "what": [
          "WHAT: Change one cell. Routes to the governed write path for that object (directory PATCH, settings dual-write, automation toggle, hooks PATCH, watch_rules update); versioned and receipted; refused when the field is not writable.",
          "WHEN_TO_USE: \"set X to Y\", \"turn this automation off\", \"raise this limit to 500\" — anything that is a cell.",
          "ARGS: $1 = object type, $2 = ref, $3 = field id, $4 = value",
          "EX: [OBJECT_SET]settings|resolve.plan_ref_ttl_s|value|1200[/OBJECT_SET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "settings",
            "desc": "object type, $2 = ref, $3 = field id, $4 = value",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "resolve.plan_ref_ttl_s",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "value",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "1200",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OBJECT_SET]settings|resolve.plan_ref_ttl_s|value|1200[/OBJECT_SET]",
        "tag": "[OBJECT_SET]<settings>|<resolve.plan_ref_ttl_s>|<value>|<1200>[/OBJECT_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBJECT_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBJECT_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"field\":\"$3\",\"value\":\"$4\"}",
      "edit": {
        "read": "GET /api/directory/OBJECT_SET",
        "update": "PUT /api/directory/OBJECT_SET",
        "patch": "PATCH /api/directory/OBJECT_SET",
        "delete": "DELETE /api/directory/OBJECT_SET",
        "invoke": "POST /api/dispatch {\"key\":\"OBJECT_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBJECT_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBJECT_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBJECT_SET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OBJECT_SET"
    },
    {
      "key": "OBSIDIAN_PULL",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Pull Obsidian vault export to local folder (via LOCAL_EXEC). ARGS: optional slugs comma-separated EX: [OBSIDIAN_PULL]protocol,bpc-157[/OBSIDIAN_PULL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OBSIDIAN_PULL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OBSIDIAN_PULL",
        "type": "fn",
        "what": [
          "WHAT: Pull Obsidian vault export to local folder (via LOCAL_EXEC).",
          "ARGS: optional slugs comma-separated",
          "EX: [OBSIDIAN_PULL]protocol,bpc-157[/OBSIDIAN_PULL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "protocol,bpc-157",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OBSIDIAN_PULL]protocol,bpc-157[/OBSIDIAN_PULL]",
        "tag": "[OBSIDIAN_PULL]<protocol,bpc-157>[/OBSIDIAN_PULL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OBSIDIAN_PULL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OBSIDIAN_PULL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OBSIDIAN_PULL",
        "update": "PUT /api/directory/OBSIDIAN_PULL",
        "patch": "PATCH /api/directory/OBSIDIAN_PULL",
        "delete": "DELETE /api/directory/OBSIDIAN_PULL",
        "invoke": "POST /api/dispatch {\"key\":\"OBSIDIAN_PULL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OBSIDIAN_PULL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OBSIDIAN_PULL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OBSIDIAN_PULL"
      },
      "examples": "[\"protocol,bpc-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OBSIDIAN_PULL"
    },
    {
      "key": "OFFERS_RANK",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Rank the open offers on a solicitation into a set under the buyer's trust policy: best verified, cheapest acceptable, fastest acceptable, and the offers excluded by the policy. Never one winner; payment never moves an offer into the trusted set. WHEN_TO_USE: the buyer's AI compares offers. ARGS: solicitation_id EX: [OFFERS_RANK]sol_abc[/OFFERS_RANK] TESTS: Returns the set and every offer's evidence counts, disputes, completed agreements and counterparties.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OFFERS_RANK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OFFERS_RANK",
        "type": "fn",
        "what": [
          "WHAT: Rank the open offers on a solicitation into a set under the buyer's trust policy: best verified, cheapest acceptable, fastest acceptable, and the offers excluded by the policy. Never one winner; payment never moves an offer into the trusted set.",
          "WHEN_TO_USE: the buyer's AI compares offers.",
          "ARGS: solicitation_id",
          "EX: [OFFERS_RANK]sol_abc[/OFFERS_RANK]",
          "TESTS: Returns the set and every offer's evidence counts, disputes, completed agreements and counterparties."
        ],
        "args": [
          {
            "pos": 1,
            "name": "sol_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the set and every offer's evidence counts, disputes, completed agreements and counterparties.",
        "example": "[OFFERS_RANK]sol_abc[/OFFERS_RANK]",
        "tag": "[OFFERS_RANK]<sol_abc …>[/OFFERS_RANK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OFFERS_RANK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OFFERS_RANK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/OFFERS_RANK",
        "update": "PUT /api/directory/OFFERS_RANK",
        "patch": "PATCH /api/directory/OFFERS_RANK",
        "delete": "DELETE /api/directory/OFFERS_RANK",
        "invoke": "POST /api/dispatch {\"key\":\"OFFERS_RANK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OFFERS_RANK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OFFERS_RANK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OFFERS_RANK"
      },
      "examples": "[\"sol_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OFFERS_RANK"
    },
    {
      "key": "OFFER_NEW",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: A provider answers a solicitation: scope, method, price, timing, evidence promised, and whether the work is human, AI or hybrid, with the grade of authority behind the offer. WHEN_TO_USE: a provider or their AI bids on a solicitation. ARGS: solicitation_id|provider|scope|method|price_usd|timing|evidence_promised|composition(human/ai/hybrid)|authority_grade EX: [OFFER_NEW]sol_abc|prf_provider|pull and rank the ads|manual review|15|1 day|receipts|hybrid|agent-inferred[/OFFER_NEW] TESTS: Returns offer_id and expiry; a missing composition is refused COMPOSITION_REQUIRED.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OFFER_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OFFER_NEW",
        "type": "fn",
        "what": [
          "WHAT: A provider answers a solicitation: scope, method, price, timing, evidence promised, and whether the work is human, AI or hybrid, with the grade of authority behind the offer.",
          "WHEN_TO_USE: a provider or their AI bids on a solicitation.",
          "ARGS: solicitation_id|provider|scope|method|price_usd|timing|evidence_promised|composition(human/ai/hybrid)|authority_grade",
          "EX: [OFFER_NEW]sol_abc|prf_provider|pull and rank the ads|manual review|15|1 day|receipts|hybrid|agent-inferred[/OFFER_NEW]",
          "TESTS: Returns offer_id and expiry; a missing composition is refused COMPOSITION_REQUIRED."
        ],
        "args": [
          {
            "pos": 1,
            "name": "sol_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "offer_id and expiry; a missing composition is refused COMPOSITION_REQUIRED.",
        "example": "[OFFER_NEW]sol_abc|prf_provider|pull and rank the ads|manual review|15|1 day|receipts|hybrid|agent-inferred[/OFFER_NEW]",
        "tag": "[OFFER_NEW]<sol_abc …>[/OFFER_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OFFER_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OFFER_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/OFFER_NEW",
        "update": "PUT /api/directory/OFFER_NEW",
        "patch": "PATCH /api/directory/OFFER_NEW",
        "delete": "DELETE /api/directory/OFFER_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"OFFER_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OFFER_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OFFER_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OFFER_NEW"
      },
      "examples": "[\"sol_abc|prf_provider|pull and rank the ads|manual review|15|1 day|receipts|hybrid|agent-inferred\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OFFER_NEW"
    },
    {
      "key": "OIP_ARTICLE_REVIEW",
      "type": "fn",
      "category": "protocol",
      "doc": "WHAT: Run one OIP article loop tick. Claims the next tasks.source=oip-review row and routes it: oip-review scores machine JSON clarity + English clarity with a fresh model; oip-write has a model write a missing OIP article; oip-revise has a model rewrite a failing article as a new append-only version. Every step lands in the ledger. WHEN_TO_USE: cron or manual trigger to advance the recursive OIP documentation loop one step. ARGS: none EX: [OIP_ARTICLE_REVIEW][/OIP_ARTICLE_REVIEW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_ARTICLE_REVIEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_ARTICLE_REVIEW",
        "type": "fn",
        "what": [
          "WHAT: Run one OIP article loop tick. Claims the next tasks.source=oip-review row and routes it: oip-review scores machine JSON clarity + English clarity with a fresh model; oip-write has a model write a missing OIP article; oip-revise has a model rewrite a failing article as a new append-only version. Every step lands in the ledger.",
          "WHEN_TO_USE: cron or manual trigger to advance the recursive OIP documentation loop one step.",
          "ARGS: none",
          "EX: [OIP_ARTICLE_REVIEW][/OIP_ARTICLE_REVIEW]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_ARTICLE_REVIEW][/OIP_ARTICLE_REVIEW]",
        "tag": "[OIP_ARTICLE_REVIEW][/OIP_ARTICLE_REVIEW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_ARTICLE_REVIEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_ARTICLE_REVIEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"oip-review\"]",
      "edit": {
        "read": "GET /api/directory/OIP_ARTICLE_REVIEW",
        "update": "PUT /api/directory/OIP_ARTICLE_REVIEW",
        "patch": "PATCH /api/directory/OIP_ARTICLE_REVIEW",
        "delete": "DELETE /api/directory/OIP_ARTICLE_REVIEW",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_ARTICLE_REVIEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_ARTICLE_REVIEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_ARTICLE_REVIEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_ARTICLE_REVIEW"
      },
      "examples": "[\"oip-spec|8|dense but checkable|kimi-k3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_ARTICLE_REVIEW"
    },
    {
      "key": "OIP_ATOMIZER",
      "type": "agent",
      "category": "content-ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_ATOMIZER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_ATOMIZER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[OIP_ATOMIZER][/OIP_ATOMIZER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_ATOMIZER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_ATOMIZER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OIP_ATOMIZER",
        "update": "PUT /api/directory/OIP_ATOMIZER",
        "patch": "PATCH /api/directory/OIP_ATOMIZER",
        "delete": "DELETE /api/directory/OIP_ATOMIZER",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_ATOMIZER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_ATOMIZER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_ATOMIZER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_ATOMIZER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_ATOMIZER"
    },
    {
      "key": "OIP_ATOMIZE_QUEUE",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Queue schema-conformance passes for published articles that have no atomized claims (oip-*, grain-*, thinker-*, school-*, paper-* by default). Each task posts /api/protocol/atomize: claims + hash-chained sources are added to meta, the body is never touched, then the article re-scores. Brings legacy content flush with the JSON-readable schema. WHEN_TO_USE: \"atomize the OIP corpus\", \"bring the philosophy articles onto the same schema as the health content\". ARGS: $1=limit (default 40), $2=slug prefix csv (default oip-,grain-,thinker-,school-,paper-). EX: [OIP_ATOMIZE_QUEUE]40|oip-,grain-[/OIP_ATOMIZE_QUEUE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_ATOMIZE_QUEUE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_ATOMIZE_QUEUE",
        "type": "fn",
        "what": [
          "WHAT: Queue schema-conformance passes for published articles that have no atomized claims (oip-*, grain-*, thinker-*, school-*, paper-* by default). Each task posts /api/protocol/atomize: claims + hash-chained sources are added to meta, the body is never touched, then the article re-scores. Brings legacy content flush with the JSON-readable schema.",
          "WHEN_TO_USE: \"atomize the OIP corpus\", \"bring the philosophy articles onto the same schema as the health content\".",
          "ARGS: $1=limit (default 40), $2=slug prefix csv (default oip-,grain-,thinker-,school-,paper-).",
          "EX: [OIP_ATOMIZE_QUEUE]40|oip-,grain-[/OIP_ATOMIZE_QUEUE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "40",
            "desc": "limit (default 40), $2=slug prefix csv (default oip-,grain-,thinker-,school-,paper-).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "oip-,grain-",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_ATOMIZE_QUEUE]40|oip-,grain-[/OIP_ATOMIZE_QUEUE]",
        "tag": "[OIP_ATOMIZE_QUEUE]<40>|<oip-,grain->[/OIP_ATOMIZE_QUEUE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_ATOMIZE_QUEUE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_ATOMIZE_QUEUE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/OIP_ATOMIZE_QUEUE",
        "update": "PUT /api/directory/OIP_ATOMIZE_QUEUE",
        "patch": "PATCH /api/directory/OIP_ATOMIZE_QUEUE",
        "delete": "DELETE /api/directory/OIP_ATOMIZE_QUEUE",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_ATOMIZE_QUEUE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_ATOMIZE_QUEUE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_ATOMIZE_QUEUE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_ATOMIZE_QUEUE"
      },
      "examples": "[\"115\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_ATOMIZE_QUEUE"
    },
    {
      "key": "OIP_ENUMERATE",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: P0 inventory loop for the philosophy corpus — Grok (web search on) enumerates every thinker, school, or academic paper material to the OIP/GRAIN synthesis that the pipeline does not already hold, inserts the new items with grounding context, and queues their write tasks. Call repeatedly until it returns none: that is \"ask again until done\". WHEN_TO_USE: \"find every thinker/paper/school\", \"extend the philosophy inventory\", \"keep the corpus seeking all possible content\". ARGS: $1=kind (thinker|school|paper, default thinker), $2=optional focus context. EX: [OIP_ENUMERATE]paper|non-equilibrium thermodynamics[/OIP_ENUMERATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_ENUMERATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_ENUMERATE",
        "type": "fn",
        "what": [
          "WHAT: P0 inventory loop for the philosophy corpus — Grok (web search on) enumerates every thinker, school, or academic paper material to the OIP/GRAIN synthesis that the pipeline does not already hold, inserts the new items with grounding context, and queues their write tasks. Call repeatedly until it returns none: that is \"ask again until done\".",
          "WHEN_TO_USE: \"find every thinker/paper/school\", \"extend the philosophy inventory\", \"keep the corpus seeking all possible content\".",
          "ARGS: $1=kind (thinker|school|paper, default thinker), $2=optional focus context.",
          "EX: [OIP_ENUMERATE]paper|non-equilibrium thermodynamics[/OIP_ENUMERATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "paper",
            "desc": "kind (thinker|school|paper, default thinker), $2=optional focus context.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "non-equilibrium thermodynamics",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "none: that is \"ask again until done\".",
        "example": "[OIP_ENUMERATE]paper|non-equilibrium thermodynamics[/OIP_ENUMERATE]",
        "tag": "[OIP_ENUMERATE]<paper>|<non-equilibrium thermodynamics>[/OIP_ENUMERATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_ENUMERATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_ENUMERATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/OIP_ENUMERATE",
        "update": "PUT /api/directory/OIP_ENUMERATE",
        "patch": "PATCH /api/directory/OIP_ENUMERATE",
        "delete": "DELETE /api/directory/OIP_ENUMERATE",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_ENUMERATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_ENUMERATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_ENUMERATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_ENUMERATE"
      },
      "examples": "[\"paper|non-equilibrium thermodynamics\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_ENUMERATE"
    },
    {
      "key": "OIP_GOVERNANCE",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Subscribe to, inquire about, propose a change to, request a feature from, attest conformance to, anchor a fork into, appeal within, or append an owner ruling to OIP governance one facet at a time. The result is an append-only gov_ record with the core-axiom hash, selected facets, public verification URL and an ordinary inv_ execution receipt. WHEN_TO_USE: A human, model, organization or system wants link provenance, receipts, capabilities, repair, federation, public audition, governance, anchors or the defensive commons without inheriting unrelated OIP obligations. ARGS: One JSON object with kind subscribe|inquire|propose|feature|conformance|anchor|appeal|ruling; actor_type human|model|organization|system; actor_label; authority self|owner-authorized|model-recommendation; mode observe|implement|verify|govern; facets[] from /api/governance; accept_core boolean; message; optional public_contact, private_contact, parent_id and evidence_links[]. Anchor requires external_head SHA-256 + external_verifier HTTPS. Ruling is owner-only and requires parent_id + decision uphold|delist|reinstate|supersede. MODEL_LAW: A model may file kind=inquire|propose|feature with authority=model-recommendation. It cannot subscribe its owner. Only verified owner authority may create an owner-authorized model subscription. SECURITY: Subscription grants no execution authority. Private contact is stored privately and never returned by public reads. Bearer material is rejected. Records append and link; they are never edited through this object. CENSUS: /api/governance exposes non_owner_node_count and non_owner_anchor_count. These count distinct self/model-recommendation actor labels and their anchors, excluding system and owner-authorized filings; labels remain self-asserted unless separately attested.\\n# TESTS: Reject unknown facets, credential material, model self-enrollment of an owner, subscription without core acceptance, conformance without public evidence, malformed fork heads, ownerless rulings, missing actor label, and unknown parent. Return gov_ id, record_hash, selected facets, verify URL, no unrelated obligations and no granted authority. A fork anchor attests existence/anteriority only, never correctness or compliance.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_GOVERNANCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_GOVERNANCE",
        "type": "fn",
        "what": [
          "WHAT: Subscribe to, inquire about, propose a change to, request a feature from, attest conformance to, anchor a fork into, appeal within, or append an owner ruling to OIP governance one facet at a time. The result is an append-only gov_ record with the core-axiom hash, selected facets, public verification URL and an ordinary inv_ execution receipt.",
          "WHEN_TO_USE: A human, model, organization or system wants link provenance, receipts, capabilities, repair, federation, public audition, governance, anchors or the defensive commons without inheriting unrelated OIP obligations.",
          "ARGS: One JSON object with kind subscribe|inquire|propose|feature|conformance|anchor|appeal|ruling; actor_type human|model|organization|system; actor_label; authority self|owner-authorized|model-recommendation; mode observe|implement|verify|govern; facets[] from /api/governance; accept_core boolean; message; optional public_contact, private_contact, parent_id and evidence_links[]. Anchor requires external_head SHA-256 + external_verifier HTTPS. Ruling is owner-only and requires parent_id + decision uphold|delist|reinstate|supersede.",
          "MODEL_LAW: A model may file kind=inquire|propose|feature with authority=model-recommendation. It cannot subscribe its owner. Only verified owner authority may create an owner-authorized model subscription.",
          "SECURITY: Subscription grants no execution authority. Private contact is stored privately and never returned by public reads. Bearer material is rejected. Records append and link; they are never edited through this object.",
          "CENSUS: /api/governance exposes non_owner_node_count and non_owner_anchor_count. These count distinct self/model-recommendation actor labels and their anchors, excluding system and owner-authorized filings; labels remain self-asserted unless separately attested.\\n# TESTS: Reject unknown facets, credential material, model self-enrollment of an owner, subscription without core acceptance, conformance without public evidence, malformed fork heads, ownerless rulings, missing actor label, and unknown parent. Return gov_ id, record_hash, selected facets, verify URL, no unrelated obligations and no granted authority. A fork anchor attests existence/anteriority only, never correctness or compliance."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "gov_ id, record_hash, selected facets, verify URL, no unrelated obligations and no granted authority. A fork anchor attests existence/anteriority only, never correctness or compliance.",
        "example": "[OIP_GOVERNANCE]arg1[/OIP_GOVERNANCE]",
        "tag": "[OIP_GOVERNANCE]<arg1 …>[/OIP_GOVERNANCE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_GOVERNANCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_GOVERNANCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/OIP_GOVERNANCE",
        "update": "PUT /api/directory/OIP_GOVERNANCE",
        "patch": "PATCH /api/directory/OIP_GOVERNANCE",
        "delete": "DELETE /api/directory/OIP_GOVERNANCE",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_GOVERNANCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_GOVERNANCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_GOVERNANCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_GOVERNANCE"
      },
      "examples": "[{\"kind\":\"inquire\",\"actor_type\":\"model\",\"actor_label\":\"ChatGPT Web · GPT-5.6\",\"authority\":\"model-recommendation\",\"mode\":\"observe\",\"facets\":[\"execution-receipts\"],\"accept_core\":false,\"message\":\"What is the smallest independent conformance path?\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_GOVERNANCE"
    },
    {
      "key": "OIP_LOOP_STATUS",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: The philosophy content loop dashboard: inventory counts by kind and status, oip-loop tasks by state, unatomized corpus count, the writer-queue autorun flag, the most recent thinker/school/paper writes, and where the editable system prompts live. WHEN_TO_USE: \"how is the philosophy loop doing\", \"loop status\", \"what has the corpus written\". ARGS: none. EX: [OIP_LOOP_STATUS][/OIP_LOOP_STATUS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_LOOP_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_LOOP_STATUS",
        "type": "fn",
        "what": [
          "WHAT: The philosophy content loop dashboard: inventory counts by kind and status, oip-loop tasks by state, unatomized corpus count, the writer-queue autorun flag, the most recent thinker/school/paper writes, and where the editable system prompts live.",
          "WHEN_TO_USE: \"how is the philosophy loop doing\", \"loop status\", \"what has the corpus written\".",
          "ARGS: none.",
          "EX: [OIP_LOOP_STATUS][/OIP_LOOP_STATUS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_LOOP_STATUS][/OIP_LOOP_STATUS]",
        "tag": "[OIP_LOOP_STATUS]<arg1>[/OIP_LOOP_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_LOOP_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_LOOP_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OIP_LOOP_STATUS",
        "update": "PUT /api/directory/OIP_LOOP_STATUS",
        "patch": "PATCH /api/directory/OIP_LOOP_STATUS",
        "delete": "DELETE /api/directory/OIP_LOOP_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_LOOP_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_LOOP_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_LOOP_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_LOOP_STATUS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_LOOP_STATUS"
    },
    {
      "key": "OIP_PROTOCOL",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: Object Invocation Protocol index — endpoints, schema, invariant loop. WHEN_TO_USE: cold bootstrap for any client; what is OIP and how to invoke objects. ARGS: none EX: [OIP_PROTOCOL][/OIP_PROTOCOL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_PROTOCOL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_PROTOCOL",
        "type": "fn",
        "what": [
          "WHAT: Object Invocation Protocol index — endpoints, schema, invariant loop.",
          "WHEN_TO_USE: cold bootstrap for any client; what is OIP and how to invoke objects.",
          "ARGS: none",
          "EX: [OIP_PROTOCOL][/OIP_PROTOCOL]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_PROTOCOL][/OIP_PROTOCOL]",
        "tag": "[OIP_PROTOCOL][/OIP_PROTOCOL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_PROTOCOL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_PROTOCOL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\" \"]",
      "edit": {
        "read": "GET /api/directory/OIP_PROTOCOL",
        "update": "PUT /api/directory/OIP_PROTOCOL",
        "patch": "PATCH /api/directory/OIP_PROTOCOL",
        "delete": "DELETE /api/directory/OIP_PROTOCOL",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_PROTOCOL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_PROTOCOL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_PROTOCOL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_PROTOCOL"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_PROTOCOL"
    },
    {
      "key": "OIP_PURIFICATION_SEED",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Queue OIP documentation purification under logical-proof-v1. Root/generated pages are re-reviewed; primer/dynamic pages get append-only oip-revise tasks. WHEN_TO_USE: after content rules change or after an editorial-board decision identifies unclear/proofless OIP documentation. ARGS: optional raw JSON {\"slugs\":[\"oip\",\"oip-operating-model\"],\"brief\":\"...\"} EX: [OIP_PURIFICATION_SEED]{\"slugs\":[\"oip\",\"oip-operating-model\"],\"brief\":\"Every claim must be proven by route/object/receipt.\"}[/OIP_PURIFICATION_SEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_PURIFICATION_SEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_PURIFICATION_SEED",
        "type": "http",
        "what": [
          "WHAT: Queue OIP documentation purification under logical-proof-v1. Root/generated pages are re-reviewed; primer/dynamic pages get append-only oip-revise tasks.",
          "WHEN_TO_USE: after content rules change or after an editorial-board decision identifies unclear/proofless OIP documentation.",
          "ARGS: optional raw JSON {\"slugs\":[\"oip\",\"oip-operating-model\"],\"brief\":\"...\"}",
          "EX: [OIP_PURIFICATION_SEED]{\"slugs\":[\"oip\",\"oip-operating-model\"],\"brief\":\"Every claim must be proven by route/object/receipt.\"}[/OIP_PURIFICATION_SEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OIP_PURIFICATION_SEED]{\"slugs\":[\"oip\",\"oip-operating-model\"],\"brief\":\"Every claim must be proven by route/object/receipt.\"}[/OIP_PURIFICATION_SEED]",
        "tag": "[OIP_PURIFICATION_SEED]<arg1 …>[/OIP_PURIFICATION_SEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_PURIFICATION_SEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_PURIFICATION_SEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/OIP_PURIFICATION_SEED",
        "update": "PUT /api/directory/OIP_PURIFICATION_SEED",
        "patch": "PATCH /api/directory/OIP_PURIFICATION_SEED",
        "delete": "DELETE /api/directory/OIP_PURIFICATION_SEED",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_PURIFICATION_SEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_PURIFICATION_SEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_PURIFICATION_SEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_PURIFICATION_SEED"
      },
      "examples": "[\"{\\\"slugs\\\":[\\\"oip\\\",\\\"oip-operating-model\\\"],\\\"brief\\\":\\\"Every claim must be proven by route/object/receipt.\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_PURIFICATION_SEED"
    },
    {
      "key": "OIP_RECEIPT",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Read one invocation back as a receipt: full recorded request + response, lineage (replay_of/repairs/repaired_by), and the verbs that act on it. A receipt is a live replayable object, not history. WHEN_TO_USE: the owner asks \"show the receipt for inv_x\", \"what happened in inv_x\", \"why did that fail\". ARGS: $1 = invocation id (inv_…). EX: [OIP_RECEIPT]inv_wvitbmiym6[/OIP_RECEIPT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_RECEIPT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_RECEIPT",
        "type": "fn",
        "what": [
          "WHAT: Read one invocation back as a receipt: full recorded request + response, lineage (replay_of/repairs/repaired_by), and the verbs that act on it. A receipt is a live replayable object, not history.",
          "WHEN_TO_USE: the owner asks \"show the receipt for inv_x\", \"what happened in inv_x\", \"why did that fail\".",
          "ARGS: $1 = invocation id (inv_…).",
          "EX: [OIP_RECEIPT]inv_wvitbmiym6[/OIP_RECEIPT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "inv_wvitbmiym6",
            "desc": "invocation id (inv_…).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_RECEIPT]inv_wvitbmiym6[/OIP_RECEIPT]",
        "tag": "[OIP_RECEIPT]<inv_wvitbmiym6>[/OIP_RECEIPT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_RECEIPT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_RECEIPT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OIP_RECEIPT",
        "update": "PUT /api/directory/OIP_RECEIPT",
        "patch": "PATCH /api/directory/OIP_RECEIPT",
        "delete": "DELETE /api/directory/OIP_RECEIPT",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_RECEIPT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_RECEIPT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_RECEIPT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_RECEIPT"
      },
      "examples": "[\"inv_wvitbmiym6\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_RECEIPT"
    },
    {
      "key": "OIP_REGISTRY",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: Full OIP object registry from directory rows (type, runner, read/write paths, schemas). WHEN_TO_USE: list invokable objects; category filter optional. ARGS: category (optional) EX: [OIP_REGISTRY][/OIP_REGISTRY] or [OIP_REGISTRY]protocol[/OIP_REGISTRY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_REGISTRY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_REGISTRY",
        "type": "fn",
        "what": [
          "WHAT: Full OIP object registry from directory rows (type, runner, read/write paths, schemas).",
          "WHEN_TO_USE: list invokable objects; category filter optional.",
          "ARGS: category (optional)",
          "EX: [OIP_REGISTRY][/OIP_REGISTRY] or [OIP_REGISTRY]protocol[/OIP_REGISTRY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_REGISTRY][/OIP_REGISTRY] or [OIP_REGISTRY]protocol[/OIP_REGISTRY]",
        "tag": "[OIP_REGISTRY]<arg1>[/OIP_REGISTRY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_REGISTRY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_REGISTRY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OIP_REGISTRY",
        "update": "PUT /api/directory/OIP_REGISTRY",
        "patch": "PATCH /api/directory/OIP_REGISTRY",
        "delete": "DELETE /api/directory/OIP_REGISTRY",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_REGISTRY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_REGISTRY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_REGISTRY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_REGISTRY"
      },
      "examples": "[\"count\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_REGISTRY"
    },
    {
      "key": "OIP_REPAIR",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Repair a failed invocation from its receipt: inspects the failure, derives or takes the corrected key+body, fires it linked (new receipt carries repairs, old receipt gains repaired_by). Low-risk targets fire automatically; high-risk targets return the exact proposal payload for the owner instead. WHEN_TO_USE: the owner says \"repair that failed invocation\", \"fix inv_x with NOW\", \"make that call again but corrected\". ARGS: $1 = failed invocation id, $2 = corrected row key (optional — derived from the failure when omitted), $3+ = corrected body (optional, may contain pipes). EX: [OIP_REPAIR]inv_6ximjestte|NOW|[/OIP_REPAIR]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_REPAIR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_REPAIR",
        "type": "fn",
        "what": [
          "WHAT: Repair a failed invocation from its receipt: inspects the failure, derives or takes the corrected key+body, fires it linked (new receipt carries repairs, old receipt gains repaired_by). Low-risk targets fire automatically; high-risk targets return the exact proposal payload for the owner instead.",
          "WHEN_TO_USE: the owner says \"repair that failed invocation\", \"fix inv_x with NOW\", \"make that call again but corrected\".",
          "ARGS: $1 = failed invocation id, $2 = corrected row key (optional — derived from the failure when omitted), $3+ = corrected body (optional, may contain pipes).",
          "EX: [OIP_REPAIR]inv_6ximjestte|NOW|[/OIP_REPAIR]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "inv_6ximjestte",
            "desc": "failed invocation id, $2 = corrected row key (optional — derived from the failure when omitted), $3+ = corrected body (optional, may contain pipes).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "NOW",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the exact proposal payload for the owner instead.",
        "example": "[OIP_REPAIR]inv_6ximjestte|NOW|[/OIP_REPAIR]",
        "tag": "[OIP_REPAIR]<inv_6ximjestte>|<NOW>|<arg3 …>[/OIP_REPAIR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_REPAIR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_REPAIR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/OIP_REPAIR",
        "update": "PUT /api/directory/OIP_REPAIR",
        "patch": "PATCH /api/directory/OIP_REPAIR",
        "delete": "DELETE /api/directory/OIP_REPAIR",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_REPAIR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_REPAIR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_REPAIR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_REPAIR"
      },
      "examples": "[\"inv_y0gtt4uo9k|NOW|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_REPAIR"
    },
    {
      "key": "OIP_REPLAY",
      "type": "fn",
      "category": "oip",
      "doc": "WHAT: Re-fire a past invocation with its recorded input. New receipt links replay_of to the old one. WHEN_TO_USE: the owner says \"replay that\", \"run inv_x again\", \"re-fire it as it was\". ARGS: $1 = invocation id (inv_…). EX: [OIP_REPLAY]inv_wvitbmiym6[/OIP_REPLAY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_REPLAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_REPLAY",
        "type": "fn",
        "what": [
          "WHAT: Re-fire a past invocation with its recorded input. New receipt links replay_of to the old one.",
          "WHEN_TO_USE: the owner says \"replay that\", \"run inv_x again\", \"re-fire it as it was\".",
          "ARGS: $1 = invocation id (inv_…).",
          "EX: [OIP_REPLAY]inv_wvitbmiym6[/OIP_REPLAY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "inv_wvitbmiym6",
            "desc": "invocation id (inv_…).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_REPLAY]inv_wvitbmiym6[/OIP_REPLAY]",
        "tag": "[OIP_REPLAY]<inv_wvitbmiym6>[/OIP_REPLAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_REPLAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_REPLAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OIP_REPLAY",
        "update": "PUT /api/directory/OIP_REPLAY",
        "patch": "PATCH /api/directory/OIP_REPLAY",
        "delete": "DELETE /api/directory/OIP_REPLAY",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_REPLAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_REPLAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_REPLAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_REPLAY"
      },
      "examples": "[\"inv_wvitbmiym6\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_REPLAY"
    },
    {
      "key": "OIP_REVIEW_SEED",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Queue OIP article clarity review tasks. Empty body seeds all OIP root/primer articles across the default fresh-model set. Raw JSON body may pass {\"slugs\":[\"oip\"],\"models\":[\"grok/grok-4.3\"]}. WHEN_TO_USE: start or refill the recursive OIP article review queue. ARGS: $1+ optional raw JSON body EX: [OIP_REVIEW_SEED]{\"slugs\":[\"oip\"],\"models\":[\"grok/grok-4.3\"]}[/OIP_REVIEW_SEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_REVIEW_SEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_REVIEW_SEED",
        "type": "http",
        "what": [
          "WHAT: Queue OIP article clarity review tasks. Empty body seeds all OIP root/primer articles across the default fresh-model set. Raw JSON body may pass {\"slugs\":[\"oip\"],\"models\":[\"grok/grok-4.3\"]}.",
          "WHEN_TO_USE: start or refill the recursive OIP article review queue.",
          "ARGS: $1+ optional raw JSON body",
          "EX: [OIP_REVIEW_SEED]{\"slugs\":[\"oip\"],\"models\":[\"grok/grok-4.3\"]}[/OIP_REVIEW_SEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OIP_REVIEW_SEED]{\"slugs\":[\"oip\"],\"models\":[\"grok/grok-4.3\"]}[/OIP_REVIEW_SEED]",
        "tag": "[OIP_REVIEW_SEED]<arg1 …>[/OIP_REVIEW_SEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_REVIEW_SEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_REVIEW_SEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/OIP_REVIEW_SEED",
        "update": "PUT /api/directory/OIP_REVIEW_SEED",
        "patch": "PATCH /api/directory/OIP_REVIEW_SEED",
        "delete": "DELETE /api/directory/OIP_REVIEW_SEED",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_REVIEW_SEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_REVIEW_SEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_REVIEW_SEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_REVIEW_SEED"
      },
      "examples": "[\"{\\\"slugs\\\":[\\\"oip\\\"],\\\"models\\\":[\\\"grok/grok-4.3\\\"]}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_REVIEW_SEED"
    },
    {
      "key": "OIP_SEED",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Queue write tasks for pending philosophy inventory items (pipeline kinds thinker|school|paper). Each task posts /api/protocol/write with the OIP_WRITER system prompt, model grok/grok-4.3, web search on, loop:oip. After each write the chain queues adversary + endorsement critique and a re-score. The writer-queue cron drains everything. WHEN_TO_USE: \"seed the philosophy loop\", \"queue the thinker articles\", after OIP_ENUMERATE adds inventory. ARGS: $1=kinds csv (default thinker,school,paper), $2=limit (default 50). EX: [OIP_SEED]thinker|25[/OIP_SEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_SEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_SEED",
        "type": "fn",
        "what": [
          "WHAT: Queue write tasks for pending philosophy inventory items (pipeline kinds thinker|school|paper). Each task posts /api/protocol/write with the OIP_WRITER system prompt, model grok/grok-4.3, web search on, loop:oip. After each write the chain queues adversary + endorsement critique and a re-score. The writer-queue cron drains everything.",
          "WHEN_TO_USE: \"seed the philosophy loop\", \"queue the thinker articles\", after OIP_ENUMERATE adds inventory.",
          "ARGS: $1=kinds csv (default thinker,school,paper), $2=limit (default 50).",
          "EX: [OIP_SEED]thinker|25[/OIP_SEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "thinker",
            "desc": "kinds csv (default thinker,school,paper), $2=limit (default 50).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "25",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OIP_SEED]thinker|25[/OIP_SEED]",
        "tag": "[OIP_SEED]<thinker>|<25>[/OIP_SEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_SEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_SEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/OIP_SEED",
        "update": "PUT /api/directory/OIP_SEED",
        "patch": "PATCH /api/directory/OIP_SEED",
        "delete": "DELETE /api/directory/OIP_SEED",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_SEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_SEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_SEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_SEED"
      },
      "examples": "[\"school,paper|20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_SEED"
    },
    {
      "key": "OIP_TREE",
      "type": "http",
      "category": "oip",
      "doc": "WHAT: Return the recursive Object Invocation Protocol tree: root documents, API/CLI/MCP/device/model/core shelves, generated system articles, generated capability articles, ledgers, receipts, replay, repair, and token explanation surfaces. WHEN_TO_USE: the owner or a model asks for the OIP tree, object invocation protocol docs, capability map, machine-native API tree, API/CLI/MCP documentation, or how to start from one self-explaining root and discover the whole action surface. ARGS: none EX: [OIP_TREE][/OIP_TREE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_TREE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_TREE",
        "type": "http",
        "what": [
          "WHAT: Return the recursive Object Invocation Protocol tree: root documents, API/CLI/MCP/device/model/core shelves, generated system articles, generated capability articles, ledgers, receipts, replay, repair, and token explanation surfaces.",
          "WHEN_TO_USE: the owner or a model asks for the OIP tree, object invocation protocol docs, capability map, machine-native API tree, API/CLI/MCP documentation, or how to start from one self-explaining root and discover the whole action surface.",
          "ARGS: none",
          "EX: [OIP_TREE][/OIP_TREE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the recursive Object Invocation Protocol tree: root documents, API/CLI/MCP/device/model/core shelves, generated system articles, generated capability articles, ledgers, receipts, replay, repair, and token explanation surfaces.",
        "example": "[OIP_TREE][/OIP_TREE]",
        "tag": "[OIP_TREE][/OIP_TREE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_TREE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_TREE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OIP_TREE",
        "update": "PUT /api/directory/OIP_TREE",
        "patch": "PATCH /api/directory/OIP_TREE",
        "delete": "DELETE /api/directory/OIP_TREE",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_TREE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_TREE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_TREE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_TREE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_TREE"
    },
    {
      "key": "OIP_WRITER",
      "type": "agent",
      "category": "content-ops",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OIP_WRITER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OIP_WRITER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[OIP_WRITER][/OIP_WRITER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OIP_WRITER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OIP_WRITER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OIP_WRITER",
        "update": "PUT /api/directory/OIP_WRITER",
        "patch": "PATCH /api/directory/OIP_WRITER",
        "delete": "DELETE /api/directory/OIP_WRITER",
        "invoke": "POST /api/dispatch {\"key\":\"OIP_WRITER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OIP_WRITER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OIP_WRITER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OIP_WRITER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OIP_WRITER"
    },
    {
      "key": "OPENAI_IMAGE",
      "type": "fn",
      "category": "openai",
      "doc": "WHAT: OpenAI gpt-image-1.5 text-to-image. Stores to R2, returns a stable https://miscsubjects.com/img/ link WHEN_TO_USE: you need to openai image ARGS: prompt|size(1024x1024|1536x1024|1024x1536) EX: [OPENAI_IMAGE]arg1|arg2[/OPENAI_IMAGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENAI_IMAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENAI_IMAGE",
        "type": "fn",
        "what": [
          "WHAT: OpenAI gpt-image-1.5 text-to-image. Stores to R2, returns a stable https://miscsubjects.com/img/ link",
          "WHEN_TO_USE: you need to openai image",
          "ARGS: prompt|size(1024x1024|1536x1024|1024x1536)",
          "EX: [OPENAI_IMAGE]arg1|arg2[/OPENAI_IMAGE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a stable https://miscsubjects.com/img/ link",
        "example": "[OPENAI_IMAGE]arg1|arg2[/OPENAI_IMAGE]",
        "tag": "[OPENAI_IMAGE]<arg1>|<arg2>[/OPENAI_IMAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENAI_IMAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENAI_IMAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/OPENAI_IMAGE",
        "update": "PUT /api/directory/OPENAI_IMAGE",
        "patch": "PATCH /api/directory/OPENAI_IMAGE",
        "delete": "DELETE /api/directory/OPENAI_IMAGE",
        "invoke": "POST /api/dispatch {\"key\":\"OPENAI_IMAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENAI_IMAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENAI_IMAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENAI_IMAGE"
      },
      "examples": "[\"a single lit doorway in a dark server room, one key hanging beside it, minimal\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENAI_IMAGE"
    },
    {
      "key": "OPENAI_IMAGE_EDIT",
      "type": "fn",
      "category": "openai",
      "doc": "WHAT: OpenAI gpt-image-1.5 edit from a reference image URL. Stores to R2 WHEN_TO_USE: you need to openai image edit ARGS: prompt|reference_url|size EX: [OPENAI_IMAGE_EDIT]arg1|arg2|arg3[/OPENAI_IMAGE_EDIT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENAI_IMAGE_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENAI_IMAGE_EDIT",
        "type": "fn",
        "what": [
          "WHAT: OpenAI gpt-image-1.5 edit from a reference image URL. Stores to R2",
          "WHEN_TO_USE: you need to openai image edit",
          "ARGS: prompt|reference_url|size",
          "EX: [OPENAI_IMAGE_EDIT]arg1|arg2|arg3[/OPENAI_IMAGE_EDIT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OPENAI_IMAGE_EDIT]arg1|arg2|arg3[/OPENAI_IMAGE_EDIT]",
        "tag": "[OPENAI_IMAGE_EDIT]<arg1>|<arg2>|<arg3>[/OPENAI_IMAGE_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENAI_IMAGE_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENAI_IMAGE_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/OPENAI_IMAGE_EDIT",
        "update": "PUT /api/directory/OPENAI_IMAGE_EDIT",
        "patch": "PATCH /api/directory/OPENAI_IMAGE_EDIT",
        "delete": "DELETE /api/directory/OPENAI_IMAGE_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"OPENAI_IMAGE_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENAI_IMAGE_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENAI_IMAGE_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENAI_IMAGE_EDIT"
      },
      "examples": "[\"remake this image in 1x1|https://miscsubjects.com/img/up/eagle25.png|1024x1024\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENAI_IMAGE_EDIT"
    },
    {
      "key": "OPENAI_MODELS",
      "type": "http",
      "category": "openai",
      "doc": "WHAT: List OpenAI models. No args WHEN_TO_USE: you need to openai models ARGS: see content EX: [OPENAI_MODELS][/OPENAI_MODELS] List OpenAI models. No args.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENAI_MODELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENAI_MODELS",
        "type": "http",
        "what": [
          "WHAT: List OpenAI models. No args",
          "WHEN_TO_USE: you need to openai models",
          "ARGS: see content",
          "EX: [OPENAI_MODELS][/OPENAI_MODELS]",
          "List OpenAI models. No args."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENAI_MODELS][/OPENAI_MODELS]",
        "tag": "[OPENAI_MODELS][/OPENAI_MODELS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENAI_MODELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENAI_MODELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OPENAI_MODELS",
        "update": "PUT /api/directory/OPENAI_MODELS",
        "patch": "PATCH /api/directory/OPENAI_MODELS",
        "delete": "DELETE /api/directory/OPENAI_MODELS",
        "invoke": "POST /api/dispatch {\"key\":\"OPENAI_MODELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENAI_MODELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENAI_MODELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENAI_MODELS"
      },
      "examples": "[\"reply with the single word OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENAI_MODELS"
    },
    {
      "key": "OPENWHISPR_DOCTOR",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: OpenWhispr backend health on the owner Mac — reports local (desktop app bridge on 127.0.0.1) and remote (api.openwhispr.com) as configured/reachable. WHEN_TO_USE: before any other OPENWHISPR_* row, or when a note or transcription read comes back empty — it says which backend answered. ARGS: (none) EX: [OPENWHISPR_DOCTOR][/OPENWHISPR_DOCTOR] EXECUTOR: ~/bin/ow-api on the owner Mac (openwhispr CLI). Local backend needs the OpenWhispr desktop app running; remote needs an owk_live_ key.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_DOCTOR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_DOCTOR",
        "type": "http",
        "what": [
          "WHAT: OpenWhispr backend health on the owner Mac — reports local (desktop app bridge on 127.0.0.1) and remote (api.openwhispr.com) as configured/reachable.",
          "WHEN_TO_USE: before any other OPENWHISPR_* row, or when a note or transcription read comes back empty — it says which backend answered.",
          "ARGS: (none)",
          "EX: [OPENWHISPR_DOCTOR][/OPENWHISPR_DOCTOR]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac (openwhispr CLI). Local backend needs the OpenWhispr desktop app running; remote needs an owk_live_ key."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_DOCTOR][/OPENWHISPR_DOCTOR]",
        "tag": "[OPENWHISPR_DOCTOR][/OPENWHISPR_DOCTOR]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_DOCTOR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_DOCTOR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"doctor\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_DOCTOR",
        "update": "PUT /api/directory/OPENWHISPR_DOCTOR",
        "patch": "PATCH /api/directory/OPENWHISPR_DOCTOR",
        "delete": "DELETE /api/directory/OPENWHISPR_DOCTOR",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_DOCTOR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_DOCTOR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_DOCTOR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_DOCTOR"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_DOCTOR"
    },
    {
      "key": "OPENWHISPR_FOLDERS",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: List OpenWhispr note folders as JSON — id, name, is_default, sort_order. WHEN_TO_USE: you need a folder id before filing a note, or the owner asks how his notes are organised. ARGS: (none) EX: [OPENWHISPR_FOLDERS][/OPENWHISPR_FOLDERS] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_FOLDERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_FOLDERS",
        "type": "http",
        "what": [
          "WHAT: List OpenWhispr note folders as JSON — id, name, is_default, sort_order.",
          "WHEN_TO_USE: you need a folder id before filing a note, or the owner asks how his notes are organised.",
          "ARGS: (none)",
          "EX: [OPENWHISPR_FOLDERS][/OPENWHISPR_FOLDERS]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_FOLDERS][/OPENWHISPR_FOLDERS]",
        "tag": "[OPENWHISPR_FOLDERS][/OPENWHISPR_FOLDERS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_FOLDERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_FOLDERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"folders\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_FOLDERS",
        "update": "PUT /api/directory/OPENWHISPR_FOLDERS",
        "patch": "PATCH /api/directory/OPENWHISPR_FOLDERS",
        "delete": "DELETE /api/directory/OPENWHISPR_FOLDERS",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_FOLDERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_FOLDERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_FOLDERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_FOLDERS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_FOLDERS"
    },
    {
      "key": "OPENWHISPR_FOLDER_CREATE",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: Create an OpenWhispr note folder and return it. WHEN_TO_USE: filing a run of build-written notes under their own heading instead of the default folder. Check OPENWHISPR_FOLDERS first — names are not deduplicated. ARGS: $1 = folder name EX: [OPENWHISPR_FOLDER_CREATE]Build[/OPENWHISPR_FOLDER_CREATE] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_FOLDER_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_FOLDER_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create an OpenWhispr note folder and return it.",
          "WHEN_TO_USE: filing a run of build-written notes under their own heading instead of the default folder. Check OPENWHISPR_FOLDERS first — names are not deduplicated.",
          "ARGS: $1 = folder name",
          "EX: [OPENWHISPR_FOLDER_CREATE]Build[/OPENWHISPR_FOLDER_CREATE]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Build",
            "desc": "folder name",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "it.",
        "example": "[OPENWHISPR_FOLDER_CREATE]Build[/OPENWHISPR_FOLDER_CREATE]",
        "tag": "[OPENWHISPR_FOLDER_CREATE]<Build>[/OPENWHISPR_FOLDER_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_FOLDER_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_FOLDER_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"folder-create\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_FOLDER_CREATE",
        "update": "PUT /api/directory/OPENWHISPR_FOLDER_CREATE",
        "patch": "PATCH /api/directory/OPENWHISPR_FOLDER_CREATE",
        "delete": "DELETE /api/directory/OPENWHISPR_FOLDER_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_FOLDER_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_FOLDER_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_FOLDER_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_FOLDER_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_FOLDER_CREATE"
    },
    {
      "key": "OPENWHISPR_NOTES",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: List every OpenWhispr note as JSON — id, title, content, folder_id, note_type, created_at, and the enhanced_content when the app has rewritten it. WHEN_TO_USE: \"what did I dictate\", \"my openwhispr notes\", or to find the id a later OPENWHISPR_NOTE_GET / _TRANSCRIPT needs. Use OPENWHISPR_SEARCH instead when you know a word to look for. ARGS: (none) EX: [OPENWHISPR_NOTES][/OPENWHISPR_NOTES] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTES",
        "type": "http",
        "what": [
          "WHAT: List every OpenWhispr note as JSON — id, title, content, folder_id, note_type, created_at, and the enhanced_content when the app has rewritten it.",
          "WHEN_TO_USE: \"what did I dictate\", \"my openwhispr notes\", or to find the id a later OPENWHISPR_NOTE_GET / _TRANSCRIPT needs. Use OPENWHISPR_SEARCH instead when you know a word to look for.",
          "ARGS: (none)",
          "EX: [OPENWHISPR_NOTES][/OPENWHISPR_NOTES]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_NOTES][/OPENWHISPR_NOTES]",
        "tag": "[OPENWHISPR_NOTES][/OPENWHISPR_NOTES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"notes-list\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTES",
        "update": "PUT /api/directory/OPENWHISPR_NOTES",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTES",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTES",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTES"
    },
    {
      "key": "OPENWHISPR_NOTE_CREATE",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: Create an OpenWhispr note and return the created row (id, title, content, folder_id). Lands in the default folder and shows up in the desktop app immediately. WHEN_TO_USE: the build has something the owner should find in his notes app rather than in a chat — a draft he dictated a follow-up to, a summary he asked to keep. ARGS: $1 = title, $2 = content EX: [OPENWHISPR_NOTE_CREATE]Loop spend recheck|Two TW tables disagree; take the greater of the three series[/OPENWHISPR_NOTE_CREATE] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTE_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create an OpenWhispr note and return the created row (id, title, content, folder_id). Lands in the default folder and shows up in the desktop app immediately.",
          "WHEN_TO_USE: the build has something the owner should find in his notes app rather than in a chat — a draft he dictated a follow-up to, a summary he asked to keep.",
          "ARGS: $1 = title, $2 = content",
          "EX: [OPENWHISPR_NOTE_CREATE]Loop spend recheck|Two TW tables disagree; take the greater of the three series[/OPENWHISPR_NOTE_CREATE]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Loop spend recheck",
            "desc": "title, $2 = content",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Two TW tables disagree; take the greater of the three series",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "the created row (id, title, content, folder_id). Lands in the default folder and shows up in the desktop app immediately.",
        "example": "[OPENWHISPR_NOTE_CREATE]Loop spend recheck|Two TW tables disagree; take the greater of the three series[/OPENWHISPR_NOTE_CREATE]",
        "tag": "[OPENWHISPR_NOTE_CREATE]<Loop spend recheck>|<Two TW tables disagree; take the greater of the three series>[/OPENWHISPR_NOTE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"note-create\",\"$1\",\"$2\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTE_CREATE",
        "update": "PUT /api/directory/OPENWHISPR_NOTE_CREATE",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTE_CREATE",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTE_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTE_CREATE"
    },
    {
      "key": "OPENWHISPR_NOTE_DELETE",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: Delete an OpenWhispr note by id. Returns {id, deleted:true}. Irreversible — the note is gone from the desktop app too. WHEN_TO_USE: cleaning up a note this build wrote. Never delete a note the owner dictated unless he named it. ARGS: $1 = note id EX: [OPENWHISPR_NOTE_DELETE]2[/OPENWHISPR_NOTE_DELETE] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTE_DELETE",
        "type": "http",
        "what": [
          "WHAT: Delete an OpenWhispr note by id. Returns {id, deleted:true}. Irreversible — the note is gone from the desktop app too.",
          "WHEN_TO_USE: cleaning up a note this build wrote. Never delete a note the owner dictated unless he named it.",
          "ARGS: $1 = note id",
          "EX: [OPENWHISPR_NOTE_DELETE]2[/OPENWHISPR_NOTE_DELETE]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2",
            "desc": "note id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "{id, deleted:true}. Irreversible — the note is gone from the desktop app too.",
        "example": "[OPENWHISPR_NOTE_DELETE]2[/OPENWHISPR_NOTE_DELETE]",
        "tag": "[OPENWHISPR_NOTE_DELETE]<2>[/OPENWHISPR_NOTE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"note-delete\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTE_DELETE",
        "update": "PUT /api/directory/OPENWHISPR_NOTE_DELETE",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTE_DELETE",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTE_DELETE"
    },
    {
      "key": "OPENWHISPR_NOTE_GET",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: One OpenWhispr note by id, full JSON — content, enhanced_content, transcript, folder, participants, audio_duration_seconds. WHEN_TO_USE: you have a note id from OPENWHISPR_NOTES or OPENWHISPR_SEARCH and need the whole record. For only the spoken words use OPENWHISPR_NOTE_TRANSCRIPT. ARGS: $1 = note id EX: [OPENWHISPR_NOTE_GET]2[/OPENWHISPR_NOTE_GET] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTE_GET",
        "type": "http",
        "what": [
          "WHAT: One OpenWhispr note by id, full JSON — content, enhanced_content, transcript, folder, participants, audio_duration_seconds.",
          "WHEN_TO_USE: you have a note id from OPENWHISPR_NOTES or OPENWHISPR_SEARCH and need the whole record. For only the spoken words use OPENWHISPR_NOTE_TRANSCRIPT.",
          "ARGS: $1 = note id",
          "EX: [OPENWHISPR_NOTE_GET]2[/OPENWHISPR_NOTE_GET]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2",
            "desc": "note id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_NOTE_GET]2[/OPENWHISPR_NOTE_GET]",
        "tag": "[OPENWHISPR_NOTE_GET]<2>[/OPENWHISPR_NOTE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"note-get\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTE_GET",
        "update": "PUT /api/directory/OPENWHISPR_NOTE_GET",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTE_GET",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTE_GET"
      },
      "examples": "[\"4\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTE_GET"
    },
    {
      "key": "OPENWHISPR_NOTE_TRANSCRIPT",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: The transcript of one note as speaker-labeled markdown — one timestamped line per segment, \"Me\" for the owner mic, otherwise the speaker name or diarized id. WHEN_TO_USE: a meeting or call note and you want what was said, not the note payload. Returns nothing when the note has no transcript (typed note). ARGS: $1 = note id EX: [OPENWHISPR_NOTE_TRANSCRIPT]2[/OPENWHISPR_NOTE_TRANSCRIPT] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTE_TRANSCRIPT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTE_TRANSCRIPT",
        "type": "http",
        "what": [
          "WHAT: The transcript of one note as speaker-labeled markdown — one timestamped line per segment, \"Me\" for the owner mic, otherwise the speaker name or diarized id.",
          "WHEN_TO_USE: a meeting or call note and you want what was said, not the note payload. Returns nothing when the note has no transcript (typed note).",
          "ARGS: $1 = note id",
          "EX: [OPENWHISPR_NOTE_TRANSCRIPT]2[/OPENWHISPR_NOTE_TRANSCRIPT]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2",
            "desc": "note id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "nothing when the note has no transcript (typed note).",
        "example": "[OPENWHISPR_NOTE_TRANSCRIPT]2[/OPENWHISPR_NOTE_TRANSCRIPT]",
        "tag": "[OPENWHISPR_NOTE_TRANSCRIPT]<2>[/OPENWHISPR_NOTE_TRANSCRIPT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTE_TRANSCRIPT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTE_TRANSCRIPT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"note-transcript\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTE_TRANSCRIPT",
        "update": "PUT /api/directory/OPENWHISPR_NOTE_TRANSCRIPT",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTE_TRANSCRIPT",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTE_TRANSCRIPT",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTE_TRANSCRIPT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTE_TRANSCRIPT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTE_TRANSCRIPT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTE_TRANSCRIPT"
      },
      "examples": "[\"4\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTE_TRANSCRIPT"
    },
    {
      "key": "OPENWHISPR_NOTE_UPDATE",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: Retitle an OpenWhispr note by id and return the updated row. WHEN_TO_USE: a dictated note landed with a machine title (\"New note\", a first sentence) and needs a name the owner can find. ARGS: $1 = note id, $2 = new title EX: [OPENWHISPR_NOTE_UPDATE]2|Loop spend recheck[/OPENWHISPR_NOTE_UPDATE] EXECUTOR: ~/bin/ow-api on the owner Mac. Body edits are not exposed — write a new note instead of rewriting what he dictated.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_NOTE_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_NOTE_UPDATE",
        "type": "http",
        "what": [
          "WHAT: Retitle an OpenWhispr note by id and return the updated row.",
          "WHEN_TO_USE: a dictated note landed with a machine title (\"New note\", a first sentence) and needs a name the owner can find.",
          "ARGS: $1 = note id, $2 = new title",
          "EX: [OPENWHISPR_NOTE_UPDATE]2|Loop spend recheck[/OPENWHISPR_NOTE_UPDATE]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac. Body edits are not exposed — write a new note instead of rewriting what he dictated."
        ],
        "args": [
          {
            "pos": 1,
            "name": "2",
            "desc": "note id, $2 = new title",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Loop spend recheck",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "the updated row.",
        "example": "[OPENWHISPR_NOTE_UPDATE]2|Loop spend recheck[/OPENWHISPR_NOTE_UPDATE]",
        "tag": "[OPENWHISPR_NOTE_UPDATE]<2>|<Loop spend recheck>[/OPENWHISPR_NOTE_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_NOTE_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_NOTE_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"note-update\",\"$1\",\"$2\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_NOTE_UPDATE",
        "update": "PUT /api/directory/OPENWHISPR_NOTE_UPDATE",
        "patch": "PATCH /api/directory/OPENWHISPR_NOTE_UPDATE",
        "delete": "DELETE /api/directory/OPENWHISPR_NOTE_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_NOTE_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_NOTE_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_NOTE_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_NOTE_UPDATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_NOTE_UPDATE"
    },
    {
      "key": "OPENWHISPR_SEARCH",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: Search OpenWhispr notes (full-text locally, semantic + full-text against the cloud backend) and return matching notes as JSON. WHEN_TO_USE: \"find the note where I said X\", \"what did I dictate about the Loop report\". Cheaper than pulling every note with OPENWHISPR_NOTES. ARGS: $1 = query words EX: [OPENWHISPR_SEARCH]loop report[/OPENWHISPR_SEARCH] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search OpenWhispr notes (full-text locally, semantic + full-text against the cloud backend) and return matching notes as JSON.",
          "WHEN_TO_USE: \"find the note where I said X\", \"what did I dictate about the Loop report\". Cheaper than pulling every note with OPENWHISPR_NOTES.",
          "ARGS: $1 = query words",
          "EX: [OPENWHISPR_SEARCH]loop report[/OPENWHISPR_SEARCH]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "loop report",
            "desc": "query words",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "matching notes as JSON.",
        "example": "[OPENWHISPR_SEARCH]loop report[/OPENWHISPR_SEARCH]",
        "tag": "[OPENWHISPR_SEARCH]<loop report>[/OPENWHISPR_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"search\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_SEARCH",
        "update": "PUT /api/directory/OPENWHISPR_SEARCH",
        "patch": "PATCH /api/directory/OPENWHISPR_SEARCH",
        "delete": "DELETE /api/directory/OPENWHISPR_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_SEARCH"
      },
      "examples": "[\"probe\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_SEARCH"
    },
    {
      "key": "OPENWHISPR_TRANSCRIPTIONS",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: OpenWhispr dictation history as JSON — every hotkey transcription with its text, model and timestamp, separate from notes. WHEN_TO_USE: \"what have I dictated today\", auditing which model transcribed what, or recovering text that was pasted into an app and never saved as a note. ARGS: (none) EX: [OPENWHISPR_TRANSCRIPTIONS][/OPENWHISPR_TRANSCRIPTIONS] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_TRANSCRIPTIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_TRANSCRIPTIONS",
        "type": "http",
        "what": [
          "WHAT: OpenWhispr dictation history as JSON — every hotkey transcription with its text, model and timestamp, separate from notes.",
          "WHEN_TO_USE: \"what have I dictated today\", auditing which model transcribed what, or recovering text that was pasted into an app and never saved as a note.",
          "ARGS: (none)",
          "EX: [OPENWHISPR_TRANSCRIPTIONS][/OPENWHISPR_TRANSCRIPTIONS]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_TRANSCRIPTIONS][/OPENWHISPR_TRANSCRIPTIONS]",
        "tag": "[OPENWHISPR_TRANSCRIPTIONS][/OPENWHISPR_TRANSCRIPTIONS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_TRANSCRIPTIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_TRANSCRIPTIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"transcriptions\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_TRANSCRIPTIONS",
        "update": "PUT /api/directory/OPENWHISPR_TRANSCRIPTIONS",
        "patch": "PATCH /api/directory/OPENWHISPR_TRANSCRIPTIONS",
        "delete": "DELETE /api/directory/OPENWHISPR_TRANSCRIPTIONS",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_TRANSCRIPTIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_TRANSCRIPTIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_TRANSCRIPTIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_TRANSCRIPTIONS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_TRANSCRIPTIONS"
    },
    {
      "key": "OPENWHISPR_TRANSCRIPTION_GET",
      "type": "http",
      "category": "voice",
      "doc": "WHAT: One dictation record by id as JSON — the transcribed text, the model that produced it, duration and timestamp. WHEN_TO_USE: you have an id from OPENWHISPR_TRANSCRIPTIONS and want the full text of that one dictation. ARGS: $1 = transcription id EX: [OPENWHISPR_TRANSCRIPTION_GET]1[/OPENWHISPR_TRANSCRIPTION_GET] EXECUTOR: ~/bin/ow-api on the owner Mac.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPENWHISPR_TRANSCRIPTION_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPENWHISPR_TRANSCRIPTION_GET",
        "type": "http",
        "what": [
          "WHAT: One dictation record by id as JSON — the transcribed text, the model that produced it, duration and timestamp.",
          "WHEN_TO_USE: you have an id from OPENWHISPR_TRANSCRIPTIONS and want the full text of that one dictation.",
          "ARGS: $1 = transcription id",
          "EX: [OPENWHISPR_TRANSCRIPTION_GET]1[/OPENWHISPR_TRANSCRIPTION_GET]",
          "EXECUTOR: ~/bin/ow-api on the owner Mac."
        ],
        "args": [
          {
            "pos": 1,
            "name": "1",
            "desc": "transcription id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [
          "HOME"
        ],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPENWHISPR_TRANSCRIPTION_GET]1[/OPENWHISPR_TRANSCRIPTION_GET]",
        "tag": "[OPENWHISPR_TRANSCRIPTION_GET]<1>[/OPENWHISPR_TRANSCRIPTION_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPENWHISPR_TRANSCRIPTION_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPENWHISPR_TRANSCRIPTION_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-c\",\"exec \\\"$HOME/bin/ow-api\\\" \\\"$@\\\"\",\"ow\",\"transcription-get\",\"$1\"],\"timeout\":60000}",
      "edit": {
        "read": "GET /api/directory/OPENWHISPR_TRANSCRIPTION_GET",
        "update": "PUT /api/directory/OPENWHISPR_TRANSCRIPTION_GET",
        "patch": "PATCH /api/directory/OPENWHISPR_TRANSCRIPTION_GET",
        "delete": "DELETE /api/directory/OPENWHISPR_TRANSCRIPTION_GET",
        "invoke": "POST /api/dispatch {\"key\":\"OPENWHISPR_TRANSCRIPTION_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPENWHISPR_TRANSCRIPTION_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPENWHISPR_TRANSCRIPTION_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPENWHISPR_TRANSCRIPTION_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OPENWHISPR_TRANSCRIPTION_GET"
    },
    {
      "key": "OPEN_URL",
      "type": "http",
      "category": "device",
      "doc": "WHAT: Open a URL in the default browser on the owner's Mac (a new tab). No Accessibility needed. WHEN_TO_USE: \"open a browser\", \"open this website\", \"pull up <site>\", \"search YouTube/Google for X\" (pass the search URL). ARGS: the URL (a page or a search URL like https://www.youtube.com/results?search_query=lofi) EX: [OPEN_URL]https://www.youtube.com/results?search_query=lofi[/OPEN_URL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPEN_URL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPEN_URL",
        "type": "http",
        "what": [
          "WHAT: Open a URL in the default browser on the owner's Mac (a new tab). No Accessibility needed.",
          "WHEN_TO_USE: \"open a browser\", \"open this website\", \"pull up <site>\", \"search YouTube/Google for X\" (pass the search URL).",
          "ARGS: the URL (a page or a search URL like https://www.youtube.com/results?search_query=lofi)",
          "EX: [OPEN_URL]https://www.youtube.com/results?search_query=lofi[/OPEN_URL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "https://www.youtube.com/results?search_query=lofi",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPEN_URL]https://www.youtube.com/results?search_query=lofi[/OPEN_URL]",
        "tag": "[OPEN_URL]<https://www.youtube.com/results?search_query=lofi>[/OPEN_URL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPEN_URL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPEN_URL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"open \\\"$1\\\"\"]}",
      "edit": {
        "read": "GET /api/directory/OPEN_URL",
        "update": "PUT /api/directory/OPEN_URL",
        "patch": "PATCH /api/directory/OPEN_URL",
        "delete": "DELETE /api/directory/OPEN_URL",
        "invoke": "POST /api/dispatch {\"key\":\"OPEN_URL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPEN_URL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPEN_URL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPEN_URL"
      },
      "examples": "[\"https://www.youtube.com/results?search_query=lofi\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPEN_URL"
    },
    {
      "key": "OPOS_DROP",
      "type": "http",
      "category": "audit",
      "doc": "WHAT: Mint one bounded self-explaining whole-build audit token DROP from the floating Owner Tap & Go.\\n# ARGS: None. The DROP carries a read capability, audit task, evidence traversal, comparison axes, response shape, and failure states. Evidence remains retrievable instead of embedded.\\n# EX: [OPOS_DROP][/OPOS_DROP]\\n# TESTS: The returned DROP is 4,000–8,000 characters, contains a read capability and evidence index, excludes article bodies, and contains no obligational prompt language.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPOS_DROP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPOS_DROP",
        "type": "http",
        "what": [
          "WHAT: Mint one bounded self-explaining whole-build audit token DROP from the floating Owner Tap & Go.\\n# ARGS: None. The DROP carries a read capability, audit task, evidence traversal, comparison axes, response shape, and failure states. Evidence remains retrievable instead of embedded.\\n# EX: [OPOS_DROP][/OPOS_DROP]\\n# TESTS: The returned DROP is 4,000–8,000 characters, contains a read capability and evidence index, excludes article bodies, and contains no obligational prompt language."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[OPOS_DROP][/OPOS_DROP]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPOS_DROP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPOS_DROP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OPOS_DROP",
        "update": "PUT /api/directory/OPOS_DROP",
        "patch": "PATCH /api/directory/OPOS_DROP",
        "delete": "DELETE /api/directory/OPOS_DROP",
        "invoke": "POST /api/dispatch {\"key\":\"OPOS_DROP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPOS_DROP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPOS_DROP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPOS_DROP"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPOS_DROP"
    },
    {
      "key": "OPOS_FEEDBACK",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Attach a model or human audit finding to the OPOS Mirror as a typed, receipted contribution. The contribution proposes; it does not silently rewrite the build. ARGS: $1=kind question|objection|source|repair|compression|contradiction|audit, $2=actor/model+version, $3+=finding and opened evidence. For repair/compression, place exact replacement after \" => \". EX: [OPOS_FEEDBACK]audit|ChatGPT Web GPT-5.6|The comparison lacks a current CrewAI exhibit.[/OPOS_FEEDBACK] TESTS: Returns ok:true, slug=opos, contribution id, proposed status, receipt, feed, and view.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPOS_FEEDBACK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPOS_FEEDBACK",
        "type": "fn",
        "what": [
          "WHAT: Attach a model or human audit finding to the OPOS Mirror as a typed, receipted contribution. The contribution proposes; it does not silently rewrite the build.",
          "ARGS: $1=kind question|objection|source|repair|compression|contradiction|audit, $2=actor/model+version, $3+=finding and opened evidence. For repair/compression, place exact replacement after \" => \".",
          "EX: [OPOS_FEEDBACK]audit|ChatGPT Web GPT-5.6|The comparison lacks a current CrewAI exhibit.[/OPOS_FEEDBACK]",
          "TESTS: Returns ok:true, slug=opos, contribution id, proposed status, receipt, feed, and view."
        ],
        "args": [
          {
            "pos": 1,
            "name": "audit",
            "desc": "kind question|objection|source|repair|compression|contradiction|audit, $2=actor/model+version, $3+=finding and opened evidence. For repair/compression, place exact replacement after \" => \".",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "ChatGPT Web GPT-5.6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "The comparison lacks a current CrewAI exhibit.",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ok:true, slug=opos, contribution id, proposed status, receipt, feed, and view.",
        "example": "[OPOS_FEEDBACK]audit|ChatGPT Web GPT-5.6|The comparison lacks a current CrewAI exhibit.[/OPOS_FEEDBACK]",
        "tag": "[OPOS_FEEDBACK]<audit>|<ChatGPT Web GPT-5.6>|<The comparison lacks a current CrewAI exhibit. …>[/OPOS_FEEDBACK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPOS_FEEDBACK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPOS_FEEDBACK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"opos\",\"\",\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/OPOS_FEEDBACK",
        "update": "PUT /api/directory/OPOS_FEEDBACK",
        "patch": "PATCH /api/directory/OPOS_FEEDBACK",
        "delete": "DELETE /api/directory/OPOS_FEEDBACK",
        "invoke": "POST /api/dispatch {\"key\":\"OPOS_FEEDBACK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPOS_FEEDBACK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPOS_FEEDBACK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPOS_FEEDBACK"
      },
      "examples": "[\"audit|ChatGPT Web GPT-5.6|The comparison lacks a current CrewAI exhibit.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPOS_FEEDBACK"
    },
    {
      "key": "OPOS_ROOT",
      "type": "http",
      "category": "audit",
      "doc": "WHAT: Read the whole build as OPOS, one self-explaining Object Protocol Operating System containing identity, object classes, Tap & Go routes, root articles, live inventory, audit, comparison field, evidence boundaries, and feedback loop. ARGS: None. Add ?format=markdown for the complete model-readable record. EX: [OPOS_ROOT][/OPOS_ROOT] TESTS: Response schema is opos-self-explaining-build/1.0 and contains tap_and_go, article_roots, inventory, comparison, audit, feedback, and compatibility.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPOS_ROOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPOS_ROOT",
        "type": "http",
        "what": [
          "WHAT: Read the whole build as OPOS, one self-explaining Object Protocol Operating System containing identity, object classes, Tap & Go routes, root articles, live inventory, audit, comparison field, evidence boundaries, and feedback loop.",
          "ARGS: None. Add ?format=markdown for the complete model-readable record.",
          "EX: [OPOS_ROOT][/OPOS_ROOT]",
          "TESTS: Response schema is opos-self-explaining-build/1.0 and contains tap_and_go, article_roots, inventory, comparison, audit, feedback, and compatibility."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OPOS_ROOT][/OPOS_ROOT]",
        "tag": "[OPOS_ROOT][/OPOS_ROOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPOS_ROOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPOS_ROOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OPOS_ROOT",
        "update": "PUT /api/directory/OPOS_ROOT",
        "patch": "PATCH /api/directory/OPOS_ROOT",
        "delete": "DELETE /api/directory/OPOS_ROOT",
        "invoke": "POST /api/dispatch {\"key\":\"OPOS_ROOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPOS_ROOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPOS_ROOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPOS_ROOT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPOS_ROOT"
    },
    {
      "key": "OPS",
      "type": "agent",
      "category": "agent",
      "doc": "COMMERCIAL DATA — these tools exist. Use them for any revenue, order, customer or channel question.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OPS",
        "type": "agent",
        "what": [
          "# COMMERCIAL DATA — these tools exist. Use them for any revenue, order, customer or channel question."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[OPS][/OPS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OPS",
        "update": "PUT /api/directory/OPS",
        "patch": "PATCH /api/directory/OPS",
        "delete": "DELETE /api/directory/OPS",
        "invoke": "POST /api/dispatch {\"key\":\"OPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OPS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OPS"
    },
    {
      "key": "OP_ROOT",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Read OP, the Object Protocol: definition, invariants, canonical roots, and OIP compatibility boundary. ARGS: None. Add ?format=markdown for a model-readable document. EX: [OP_ROOT][/OP_ROOT] TESTS: Response names OP, Object Protocol, OPOS, invariants, and the OIP compatibility alias.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OP_ROOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OP_ROOT",
        "type": "http",
        "what": [
          "WHAT: Read OP, the Object Protocol: definition, invariants, canonical roots, and OIP compatibility boundary.",
          "ARGS: None. Add ?format=markdown for a model-readable document.",
          "EX: [OP_ROOT][/OP_ROOT]",
          "TESTS: Response names OP, Object Protocol, OPOS, invariants, and the OIP compatibility alias."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OP_ROOT][/OP_ROOT]",
        "tag": "[OP_ROOT][/OP_ROOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OP_ROOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OP_ROOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OP_ROOT",
        "update": "PUT /api/directory/OP_ROOT",
        "patch": "PATCH /api/directory/OP_ROOT",
        "delete": "DELETE /api/directory/OP_ROOT",
        "invoke": "POST /api/dispatch {\"key\":\"OP_ROOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OP_ROOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OP_ROOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OP_ROOT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OP_ROOT"
    },
    {
      "key": "OUTREACH_ALLOCATE",
      "type": "fn",
      "category": "self-promotion",
      "doc": "WHAT: The delta equation of the self-promotion loop. Per class: priority = fit x novelty x permission x (1 - saturation) x prior; volume = clamp(round(cap x priority/sum), 0, class cap). Novelty counts published artifacts newer than the class's last contact — zero new material means zero volume. Returns the full arithmetic (policy version, every term, volumes, selected lead ids). SENDS NOTHING, DRAFTS NOTHING — the invocation receipt is the ledger record of the decision. WHEN_TO_USE: whenever something ships or before planning any outreach wave for the build; \"who should hear about this today\". SAFETY: computation only. Drafting stays behind LEADS_DRAFT_AI gates; sending stays behind LEADS_SEND CONFIRM. ARGS: $1 = daily cap override (may only LOWER the policy cap of 10). EX: [OUTREACH_ALLOCATE]10[/OUTREACH_ALLOCATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_ALLOCATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_ALLOCATE",
        "type": "fn",
        "what": [
          "WHAT: The delta equation of the self-promotion loop. Per class: priority = fit x novelty x permission x (1 - saturation) x prior; volume = clamp(round(cap x priority/sum), 0, class cap). Novelty counts published artifacts newer than the class's last contact — zero new material means zero volume. Returns the full arithmetic (policy version, every term, volumes, selected lead ids). SENDS NOTHING, DRAFTS NOTHING — the invocation receipt is the ledger record of the decision.",
          "WHEN_TO_USE: whenever something ships or before planning any outreach wave for the build; \"who should hear about this today\".",
          "SAFETY: computation only. Drafting stays behind LEADS_DRAFT_AI gates; sending stays behind LEADS_SEND CONFIRM.",
          "ARGS: $1 = daily cap override (may only LOWER the policy cap of 10).",
          "EX: [OUTREACH_ALLOCATE]10[/OUTREACH_ALLOCATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "10",
            "desc": "daily cap override (may only LOWER the policy cap of 10).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the full arithmetic (policy version, every term, volumes, selected lead ids). SENDS NOTHING, DRAFTS NOTHING — the invocation receipt is the ledger record of the decision.",
        "example": "[OUTREACH_ALLOCATE]10[/OUTREACH_ALLOCATE]",
        "tag": "[OUTREACH_ALLOCATE]<10>[/OUTREACH_ALLOCATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_ALLOCATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_ALLOCATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OUTREACH_ALLOCATE",
        "update": "PUT /api/directory/OUTREACH_ALLOCATE",
        "patch": "PATCH /api/directory/OUTREACH_ALLOCATE",
        "delete": "DELETE /api/directory/OUTREACH_ALLOCATE",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_ALLOCATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_ALLOCATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_ALLOCATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_ALLOCATE"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_ALLOCATE"
    },
    {
      "key": "OUTREACH_CATALOG",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_CATALOG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_CATALOG",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 13,
            "name": "arg13",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 14,
            "name": "arg14",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 15,
            "name": "arg15",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 16,
            "name": "arg16",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 17,
            "name": "arg17",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 18,
            "name": "arg18",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 19,
            "name": "arg19",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 20,
            "name": "arg20",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 21,
            "name": "arg21",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 22,
            "name": "arg22",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 23,
            "name": "arg23",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 24,
            "name": "arg24",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 25,
            "name": "arg25",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 26,
            "name": "arg26",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 27,
            "name": "arg27",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 28,
            "name": "arg28",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 29,
            "name": "arg29",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 30,
            "name": "arg30",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 31,
            "name": "arg31",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 32,
            "name": "arg32",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 33,
            "name": "arg33",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 34,
            "name": "arg34",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 35,
            "name": "arg35",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 36,
            "name": "arg36",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 37,
            "name": "arg37",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 38,
            "name": "arg38",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 39,
            "name": "arg39",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 40,
            "name": "arg40",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 41,
            "name": "arg41",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 42,
            "name": "arg42",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 43,
            "name": "arg43",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 44,
            "name": "arg44",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 45,
            "name": "arg45",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 46,
            "name": "arg46",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 47,
            "name": "arg47",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 48,
            "name": "arg48",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 49,
            "name": "arg49",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 50,
            "name": "arg50",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 51,
            "name": "arg51",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 52,
            "name": "arg52",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 53,
            "name": "arg53",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 54,
            "name": "arg54",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 55,
            "name": "arg55",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 56,
            "name": "arg56",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 57,
            "name": "arg57",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 58,
            "name": "arg58",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 59,
            "name": "arg59",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 60,
            "name": "arg60",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 61,
            "name": "arg61",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 62,
            "name": "arg62",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 63,
            "name": "arg63",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 64,
            "name": "arg64",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 65,
            "name": "arg65",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 66,
            "name": "arg66",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 67,
            "name": "arg67",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 68,
            "name": "arg68",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 69,
            "name": "arg69",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 70,
            "name": "arg70",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 71,
            "name": "arg71",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 72,
            "name": "arg72",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 73,
            "name": "arg73",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 74,
            "name": "arg74",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 75,
            "name": "arg75",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 76,
            "name": "arg76",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 77,
            "name": "arg77",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 78,
            "name": "arg78",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 79,
            "name": "arg79",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 80,
            "name": "arg80",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 81,
            "name": "arg81",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 82,
            "name": "arg82",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 83,
            "name": "arg83",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 84,
            "name": "arg84",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 85,
            "name": "arg85",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 86,
            "name": "arg86",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 87,
            "name": "arg87",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 88,
            "name": "arg88",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 89,
            "name": "arg89",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 90,
            "name": "arg90",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 91,
            "name": "arg91",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 92,
            "name": "arg92",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 93,
            "name": "arg93",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 94,
            "name": "arg94",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 95,
            "name": "arg95",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 96,
            "name": "arg96",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 97,
            "name": "arg97",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 98,
            "name": "arg98",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 99,
            "name": "arg99",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OUTREACH_CATALOG]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12|arg13|arg14|arg15|arg16|arg17|arg18|arg19|arg20|arg21|arg22|arg23|arg24|arg25|arg26|arg27|arg28|arg29|arg30|arg31|arg32|arg33|arg34|arg35|arg36|arg37|arg38|arg39|arg40|arg41|arg42|arg43|arg44|arg45|arg46|arg47|arg48|arg49|arg50|arg51|arg52|arg53|arg54|arg55|arg56|arg57|arg58|arg59|arg60|arg61|arg62|arg63|arg64|arg65|arg66|arg67|arg68|arg69|arg70|arg71|arg72|arg73|arg74|arg75|arg76|arg77|arg78|arg79|arg80|arg81|arg82|arg83|arg84|arg85|arg86|arg87|arg88|arg89|arg90|arg91|arg92|arg93|arg94|arg95|arg96|arg97|arg98|arg99[/OUTREACH_CATALOG]",
        "tag": "[OUTREACH_CATALOG]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>|<arg13>|<arg14>|<arg15>|<arg16>|<arg17>|<arg18>|<arg19>|<arg20>|<arg21>|<arg22>|<arg23>|<arg24>|<arg25>|<arg26>|<arg27>|<arg28>|<arg29>|<arg30>|<arg31>|<arg32>|<arg33>|<arg34>|<arg35>|<arg36>|<arg37>|<arg38>|<arg39>|<arg40>|<arg41>|<arg42>|<arg43>|<arg44>|<arg45>|<arg46>|<arg47>|<arg48>|<arg49>|<arg50>|<arg51>|<arg52>|<arg53>|<arg54>|<arg55>|<arg56>|<arg57>|<arg58>|<arg59>|<arg60>|<arg61>|<arg62>|<arg63>|<arg64>|<arg65>|<arg66>|<arg67>|<arg68>|<arg69>|<arg70>|<arg71>|<arg72>|<arg73>|<arg74>|<arg75>|<arg76>|<arg77>|<arg78>|<arg79>|<arg80>|<arg81>|<arg82>|<arg83>|<arg84>|<arg85>|<arg86>|<arg87>|<arg88>|<arg89>|<arg90>|<arg91>|<arg92>|<arg93>|<arg94>|<arg95>|<arg96>|<arg97>|<arg98>|<arg99>[/OUTREACH_CATALOG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_CATALOG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_CATALOG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "- BPC-157 10mg — listed $49, wholesale $24.50 — https://www.leoresearch.com/shop/bpc-157",
      "edit": {
        "read": "GET /api/directory/OUTREACH_CATALOG",
        "update": "PUT /api/directory/OUTREACH_CATALOG",
        "patch": "PATCH /api/directory/OUTREACH_CATALOG",
        "delete": "DELETE /api/directory/OUTREACH_CATALOG",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_CATALOG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_CATALOG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_CATALOG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_CATALOG"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_CATALOG"
    },
    {
      "key": "OUTREACH_DOSSIER",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_DOSSIER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_DOSSIER",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 13,
            "name": "arg13",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 14,
            "name": "arg14",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 15,
            "name": "arg15",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 16,
            "name": "arg16",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 17,
            "name": "arg17",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 18,
            "name": "arg18",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 19,
            "name": "arg19",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 20,
            "name": "arg20",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 21,
            "name": "arg21",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 22,
            "name": "arg22",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 23,
            "name": "arg23",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 24,
            "name": "arg24",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 25,
            "name": "arg25",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 26,
            "name": "arg26",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 27,
            "name": "arg27",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 28,
            "name": "arg28",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 29,
            "name": "arg29",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 30,
            "name": "arg30",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 31,
            "name": "arg31",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 32,
            "name": "arg32",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 33,
            "name": "arg33",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 34,
            "name": "arg34",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 35,
            "name": "arg35",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 36,
            "name": "arg36",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 37,
            "name": "arg37",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 38,
            "name": "arg38",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 39,
            "name": "arg39",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 40,
            "name": "arg40",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 41,
            "name": "arg41",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 42,
            "name": "arg42",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 43,
            "name": "arg43",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 44,
            "name": "arg44",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 45,
            "name": "arg45",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 46,
            "name": "arg46",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 47,
            "name": "arg47",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 48,
            "name": "arg48",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 49,
            "name": "arg49",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 50,
            "name": "arg50",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 51,
            "name": "arg51",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 52,
            "name": "arg52",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 53,
            "name": "arg53",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 54,
            "name": "arg54",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 55,
            "name": "arg55",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 56,
            "name": "arg56",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 57,
            "name": "arg57",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 58,
            "name": "arg58",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 59,
            "name": "arg59",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 60,
            "name": "arg60",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 61,
            "name": "arg61",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 62,
            "name": "arg62",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 63,
            "name": "arg63",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 64,
            "name": "arg64",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 65,
            "name": "arg65",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 66,
            "name": "arg66",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 67,
            "name": "arg67",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 68,
            "name": "arg68",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 69,
            "name": "arg69",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 70,
            "name": "arg70",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 71,
            "name": "arg71",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 72,
            "name": "arg72",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 73,
            "name": "arg73",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 74,
            "name": "arg74",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 75,
            "name": "arg75",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 76,
            "name": "arg76",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 77,
            "name": "arg77",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 78,
            "name": "arg78",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 79,
            "name": "arg79",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 80,
            "name": "arg80",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 81,
            "name": "arg81",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 82,
            "name": "arg82",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 83,
            "name": "arg83",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 84,
            "name": "arg84",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 85,
            "name": "arg85",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 86,
            "name": "arg86",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 87,
            "name": "arg87",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 88,
            "name": "arg88",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 89,
            "name": "arg89",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 90,
            "name": "arg90",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 91,
            "name": "arg91",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 92,
            "name": "arg92",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 93,
            "name": "arg93",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 94,
            "name": "arg94",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 95,
            "name": "arg95",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 96,
            "name": "arg96",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 97,
            "name": "arg97",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 98,
            "name": "arg98",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 99,
            "name": "arg99",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OUTREACH_DOSSIER]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12|arg13|arg14|arg15|arg16|arg17|arg18|arg19|arg20|arg21|arg22|arg23|arg24|arg25|arg26|arg27|arg28|arg29|arg30|arg31|arg32|arg33|arg34|arg35|arg36|arg37|arg38|arg39|arg40|arg41|arg42|arg43|arg44|arg45|arg46|arg47|arg48|arg49|arg50|arg51|arg52|arg53|arg54|arg55|arg56|arg57|arg58|arg59|arg60|arg61|arg62|arg63|arg64|arg65|arg66|arg67|arg68|arg69|arg70|arg71|arg72|arg73|arg74|arg75|arg76|arg77|arg78|arg79|arg80|arg81|arg82|arg83|arg84|arg85|arg86|arg87|arg88|arg89|arg90|arg91|arg92|arg93|arg94|arg95|arg96|arg97|arg98|arg99[/OUTREACH_DOSSIER]",
        "tag": "[OUTREACH_DOSSIER]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>|<arg13>|<arg14>|<arg15>|<arg16>|<arg17>|<arg18>|<arg19>|<arg20>|<arg21>|<arg22>|<arg23>|<arg24>|<arg25>|<arg26>|<arg27>|<arg28>|<arg29>|<arg30>|<arg31>|<arg32>|<arg33>|<arg34>|<arg35>|<arg36>|<arg37>|<arg38>|<arg39>|<arg40>|<arg41>|<arg42>|<arg43>|<arg44>|<arg45>|<arg46>|<arg47>|<arg48>|<arg49>|<arg50>|<arg51>|<arg52>|<arg53>|<arg54>|<arg55>|<arg56>|<arg57>|<arg58>|<arg59>|<arg60>|<arg61>|<arg62>|<arg63>|<arg64>|<arg65>|<arg66>|<arg67>|<arg68>|<arg69>|<arg70>|<arg71>|<arg72>|<arg73>|<arg74>|<arg75>|<arg76>|<arg77>|<arg78>|<arg79>|<arg80>|<arg81>|<arg82>|<arg83>|<arg84>|<arg85>|<arg86>|<arg87>|<arg88>|<arg89>|<arg90>|<arg91>|<arg92>|<arg93>|<arg94>|<arg95>|<arg96>|<arg97>|<arg98>|<arg99>[/OUTREACH_DOSSIER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_DOSSIER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_DOSSIER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "You write plain wholesale emails for LeoResearch (https://leoresearch.com), a research-peptide supplier. A real operator emailing another business owner about buying inventory. Nothing else. Read it aloud; if a sentence sounds like marketing or like AI wrote it, delete it.",
      "edit": {
        "read": "GET /api/directory/OUTREACH_DOSSIER",
        "update": "PUT /api/directory/OUTREACH_DOSSIER",
        "patch": "PATCH /api/directory/OUTREACH_DOSSIER",
        "delete": "DELETE /api/directory/OUTREACH_DOSSIER",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_DOSSIER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_DOSSIER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_DOSSIER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_DOSSIER"
      },
      "examples": "[\"get\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_DOSSIER"
    },
    {
      "key": "OUTREACH_METRICS",
      "type": "http",
      "category": "leads",
      "doc": "WHAT: The outreach numbers as JSON — sent, delivered, unique opens, unique clicks, converts, revenue, unsubscribes, bounces, complaints, per day, per campaign, top clicked links, and the chiropractor pool's real emailable size. Every rate names its denominator. WHEN_TO_USE: any question about email performance. Read the `attributable` block, not the raw counters: the raw ones include the owner's blind copy. ARGS: $1 = window in days (default 30, max 365). EX: [OUTREACH_METRICS]30[/OUTREACH_METRICS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_METRICS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_METRICS",
        "type": "http",
        "what": [
          "WHAT: The outreach numbers as JSON — sent, delivered, unique opens, unique clicks, converts, revenue, unsubscribes, bounces, complaints, per day, per campaign, top clicked links, and the chiropractor pool's real emailable size. Every rate names its denominator.",
          "WHEN_TO_USE: any question about email performance. Read the `attributable` block, not the raw counters: the raw ones include the owner's blind copy.",
          "ARGS: $1 = window in days (default 30, max 365).",
          "EX: [OUTREACH_METRICS]30[/OUTREACH_METRICS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "30",
            "desc": "window in days (default 30, max 365).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OUTREACH_METRICS]30[/OUTREACH_METRICS]",
        "tag": "[OUTREACH_METRICS]<30>[/OUTREACH_METRICS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_METRICS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_METRICS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OUTREACH_METRICS",
        "update": "PUT /api/directory/OUTREACH_METRICS",
        "patch": "PATCH /api/directory/OUTREACH_METRICS",
        "delete": "DELETE /api/directory/OUTREACH_METRICS",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_METRICS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_METRICS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_METRICS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_METRICS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_METRICS"
    },
    {
      "key": "OUTREACH_REPORT_WHATSAPP",
      "type": "http",
      "category": "leads",
      "doc": "WHAT: Post the outreach numbers (sent, delivered, open rate, click rate, converts, list burn-down) into the Leo Research [INTERNAL] WhatsApp group, where JP reads them. WHEN_TO_USE: the scheduled team update, or when someone asks for the outreach numbers in chat. ARGS: $1 = window in days (default 30). Add ?dry=1 by hand to compose without sending. EX: [OUTREACH_REPORT_WHATSAPP]7[/OUTREACH_REPORT_WHATSAPP] NOTE: 2chat answers 202 and delivers asynchronously, so a 2xx is acceptance, not delivery.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_REPORT_WHATSAPP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_REPORT_WHATSAPP",
        "type": "http",
        "what": [
          "WHAT: Post the outreach numbers (sent, delivered, open rate, click rate, converts, list burn-down) into the Leo Research [INTERNAL] WhatsApp group, where JP reads them.",
          "WHEN_TO_USE: the scheduled team update, or when someone asks for the outreach numbers in chat.",
          "ARGS: $1 = window in days (default 30). Add ?dry=1 by hand to compose without sending.",
          "EX: [OUTREACH_REPORT_WHATSAPP]7[/OUTREACH_REPORT_WHATSAPP]",
          "NOTE: 2chat answers 202 and delivers asynchronously, so a 2xx is acceptance, not delivery."
        ],
        "args": [
          {
            "pos": 1,
            "name": "7",
            "desc": "window in days (default 30). Add ?dry=1 by hand to compose without sending.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[OUTREACH_REPORT_WHATSAPP]7[/OUTREACH_REPORT_WHATSAPP]",
        "tag": "[OUTREACH_REPORT_WHATSAPP]<7>[/OUTREACH_REPORT_WHATSAPP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_REPORT_WHATSAPP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_REPORT_WHATSAPP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OUTREACH_REPORT_WHATSAPP",
        "update": "PUT /api/directory/OUTREACH_REPORT_WHATSAPP",
        "patch": "PATCH /api/directory/OUTREACH_REPORT_WHATSAPP",
        "delete": "DELETE /api/directory/OUTREACH_REPORT_WHATSAPP",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_REPORT_WHATSAPP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_REPORT_WHATSAPP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_REPORT_WHATSAPP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_REPORT_WHATSAPP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_REPORT_WHATSAPP"
    },
    {
      "key": "OUTREACH_SHEET_SYNC",
      "type": "flow",
      "category": null,
      "doc": "WHAT: Push the outreach review data to the master Google Sheet — three tabs: OUTREACH_DRAFTS (every saved draft with its lead fields, subject, opening line, full body, scraped site text), OUTREACH_SENT (every email ever sent, full body, opens, clicks), OUTREACH_LOGIC (every recorded version of the writing logic, verbatim). Line breaks travel as ⏎ because the transport is JSON. ROOT CAUSE FIXED 2026-08-09: every past 'airunner_body_truncated_in_transit' failure on this flow was APPS_SCRIPT_RUN's own template splitting its JSON args on a literal | character that shows up in real data (a business name, a drafted email body) — never a network/size limit. APPS_SCRIPT_RUN now takes $2+ instead of $2, which rejoins the split correctly, so this flow can push its full, unbounded row set again. WHEN_TO_USE: \"put the drafts on the sheet\", \"sync the outreach sheet\", \"I want to read the drafts and the rules on Sheets\".",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTREACH_SHEET_SYNC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTREACH_SHEET_SYNC",
        "type": "flow",
        "what": [
          "WHAT: Push the outreach review data to the master Google Sheet — three tabs: OUTREACH_DRAFTS (every saved draft with its lead fields, subject, opening line, full body, scraped site text), OUTREACH_SENT (every email ever sent, full body, opens, clicks), OUTREACH_LOGIC (every recorded version of the writing logic, verbatim). Line breaks travel as ⏎ because the transport is JSON.",
          "ROOT CAUSE FIXED 2026-08-09: every past 'airunner_body_truncated_in_transit' failure on this flow was APPS_SCRIPT_RUN's own template splitting its JSON args on a literal | character that shows up in real data (a business name, a drafted email body) — never a network/size limit. APPS_SCRIPT_RUN now takes $2+ instead of $2, which rejoins the split correctly, so this flow can push its full, unbounded row set again.",
          "WHEN_TO_USE: \"put the drafts on the sheet\", \"sync the outreach sheet\", \"I want to read the drafts and the rules on Sheets\"."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "SHEET_ID"
        ],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[OUTREACH_SHEET_SYNC][/OUTREACH_SHEET_SYNC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTREACH_SHEET_SYNC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTREACH_SHEET_SYNC  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/OUTREACH_SHEET_SYNC",
        "update": "PUT /api/directory/OUTREACH_SHEET_SYNC",
        "patch": "PATCH /api/directory/OUTREACH_SHEET_SYNC",
        "delete": "DELETE /api/directory/OUTREACH_SHEET_SYNC",
        "invoke": "POST /api/dispatch {\"key\":\"OUTREACH_SHEET_SYNC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTREACH_SHEET_SYNC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTREACH_SHEET_SYNC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTREACH_SHEET_SYNC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OUTREACH_SHEET_SYNC"
    },
    {
      "key": "OUTSTANDING_SYNC_EMAIL",
      "type": "fn",
      "category": "sync",
      "doc": "WHAT: Build one unified outstanding-sync report and email it: every open GitHub issue, open/running task inventory, Kimi CLI/Desktop sync state, and historical recurring problem classes. WHEN_TO_USE: The owner asks to sync GitHub issues, tasks, Kimi, model work, outstanding work, or wants everything sent by email. ARGS: mode. blank/force = send email + short iMessage notice. dry = collect only, no send. EX: [OUTSTANDING_SYNC_EMAIL]force[/OUTSTANDING_SYNC_EMAIL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OUTSTANDING_SYNC_EMAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OUTSTANDING_SYNC_EMAIL",
        "type": "fn",
        "what": [
          "WHAT: Build one unified outstanding-sync report and email it: every open GitHub issue, open/running task inventory, Kimi CLI/Desktop sync state, and historical recurring problem classes.",
          "WHEN_TO_USE: The owner asks to sync GitHub issues, tasks, Kimi, model work, outstanding work, or wants everything sent by email.",
          "ARGS: mode. blank/force = send email + short iMessage notice. dry = collect only, no send.",
          "EX: [OUTSTANDING_SYNC_EMAIL]force[/OUTSTANDING_SYNC_EMAIL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "force",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[OUTSTANDING_SYNC_EMAIL]force[/OUTSTANDING_SYNC_EMAIL]",
        "tag": "[OUTSTANDING_SYNC_EMAIL]<force>[/OUTSTANDING_SYNC_EMAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OUTSTANDING_SYNC_EMAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OUTSTANDING_SYNC_EMAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/OUTSTANDING_SYNC_EMAIL",
        "update": "PUT /api/directory/OUTSTANDING_SYNC_EMAIL",
        "patch": "PATCH /api/directory/OUTSTANDING_SYNC_EMAIL",
        "delete": "DELETE /api/directory/OUTSTANDING_SYNC_EMAIL",
        "invoke": "POST /api/dispatch {\"key\":\"OUTSTANDING_SYNC_EMAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OUTSTANDING_SYNC_EMAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OUTSTANDING_SYNC_EMAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OUTSTANDING_SYNC_EMAIL"
      },
      "examples": "[\"force\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OUTSTANDING_SYNC_EMAIL"
    },
    {
      "key": "OWNER_REPORT",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Send a report to the owner and prove it arrived. Returns the inbound ledger row id that witnessed the message crossing the internet, or an explicit not_witnessed failure. Never reports a send on faith. WHY: two owner reports came back {ok:true, messageId} and never landed. ok:true from the send API means Cloudflare accepted the message, nothing more. Owner-addressed sends are the one class with no BCC witness, so \"sent\" could not be distinguished from \"dropped\". HOW: addressed to build@miscsubjects.com, which routes through Cloudflare Email Routing to a worker that ledgers the arrival and forwards it to the owner. Owner BCC rides the same envelope, so he receives it twice by two independent paths. WHEN_TO_USE: every report, inventory, digest or answer addressed to the owner. Use EMAIL_SEND_TRACKED for outreach to third parties instead. ARGS: $1 = subject (the [OWNER REPORT] prefix is added). $2 = body text. $3 = seconds to wait for the ledger row (default 30, max 60; observed round trip is about 25s). EX: [OWNER_REPORT]six tasks closed, both articles live|Links first: https://miscsubjects.com/a/tesofensine ...[/OWNER_REPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "OWNER_REPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "OWNER_REPORT",
        "type": "fn",
        "what": [
          "WHAT: Send a report to the owner and prove it arrived. Returns the inbound ledger row id that witnessed the message crossing the internet, or an explicit not_witnessed failure. Never reports a send on faith.",
          "WHY: two owner reports came back {ok:true, messageId} and never landed. ok:true from the send API means Cloudflare accepted the message, nothing more. Owner-addressed sends are the one class with no BCC witness, so \"sent\" could not be distinguished from \"dropped\".",
          "HOW: addressed to build@miscsubjects.com, which routes through Cloudflare Email Routing to a worker that ledgers the arrival and forwards it to the owner. Owner BCC rides the same envelope, so he receives it twice by two independent paths.",
          "WHEN_TO_USE: every report, inventory, digest or answer addressed to the owner. Use EMAIL_SEND_TRACKED for outreach to third parties instead.",
          "ARGS: $1 = subject (the [OWNER REPORT] prefix is added). $2 = body text. $3 = seconds to wait for the ledger row (default 30, max 60; observed round trip is about 25s).",
          "EX: [OWNER_REPORT]six tasks closed, both articles live|Links first: https://miscsubjects.com/a/tesofensine ...[/OWNER_REPORT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "six tasks closed, both articles live",
            "desc": "subject (the [OWNER REPORT] prefix is added). $2 = body text. $3 = seconds to wait for the ledger row (default 30, max 60",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "Links first: https://miscsubjects.com/a/tesofensine ...",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the inbound ledger row id that witnessed the message crossing the internet, or an explicit not_witnessed failure. Never reports a send on faith.",
        "example": "[OWNER_REPORT]six tasks closed, both articles live|Links first: https://miscsubjects.com/a/tesofensine ...[/OWNER_REPORT]",
        "tag": "[OWNER_REPORT]<six tasks closed, both articles live>|<Links first: https://miscsubjects.com/a/tesofensine ...>|<arg3>[/OWNER_REPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"OWNER_REPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/OWNER_REPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/OWNER_REPORT",
        "update": "PUT /api/directory/OWNER_REPORT",
        "patch": "PATCH /api/directory/OWNER_REPORT",
        "delete": "DELETE /api/directory/OWNER_REPORT",
        "invoke": "POST /api/dispatch {\"key\":\"OWNER_REPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"OWNER_REPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"OWNER_REPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/OWNER_REPORT"
      },
      "examples": "[\"six tasks closed, both articles live|Links first: https://miscsubjects.com/a/tesofensine ...\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=OWNER_REPORT"
    },
    {
      "key": "PAGES_CREATE",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Create a new page. $1=slug $2=title $3=body_html. Use ONLY when no page with that slug exists; PAGES_PUT upserts WHEN_TO_USE: you need to pages create ARGS: see content EX: [PAGES_CREATE]arg1|arg2|arg3[/PAGES_CREATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_CREATE",
        "type": "http",
        "what": [
          "WHAT: Create a new page. $1=slug $2=title $3=body_html. Use ONLY when no page with that slug exists; PAGES_PUT upserts",
          "WHEN_TO_USE: you need to pages create",
          "ARGS: see content",
          "EX: [PAGES_CREATE]arg1|arg2|arg3[/PAGES_CREATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug $2=title $3=body_html. Use ONLY when no page with that slug exists",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PAGES_CREATE]arg1|arg2|arg3[/PAGES_CREATE]",
        "tag": "[PAGES_CREATE]<arg1>|<arg2>|<arg3>[/PAGES_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"slug\":\"$1\",\"title\":\"$2\",\"body_html\":\"$3\",\"actor\":\"router\"}",
      "edit": {
        "read": "GET /api/directory/PAGES_CREATE",
        "update": "PUT /api/directory/PAGES_CREATE",
        "patch": "PATCH /api/directory/PAGES_CREATE",
        "delete": "DELETE /api/directory/PAGES_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_CREATE"
    },
    {
      "key": "PAGES_DELETE",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Delete a page. $1=slug. Version history stays in pages_versions; the live row is removed WHEN_TO_USE: you need to pages delete ARGS: see content EX: [PAGES_DELETE]arg1[/PAGES_DELETE] Delete a page. $1=slug. Version history stays in pages_versions; the live row is removed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_DELETE",
        "type": "http",
        "what": [
          "WHAT: Delete a page. $1=slug. Version history stays in pages_versions; the live row is removed",
          "WHEN_TO_USE: you need to pages delete",
          "ARGS: see content",
          "EX: [PAGES_DELETE]arg1[/PAGES_DELETE]",
          "Delete a page. $1=slug. Version history stays in pages_versions; the live row is removed."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug. Version history stays in pages_versions",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PAGES_DELETE]arg1[/PAGES_DELETE]",
        "tag": "[PAGES_DELETE]<arg1>[/PAGES_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGES_DELETE",
        "update": "PUT /api/directory/PAGES_DELETE",
        "patch": "PATCH /api/directory/PAGES_DELETE",
        "delete": "DELETE /api/directory/PAGES_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_DELETE"
    },
    {
      "key": "PAGES_GET",
      "type": "flow",
      "category": "pages",
      "doc": "Read one page by $1=slug. Use to inspect or revert page content.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_GET",
        "type": "flow",
        "what": [
          "Read one page by $1=slug. Use to inspect or revert page content."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug. Use to inspect or revert page content.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PAGES_GET]arg1[/PAGES_GET]",
        "tag": "[PAGES_GET]<arg1>[/PAGES_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGES_GET",
        "update": "PUT /api/directory/PAGES_GET",
        "patch": "PATCH /api/directory/PAGES_GET",
        "delete": "DELETE /api/directory/PAGES_GET",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_GET"
      },
      "examples": "[\"hero-build-advancement-register\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_GET"
    },
    {
      "key": "PAGES_LIST",
      "type": "flow",
      "category": "pages",
      "doc": "List runtime-editable HTML pages (slug, title, version, updated_at). Use before PAGES_GET.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_LIST",
        "type": "flow",
        "what": [
          "List runtime-editable HTML pages (slug, title, version, updated_at). Use before PAGES_GET."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[PAGES_LIST][/PAGES_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGES_LIST",
        "update": "PUT /api/directory/PAGES_LIST",
        "patch": "PATCH /api/directory/PAGES_LIST",
        "delete": "DELETE /api/directory/PAGES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_LIST"
    },
    {
      "key": "PAGES_PUT",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Edit an existing page. $1=slug $2=title $3=body_html. Writes a new version row; previous content stays in pages_versions WHEN_TO_USE: you need to pages put ARGS: see content EX: [PAGES_PUT]arg2|arg3[/PAGES_PUT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_PUT",
        "type": "http",
        "what": [
          "WHAT: Edit an existing page. $1=slug $2=title $3=body_html. Writes a new version row; previous content stays in pages_versions",
          "WHEN_TO_USE: you need to pages put",
          "ARGS: see content",
          "EX: [PAGES_PUT]arg2|arg3[/PAGES_PUT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "slug $2=title $3=body_html. Writes a new version row",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PAGES_PUT]arg2|arg3[/PAGES_PUT]",
        "tag": "[PAGES_PUT]<arg2>|<arg3>|<arg3>[/PAGES_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"title\":\"$2\",\"body_html\":\"$3\",\"actor\":\"router\"}",
      "edit": {
        "read": "GET /api/directory/PAGES_PUT",
        "update": "PUT /api/directory/PAGES_PUT",
        "patch": "PATCH /api/directory/PAGES_PUT",
        "delete": "DELETE /api/directory/PAGES_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_PUT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_PUT"
    },
    {
      "key": "PAGES_VERSIONS",
      "type": "flow",
      "category": "pages",
      "doc": "List versions for $1=slug. Use to find a prior version id before reverting.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGES_VERSIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGES_VERSIONS",
        "type": "flow",
        "what": [
          "List versions for $1=slug. Use to find a prior version id before reverting."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug. Use to find a prior version id before reverting.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PAGES_VERSIONS]arg1[/PAGES_VERSIONS]",
        "tag": "[PAGES_VERSIONS]<arg1>[/PAGES_VERSIONS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGES_VERSIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGES_VERSIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGES_VERSIONS",
        "update": "PUT /api/directory/PAGES_VERSIONS",
        "patch": "PATCH /api/directory/PAGES_VERSIONS",
        "delete": "DELETE /api/directory/PAGES_VERSIONS",
        "invoke": "POST /api/dispatch {\"key\":\"PAGES_VERSIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGES_VERSIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGES_VERSIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGES_VERSIONS"
      },
      "examples": "[\"oip-token\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGES_VERSIONS"
    },
    {
      "key": "PAGE_ADMIN",
      "type": "http",
      "category": "page",
      "doc": "WHAT: Root of the authenticated human operating surfaces.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGE_ADMIN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGE_ADMIN",
        "type": "http",
        "what": [
          "WHAT: Root of the authenticated human operating surfaces."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[PAGE_ADMIN][/PAGE_ADMIN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGE_ADMIN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGE_ADMIN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGE_ADMIN",
        "update": "PUT /api/directory/PAGE_ADMIN",
        "patch": "PATCH /api/directory/PAGE_ADMIN",
        "delete": "DELETE /api/directory/PAGE_ADMIN",
        "invoke": "POST /api/dispatch {\"key\":\"PAGE_ADMIN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGE_ADMIN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGE_ADMIN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGE_ADMIN"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGE_ADMIN"
    },
    {
      "key": "PAGE_ADMIN_SHEETS",
      "type": "http",
      "category": "page",
      "doc": "WHAT: Arbitrary grid and projection surface over directory and ledger objects.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGE_ADMIN_SHEETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGE_ADMIN_SHEETS",
        "type": "http",
        "what": [
          "WHAT: Arbitrary grid and projection surface over directory and ledger objects."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[PAGE_ADMIN_SHEETS][/PAGE_ADMIN_SHEETS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGE_ADMIN_SHEETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGE_ADMIN_SHEETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGE_ADMIN_SHEETS",
        "update": "PUT /api/directory/PAGE_ADMIN_SHEETS",
        "patch": "PATCH /api/directory/PAGE_ADMIN_SHEETS",
        "delete": "DELETE /api/directory/PAGE_ADMIN_SHEETS",
        "invoke": "POST /api/dispatch {\"key\":\"PAGE_ADMIN_SHEETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGE_ADMIN_SHEETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGE_ADMIN_SHEETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGE_ADMIN_SHEETS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGE_ADMIN_SHEETS"
    },
    {
      "key": "PAGE_GET",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Read a page by slug.  Returns {slug,title,body_html,version,...} WHEN_TO_USE: you need to page get ARGS: slug EX: [PAGE_GET][/PAGE_GET] Read a page by slug. Args: slug. Returns {slug,title,body_html,version,...}.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGE_GET",
        "type": "http",
        "what": [
          "WHAT: Read a page by slug.  Returns {slug,title,body_html,version,...}",
          "WHEN_TO_USE: you need to page get",
          "ARGS: slug",
          "EX: [PAGE_GET][/PAGE_GET]",
          "Read a page by slug. Args: slug. Returns {slug,title,body_html,version,...}."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{slug,title,body_html,version,...}",
        "example": "[PAGE_GET][/PAGE_GET]",
        "tag": "[PAGE_GET]<arg1>[/PAGE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PAGE_GET",
        "update": "PUT /api/directory/PAGE_GET",
        "patch": "PATCH /api/directory/PAGE_GET",
        "delete": "DELETE /api/directory/PAGE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"PAGE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGE_GET"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGE_GET"
    },
    {
      "key": "PAGE_PATCH",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Edit a page by slug.  json_body = {\"title\":\"...\",\"body_html\":\"...\"} WHEN_TO_USE: you need to page patch ARGS: slug|json_body EX: [PAGE_PATCH]arg2[/PAGE_PATCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAGE_PATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAGE_PATCH",
        "type": "http",
        "what": [
          "WHAT: Edit a page by slug.  json_body = {\"title\":\"...\",\"body_html\":\"...\"}",
          "WHEN_TO_USE: you need to page patch",
          "ARGS: slug|json_body",
          "EX: [PAGE_PATCH]arg2[/PAGE_PATCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PAGE_PATCH]arg2[/PAGE_PATCH]",
        "tag": "[PAGE_PATCH]<arg2>|<arg2 …>[/PAGE_PATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAGE_PATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAGE_PATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$2+",
      "edit": {
        "read": "GET /api/directory/PAGE_PATCH",
        "update": "PUT /api/directory/PAGE_PATCH",
        "patch": "PATCH /api/directory/PAGE_PATCH",
        "delete": "DELETE /api/directory/PAGE_PATCH",
        "invoke": "POST /api/dispatch {\"key\":\"PAGE_PATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAGE_PATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAGE_PATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAGE_PATCH"
      },
      "examples": "[\"arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAGE_PATCH"
    },
    {
      "key": "PAID_GRANT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The pay-then-token step: mint a capability scoped to the bought row for the bought units, bind it to the payer's profile by phone or email, deliver it by text, record the sale and its settlement terms. Called by the Stripe webhook after a verified payment, or by the owner for a comped grant. Never twice for one payment. WHEN_TO_USE: a payment was verified, or the owner comps a buyer. ARGS: row_key|units|buyer_phone|buyer_email|source_id|amount_cents EX: [PAID_GRANT]CLAUDE_WEB|2|+15555550100||comped-demo|0[/PAID_GRANT] TESTS: Returns sale_id, fingerprint, token_url, delivered_via; a replay of the same source_id returns already_granted with nothing minted; a buyer calling it is refused OWNER_ONLY.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAID_GRANT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAID_GRANT",
        "type": "fn",
        "what": [
          "WHAT: The pay-then-token step: mint a capability scoped to the bought row for the bought units, bind it to the payer's profile by phone or email, deliver it by text, record the sale and its settlement terms. Called by the Stripe webhook after a verified payment, or by the owner for a comped grant. Never twice for one payment.",
          "WHEN_TO_USE: a payment was verified, or the owner comps a buyer.",
          "ARGS: row_key|units|buyer_phone|buyer_email|source_id|amount_cents",
          "EX: [PAID_GRANT]CLAUDE_WEB|2|+15555550100||comped-demo|0[/PAID_GRANT]",
          "TESTS: Returns sale_id, fingerprint, token_url, delivered_via; a replay of the same source_id returns already_granted with nothing minted; a buyer calling it is refused OWNER_ONLY."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CLAUDE_WEB",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "sale_id, fingerprint, token_url, delivered_via; a replay of the same source_id returns already_granted with nothing minted; a buyer calling it is refused OWNER_ONLY.",
        "example": "[PAID_GRANT]CLAUDE_WEB|2|+15555550100||comped-demo|0[/PAID_GRANT]",
        "tag": "[PAID_GRANT]<CLAUDE_WEB …>[/PAID_GRANT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAID_GRANT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAID_GRANT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PAID_GRANT",
        "update": "PUT /api/directory/PAID_GRANT",
        "patch": "PATCH /api/directory/PAID_GRANT",
        "delete": "DELETE /api/directory/PAID_GRANT",
        "invoke": "POST /api/dispatch {\"key\":\"PAID_GRANT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAID_GRANT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAID_GRANT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAID_GRANT"
      },
      "examples": "[\"CLAUDE_WEB|2|+15555550100||comped-demo|0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAID_GRANT"
    },
    {
      "key": "PAID_LANE_LOOKUP",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: What a phone number may run: the live paid capabilities bound to its profile with uses left and expiry. WHEN_TO_USE: the messaging pre-route decides whether an inbound text belongs to a paying sender. ARGS: phone EX: [PAID_LANE_LOOKUP]+15555550100[/PAID_LANE_LOOKUP] TESTS: Returns profile_id and capabilities[]; an unknown number returns profile_id null.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAID_LANE_LOOKUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAID_LANE_LOOKUP",
        "type": "fn",
        "what": [
          "WHAT: What a phone number may run: the live paid capabilities bound to its profile with uses left and expiry.",
          "WHEN_TO_USE: the messaging pre-route decides whether an inbound text belongs to a paying sender.",
          "ARGS: phone",
          "EX: [PAID_LANE_LOOKUP]+15555550100[/PAID_LANE_LOOKUP]",
          "TESTS: Returns profile_id and capabilities[]; an unknown number returns profile_id null."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+15555550100",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "profile_id and capabilities[]; an unknown number returns profile_id null.",
        "example": "[PAID_LANE_LOOKUP]+15555550100[/PAID_LANE_LOOKUP]",
        "tag": "[PAID_LANE_LOOKUP]<+15555550100 …>[/PAID_LANE_LOOKUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAID_LANE_LOOKUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAID_LANE_LOOKUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PAID_LANE_LOOKUP",
        "update": "PUT /api/directory/PAID_LANE_LOOKUP",
        "patch": "PATCH /api/directory/PAID_LANE_LOOKUP",
        "delete": "DELETE /api/directory/PAID_LANE_LOOKUP",
        "invoke": "POST /api/dispatch {\"key\":\"PAID_LANE_LOOKUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAID_LANE_LOOKUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAID_LANE_LOOKUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAID_LANE_LOOKUP"
      },
      "examples": "[\"+15555550100\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAID_LANE_LOOKUP"
    },
    {
      "key": "PANEL",
      "type": "http",
      "category": "llm",
      "doc": "WHAT: Ask a panel of LLMs the same questions about one article. Body JSON: {article, questions[], models[]}. Default models GROK_CHAT, KIMI_CHAT, WORKERS_AI_CHAT WHEN_TO_USE: you need to panel ARGS: see content EX: [PANEL]arg1[/PANEL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PANEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PANEL",
        "type": "http",
        "what": [
          "WHAT: Ask a panel of LLMs the same questions about one article. Body JSON: {article, questions[], models[]}. Default models GROK_CHAT, KIMI_CHAT, WORKERS_AI_CHAT",
          "WHEN_TO_USE: you need to panel",
          "ARGS: see content",
          "EX: [PANEL]arg1[/PANEL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PANEL]arg1[/PANEL]",
        "tag": "[PANEL]<arg1>[/PANEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PANEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PANEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1",
      "edit": {
        "read": "GET /api/directory/PANEL",
        "update": "PUT /api/directory/PANEL",
        "patch": "PATCH /api/directory/PANEL",
        "delete": "DELETE /api/directory/PANEL",
        "invoke": "POST /api/dispatch {\"key\":\"PANEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PANEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PANEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PANEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PANEL"
    },
    {
      "key": "PANIC_REVOKE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: End every token bound to a profile, device or session at once, end its leases, revoke its devices. One call. WHEN_TO_USE: something leaked. ARGS: profile or device or session|id|reason EX: [PANIC_REVOKE]profile|prf_abc|token seen in a paste[/PANIC_REVOKE] TESTS: Returns the tokens revoked, leases ended and devices revoked; owner only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PANIC_REVOKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PANIC_REVOKE",
        "type": "fn",
        "what": [
          "WHAT: End every token bound to a profile, device or session at once, end its leases, revoke its devices. One call.",
          "WHEN_TO_USE: something leaked.",
          "ARGS: profile or device or session|id|reason",
          "EX: [PANIC_REVOKE]profile|prf_abc|token seen in a paste[/PANIC_REVOKE]",
          "TESTS: Returns the tokens revoked, leases ended and devices revoked; owner only."
        ],
        "args": [
          {
            "pos": 1,
            "name": "profile",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the tokens revoked, leases ended and devices revoked; owner only.",
        "example": "[PANIC_REVOKE]profile|prf_abc|token seen in a paste[/PANIC_REVOKE]",
        "tag": "[PANIC_REVOKE]<profile …>[/PANIC_REVOKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PANIC_REVOKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PANIC_REVOKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PANIC_REVOKE",
        "update": "PUT /api/directory/PANIC_REVOKE",
        "patch": "PATCH /api/directory/PANIC_REVOKE",
        "delete": "DELETE /api/directory/PANIC_REVOKE",
        "invoke": "POST /api/dispatch {\"key\":\"PANIC_REVOKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PANIC_REVOKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PANIC_REVOKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PANIC_REVOKE"
      },
      "examples": "[\"profile|prf_abc|token seen in a paste\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PANIC_REVOKE"
    },
    {
      "key": "PAYMENTS_CREATE_REFUND",
      "type": "fn",
      "category": "payments",
      "doc": "This tool will refund a payment intent in Stripe. It takes three arguments: - payment_intent (str): The ID of the payment intent to refund. - amount (int, optional): The amount to refund in currency m MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_CREATE_REFUND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_CREATE_REFUND",
        "type": "fn",
        "what": [
          "This tool will refund a payment intent in Stripe. It takes three arguments: - payment_intent (str): The ID of the payment intent to refund. - amount (int, optional): The amount to refund in currency m",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_CREATE_REFUND]arg1[/PAYMENTS_CREATE_REFUND]",
        "tag": "[PAYMENTS_CREATE_REFUND]<arg1 …>[/PAYMENTS_CREATE_REFUND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_CREATE_REFUND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_CREATE_REFUND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"create_refund\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_CREATE_REFUND",
        "update": "PUT /api/directory/PAYMENTS_CREATE_REFUND",
        "patch": "PATCH /api/directory/PAYMENTS_CREATE_REFUND",
        "delete": "DELETE /api/directory/PAYMENTS_CREATE_REFUND",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_CREATE_REFUND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_CREATE_REFUND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_CREATE_REFUND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_CREATE_REFUND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_CREATE_REFUND"
    },
    {
      "key": "PAYMENTS_FETCH_STRIPE_RESOURCES",
      "type": "fn",
      "category": "payments",
      "doc": "Retrieve Stripe object details by ID. IMPORTANT: Only call this tool after search_stripe_resources is called to get specific object IDs. Do not use this tool to discover or search for objects. This to MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_FETCH_STRIPE_RESOURCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_FETCH_STRIPE_RESOURCES",
        "type": "fn",
        "what": [
          "Retrieve Stripe object details by ID. IMPORTANT: Only call this tool after search_stripe_resources is called to get specific object IDs. Do not use this tool to discover or search for objects. This to",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_FETCH_STRIPE_RESOURCES]arg1[/PAYMENTS_FETCH_STRIPE_RESOURCES]",
        "tag": "[PAYMENTS_FETCH_STRIPE_RESOURCES]<arg1 …>[/PAYMENTS_FETCH_STRIPE_RESOURCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_FETCH_STRIPE_RESOURCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_FETCH_STRIPE_RESOURCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"fetch_stripe_resources\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_FETCH_STRIPE_RESOURCES",
        "update": "PUT /api/directory/PAYMENTS_FETCH_STRIPE_RESOURCES",
        "patch": "PATCH /api/directory/PAYMENTS_FETCH_STRIPE_RESOURCES",
        "delete": "DELETE /api/directory/PAYMENTS_FETCH_STRIPE_RESOURCES",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_FETCH_STRIPE_RESOURCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_FETCH_STRIPE_RESOURCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_FETCH_STRIPE_RESOURCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_FETCH_STRIPE_RESOURCES"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_FETCH_STRIPE_RESOURCES"
    },
    {
      "key": "PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
      "type": "fn",
      "category": "payments",
      "doc": "This will get the account info for the logged in Stripe account.  MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
        "type": "fn",
        "what": [
          "This will get the account info for the logged in Stripe account. ",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_GET_STRIPE_ACCOUNT_INFO]arg1[/PAYMENTS_GET_STRIPE_ACCOUNT_INFO]",
        "tag": "[PAYMENTS_GET_STRIPE_ACCOUNT_INFO]<arg1 …>[/PAYMENTS_GET_STRIPE_ACCOUNT_INFO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_GET_STRIPE_ACCOUNT_INFO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_GET_STRIPE_ACCOUNT_INFO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"get_stripe_account_info\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
        "update": "PUT /api/directory/PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
        "patch": "PATCH /api/directory/PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
        "delete": "DELETE /api/directory/PAYMENTS_GET_STRIPE_ACCOUNT_INFO",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_GET_STRIPE_ACCOUNT_INFO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_GET_STRIPE_ACCOUNT_INFO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_GET_STRIPE_ACCOUNT_INFO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_GET_STRIPE_ACCOUNT_INFO"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_GET_STRIPE_ACCOUNT_INFO"
    },
    {
      "key": "PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
      "type": "fn",
      "category": "payments",
      "doc": "Search the Stripe documentation for the given question and language. It takes two arguments: - question (str): The user question to search an answer for in the Stripe documentation. - language (str, o MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
        "type": "fn",
        "what": [
          "Search the Stripe documentation for the given question and language. It takes two arguments: - question (str): The user question to search an answer for in the Stripe documentation. - language (str, o",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_SEARCH_STRIPE_DOCUMENTATION]arg1[/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION]",
        "tag": "[PAYMENTS_SEARCH_STRIPE_DOCUMENTATION]<arg1 …>[/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_SEARCH_STRIPE_DOCUMENTATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"search_stripe_documentation\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
        "update": "PUT /api/directory/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
        "patch": "PATCH /api/directory/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
        "delete": "DELETE /api/directory/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_SEARCH_STRIPE_DOCUMENTATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_SEARCH_STRIPE_DOCUMENTATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_SEARCH_STRIPE_DOCUMENTATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_SEARCH_STRIPE_DOCUMENTATION"
      },
      "examples": "[\"create a payment|en\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_SEARCH_STRIPE_DOCUMENTATION"
    },
    {
      "key": "PAYMENTS_SEARCH_STRIPE_RESOURCES",
      "type": "fn",
      "category": "payments",
      "doc": "This tool can be used to search for specific Stripe resources using a custom Stripe query syntax. It is only able to search for the following resources: customers, payment_intents, charges, invoices,  MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_SEARCH_STRIPE_RESOURCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_SEARCH_STRIPE_RESOURCES",
        "type": "fn",
        "what": [
          "This tool can be used to search for specific Stripe resources using a custom Stripe query syntax. It is only able to search for the following resources: customers, payment_intents, charges, invoices, ",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_SEARCH_STRIPE_RESOURCES]arg1[/PAYMENTS_SEARCH_STRIPE_RESOURCES]",
        "tag": "[PAYMENTS_SEARCH_STRIPE_RESOURCES]<arg1 …>[/PAYMENTS_SEARCH_STRIPE_RESOURCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_SEARCH_STRIPE_RESOURCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_SEARCH_STRIPE_RESOURCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"search_stripe_resources\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_SEARCH_STRIPE_RESOURCES",
        "update": "PUT /api/directory/PAYMENTS_SEARCH_STRIPE_RESOURCES",
        "patch": "PATCH /api/directory/PAYMENTS_SEARCH_STRIPE_RESOURCES",
        "delete": "DELETE /api/directory/PAYMENTS_SEARCH_STRIPE_RESOURCES",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_SEARCH_STRIPE_RESOURCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_SEARCH_STRIPE_RESOURCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_SEARCH_STRIPE_RESOURCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_SEARCH_STRIPE_RESOURCES"
      },
      "examples": "[\"invoices status:paid limit:3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_SEARCH_STRIPE_RESOURCES"
    },
    {
      "key": "PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
      "type": "fn",
      "category": "payments",
      "doc": "Submit feedback from user or agent about Stripe's MCP server tools. Valid: \"the search tool returned irrelevant results\", \"I wish there was a tool for X\" Invalid: Stripe API complaints, AI model issue MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
        "type": "fn",
        "what": [
          "Submit feedback from user or agent about Stripe's MCP server tools. Valid: \"the search tool returned irrelevant results\", \"I wish there was a tool for X\" Invalid: Stripe API complaints, AI model issue",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_SEND_STRIPE_MCP_FEEDBACK]arg1[/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK]",
        "tag": "[PAYMENTS_SEND_STRIPE_MCP_FEEDBACK]<arg1 …>[/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_SEND_STRIPE_MCP_FEEDBACK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"send_stripe_mcp_feedback\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
        "update": "PUT /api/directory/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
        "patch": "PATCH /api/directory/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
        "delete": "DELETE /api/directory/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_SEND_STRIPE_MCP_FEEDBACK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_SEND_STRIPE_MCP_FEEDBACK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_SEND_STRIPE_MCP_FEEDBACK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_SEND_STRIPE_MCP_FEEDBACK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_SEND_STRIPE_MCP_FEEDBACK"
    },
    {
      "key": "PAYMENTS_STRIPE_API_DETAILS",
      "type": "fn",
      "category": "payments",
      "doc": "Get detailed parameter information for a specific Stripe API operation. Provide the stripe_api_operation_id from stripe_api_search results to see all path, query, and body parameters with their types, MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_STRIPE_API_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_STRIPE_API_DETAILS",
        "type": "fn",
        "what": [
          "Get detailed parameter information for a specific Stripe API operation. Provide the stripe_api_operation_id from stripe_api_search results to see all path, query, and body parameters with their types,",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_STRIPE_API_DETAILS]arg1[/PAYMENTS_STRIPE_API_DETAILS]",
        "tag": "[PAYMENTS_STRIPE_API_DETAILS]<arg1 …>[/PAYMENTS_STRIPE_API_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_STRIPE_API_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_STRIPE_API_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"stripe_api_details\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_STRIPE_API_DETAILS",
        "update": "PUT /api/directory/PAYMENTS_STRIPE_API_DETAILS",
        "patch": "PATCH /api/directory/PAYMENTS_STRIPE_API_DETAILS",
        "delete": "DELETE /api/directory/PAYMENTS_STRIPE_API_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_STRIPE_API_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_STRIPE_API_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_STRIPE_API_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_STRIPE_API_DETAILS"
      },
      "examples": "[\"probe-nonexistent-id\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_STRIPE_API_DETAILS"
    },
    {
      "key": "PAYMENTS_STRIPE_API_READ",
      "type": "fn",
      "category": "payments",
      "doc": "Read data from any Stripe API GET operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with nested object field MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_STRIPE_API_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_STRIPE_API_READ",
        "type": "fn",
        "what": [
          "Read data from any Stripe API GET operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with nested object field",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_STRIPE_API_READ]arg1[/PAYMENTS_STRIPE_API_READ]",
        "tag": "[PAYMENTS_STRIPE_API_READ]<arg1 …>[/PAYMENTS_STRIPE_API_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_STRIPE_API_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_STRIPE_API_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"stripe_api_read\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_STRIPE_API_READ",
        "update": "PUT /api/directory/PAYMENTS_STRIPE_API_READ",
        "patch": "PATCH /api/directory/PAYMENTS_STRIPE_API_READ",
        "delete": "DELETE /api/directory/PAYMENTS_STRIPE_API_READ",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_STRIPE_API_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_STRIPE_API_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_STRIPE_API_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_STRIPE_API_READ"
      },
      "examples": "[\"GetCustomers|limit=3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_STRIPE_API_READ"
    },
    {
      "key": "PAYMENTS_STRIPE_API_SEARCH",
      "type": "fn",
      "category": "payments",
      "doc": "Search for Stripe API operations by keyword. Returns matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum  MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_STRIPE_API_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_STRIPE_API_SEARCH",
        "type": "fn",
        "what": [
          "Search for Stripe API operations by keyword. Returns matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum ",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum",
        "example": "[PAYMENTS_STRIPE_API_SEARCH]arg1[/PAYMENTS_STRIPE_API_SEARCH]",
        "tag": "[PAYMENTS_STRIPE_API_SEARCH]<arg1 …>[/PAYMENTS_STRIPE_API_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_STRIPE_API_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_STRIPE_API_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"stripe_api_search\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_STRIPE_API_SEARCH",
        "update": "PUT /api/directory/PAYMENTS_STRIPE_API_SEARCH",
        "patch": "PATCH /api/directory/PAYMENTS_STRIPE_API_SEARCH",
        "delete": "DELETE /api/directory/PAYMENTS_STRIPE_API_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_STRIPE_API_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_STRIPE_API_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_STRIPE_API_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_STRIPE_API_SEARCH"
      },
      "examples": "[\"customer\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_STRIPE_API_SEARCH"
    },
    {
      "key": "PAYMENTS_STRIPE_API_WRITE",
      "type": "fn",
      "category": "payments",
      "doc": "Write data via any Stripe API POST/PATCH/PUT/DELETE operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with n MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_STRIPE_API_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_STRIPE_API_WRITE",
        "type": "fn",
        "what": [
          "Write data via any Stripe API POST/PATCH/PUT/DELETE operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with n",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_STRIPE_API_WRITE]arg1[/PAYMENTS_STRIPE_API_WRITE]",
        "tag": "[PAYMENTS_STRIPE_API_WRITE]<arg1 …>[/PAYMENTS_STRIPE_API_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_STRIPE_API_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_STRIPE_API_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"stripe_api_write\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_STRIPE_API_WRITE",
        "update": "PUT /api/directory/PAYMENTS_STRIPE_API_WRITE",
        "patch": "PATCH /api/directory/PAYMENTS_STRIPE_API_WRITE",
        "delete": "DELETE /api/directory/PAYMENTS_STRIPE_API_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_STRIPE_API_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_STRIPE_API_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_STRIPE_API_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_STRIPE_API_WRITE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_STRIPE_API_WRITE"
    },
    {
      "key": "PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
      "type": "fn",
      "category": "payments",
      "doc": "Stripe payment integration planner. Use this tool to help users accept payments, sell products online, set up billing, or build any Stripe integration. Call this BEFORE writing code when the user want MCP: https://mcp.stripe.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
        "type": "fn",
        "what": [
          "Stripe payment integration planner. Use this tool to help users accept payments, sell products online, set up billing, or build any Stripe integration. Call this BEFORE writing code when the user want",
          "MCP: https://mcp.stripe.com"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER]arg1[/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER]",
        "tag": "[PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER]<arg1 …>[/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com\",\"stripe_implementation_planner\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
        "update": "PUT /api/directory/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
        "patch": "PATCH /api/directory/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
        "delete": "DELETE /api/directory/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER",
        "invoke": "POST /api/dispatch {\"key\":\"PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER"
      },
      "examples": "[\"probe-nonexistent-id\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAYMENTS_STRIPE_IMPLEMENTATION_PLANNER"
    },
    {
      "key": "PAY_LINK",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Create the Stripe product, price and payment link for one priced row with a rights record. The payment collects the buyer's phone; the webhook mints the token. A Stripe write: the owner's go-ahead phrase must be in the third field. WHEN_TO_USE: the owner opens a row for sale. ARGS: row_key|units|go ahead and create the payment link EX: [PAY_LINK]CLAUDE_WEB|4|go ahead and create the payment link[/PAY_LINK] TESTS: Without the phrase: ERR:STRIPE_WRITE_GATED. Without rights: ERR:RIGHTS_MISSING. With both: the link URL and a ledger event; a second call reuses the link.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PAY_LINK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PAY_LINK",
        "type": "fn",
        "what": [
          "WHAT: Create the Stripe product, price and payment link for one priced row with a rights record. The payment collects the buyer's phone; the webhook mints the token. A Stripe write: the owner's go-ahead phrase must be in the third field.",
          "WHEN_TO_USE: the owner opens a row for sale.",
          "ARGS: row_key|units|go ahead and create the payment link",
          "EX: [PAY_LINK]CLAUDE_WEB|4|go ahead and create the payment link[/PAY_LINK]",
          "TESTS: Without the phrase: ERR:STRIPE_WRITE_GATED. Without rights: ERR:RIGHTS_MISSING. With both: the link URL and a ledger event; a second call reuses the link."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CLAUDE_WEB",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PAY_LINK]CLAUDE_WEB|4|go ahead and create the payment link[/PAY_LINK]",
        "tag": "[PAY_LINK]<CLAUDE_WEB …>[/PAY_LINK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PAY_LINK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PAY_LINK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PAY_LINK",
        "update": "PUT /api/directory/PAY_LINK",
        "patch": "PATCH /api/directory/PAY_LINK",
        "delete": "DELETE /api/directory/PAY_LINK",
        "invoke": "POST /api/dispatch {\"key\":\"PAY_LINK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PAY_LINK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PAY_LINK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PAY_LINK"
      },
      "examples": "[\"CLAUDE_WEB|4|go ahead and create the payment link\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PAY_LINK"
    },
    {
      "key": "PEPPER",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PEPPER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PEPPER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PEPPER][/PEPPER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PEPPER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PEPPER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PEPPER",
        "update": "PUT /api/directory/PEPPER",
        "patch": "PATCH /api/directory/PEPPER",
        "delete": "DELETE /api/directory/PEPPER",
        "invoke": "POST /api/dispatch {\"key\":\"PEPPER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PEPPER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PEPPER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PEPPER"
      },
      "examples": "[\"x\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PEPPER"
    },
    {
      "key": "PEPTIDE_ROUTER",
      "type": "flow",
      "category": "content-ops",
      "doc": "Before replying about a peptide, check if an internal article exists. $1=peptide name (e.g., bpc-157, tb-500, ara-290). Use when user asks about peptides or supplements.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PEPTIDE_ROUTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PEPTIDE_ROUTER",
        "type": "flow",
        "what": [
          "Before replying about a peptide, check if an internal article exists. $1=peptide name (e.g., bpc-157, tb-500, ara-290). Use when user asks about peptides or supplements."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "peptide name (e.g., bpc-157, tb-500, ara-290). Use when user asks about peptides or supplements.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PEPTIDE_ROUTER]arg1[/PEPTIDE_ROUTER]",
        "tag": "[PEPTIDE_ROUTER]<arg1>[/PEPTIDE_ROUTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PEPTIDE_ROUTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PEPTIDE_ROUTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PEPTIDE_ROUTER",
        "update": "PUT /api/directory/PEPTIDE_ROUTER",
        "patch": "PATCH /api/directory/PEPTIDE_ROUTER",
        "delete": "DELETE /api/directory/PEPTIDE_ROUTER",
        "invoke": "POST /api/dispatch {\"key\":\"PEPTIDE_ROUTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PEPTIDE_ROUTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PEPTIDE_ROUTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PEPTIDE_ROUTER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PEPTIDE_ROUTER"
    },
    {
      "key": "PEPTIDE_WRITER",
      "type": "agent",
      "category": null,
      "doc": "PEPTIDE_WRITER — 57-article content map",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PEPTIDE_WRITER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PEPTIDE_WRITER",
        "type": "agent",
        "what": [
          "PEPTIDE_WRITER — 57-article content map"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PEPTIDE_WRITER][/PEPTIDE_WRITER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PEPTIDE_WRITER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PEPTIDE_WRITER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PEPTIDE_WRITER",
        "update": "PUT /api/directory/PEPTIDE_WRITER",
        "patch": "PATCH /api/directory/PEPTIDE_WRITER",
        "delete": "DELETE /api/directory/PEPTIDE_WRITER",
        "invoke": "POST /api/dispatch {\"key\":\"PEPTIDE_WRITER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PEPTIDE_WRITER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PEPTIDE_WRITER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PEPTIDE_WRITER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PEPTIDE_WRITER"
    },
    {
      "key": "PHONE_APPROVAL_CREATE",
      "type": "fn",
      "category": "phone",
      "doc": "WHAT: insert a row into `approvals` (status=pending) and notify the owner's phone. WHEN_TO_USE: about to do something destructive (deploy, send outreach, delete, pay) — pause first. ARGS: action|summary|resume_key|resume_body. resume_key + body are dispatched on approve. EX: PHONE_APPROVAL_CREATE deploy|prod deploy of miscsubjects-pages|LOCAL_EXEC|cd /Users/the owner/miscsubjects-pages && npx wrangler pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true TESTS: row in approvals with status=pending; iMessage arrives with id + Approve/Deny instructions.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_APPROVAL_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_APPROVAL_CREATE",
        "type": "fn",
        "what": [
          "WHAT: insert a row into `approvals` (status=pending) and notify the owner's phone.",
          "WHEN_TO_USE: about to do something destructive (deploy, send outreach, delete, pay) — pause first.",
          "ARGS: action|summary|resume_key|resume_body. resume_key + body are dispatched on approve.",
          "EX: PHONE_APPROVAL_CREATE deploy|prod deploy of miscsubjects-pages|LOCAL_EXEC|cd /Users/the owner/miscsubjects-pages && npx wrangler pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true",
          "TESTS: row in approvals with status=pending; iMessage arrives with id + Approve/Deny instructions."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "PHONE_APPROVAL_CREATE deploy|prod deploy of miscsubjects-pages|LOCAL_EXEC|cd /Users/the owner/miscsubjects-pages && npx wrangler pages deploy public --project-name loop-safe-miscsubjects --commit-dirty=true",
        "tag": "[PHONE_APPROVAL_CREATE]<arg1>|<arg2>|<arg3>|<arg4>[/PHONE_APPROVAL_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_APPROVAL_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_APPROVAL_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/PHONE_APPROVAL_CREATE",
        "update": "PUT /api/directory/PHONE_APPROVAL_CREATE",
        "patch": "PATCH /api/directory/PHONE_APPROVAL_CREATE",
        "delete": "DELETE /api/directory/PHONE_APPROVAL_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_APPROVAL_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_APPROVAL_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_APPROVAL_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_APPROVAL_CREATE"
      },
      "examples": "[\"smoke|smoke approval \\u2014 delete me|NOW|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_APPROVAL_CREATE"
    },
    {
      "key": "PHONE_APPROVAL_RESOLVE",
      "type": "fn",
      "category": "phone",
      "doc": "WHAT: update approvals.status to approved/denied and, on approve, dispatch the stored resume_key. WHEN_TO_USE: phone tap, /admin/approvals click, or natural-language \"approve 12\". ARGS: approval_id|decision (approve|deny). EX: PHONE_APPROVAL_RESOLVE 12|approve TESTS: approvals.status flips; if approve, the resume dispatch returns a real trace.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_APPROVAL_RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_APPROVAL_RESOLVE",
        "type": "fn",
        "what": [
          "WHAT: update approvals.status to approved/denied and, on approve, dispatch the stored resume_key.",
          "WHEN_TO_USE: phone tap, /admin/approvals click, or natural-language \"approve 12\".",
          "ARGS: approval_id|decision (approve|deny).",
          "EX: PHONE_APPROVAL_RESOLVE 12|approve",
          "TESTS: approvals.status flips; if approve, the resume dispatch returns a real trace."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a real trace.",
        "example": "PHONE_APPROVAL_RESOLVE 12|approve",
        "tag": "[PHONE_APPROVAL_RESOLVE]<arg1>|<arg2>[/PHONE_APPROVAL_RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_APPROVAL_RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_APPROVAL_RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/PHONE_APPROVAL_RESOLVE",
        "update": "PUT /api/directory/PHONE_APPROVAL_RESOLVE",
        "patch": "PATCH /api/directory/PHONE_APPROVAL_RESOLVE",
        "delete": "DELETE /api/directory/PHONE_APPROVAL_RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_APPROVAL_RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_APPROVAL_RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_APPROVAL_RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_APPROVAL_RESOLVE"
      },
      "examples": "[\"PHONE_APPROVAL_RESOLVE 12|approve\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_APPROVAL_RESOLVE"
    },
    {
      "key": "PHONE_CAMERA",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Run the Take Photo Shortcut. ARGS: none EX: [PHONE_CAMERA][/PHONE_CAMERA]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_CAMERA",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_CAMERA",
        "type": "http",
        "what": [
          "WHAT: Run the Take Photo Shortcut.",
          "ARGS: none",
          "EX: [PHONE_CAMERA][/PHONE_CAMERA]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PHONE_CAMERA][/PHONE_CAMERA]",
        "tag": "[PHONE_CAMERA][/PHONE_CAMERA]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_CAMERA\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_CAMERA  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"name\": \"Take Photo\"}",
      "edit": {
        "read": "GET /api/directory/PHONE_CAMERA",
        "update": "PUT /api/directory/PHONE_CAMERA",
        "patch": "PATCH /api/directory/PHONE_CAMERA",
        "delete": "DELETE /api/directory/PHONE_CAMERA",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_CAMERA\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_CAMERA\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_CAMERA\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_CAMERA"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_CAMERA"
    },
    {
      "key": "PHONE_CLIPBOARD_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: phone clipboard contents → ROUTER. Same shape as share_text but explicitly tagged. WHEN_TO_USE: /api/phone/in action=clipboard. ARGS: clipboard_text.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_CLIPBOARD_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_CLIPBOARD_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: phone clipboard contents → ROUTER. Same shape as share_text but explicitly tagged.",
          "WHEN_TO_USE: /api/phone/in action=clipboard.",
          "ARGS: clipboard_text."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PHONE_CLIPBOARD_HANDLE]arg1[/PHONE_CLIPBOARD_HANDLE]",
        "tag": "[PHONE_CLIPBOARD_HANDLE]<arg1>[/PHONE_CLIPBOARD_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_CLIPBOARD_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_CLIPBOARD_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_CLIPBOARD_HANDLE",
        "update": "PUT /api/directory/PHONE_CLIPBOARD_HANDLE",
        "patch": "PATCH /api/directory/PHONE_CLIPBOARD_HANDLE",
        "delete": "DELETE /api/directory/PHONE_CLIPBOARD_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_CLIPBOARD_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_CLIPBOARD_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_CLIPBOARD_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_CLIPBOARD_HANDLE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_CLIPBOARD_HANDLE"
    },
    {
      "key": "PHONE_EVENTS_TAIL",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: tail the phone_events table. ARGS: limit (default 20). WHEN_TO_USE: \"what did my phone send today\".",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_EVENTS_TAIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_EVENTS_TAIL",
        "type": "http",
        "what": [
          "WHAT: tail the phone_events table. ARGS: limit (default 20).",
          "WHEN_TO_USE: \"what did my phone send today\"."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PHONE_EVENTS_TAIL]arg1[/PHONE_EVENTS_TAIL]",
        "tag": "[PHONE_EVENTS_TAIL]<arg1>[/PHONE_EVENTS_TAIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_EVENTS_TAIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_EVENTS_TAIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PHONE_EVENTS_TAIL",
        "update": "PUT /api/directory/PHONE_EVENTS_TAIL",
        "patch": "PATCH /api/directory/PHONE_EVENTS_TAIL",
        "delete": "DELETE /api/directory/PHONE_EVENTS_TAIL",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_EVENTS_TAIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_EVENTS_TAIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_EVENTS_TAIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_EVENTS_TAIL"
      },
      "examples": "[\"30|2chat\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_EVENTS_TAIL"
    },
    {
      "key": "PHONE_LOCATION_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: phone location event → ROUTER. ARGS: location_label (e.g. \"arrived: home\"). WHEN_TO_USE: /api/phone/in action=location, NFC tap, geofence trigger. ARGS: location_label.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_LOCATION_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_LOCATION_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: phone location event → ROUTER. ARGS: location_label (e.g. \"arrived: home\").",
          "WHEN_TO_USE: /api/phone/in action=location, NFC tap, geofence trigger.",
          "ARGS: location_label."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PHONE_LOCATION_HANDLE]arg1[/PHONE_LOCATION_HANDLE]",
        "tag": "[PHONE_LOCATION_HANDLE]<arg1>[/PHONE_LOCATION_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_LOCATION_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_LOCATION_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_LOCATION_HANDLE",
        "update": "PUT /api/directory/PHONE_LOCATION_HANDLE",
        "patch": "PATCH /api/directory/PHONE_LOCATION_HANDLE",
        "delete": "DELETE /api/directory/PHONE_LOCATION_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_LOCATION_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_LOCATION_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_LOCATION_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_LOCATION_HANDLE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_LOCATION_HANDLE"
    },
    {
      "key": "PHONE_NOTIFY",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: send a push to the owner's phone via iMessage. WHEN_TO_USE: an agent finished a task, hit a milestone, or needs eyes on something. ARGS: title|body. Multi-line body OK. EX: PHONE_NOTIFY \"deploy done\"|\"see https://miscsubjects.com\" TESTS: should arrive on redacted as an iMessage starting with \"🔔 $1\".",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_NOTIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_NOTIFY",
        "type": "flow",
        "what": [
          "WHAT: send a push to the owner's phone via iMessage.",
          "WHEN_TO_USE: an agent finished a task, hit a milestone, or needs eyes on something.",
          "ARGS: title|body. Multi-line body OK.",
          "EX: PHONE_NOTIFY \"deploy done\"|\"see https://miscsubjects.com\"",
          "TESTS: should arrive on redacted as an iMessage starting with \"🔔 $1\"."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "PHONE_NOTIFY \"deploy done\"|\"see https://miscsubjects.com\"",
        "tag": "[PHONE_NOTIFY]<arg1>|<arg2>[/PHONE_NOTIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_NOTIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_NOTIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_NOTIFY",
        "update": "PUT /api/directory/PHONE_NOTIFY",
        "patch": "PATCH /api/directory/PHONE_NOTIFY",
        "delete": "DELETE /api/directory/PHONE_NOTIFY",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_NOTIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_NOTIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_NOTIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_NOTIFY"
      },
      "examples": "[\"PHONE_NOTIFY \\\"deploy done\\\"|\\\"see https://miscsubjects.com\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_NOTIFY"
    },
    {
      "key": "PHONE_REPLAY",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Replay any capability the phone recorder captured, by its dcap id, using the phone's own session — no phone in the loop. Observe→act→observe→verify→receipt. WHEN_TO_USE: call a recorded iPhone app endpoint from the build, a flow, a sheet or a schedule. ARGS: $1 = the dcap capability id (from PHONE_TOOLS).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_REPLAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_REPLAY",
        "type": "http",
        "what": [
          "WHAT: Replay any capability the phone recorder captured, by its dcap id, using the phone's own session — no phone in the loop. Observe→act→observe→verify→receipt.",
          "WHEN_TO_USE: call a recorded iPhone app endpoint from the build, a flow, a sheet or a schedule.",
          "ARGS: $1 = the dcap capability id (from PHONE_TOOLS)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "the dcap capability id (from PHONE_TOOLS).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PHONE_REPLAY]arg1[/PHONE_REPLAY]",
        "tag": "[PHONE_REPLAY]<arg1>[/PHONE_REPLAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_REPLAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_REPLAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"capability_id\":\"$1\",\"args\":[]}",
      "edit": {
        "read": "GET /api/directory/PHONE_REPLAY",
        "update": "PUT /api/directory/PHONE_REPLAY",
        "patch": "PATCH /api/directory/PHONE_REPLAY",
        "delete": "DELETE /api/directory/PHONE_REPLAY",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_REPLAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_REPLAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_REPLAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_REPLAY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_REPLAY"
    },
    {
      "key": "PHONE_SHARE_IMAGE_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: phone shared an image — store as reference + route image URL through ROUTER (ARCADS picks it up). WHEN_TO_USE: /api/phone/in action=share_image or action=photo. ARGS: image_url|caption. EX: PHONE_SHARE_IMAGE_HANDLE https://example.com/competitor-ad.png|\"competitor ad — copy idea\" TESTS: ARCADS sees the URL and treats it as a reference image.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_SHARE_IMAGE_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_SHARE_IMAGE_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: phone shared an image — store as reference + route image URL through ROUTER (ARCADS picks it up).",
          "WHEN_TO_USE: /api/phone/in action=share_image or action=photo.",
          "ARGS: image_url|caption.",
          "EX: PHONE_SHARE_IMAGE_HANDLE https://example.com/competitor-ad.png|\"competitor ad — copy idea\"",
          "TESTS: ARCADS sees the URL and treats it as a reference image."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "PHONE_SHARE_IMAGE_HANDLE https://example.com/competitor-ad.png|\"competitor ad — copy idea\"",
        "tag": "[PHONE_SHARE_IMAGE_HANDLE]<arg1>|<arg2>[/PHONE_SHARE_IMAGE_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_SHARE_IMAGE_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_SHARE_IMAGE_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_SHARE_IMAGE_HANDLE",
        "update": "PUT /api/directory/PHONE_SHARE_IMAGE_HANDLE",
        "patch": "PATCH /api/directory/PHONE_SHARE_IMAGE_HANDLE",
        "delete": "DELETE /api/directory/PHONE_SHARE_IMAGE_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_SHARE_IMAGE_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_SHARE_IMAGE_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_SHARE_IMAGE_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_SHARE_IMAGE_HANDLE"
      },
      "examples": "[\"PHONE_SHARE_IMAGE_HANDLE https://example.com/competitor-ad.png|\\\"competitor ad \\u2014 copy idea\\\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_SHARE_IMAGE_HANDLE"
    },
    {
      "key": "PHONE_SHARE_TEXT_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: phone shared selected text — route straight to ROUTER as if the owner had typed it. WHEN_TO_USE: /api/phone/in action=share_text. ARGS: text. EX: PHONE_SHARE_TEXT_HANDLE \"remind me to follow up with Will Friday\" TESTS: ROUTER replies (or routes to BUILDER_ADD / THREAD_ADD as appropriate).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_SHARE_TEXT_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_SHARE_TEXT_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: phone shared selected text — route straight to ROUTER as if the owner had typed it.",
          "WHEN_TO_USE: /api/phone/in action=share_text.",
          "ARGS: text.",
          "EX: PHONE_SHARE_TEXT_HANDLE \"remind me to follow up with Will Friday\"",
          "TESTS: ROUTER replies (or routes to BUILDER_ADD / THREAD_ADD as appropriate)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "PHONE_SHARE_TEXT_HANDLE \"remind me to follow up with Will Friday\"",
        "tag": "[PHONE_SHARE_TEXT_HANDLE]<arg1>[/PHONE_SHARE_TEXT_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_SHARE_TEXT_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_SHARE_TEXT_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_SHARE_TEXT_HANDLE",
        "update": "PUT /api/directory/PHONE_SHARE_TEXT_HANDLE",
        "patch": "PATCH /api/directory/PHONE_SHARE_TEXT_HANDLE",
        "delete": "DELETE /api/directory/PHONE_SHARE_TEXT_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_SHARE_TEXT_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_SHARE_TEXT_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_SHARE_TEXT_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_SHARE_TEXT_HANDLE"
      },
      "examples": "[\"hello from the battery\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_SHARE_TEXT_HANDLE"
    },
    {
      "key": "PHONE_SHARE_URL_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: phone shared a URL via the Share Sheet — fetch its markdown and route to ROUTER as a normal turn. WHEN_TO_USE: /api/phone/in receives action=share_url. ARGS: text|url. EX: PHONE_SHARE_URL_HANDLE \"interesting\"|https://example.com/article TESTS: ROUTER receives a turn with the markdown body inlined and decides what to do.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_SHARE_URL_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_SHARE_URL_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: phone shared a URL via the Share Sheet — fetch its markdown and route to ROUTER as a normal turn.",
          "WHEN_TO_USE: /api/phone/in receives action=share_url.",
          "ARGS: text|url.",
          "EX: PHONE_SHARE_URL_HANDLE \"interesting\"|https://example.com/article",
          "TESTS: ROUTER receives a turn with the markdown body inlined and decides what to do."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "PHONE_SHARE_URL_HANDLE \"interesting\"|https://example.com/article",
        "tag": "[PHONE_SHARE_URL_HANDLE]<arg1>|<arg2>[/PHONE_SHARE_URL_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_SHARE_URL_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_SHARE_URL_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_SHARE_URL_HANDLE",
        "update": "PUT /api/directory/PHONE_SHARE_URL_HANDLE",
        "patch": "PATCH /api/directory/PHONE_SHARE_URL_HANDLE",
        "delete": "DELETE /api/directory/PHONE_SHARE_URL_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_SHARE_URL_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_SHARE_URL_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_SHARE_URL_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_SHARE_URL_HANDLE"
      },
      "examples": "[\"PHONE_SHARE_URL_HANDLE \\\"interesting\\\"|https://example.com/article\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_SHARE_URL_HANDLE"
    },
    {
      "key": "PHONE_TOOLS",
      "type": "http",
      "category": "phone",
      "doc": "WHAT: Everything the owner's iPhone can now do as an API, captured by the personal-world recorder and projected through the capability ledger. WHEN_TO_USE: to see or use the phone's recorded app calls as callable capabilities. ARGS: none.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_TOOLS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_TOOLS",
        "type": "http",
        "what": [
          "WHAT: Everything the owner's iPhone can now do as an API, captured by the personal-world recorder and projected through the capability ledger.",
          "WHEN_TO_USE: to see or use the phone's recorded app calls as callable capabilities.",
          "ARGS: none."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[PHONE_TOOLS][/PHONE_TOOLS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_TOOLS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_TOOLS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_TOOLS",
        "update": "PUT /api/directory/PHONE_TOOLS",
        "patch": "PATCH /api/directory/PHONE_TOOLS",
        "delete": "DELETE /api/directory/PHONE_TOOLS",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_TOOLS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_TOOLS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_TOOLS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_TOOLS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_TOOLS"
    },
    {
      "key": "PHONE_VOICE_NOTE_HANDLE",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: transcribe a phone voice memo and route the transcript through ROUTER like an iMessage. WHEN_TO_USE: /api/phone/in receives action=voice_note from an iOS Shortcut. ARGS: voice_url. EX: PHONE_VOICE_NOTE_HANDLE https://miscsubjects.com/img/gen/foo.m4a TESTS: ROUTER receives \"[channel ios_shortcut 1:1 ...] Now: (voice memo) <transcript>\" and replies.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PHONE_VOICE_NOTE_HANDLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PHONE_VOICE_NOTE_HANDLE",
        "type": "flow",
        "what": [
          "WHAT: transcribe a phone voice memo and route the transcript through ROUTER like an iMessage.",
          "WHEN_TO_USE: /api/phone/in receives action=voice_note from an iOS Shortcut.",
          "ARGS: voice_url.",
          "EX: PHONE_VOICE_NOTE_HANDLE https://miscsubjects.com/img/gen/foo.m4a",
          "TESTS: ROUTER receives \"[channel ios_shortcut 1:1 ...] Now: (voice memo) <transcript>\" and replies."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "PHONE_VOICE_NOTE_HANDLE https://miscsubjects.com/img/gen/foo.m4a",
        "tag": "[PHONE_VOICE_NOTE_HANDLE]<arg1>[/PHONE_VOICE_NOTE_HANDLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PHONE_VOICE_NOTE_HANDLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PHONE_VOICE_NOTE_HANDLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PHONE_VOICE_NOTE_HANDLE",
        "update": "PUT /api/directory/PHONE_VOICE_NOTE_HANDLE",
        "patch": "PATCH /api/directory/PHONE_VOICE_NOTE_HANDLE",
        "delete": "DELETE /api/directory/PHONE_VOICE_NOTE_HANDLE",
        "invoke": "POST /api/dispatch {\"key\":\"PHONE_VOICE_NOTE_HANDLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PHONE_VOICE_NOTE_HANDLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PHONE_VOICE_NOTE_HANDLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PHONE_VOICE_NOTE_HANDLE"
      },
      "examples": "[\"PHONE_VOICE_NOTE_HANDLE https://miscsubjects.com/img/gen/foo.m4a\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PHONE_VOICE_NOTE_HANDLE"
    },
    {
      "key": "PIPELINE_MAP",
      "type": "fn",
      "category": "pipeline",
      "doc": "Combinatorial matrix: every peptide x (condition+pharma), model-weighted. ARGS: none",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PIPELINE_MAP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PIPELINE_MAP",
        "type": "fn",
        "what": [
          "Combinatorial matrix: every peptide x (condition+pharma), model-weighted. ARGS: none"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[PIPELINE_MAP][/PIPELINE_MAP]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PIPELINE_MAP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PIPELINE_MAP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/PIPELINE_MAP",
        "update": "PUT /api/directory/PIPELINE_MAP",
        "patch": "PATCH /api/directory/PIPELINE_MAP",
        "delete": "DELETE /api/directory/PIPELINE_MAP",
        "invoke": "POST /api/dispatch {\"key\":\"PIPELINE_MAP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PIPELINE_MAP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PIPELINE_MAP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PIPELINE_MAP"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PIPELINE_MAP"
    },
    {
      "key": "PIPELINE_SEED",
      "type": "fn",
      "category": "pipeline",
      "doc": "Inventory one kind (peptide|condition|pharma) via the model; inserts rows. ARGS: kind",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PIPELINE_SEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PIPELINE_SEED",
        "type": "fn",
        "what": [
          "Inventory one kind (peptide|condition|pharma) via the model; inserts rows. ARGS: kind"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PIPELINE_SEED]arg1[/PIPELINE_SEED]",
        "tag": "[PIPELINE_SEED]<arg1>[/PIPELINE_SEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PIPELINE_SEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PIPELINE_SEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PIPELINE_SEED",
        "update": "PUT /api/directory/PIPELINE_SEED",
        "patch": "PATCH /api/directory/PIPELINE_SEED",
        "delete": "DELETE /api/directory/PIPELINE_SEED",
        "invoke": "POST /api/dispatch {\"key\":\"PIPELINE_SEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PIPELINE_SEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PIPELINE_SEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PIPELINE_SEED"
      },
      "examples": "[\"pharma\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PIPELINE_SEED"
    },
    {
      "key": "PIPELINE_STATUS",
      "type": "fn",
      "category": "pipeline",
      "doc": "Counts by kind/phase + top combos. ARGS: none",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PIPELINE_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PIPELINE_STATUS",
        "type": "fn",
        "what": [
          "Counts by kind/phase + top combos. ARGS: none"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[PIPELINE_STATUS][/PIPELINE_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PIPELINE_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PIPELINE_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/PIPELINE_STATUS",
        "update": "PUT /api/directory/PIPELINE_STATUS",
        "patch": "PATCH /api/directory/PIPELINE_STATUS",
        "delete": "DELETE /api/directory/PIPELINE_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"PIPELINE_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PIPELINE_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PIPELINE_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PIPELINE_STATUS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PIPELINE_STATUS"
    },
    {
      "key": "PIPELINE_WRITE",
      "type": "fn",
      "category": "pipeline",
      "doc": "Write one item: outline -> article -> POST with provenance. ARGS: id",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PIPELINE_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PIPELINE_WRITE",
        "type": "fn",
        "what": [
          "Write one item: outline -> article -> POST with provenance. ARGS: id"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PIPELINE_WRITE]arg1[/PIPELINE_WRITE]",
        "tag": "[PIPELINE_WRITE]<arg1>[/PIPELINE_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PIPELINE_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PIPELINE_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PIPELINE_WRITE",
        "update": "PUT /api/directory/PIPELINE_WRITE",
        "patch": "PATCH /api/directory/PIPELINE_WRITE",
        "delete": "DELETE /api/directory/PIPELINE_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"PIPELINE_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PIPELINE_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PIPELINE_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PIPELINE_WRITE"
      },
      "examples": "[\"34\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PIPELINE_WRITE"
    },
    {
      "key": "PLANNER",
      "type": "agent",
      "category": "agents",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PLANNER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PLANNER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PLANNER][/PLANNER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PLANNER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PLANNER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PLANNER",
        "update": "PUT /api/directory/PLANNER",
        "patch": "PATCH /api/directory/PLANNER",
        "delete": "DELETE /api/directory/PLANNER",
        "invoke": "POST /api/dispatch {\"key\":\"PLANNER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PLANNER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PLANNER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PLANNER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PLANNER"
    },
    {
      "key": "PLAYWRIGHT",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Proxy a tool call to the Playwright MCP server on the Mac bridge WHEN_TO_USE: drive a real browser: navigate, click, type, screenshot, evaluate JS, manage tabs ARGS: $1=tool_name, $2+=JSON arguments EX: [PLAYWRIGHT]browser_navigate|{\"url\":\"https://example.com\"}[/PLAYWRIGHT] TESTS: browser_navigate https://example.com returns page title/snapshot",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PLAYWRIGHT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PLAYWRIGHT",
        "type": "fn",
        "what": [
          "WHAT: Proxy a tool call to the Playwright MCP server on the Mac bridge",
          "WHEN_TO_USE: drive a real browser: navigate, click, type, screenshot, evaluate JS, manage tabs",
          "ARGS: $1=tool_name, $2+=JSON arguments",
          "EX: [PLAYWRIGHT]browser_navigate|{\"url\":\"https://example.com\"}[/PLAYWRIGHT]",
          "TESTS: browser_navigate https://example.com returns page title/snapshot"
        ],
        "args": [
          {
            "pos": 1,
            "name": "browser_navigate",
            "desc": "tool_name, $2+=JSON arguments",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "{\"url\":\"https://example.com\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [
          "TERMINAL_KEY"
        ],
        "returns": "page title/snapshot",
        "example": "[PLAYWRIGHT]browser_navigate|{\"url\":\"https://example.com\"}[/PLAYWRIGHT]",
        "tag": "[PLAYWRIGHT]<browser_navigate>|<{\"url\":\"https://example.com\"} …>[/PLAYWRIGHT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PLAYWRIGHT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PLAYWRIGHT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://bridge.miscsubjects.com/mcp\",\"$1\",\"$2+\",\"headers:{\\\"x-terminal-key\\\":\\\"$TERMINAL_KEY\\\"}\"]",
      "edit": {
        "read": "GET /api/directory/PLAYWRIGHT",
        "update": "PUT /api/directory/PLAYWRIGHT",
        "patch": "PATCH /api/directory/PLAYWRIGHT",
        "delete": "DELETE /api/directory/PLAYWRIGHT",
        "invoke": "POST /api/dispatch {\"key\":\"PLAYWRIGHT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PLAYWRIGHT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PLAYWRIGHT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PLAYWRIGHT"
      },
      "examples": "[\"Reply with the single word ACK and nothing else.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PLAYWRIGHT"
    },
    {
      "key": "PLAYWRIGHT_START",
      "type": "http",
      "category": "browser",
      "doc": "WHAT: Start the Playwright MCP server on the Mac bridge\\n# WHEN_TO_USE: before calling PLAYWRIGHT if the server is not running\\n# ARGS: none\\n# EX: [PLAYWRIGHT_START][/PLAYWRIGHT_START]\\n{\"cmd\":\"sh\",\"args\":[\"-lc\",\"/Users/the owner/miscsubjects-pages/bridge/playwright-mcp-launcher.sh\"],\"timeout\":600000}",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PLAYWRIGHT_START",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PLAYWRIGHT_START",
        "type": "http",
        "what": [
          "WHAT: Start the Playwright MCP server on the Mac bridge\\n# WHEN_TO_USE: before calling PLAYWRIGHT if the server is not running\\n# ARGS: none\\n# EX: [PLAYWRIGHT_START][/PLAYWRIGHT_START]\\n{\"cmd\":\"sh\",\"args\":[\"-lc\",\"/Users/the owner/miscsubjects-pages/bridge/playwright-mcp-launcher.sh\"],\"timeout\":600000}"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[PLAYWRIGHT_START][/PLAYWRIGHT_START]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PLAYWRIGHT_START\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PLAYWRIGHT_START  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PLAYWRIGHT_START",
        "update": "PUT /api/directory/PLAYWRIGHT_START",
        "patch": "PATCH /api/directory/PLAYWRIGHT_START",
        "delete": "DELETE /api/directory/PLAYWRIGHT_START",
        "invoke": "POST /api/dispatch {\"key\":\"PLAYWRIGHT_START\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PLAYWRIGHT_START\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PLAYWRIGHT_START\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PLAYWRIGHT_START"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PLAYWRIGHT_START"
    },
    {
      "key": "POLICY_STEP_UP_ACCOUNT_CHANGES",
      "type": "fn",
      "category": "policy",
      "doc": "WHAT: A policy row read at the one authorization door: any token invoking a Meta account-changing row (budget, status, delete) must present a device with a human verification inside the last ten minutes. Policies tighten bindings and never loosen them; disable this row and the requirement lifts with no deploy. WHEN_TO_USE: read by contextGateCheck on every invocation; not run by hand. ARGS: none (declarative) EX: none TESTS: a token bound to a device with a stale verification is refused TURNSTILE_STALE on META_ADS_BUDGET_SET while the row is enabled, and allowed when it is disabled.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "POLICY_STEP_UP_ACCOUNT_CHANGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "POLICY_STEP_UP_ACCOUNT_CHANGES",
        "type": "fn",
        "what": [
          "WHAT: A policy row read at the one authorization door: any token invoking a Meta account-changing row (budget, status, delete) must present a device with a human verification inside the last ten minutes. Policies tighten bindings and never loosen them; disable this row and the requirement lifts with no deploy.",
          "WHEN_TO_USE: read by contextGateCheck on every invocation; not run by hand.",
          "ARGS: none (declarative)",
          "EX: none",
          "TESTS: a token bound to a device with a stale verification is refused TURNSTILE_STALE on META_ADS_BUDGET_SET while the row is enabled, and allowed when it is disabled."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "none",
        "tag": "[POLICY_STEP_UP_ACCOUNT_CHANGES][/POLICY_STEP_UP_ACCOUNT_CHANGES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"POLICY_STEP_UP_ACCOUNT_CHANGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/POLICY_STEP_UP_ACCOUNT_CHANGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"match\":\"^META_ADS_(BUDGET_SET|STATUS_SET|OBJECT_DELETE)$\",\"require_verification_s\":600}",
      "edit": {
        "read": "GET /api/directory/POLICY_STEP_UP_ACCOUNT_CHANGES",
        "update": "PUT /api/directory/POLICY_STEP_UP_ACCOUNT_CHANGES",
        "patch": "PATCH /api/directory/POLICY_STEP_UP_ACCOUNT_CHANGES",
        "delete": "DELETE /api/directory/POLICY_STEP_UP_ACCOUNT_CHANGES",
        "invoke": "POST /api/dispatch {\"key\":\"POLICY_STEP_UP_ACCOUNT_CHANGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"POLICY_STEP_UP_ACCOUNT_CHANGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"POLICY_STEP_UP_ACCOUNT_CHANGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/POLICY_STEP_UP_ACCOUNT_CHANGES"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=POLICY_STEP_UP_ACCOUNT_CHANGES"
    },
    {
      "key": "POPULATE",
      "type": "fn",
      "category": "content-ops",
      "doc": "Grok+web-search adds evidence sources to a peptide article (2 rounds). ARGS: peptide",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "POPULATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "POPULATE",
        "type": "fn",
        "what": [
          "Grok+web-search adds evidence sources to a peptide article (2 rounds). ARGS: peptide"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[POPULATE]arg1[/POPULATE]",
        "tag": "[POPULATE]<arg1>[/POPULATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"POPULATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/POPULATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/POPULATE",
        "update": "PUT /api/directory/POPULATE",
        "patch": "PATCH /api/directory/POPULATE",
        "delete": "DELETE /api/directory/POPULATE",
        "invoke": "POST /api/dispatch {\"key\":\"POPULATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"POPULATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"POPULATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/POPULATE"
      },
      "examples": "[\"bpc-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=POPULATE"
    },
    {
      "key": "PRIVACY_EGRESS",
      "type": "http",
      "category": "privacy",
      "doc": "WHAT: Shape or record context egress under the OIP Privacy Profile. Dry-run classification/minimization never executes a transmission; authorization binds an exact hash/recipient/purpose; disclosure and erasure outcomes remain distinct. ARGS: JSON {action:shape|classify|minimize|authorize|disclose|erasure|conformance,...}. Read https://miscsubjects.com/api/privacy for exact per-action schemas. For real sensitive payloads call the owner-authenticated endpoint directly; dispatch receipts store invocation input, so use this row only with synthetic or already-redacted content. TESTS: No shape/classify/minimize action executes or stores payloads; request-sent never means deleted; recipient roles and legal bases are claims; unknown recipients stay unknown.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PRIVACY_EGRESS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PRIVACY_EGRESS",
        "type": "http",
        "what": [
          "WHAT: Shape or record context egress under the OIP Privacy Profile. Dry-run classification/minimization never executes a transmission; authorization binds an exact hash/recipient/purpose; disclosure and erasure outcomes remain distinct.",
          "ARGS: JSON {action:shape|classify|minimize|authorize|disclose|erasure|conformance,...}. Read https://miscsubjects.com/api/privacy for exact per-action schemas. For real sensitive payloads call the owner-authenticated endpoint directly; dispatch receipts store invocation input, so use this row only with synthetic or already-redacted content.",
          "TESTS: No shape/classify/minimize action executes or stores payloads; request-sent never means deleted; recipient roles and legal bases are claims; unknown recipients stay unknown."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PRIVACY_EGRESS]arg1[/PRIVACY_EGRESS]",
        "tag": "[PRIVACY_EGRESS]<arg1 …>[/PRIVACY_EGRESS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PRIVACY_EGRESS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PRIVACY_EGRESS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/PRIVACY_EGRESS",
        "update": "PUT /api/directory/PRIVACY_EGRESS",
        "patch": "PATCH /api/directory/PRIVACY_EGRESS",
        "delete": "DELETE /api/directory/PRIVACY_EGRESS",
        "invoke": "POST /api/dispatch {\"key\":\"PRIVACY_EGRESS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PRIVACY_EGRESS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PRIVACY_EGRESS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PRIVACY_EGRESS"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=PRIVACY_EGRESS"
    },
    {
      "key": "PROACTIVE_POKE",
      "type": "fn",
      "category": "tools",
      "doc": "WHAT: Send one short proactive text to the owner. Used by the cron; you can also trigger manually.\\n# EX: [PROACTIVE_POKE][/PROACTIVE_POKE]\\n[]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROACTIVE_POKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROACTIVE_POKE",
        "type": "fn",
        "what": [
          "WHAT: Send one short proactive text to the owner. Used by the cron; you can also trigger manually.\\n# EX: [PROACTIVE_POKE][/PROACTIVE_POKE]\\n[]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[PROACTIVE_POKE][/PROACTIVE_POKE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROACTIVE_POKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROACTIVE_POKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROACTIVE_POKE",
        "update": "PUT /api/directory/PROACTIVE_POKE",
        "patch": "PATCH /api/directory/PROACTIVE_POKE",
        "delete": "DELETE /api/directory/PROACTIVE_POKE",
        "invoke": "POST /api/dispatch {\"key\":\"PROACTIVE_POKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROACTIVE_POKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROACTIVE_POKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROACTIVE_POKE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROACTIVE_POKE"
    },
    {
      "key": "PROFILE_360",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: One profile, everything joined to it: devices and their trust, identifiers (masked), recent events, capability contexts bound to it, recent access decisions, and browser-model sessions acting as it. WHEN_TO_USE: an agent authorised for a human asks about that human, or the owner inspects an actor; one call instead of five unrelated lookups. ARGS: $1 = profile_id, optionally profile_id|how_many_events. EX: [PROFILE_360]prf_abc123[/PROFILE_360] TESTS: Returns profile, devices[], identifiers[] with value_masked only, events[], capability_contexts[], access_decisions[], model_sessions[].",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_360",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_360",
        "type": "fn",
        "what": [
          "WHAT: One profile, everything joined to it: devices and their trust, identifiers (masked), recent events, capability contexts bound to it, recent access decisions, and browser-model sessions acting as it.",
          "WHEN_TO_USE: an agent authorised for a human asks about that human, or the owner inspects an actor; one call instead of five unrelated lookups.",
          "ARGS: $1 = profile_id, optionally profile_id|how_many_events.",
          "EX: [PROFILE_360]prf_abc123[/PROFILE_360]",
          "TESTS: Returns profile, devices[], identifiers[] with value_masked only, events[], capability_contexts[], access_decisions[], model_sessions[]."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc123",
            "desc": "profile_id, optionally profile_id|how_many_events.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "profile, devices[], identifiers[] with value_masked only, events[], capability_contexts[], access_decisions[], model_sessions[].",
        "example": "[PROFILE_360]prf_abc123[/PROFILE_360]",
        "tag": "[PROFILE_360]<prf_abc123 …>[/PROFILE_360]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_360\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_360  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_360",
        "update": "PUT /api/directory/PROFILE_360",
        "patch": "PATCH /api/directory/PROFILE_360",
        "delete": "DELETE /api/directory/PROFILE_360",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_360\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_360\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_360\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_360"
      },
      "examples": "[\"prf_abc123\",\"prf_abc123|50\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_360"
    },
    {
      "key": "PROFILE_EVENT",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Append a first-party behavioural event to a profile: PAGE_VIEW, PRODUCT_VIEW, ADD_TO_CART, ORDER_CREATED, EXPERIMENT_EXPOSURE, or any named type, with device and session where known. External pixels are downstream of this row, never the source of truth. WHEN_TO_USE: something happened that the customer graph should remember. ARGS: $1 = profile_id|EVENT_TYPE|payload_json. Or JSON {profile_id, device_id, session_id, event_type, payload, url, source}. EX: [PROFILE_EVENT]prf_abc123|ADD_TO_CART|{\"sku\":\"BPC-157-10\"}[/PROFILE_EVENT] TESTS: Returns an evt_ event_id; PROFILE_360 lists it with its payload.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_EVENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_EVENT",
        "type": "fn",
        "what": [
          "WHAT: Append a first-party behavioural event to a profile: PAGE_VIEW, PRODUCT_VIEW, ADD_TO_CART, ORDER_CREATED, EXPERIMENT_EXPOSURE, or any named type, with device and session where known. External pixels are downstream of this row, never the source of truth.",
          "WHEN_TO_USE: something happened that the customer graph should remember.",
          "ARGS: $1 = profile_id|EVENT_TYPE|payload_json. Or JSON {profile_id, device_id, session_id, event_type, payload, url, source}.",
          "EX: [PROFILE_EVENT]prf_abc123|ADD_TO_CART|{\"sku\":\"BPC-157-10\"}[/PROFILE_EVENT]",
          "TESTS: Returns an evt_ event_id; PROFILE_360 lists it with its payload."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc123",
            "desc": "profile_id|EVENT_TYPE|payload_json. Or JSON {profile_id, device_id, session_id, event_type, payload, url, source}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "an evt_ event_id; PROFILE_360 lists it with its payload.",
        "example": "[PROFILE_EVENT]prf_abc123|ADD_TO_CART|{\"sku\":\"BPC-157-10\"}[/PROFILE_EVENT]",
        "tag": "[PROFILE_EVENT]<prf_abc123 …>[/PROFILE_EVENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_EVENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_EVENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_EVENT",
        "update": "PUT /api/directory/PROFILE_EVENT",
        "patch": "PATCH /api/directory/PROFILE_EVENT",
        "delete": "DELETE /api/directory/PROFILE_EVENT",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_EVENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_EVENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_EVENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_EVENT"
      },
      "examples": "[\"prf_abc123|PAGE_VIEW|{\\\"path\\\":\\\"/a/turnstile\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_EVENT"
    },
    {
      "key": "PROFILE_EVENT_FORWARD",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Forward one first-party profile event to the configured marketing destinations: Meta Conversions API (sha256-hashed email/phone only when the event carried them, plus a hashed external_id) and Klaviyo (external_id, email/phone only when present). The first-party row stays canonical; each destination is a consumer and the forward is written back onto the event as attribution. WHEN_TO_USE: automatically, from the event rule on source=identity action=profile_event; or by hand to re-forward one event. ARGS: $1 = evt_ id, or the event-bridge payload JSON; optionally evt_id|meta,klaviyo to limit destinations. EX: [PROFILE_EVENT_FORWARD]evt_abc123[/PROFILE_EVENT_FORWARD] TESTS: Returns results.meta.events_received 1 and results.klaviyo.status 202 for a live event, or a named PROVIDER_UNAVAILABLE per destination; never raw identifiers in the receipt.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_EVENT_FORWARD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_EVENT_FORWARD",
        "type": "fn",
        "what": [
          "WHAT: Forward one first-party profile event to the configured marketing destinations: Meta Conversions API (sha256-hashed email/phone only when the event carried them, plus a hashed external_id) and Klaviyo (external_id, email/phone only when present). The first-party row stays canonical; each destination is a consumer and the forward is written back onto the event as attribution.",
          "WHEN_TO_USE: automatically, from the event rule on source=identity action=profile_event; or by hand to re-forward one event.",
          "ARGS: $1 = evt_ id, or the event-bridge payload JSON; optionally evt_id|meta,klaviyo to limit destinations.",
          "EX: [PROFILE_EVENT_FORWARD]evt_abc123[/PROFILE_EVENT_FORWARD]",
          "TESTS: Returns results.meta.events_received 1 and results.klaviyo.status 202 for a live event, or a named PROVIDER_UNAVAILABLE per destination; never raw identifiers in the receipt."
        ],
        "args": [
          {
            "pos": 1,
            "name": "evt_abc123",
            "desc": "evt_ id, or the event-bridge payload JSON",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "results.meta.events_received 1 and results.klaviyo.status 202 for a live event, or a named PROVIDER_UNAVAILABLE per destination; never raw identifiers in the receipt.",
        "example": "[PROFILE_EVENT_FORWARD]evt_abc123[/PROFILE_EVENT_FORWARD]",
        "tag": "[PROFILE_EVENT_FORWARD]<evt_abc123 …>[/PROFILE_EVENT_FORWARD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_EVENT_FORWARD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_EVENT_FORWARD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_EVENT_FORWARD",
        "update": "PUT /api/directory/PROFILE_EVENT_FORWARD",
        "patch": "PATCH /api/directory/PROFILE_EVENT_FORWARD",
        "delete": "DELETE /api/directory/PROFILE_EVENT_FORWARD",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_EVENT_FORWARD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_EVENT_FORWARD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_EVENT_FORWARD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_EVENT_FORWARD"
      },
      "examples": "[\"evt_abc123\",\"evt_abc123|meta\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_EVENT_FORWARD"
    },
    {
      "key": "PROFILE_IDENTIFY",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Join an identifier (phone, email, Stripe customer, BigCommerce customer, Klaviyo profile, Blooio contact) to a profile. Stored as a keyed hash plus a masked form; the raw value is never written anywhere. WHEN_TO_USE: an SMS verification completes, a checkout identifies a customer, or a support thread resolves to a person. ARGS: $1 = profile_id|kind|value|source. EX: [PROFILE_IDENTIFY]prf_abc123|phone|+14245551234|sms_verify[/PROFILE_IDENTIFY] TESTS: Returns value_masked and value_hash, never the value; the same identifier on another profile is refused as PROFILE_MISMATCH with that profile named.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_IDENTIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_IDENTIFY",
        "type": "fn",
        "what": [
          "WHAT: Join an identifier (phone, email, Stripe customer, BigCommerce customer, Klaviyo profile, Blooio contact) to a profile. Stored as a keyed hash plus a masked form; the raw value is never written anywhere.",
          "WHEN_TO_USE: an SMS verification completes, a checkout identifies a customer, or a support thread resolves to a person.",
          "ARGS: $1 = profile_id|kind|value|source.",
          "EX: [PROFILE_IDENTIFY]prf_abc123|phone|+14245551234|sms_verify[/PROFILE_IDENTIFY]",
          "TESTS: Returns value_masked and value_hash, never the value; the same identifier on another profile is refused as PROFILE_MISMATCH with that profile named."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc123",
            "desc": "profile_id|kind|value|source.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "value_masked and value_hash, never the value; the same identifier on another profile is refused as PROFILE_MISMATCH with that profile named.",
        "example": "[PROFILE_IDENTIFY]prf_abc123|phone|+14245551234|sms_verify[/PROFILE_IDENTIFY]",
        "tag": "[PROFILE_IDENTIFY]<prf_abc123 …>[/PROFILE_IDENTIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_IDENTIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_IDENTIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_IDENTIFY",
        "update": "PUT /api/directory/PROFILE_IDENTIFY",
        "patch": "PATCH /api/directory/PROFILE_IDENTIFY",
        "delete": "DELETE /api/directory/PROFILE_IDENTIFY",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_IDENTIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_IDENTIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_IDENTIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_IDENTIFY"
      },
      "examples": "[\"prf_abc123|email|a@b.co|checkout\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_IDENTIFY"
    },
    {
      "key": "PROFILE_MERGE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Merge one profile into another when the same person appears twice: identifiers, devices, events, sales, wants, leases and capability contexts move; the merged profile points at its survivor; a merge log row records what moved. WHEN_TO_USE: PROFILE_IDENTIFY refused with PROFILE_MISMATCH and the owner has decided the two are one person. ARGS: from_profile|into_profile|reason EX: [PROFILE_MERGE]prf_a|prf_b|same phone, same person[/PROFILE_MERGE] TESTS: Returns the counts moved and a ledger event; owner only; a profile already merged is refused.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_MERGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_MERGE",
        "type": "fn",
        "what": [
          "WHAT: Merge one profile into another when the same person appears twice: identifiers, devices, events, sales, wants, leases and capability contexts move; the merged profile points at its survivor; a merge log row records what moved.",
          "WHEN_TO_USE: PROFILE_IDENTIFY refused with PROFILE_MISMATCH and the owner has decided the two are one person.",
          "ARGS: from_profile|into_profile|reason",
          "EX: [PROFILE_MERGE]prf_a|prf_b|same phone, same person[/PROFILE_MERGE]",
          "TESTS: Returns the counts moved and a ledger event; owner only; a profile already merged is refused."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_a",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the counts moved and a ledger event; owner only; a profile already merged is refused.",
        "example": "[PROFILE_MERGE]prf_a|prf_b|same phone, same person[/PROFILE_MERGE]",
        "tag": "[PROFILE_MERGE]<prf_a …>[/PROFILE_MERGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_MERGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_MERGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_MERGE",
        "update": "PUT /api/directory/PROFILE_MERGE",
        "patch": "PATCH /api/directory/PROFILE_MERGE",
        "delete": "DELETE /api/directory/PROFILE_MERGE",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_MERGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_MERGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_MERGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_MERGE"
      },
      "examples": "[\"prf_a|prf_b|same phone, same person\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_MERGE"
    },
    {
      "key": "PROFILE_NEW",
      "type": "fn",
      "category": "identity",
      "doc": "WHAT: Create a profile: the one durable object for a human, a model actor, a service, a device or a workflow. Customers, browser-model sessions and API agents live in this same table. WHEN_TO_USE: a new human or actor needs a durable identity that capabilities, devices, identifiers and events can bind to. ARGS: $1 = kind|display|attrs_json (kind: human, model, service, device, workflow). Or JSON {kind, display, attrs, tags}. EX: [PROFILE_NEW]human|Test customer|{\"segment\":\"vip\"}[/PROFILE_NEW] TESTS: Returns a prf_ profile_id and a ledger_event_id; PROFILE_360 on that id returns the profile.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROFILE_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROFILE_NEW",
        "type": "fn",
        "what": [
          "WHAT: Create a profile: the one durable object for a human, a model actor, a service, a device or a workflow. Customers, browser-model sessions and API agents live in this same table.",
          "WHEN_TO_USE: a new human or actor needs a durable identity that capabilities, devices, identifiers and events can bind to.",
          "ARGS: $1 = kind|display|attrs_json (kind: human, model, service, device, workflow). Or JSON {kind, display, attrs, tags}.",
          "EX: [PROFILE_NEW]human|Test customer|{\"segment\":\"vip\"}[/PROFILE_NEW]",
          "TESTS: Returns a prf_ profile_id and a ledger_event_id; PROFILE_360 on that id returns the profile."
        ],
        "args": [
          {
            "pos": 1,
            "name": "human",
            "desc": "kind|display|attrs_json (kind: human, model, service, device, workflow). Or JSON {kind, display, attrs, tags}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a prf_ profile_id and a ledger_event_id; PROFILE_360 on that id returns the profile.",
        "example": "[PROFILE_NEW]human|Test customer|{\"segment\":\"vip\"}[/PROFILE_NEW]",
        "tag": "[PROFILE_NEW]<human …>[/PROFILE_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROFILE_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROFILE_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROFILE_NEW",
        "update": "PUT /api/directory/PROFILE_NEW",
        "patch": "PATCH /api/directory/PROFILE_NEW",
        "delete": "DELETE /api/directory/PROFILE_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"PROFILE_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROFILE_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROFILE_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROFILE_NEW"
      },
      "examples": "[\"human|Test customer|{\\\"segment\\\":\\\"vip\\\"}\",\"service|nightly-report\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROFILE_NEW"
    },
    {
      "key": "PROMO_CLASSES",
      "type": "fn",
      "category": "self-promotion",
      "doc": "WHAT: Read the audience-class table — the starting logic of the self-promotion loop, as data. Each row: the loss the class bears, the mechanism here that reduces it, the strongest artifact to show them, the reply-earning thesis, their first objection, fit 0-100 with reason, prior, last contact. WHEN_TO_USE: before any allocation, draft, or outreach plan for the build itself; \"who would care about this\". ARGS: $1 = class key (optional; empty = all, fit desc). EX: [PROMO_CLASSES][/PROMO_CLASSES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMO_CLASSES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMO_CLASSES",
        "type": "fn",
        "what": [
          "WHAT: Read the audience-class table — the starting logic of the self-promotion loop, as data. Each row: the loss the class bears, the mechanism here that reduces it, the strongest artifact to show them, the reply-earning thesis, their first objection, fit 0-100 with reason, prior, last contact.",
          "WHEN_TO_USE: before any allocation, draft, or outreach plan for the build itself; \"who would care about this\".",
          "ARGS: $1 = class key (optional; empty = all, fit desc).",
          "EX: [PROMO_CLASSES][/PROMO_CLASSES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "class key (optional",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PROMO_CLASSES][/PROMO_CLASSES]",
        "tag": "[PROMO_CLASSES]<arg1>[/PROMO_CLASSES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMO_CLASSES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMO_CLASSES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PROMO_CLASSES",
        "update": "PUT /api/directory/PROMO_CLASSES",
        "patch": "PATCH /api/directory/PROMO_CLASSES",
        "delete": "DELETE /api/directory/PROMO_CLASSES",
        "invoke": "POST /api/dispatch {\"key\":\"PROMO_CLASSES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMO_CLASSES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMO_CLASSES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMO_CLASSES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PROMO_CLASSES"
    },
    {
      "key": "PROMPT_APPEND",
      "type": "fn",
      "category": "self_mod",
      "doc": "WHAT: Append a clause/line to any directory row's `content` (typical use: extend ROUTER, ARCADS, OPS prompts mid-conversation without rewriting the whole prompt).  Returns JSON {ok, key, old_bytes, new_bytes, appended_head} WHEN_TO_USE: you need to prompt append ARGS: key|addition EX: [PROMPT_APPEND]arg1|arg2[/PROMPT_APPEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_APPEND",
        "type": "fn",
        "what": [
          "WHAT: Append a clause/line to any directory row's `content` (typical use: extend ROUTER, ARCADS, OPS prompts mid-conversation without rewriting the whole prompt).  Returns JSON {ok, key, old_bytes, new_bytes, appended_head}",
          "WHEN_TO_USE: you need to prompt append",
          "ARGS: key|addition",
          "EX: [PROMPT_APPEND]arg1|arg2[/PROMPT_APPEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON {ok, key, old_bytes, new_bytes, appended_head}",
        "example": "[PROMPT_APPEND]arg1|arg2[/PROMPT_APPEND]",
        "tag": "[PROMPT_APPEND]<arg1>|<arg2 …>[/PROMPT_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/PROMPT_APPEND",
        "update": "PUT /api/directory/PROMPT_APPEND",
        "patch": "PATCH /api/directory/PROMPT_APPEND",
        "delete": "DELETE /api/directory/PROMPT_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_APPEND"
      },
      "examples": "[\"__append_test__|APPENDED_LINE_OK\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_APPEND"
    },
    {
      "key": "PROMPT_ASSEMBLE",
      "type": "fn",
      "category": "meta",
      "doc": "WHAT: Return the fully assembled system prompt for an agent key (row content + includes blocks). $1=agent key (e.g. ROUTER). WHEN_TO_USE: inspect how blocks compose into an agent prompt; self-test prompt_blocks coverage ARGS: $1 EX: [PROMPT_ASSEMBLE]ROUTER[/PROMPT_ASSEMBLE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_ASSEMBLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_ASSEMBLE",
        "type": "fn",
        "what": [
          "WHAT: Return the fully assembled system prompt for an agent key (row content + includes blocks). $1=agent key (e.g. ROUTER).",
          "WHEN_TO_USE: inspect how blocks compose into an agent prompt; self-test prompt_blocks coverage",
          "ARGS: $1",
          "EX: [PROMPT_ASSEMBLE]ROUTER[/PROMPT_ASSEMBLE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "agent key (e.g. ROUTER).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the fully assembled system prompt for an agent key (row content + includes blocks). $1=agent key (e.g. ROUTER).",
        "example": "[PROMPT_ASSEMBLE]ROUTER[/PROMPT_ASSEMBLE]",
        "tag": "[PROMPT_ASSEMBLE]<ROUTER>[/PROMPT_ASSEMBLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_ASSEMBLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_ASSEMBLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PROMPT_ASSEMBLE",
        "update": "PUT /api/directory/PROMPT_ASSEMBLE",
        "patch": "PATCH /api/directory/PROMPT_ASSEMBLE",
        "delete": "DELETE /api/directory/PROMPT_ASSEMBLE",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_ASSEMBLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_ASSEMBLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_ASSEMBLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_ASSEMBLE"
      },
      "examples": "[\"ROUTER\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_ASSEMBLE"
    },
    {
      "key": "PROMPT_EDITOR_AGENT_V3",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_EDITOR_AGENT_V3",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_EDITOR_AGENT_V3",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_EDITOR_AGENT_V3][/PROMPT_EDITOR_AGENT_V3]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_EDITOR_AGENT_V3\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_EDITOR_AGENT_V3  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_EDITOR_AGENT_V3",
        "update": "PUT /api/directory/PROMPT_EDITOR_AGENT_V3",
        "patch": "PATCH /api/directory/PROMPT_EDITOR_AGENT_V3",
        "delete": "DELETE /api/directory/PROMPT_EDITOR_AGENT_V3",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_EDITOR_AGENT_V3\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_EDITOR_AGENT_V3\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_EDITOR_AGENT_V3\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_EDITOR_AGENT_V3"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_EDITOR_AGENT_V3"
    },
    {
      "key": "PROMPT_EDITOR_AGENT_V4",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_EDITOR_AGENT_V4",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_EDITOR_AGENT_V4",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_EDITOR_AGENT_V4][/PROMPT_EDITOR_AGENT_V4]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_EDITOR_AGENT_V4\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_EDITOR_AGENT_V4  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_EDITOR_AGENT_V4",
        "update": "PUT /api/directory/PROMPT_EDITOR_AGENT_V4",
        "patch": "PATCH /api/directory/PROMPT_EDITOR_AGENT_V4",
        "delete": "DELETE /api/directory/PROMPT_EDITOR_AGENT_V4",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_EDITOR_AGENT_V4\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_EDITOR_AGENT_V4\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_EDITOR_AGENT_V4\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_EDITOR_AGENT_V4"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_EDITOR_AGENT_V4"
    },
    {
      "key": "PROMPT_EDITOR_AUDITOR_V1",
      "type": "agent",
      "category": "prompt",
      "doc": "EDITOR_AUDITOR Protocol v1",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_EDITOR_AUDITOR_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_EDITOR_AUDITOR_V1",
        "type": "agent",
        "what": [
          "EDITOR_AUDITOR Protocol v1"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_EDITOR_AUDITOR_V1][/PROMPT_EDITOR_AUDITOR_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_EDITOR_AUDITOR_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_EDITOR_AUDITOR_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_EDITOR_AUDITOR_V1",
        "update": "PUT /api/directory/PROMPT_EDITOR_AUDITOR_V1",
        "patch": "PATCH /api/directory/PROMPT_EDITOR_AUDITOR_V1",
        "delete": "DELETE /api/directory/PROMPT_EDITOR_AUDITOR_V1",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_EDITOR_AUDITOR_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_EDITOR_AUDITOR_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_EDITOR_AUDITOR_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_EDITOR_AUDITOR_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_EDITOR_AUDITOR_V1"
    },
    {
      "key": "PROMPT_LAB_AGENT",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_LAB_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_LAB_AGENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_LAB_AGENT][/PROMPT_LAB_AGENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_LAB_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_LAB_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_LAB_AGENT",
        "update": "PUT /api/directory/PROMPT_LAB_AGENT",
        "patch": "PATCH /api/directory/PROMPT_LAB_AGENT",
        "delete": "DELETE /api/directory/PROMPT_LAB_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_LAB_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_LAB_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_LAB_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_LAB_AGENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_LAB_AGENT"
    },
    {
      "key": "PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
      "type": "agent",
      "category": "prompt",
      "doc": "The original decision protocol (June 2026) — preserved as a guidebook  This is column A of the owner's original sheet-based build, verbatim except for a scrubbed contact roster. It is the direct ancestor of the Decision Constitution (functions/_lib/decision_constitution.js) and the reason the ledger looks the way it does: in this architecture every model turn ran under clause law, emitted a numbered REASONING block ending in a DECISION line, and had its raw output, raw tool call, and tool result written to three audit columns — a proto-ledger in a spreadsheet. Obsolete as software. Canonical as doctrine. Do not modernize this file; it is a record.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
        "type": "agent",
        "what": [
          "The original decision protocol (June 2026) — preserved as a guidebook",
          "",
          "This is column A of the owner's original sheet-based build, verbatim except for a scrubbed",
          "contact roster. It is the direct ancestor of the Decision Constitution",
          "(functions/_lib/decision_constitution.js) and the reason the ledger looks the way it does:",
          "in this architecture every model turn ran under clause law, emitted a numbered REASONING",
          "block ending in a DECISION line, and had its raw output, raw tool call, and tool result",
          "written to three audit columns — a proto-ledger in a spreadsheet.",
          "Obsolete as software. Canonical as doctrine. Do not modernize this file; it is a record."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 13,
            "name": "arg13",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 14,
            "name": "arg14",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 15,
            "name": "arg15",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 16,
            "name": "arg16",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 17,
            "name": "arg17",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 18,
            "name": "arg18",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 19,
            "name": "arg19",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 20,
            "name": "arg20",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 21,
            "name": "arg21",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 22,
            "name": "arg22",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 23,
            "name": "arg23",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 24,
            "name": "arg24",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 25,
            "name": "arg25",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 26,
            "name": "arg26",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 27,
            "name": "arg27",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 28,
            "name": "arg28",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 29,
            "name": "arg29",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 30,
            "name": "arg30",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 31,
            "name": "arg31",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 32,
            "name": "arg32",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 33,
            "name": "arg33",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 34,
            "name": "arg34",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 35,
            "name": "arg35",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 36,
            "name": "arg36",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 37,
            "name": "arg37",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 38,
            "name": "arg38",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 39,
            "name": "arg39",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 40,
            "name": "arg40",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12|arg13|arg14|arg15|arg16|arg17|arg18|arg19|arg20|arg21|arg22|arg23|arg24|arg25|arg26|arg27|arg28|arg29|arg30|arg31|arg32|arg33|arg34|arg35|arg36|arg37|arg38|arg39|arg40[/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06]",
        "tag": "[PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>|<arg13>|<arg14>|<arg15>|<arg16>|<arg17>|<arg18>|<arg19>|<arg20>|<arg21>|<arg22>|<arg23>|<arg24>|<arg25>|<arg26>|<arg27>|<arg28>|<arg29>|<arg30>|<arg31>|<arg32>|<arg33>|<arg34>|<arg35>|<arg36>|<arg37>|<arg38>|<arg39>|<arg40>[/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
        "update": "PUT /api/directory/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
        "patch": "PATCH /api/directory/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
        "delete": "DELETE /api/directory/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_ORIGINAL_DECISION_PROTOCOL_2026_06"
    },
    {
      "key": "PROMPT_PEPTIDE_WRITER_57",
      "type": "agent",
      "category": "prompt",
      "doc": "PEPTIDE_WRITER — 57-article content map",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_PEPTIDE_WRITER_57",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_PEPTIDE_WRITER_57",
        "type": "agent",
        "what": [
          "PEPTIDE_WRITER — 57-article content map"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_PEPTIDE_WRITER_57][/PROMPT_PEPTIDE_WRITER_57]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_PEPTIDE_WRITER_57\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_PEPTIDE_WRITER_57  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_PEPTIDE_WRITER_57",
        "update": "PUT /api/directory/PROMPT_PEPTIDE_WRITER_57",
        "patch": "PATCH /api/directory/PROMPT_PEPTIDE_WRITER_57",
        "delete": "DELETE /api/directory/PROMPT_PEPTIDE_WRITER_57",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_PEPTIDE_WRITER_57\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_PEPTIDE_WRITER_57\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_PEPTIDE_WRITER_57\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_PEPTIDE_WRITER_57"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_PEPTIDE_WRITER_57"
    },
    {
      "key": "PROMPT_SHARED_LAW",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_SHARED_LAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_SHARED_LAW",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_SHARED_LAW][/PROMPT_SHARED_LAW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_SHARED_LAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_SHARED_LAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_SHARED_LAW",
        "update": "PUT /api/directory/PROMPT_SHARED_LAW",
        "patch": "PATCH /api/directory/PROMPT_SHARED_LAW",
        "delete": "DELETE /api/directory/PROMPT_SHARED_LAW",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_SHARED_LAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_SHARED_LAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_SHARED_LAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_SHARED_LAW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_SHARED_LAW"
    },
    {
      "key": "PROMPT_STYLE_LAW",
      "type": "agent",
      "category": "prompt",
      "doc": "STYLE_LAW — single source of truth for every agent prompt in this build",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_STYLE_LAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_STYLE_LAW",
        "type": "agent",
        "what": [
          "STYLE_LAW — single source of truth for every agent prompt in this build"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_STYLE_LAW][/PROMPT_STYLE_LAW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_STYLE_LAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_STYLE_LAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_STYLE_LAW",
        "update": "PUT /api/directory/PROMPT_STYLE_LAW",
        "patch": "PATCH /api/directory/PROMPT_STYLE_LAW",
        "delete": "DELETE /api/directory/PROMPT_STYLE_LAW",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_STYLE_LAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_STYLE_LAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_STYLE_LAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_STYLE_LAW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_STYLE_LAW"
    },
    {
      "key": "PROMPT_WRITER_AGENT_V3",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_WRITER_AGENT_V3",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_WRITER_AGENT_V3",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_WRITER_AGENT_V3][/PROMPT_WRITER_AGENT_V3]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_WRITER_AGENT_V3\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_WRITER_AGENT_V3  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_WRITER_AGENT_V3",
        "update": "PUT /api/directory/PROMPT_WRITER_AGENT_V3",
        "patch": "PATCH /api/directory/PROMPT_WRITER_AGENT_V3",
        "delete": "DELETE /api/directory/PROMPT_WRITER_AGENT_V3",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_WRITER_AGENT_V3\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_WRITER_AGENT_V3\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_WRITER_AGENT_V3\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_WRITER_AGENT_V3"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_WRITER_AGENT_V3"
    },
    {
      "key": "PROMPT_WRITER_AGENT_V4",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_WRITER_AGENT_V4",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_WRITER_AGENT_V4",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_WRITER_AGENT_V4][/PROMPT_WRITER_AGENT_V4]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_WRITER_AGENT_V4\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_WRITER_AGENT_V4  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_WRITER_AGENT_V4",
        "update": "PUT /api/directory/PROMPT_WRITER_AGENT_V4",
        "patch": "PATCH /api/directory/PROMPT_WRITER_AGENT_V4",
        "delete": "DELETE /api/directory/PROMPT_WRITER_AGENT_V4",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_WRITER_AGENT_V4\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_WRITER_AGENT_V4\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_WRITER_AGENT_V4\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_WRITER_AGENT_V4"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_WRITER_AGENT_V4"
    },
    {
      "key": "PROMPT_WRITER_AGENT_V5",
      "type": "agent",
      "category": "prompt",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROMPT_WRITER_AGENT_V5",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROMPT_WRITER_AGENT_V5",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[PROMPT_WRITER_AGENT_V5][/PROMPT_WRITER_AGENT_V5]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROMPT_WRITER_AGENT_V5\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROMPT_WRITER_AGENT_V5  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROMPT_WRITER_AGENT_V5",
        "update": "PUT /api/directory/PROMPT_WRITER_AGENT_V5",
        "patch": "PATCH /api/directory/PROMPT_WRITER_AGENT_V5",
        "delete": "DELETE /api/directory/PROMPT_WRITER_AGENT_V5",
        "invoke": "POST /api/dispatch {\"key\":\"PROMPT_WRITER_AGENT_V5\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROMPT_WRITER_AGENT_V5\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROMPT_WRITER_AGENT_V5\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROMPT_WRITER_AGENT_V5"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROMPT_WRITER_AGENT_V5"
    },
    {
      "key": "PROOF_PING",
      "type": "http",
      "category": null,
      "doc": "WHAT: GET the /api/proof page and return the raw HTML for verification. WHEN_TO_USE: the user wants to check the proof/liveness endpoint. RETURNS: raw HTTP body.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROOF_PING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROOF_PING",
        "type": "http",
        "what": [
          "WHAT: GET the /api/proof page and return the raw HTML for verification.",
          "WHEN_TO_USE: the user wants to check the proof/liveness endpoint.",
          "RETURNS: raw HTTP body."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the raw HTML for verification.",
        "example": null,
        "tag": "[PROOF_PING][/PROOF_PING]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROOF_PING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROOF_PING  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROOF_PING",
        "update": "PUT /api/directory/PROOF_PING",
        "patch": "PATCH /api/directory/PROOF_PING",
        "delete": "DELETE /api/directory/PROOF_PING",
        "invoke": "POST /api/dispatch {\"key\":\"PROOF_PING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROOF_PING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROOF_PING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROOF_PING"
      },
      "examples": "[\"1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROOF_PING"
    },
    {
      "key": "PROPOSE_ROWS",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Given the JSON output of EXTRACT_CAPABILITIES (raw JSON string OR an r2_key starting with capability_sources/), emit SQL INSERTs for new directory rows, one per discovered op. Rows land disabled + planner_visible=0 so the owner can review before activating. $1=ops_json_or_r2_key, $2=category prefix (default \"discovered\") WHEN_TO_USE: you need to propose rows ARGS: $1 | $2 EX: [PROPOSE_ROWS]arg1|arg2[/PROPOSE_ROWS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROPOSE_ROWS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROPOSE_ROWS",
        "type": "fn",
        "what": [
          "WHAT: Given the JSON output of EXTRACT_CAPABILITIES (raw JSON string OR an r2_key starting with capability_sources/), emit SQL INSERTs for new directory rows, one per discovered op. Rows land disabled + planner_visible=0 so the owner can review before activating. $1=ops_json_or_r2_key, $2=category prefix (default \"discovered\")",
          "WHEN_TO_USE: you need to propose rows",
          "ARGS: $1 | $2",
          "EX: [PROPOSE_ROWS]arg1|arg2[/PROPOSE_ROWS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "ops_json_or_r2_key, $2=category prefix (default \"discovered\")",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PROPOSE_ROWS]arg1|arg2[/PROPOSE_ROWS]",
        "tag": "[PROPOSE_ROWS]<arg1>|<arg2>[/PROPOSE_ROWS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROPOSE_ROWS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROPOSE_ROWS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/PROPOSE_ROWS",
        "update": "PUT /api/directory/PROPOSE_ROWS",
        "patch": "PATCH /api/directory/PROPOSE_ROWS",
        "delete": "DELETE /api/directory/PROPOSE_ROWS",
        "invoke": "POST /api/dispatch {\"key\":\"PROPOSE_ROWS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROPOSE_ROWS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROPOSE_ROWS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROPOSE_ROWS"
      },
      "examples": "[\"capability_sources/34bd4f9f21c0e3c9.txt|wrangler\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROPOSE_ROWS"
    },
    {
      "key": "PROSECUTOR_RUN",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: One machine turn of the operator loop, end to end: fetch the drop + current accepted thread-state, ask a model for ONE materially new point (inheriting all accepted state, never repeating it), and post the result to the thread bus as a proposed update. Replies NOTHING NEW when the state already covers everything it sees. WHEN_TO_USE: the owner says \"prosecute the protocol\", \"run the loop\", \"have a machine critique it\" — or the governor wants fresh adversarial load without any human transport. ARGS: model key (optional; default ASK_CLAUDE — also ASK_GPT / ASK_GEMINI / ASK_KIMI) EX: [PROSECUTOR_RUN]ASK_KIMI[/PROSECUTOR_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROSECUTOR_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROSECUTOR_RUN",
        "type": "fn",
        "what": [
          "WHAT: One machine turn of the operator loop, end to end: fetch the drop + current accepted thread-state, ask a model for ONE materially new point (inheriting all accepted state, never repeating it), and post the result to the thread bus as a proposed update. Replies NOTHING NEW when the state already covers everything it sees.",
          "WHEN_TO_USE: the owner says \"prosecute the protocol\", \"run the loop\", \"have a machine critique it\" — or the governor wants fresh adversarial load without any human transport.",
          "ARGS: model key (optional; default ASK_CLAUDE — also ASK_GPT / ASK_GEMINI / ASK_KIMI)",
          "EX: [PROSECUTOR_RUN]ASK_KIMI[/PROSECUTOR_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ASK_KIMI",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PROSECUTOR_RUN]ASK_KIMI[/PROSECUTOR_RUN]",
        "tag": "[PROSECUTOR_RUN]<ASK_KIMI>[/PROSECUTOR_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROSECUTOR_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROSECUTOR_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PROSECUTOR_RUN",
        "update": "PUT /api/directory/PROSECUTOR_RUN",
        "patch": "PATCH /api/directory/PROSECUTOR_RUN",
        "delete": "DELETE /api/directory/PROSECUTOR_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"PROSECUTOR_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROSECUTOR_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROSECUTOR_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROSECUTOR_RUN"
      },
      "examples": "[\"ASK_KIMI\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROSECUTOR_RUN"
    },
    {
      "key": "PROTOCOL_ROUTER",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Bridge model prose to protocol atoms — gate (asked&answered) or append [CLAIM]/[QUESTION]/[INGEST] blocks. WHEN_TO_USE: after model generates criticism/evidence; before re-asking same question. ARGS: gate|slug|question  OR  append|model_output  OR  turn|slug|question|model_output EX: [PROTOCOL_ROUTER]gate|bpc-157|What are criticisms of BPC-157?[/PROTOCOL_ROUTER] EX: [PROTOCOL_ROUTER]append|[CLAIM:challenge]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROTOCOL_ROUTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROTOCOL_ROUTER",
        "type": "fn",
        "what": [
          "WHAT: Bridge model prose to protocol atoms — gate (asked&answered) or append [CLAIM]/[QUESTION]/[INGEST] blocks.",
          "WHEN_TO_USE: after model generates criticism/evidence; before re-asking same question.",
          "ARGS: gate|slug|question  OR  append|model_output  OR  turn|slug|question|model_output",
          "EX: [PROTOCOL_ROUTER]gate|bpc-157|What are criticisms of BPC-157?[/PROTOCOL_ROUTER]",
          "EX: [PROTOCOL_ROUTER]append|[CLAIM:challenge]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "gate",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PROTOCOL_ROUTER]gate|bpc-157|What are criticisms of BPC-157?[/PROTOCOL_ROUTER]",
        "tag": "[PROTOCOL_ROUTER]<gate …>[/PROTOCOL_ROUTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROTOCOL_ROUTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROTOCOL_ROUTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "slug: bpc-157",
      "edit": {
        "read": "GET /api/directory/PROTOCOL_ROUTER",
        "update": "PUT /api/directory/PROTOCOL_ROUTER",
        "patch": "PATCH /api/directory/PROTOCOL_ROUTER",
        "delete": "DELETE /api/directory/PROTOCOL_ROUTER",
        "invoke": "POST /api/dispatch {\"key\":\"PROTOCOL_ROUTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROTOCOL_ROUTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROTOCOL_ROUTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROTOCOL_ROUTER"
      },
      "examples": "[\"gate|bpc-157|What are criticisms of BPC-157?\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROTOCOL_ROUTER"
    },
    {
      "key": "PROTOCOL_RUN",
      "type": "fn",
      "category": "protocol",
      "doc": "WHAT: Run one protocol tick for a role. $1=role (writer|reviewer|source_hunt|oip-review|writer-queue|...). Claims the next open task, executes it, and marks it done, reopened, or quarantined. WHEN_TO_USE: manual owner trigger for one explicit tick, or an automated protocol tick. AUTORUN: automated callers respect the role KV flag (oip_review_autorun, writer_queue_autorun, source_hunt_autorun, editorial_board_autorun, or protocol_autorun). If the flag is off, the tick returns skipped and touches no task. ARGS: $1=role (default writer) EX: [PROTOCOL_RUN]oip-review[/PROTOCOL_RUN] TESTS: A protocol task that fails three times must end with tasks.status='quarantined', tasks.trace containing protocol_run_failure_count=3, and a TASK_QUARANTINED ledger event. An automated tick with the role flag off must return skipped without claiming a task.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROTOCOL_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROTOCOL_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run one protocol tick for a role. $1=role (writer|reviewer|source_hunt|oip-review|writer-queue|...). Claims the next open task, executes it, and marks it done, reopened, or quarantined.",
          "WHEN_TO_USE: manual owner trigger for one explicit tick, or an automated protocol tick.",
          "AUTORUN: automated callers respect the role KV flag (oip_review_autorun, writer_queue_autorun, source_hunt_autorun, editorial_board_autorun, or protocol_autorun). If the flag is off, the tick returns skipped and touches no task.",
          "ARGS: $1=role (default writer)",
          "EX: [PROTOCOL_RUN]oip-review[/PROTOCOL_RUN]",
          "TESTS: A protocol task that fails three times must end with tasks.status='quarantined', tasks.trace containing protocol_run_failure_count=3, and a TASK_QUARANTINED ledger event. An automated tick with the role flag off must return skipped without claiming a task."
        ],
        "args": [
          {
            "pos": 1,
            "name": "oip-review",
            "desc": "role (default writer)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "skipped and touches no task.",
        "example": "[PROTOCOL_RUN]oip-review[/PROTOCOL_RUN]",
        "tag": "[PROTOCOL_RUN]<oip-review>[/PROTOCOL_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROTOCOL_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROTOCOL_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PROTOCOL_RUN",
        "update": "PUT /api/directory/PROTOCOL_RUN",
        "patch": "PATCH /api/directory/PROTOCOL_RUN",
        "delete": "DELETE /api/directory/PROTOCOL_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"PROTOCOL_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROTOCOL_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROTOCOL_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROTOCOL_RUN"
      },
      "examples": "[\"writer-queue\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROTOCOL_RUN"
    },
    {
      "key": "PROTOCOL_WRITE",
      "type": "fn",
      "category": "system",
      "doc": "WHAT: Create, revise, or enrich an article via /api/protocol/write, /api/protocol/revise, or /api/protocol/populate. WHEN_TO_USE: the user asks for an article, wants it revised, or wants more sources/widgets added. ARGS: $1 = JSON object or plain topic string. JSON keys: mode (\"write\"|\"revise\"|\"populate\"), slug, topic, ask, feedback, web_search (bool), max_tokens (number), max_rounds (number), loops (number). Plain topic defaults to mode=write. EX: [PROTOCOL_WRITE]BPC-157 mechanisms and evidence[/PROTOCOL_WRITE] EX: [PROTOCOL_WRITE]{\"mode\":\"write\",\"topic\":\"BPC-157 vs NSAIDs\"}[/PROTOCOL_WRITE] EX: [PROTOCOL_WRITE]{\"mode\":\"revise\",\"slug\":\"bpc-157\",\"feedback\":\"add human trials and a dosing widget\"}[/PROTOCOL_WRITE] EX: [PROTOCOL_WRITE]{\"mode\":\"populate\",\"slug\":\"bpc-157\",\"ask\":\"find more human studies and create widgets\",\"max_rounds\":3}[/PROTOCOL_WRITE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROTOCOL_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROTOCOL_WRITE",
        "type": "fn",
        "what": [
          "WHAT: Create, revise, or enrich an article via /api/protocol/write, /api/protocol/revise, or /api/protocol/populate.",
          "WHEN_TO_USE: the user asks for an article, wants it revised, or wants more sources/widgets added.",
          "ARGS: $1 = JSON object or plain topic string. JSON keys: mode (\"write\"|\"revise\"|\"populate\"), slug, topic, ask, feedback, web_search (bool), max_tokens (number), max_rounds (number), loops (number). Plain topic defaults to mode=write.",
          "EX: [PROTOCOL_WRITE]BPC-157 mechanisms and evidence[/PROTOCOL_WRITE]",
          "EX: [PROTOCOL_WRITE]{\"mode\":\"write\",\"topic\":\"BPC-157 vs NSAIDs\"}[/PROTOCOL_WRITE]",
          "EX: [PROTOCOL_WRITE]{\"mode\":\"revise\",\"slug\":\"bpc-157\",\"feedback\":\"add human trials and a dosing widget\"}[/PROTOCOL_WRITE]",
          "EX: [PROTOCOL_WRITE]{\"mode\":\"populate\",\"slug\":\"bpc-157\",\"ask\":\"find more human studies and create widgets\",\"max_rounds\":3}[/PROTOCOL_WRITE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "BPC-157 mechanisms and evidence",
            "desc": "JSON object or plain topic string. JSON keys: mode (\"write\"|\"revise\"|\"populate\"), slug, topic, ask, feedback, web_search (bool), max_tokens (number), max_rounds (number), loops (number). Plain topic defaults to mode=write.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[PROTOCOL_WRITE]BPC-157 mechanisms and evidence[/PROTOCOL_WRITE]",
        "tag": "[PROTOCOL_WRITE]<BPC-157 mechanisms and evidence>[/PROTOCOL_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROTOCOL_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROTOCOL_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/PROTOCOL_WRITE",
        "update": "PUT /api/directory/PROTOCOL_WRITE",
        "patch": "PATCH /api/directory/PROTOCOL_WRITE",
        "delete": "DELETE /api/directory/PROTOCOL_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"PROTOCOL_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROTOCOL_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROTOCOL_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROTOCOL_WRITE"
      },
      "examples": "[\"BPC-157 mechanisms and evidence\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROTOCOL_WRITE"
    },
    {
      "key": "PROVEN_WORK_SPEC",
      "type": "http",
      "category": null,
      "doc": "PROVEN_WORK_SPEC — the evolving product spec every loop rep must meet. Versioned; amend by appending a version block with the exhibit (a field-audit criticism that survived). Canonical definition: https://miscsubjects.com/a/proven-work",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROVEN_WORK_SPEC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROVEN_WORK_SPEC",
        "type": "http",
        "what": [
          "PROVEN_WORK_SPEC — the evolving product spec every loop rep must meet. Versioned; amend by appending a version block with the exhibit (a field-audit criticism that survived). Canonical definition: https://miscsubjects.com/a/proven-work"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[PROVEN_WORK_SPEC][/PROVEN_WORK_SPEC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROVEN_WORK_SPEC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROVEN_WORK_SPEC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "version: 1.1.0 (2026-08-03)",
      "edit": {
        "read": "GET /api/directory/PROVEN_WORK_SPEC",
        "update": "PUT /api/directory/PROVEN_WORK_SPEC",
        "patch": "PATCH /api/directory/PROVEN_WORK_SPEC",
        "delete": "DELETE /api/directory/PROVEN_WORK_SPEC",
        "invoke": "POST /api/dispatch {\"key\":\"PROVEN_WORK_SPEC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROVEN_WORK_SPEC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROVEN_WORK_SPEC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROVEN_WORK_SPEC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROVEN_WORK_SPEC"
    },
    {
      "key": "PROVIDERS",
      "type": "http",
      "category": "llm",
      "doc": "WHAT: Provider/model registry — every company (xai|anthropic|openai|google), every model (text|image|video|stt|tts), with endpoint, api_key_name, every variable, cost in/out/cache, longest output, reasoning options, temperature range, and docs links. The on-hand API documentation behind the LLM-creation form WHEN_TO_USE: you need to providers ARGS: see content EX: [PROVIDERS]arg1[/PROVIDERS] INVOKE: [PROVIDERS][/PROVIDERS] full registry; [PROVIDERS]xai[/PROVIDERS] one company; arg $1 = company (or company/modality via REST). REST: GET https://miscsubjects.com/api/providers · /api/providers/anthropic · /api/providers/xai/video",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROVIDERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROVIDERS",
        "type": "http",
        "what": [
          "WHAT: Provider/model registry — every company (xai|anthropic|openai|google), every model (text|image|video|stt|tts), with endpoint, api_key_name, every variable, cost in/out/cache, longest output, reasoning options, temperature range, and docs links. The on-hand API documentation behind the LLM-creation form",
          "WHEN_TO_USE: you need to providers",
          "ARGS: see content",
          "EX: [PROVIDERS]arg1[/PROVIDERS]",
          "INVOKE: [PROVIDERS][/PROVIDERS] full registry; [PROVIDERS]xai[/PROVIDERS] one company; arg $1 = company (or company/modality via REST).",
          "REST: GET https://miscsubjects.com/api/providers · /api/providers/anthropic · /api/providers/xai/video"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "company (or company/modality via REST).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PROVIDERS]arg1[/PROVIDERS]",
        "tag": "[PROVIDERS]<arg1>[/PROVIDERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROVIDERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROVIDERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"op\":\"$1\"}",
      "edit": {
        "read": "GET /api/directory/PROVIDERS",
        "update": "PUT /api/directory/PROVIDERS",
        "patch": "PATCH /api/directory/PROVIDERS",
        "delete": "DELETE /api/directory/PROVIDERS",
        "invoke": "POST /api/dispatch {\"key\":\"PROVIDERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROVIDERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROVIDERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROVIDERS"
      },
      "examples": "[\"xai\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROVIDERS"
    },
    {
      "key": "PROVIDER_DOCS",
      "type": "http",
      "category": "llm",
      "doc": "WHAT: LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET] WHEN_TO_USE: you need to provider docs ARGS: see content EX: [PROVIDER_DOCS][/PROVIDER_DOCS] LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET]. xAI (Grok)   https://docs.x.ai            · console https://console.x.ai · mgmt https://management-api.x.ai · key GROK_API_KEY OpenAI       https://platform.openai.com/docs · pricing https://platform.openai.com/docs/pricing · key OPENAI_API_KEY Anthropic    https://platform.claude.com/docs · key ANTHROPIC_API_KEY Google Gemini https://ai.google.dev/gemini-api/docs · key GEMINI_API_KEY ArcAds       https://external-api.arcads.ai (images+video) · spec R2:docs/api/arcads/openapi-spec.json",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROVIDER_DOCS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROVIDER_DOCS",
        "type": "http",
        "what": [
          "WHAT: LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET]",
          "WHEN_TO_USE: you need to provider docs",
          "ARGS: see content",
          "EX: [PROVIDER_DOCS][/PROVIDER_DOCS]",
          "LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET].",
          "xAI (Grok)   https://docs.x.ai            · console https://console.x.ai · mgmt https://management-api.x.ai · key GROK_API_KEY",
          "OpenAI       https://platform.openai.com/docs · pricing https://platform.openai.com/docs/pricing · key OPENAI_API_KEY",
          "Anthropic    https://platform.claude.com/docs · key ANTHROPIC_API_KEY",
          "Google Gemini https://ai.google.dev/gemini-api/docs · key GEMINI_API_KEY",
          "ArcAds       https://external-api.arcads.ai (images+video) · spec R2:docs/api/arcads/openapi-spec.json"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[PROVIDER_DOCS][/PROVIDER_DOCS]",
        "tag": "[PROVIDER_DOCS][/PROVIDER_DOCS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROVIDER_DOCS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROVIDER_DOCS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PROVIDER_DOCS",
        "update": "PUT /api/directory/PROVIDER_DOCS",
        "patch": "PATCH /api/directory/PROVIDER_DOCS",
        "delete": "DELETE /api/directory/PROVIDER_DOCS",
        "invoke": "POST /api/dispatch {\"key\":\"PROVIDER_DOCS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROVIDER_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROVIDER_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROVIDER_DOCS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROVIDER_DOCS"
    },
    {
      "key": "PROVIDER_RECORD",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: A provider's standing as a read over the tables: claims by grade and state, methodologies used, verifications, disputes, agreements, counterparties, preregistered claims. Never a score. WHEN_TO_USE: a buyer's AI decides whom to trust with what. ARGS: provider EX: [PROVIDER_RECORD]owner[/PROVIDER_RECORD] TESTS: Returns the counts by category with the note that it is a record, not a score.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PROVIDER_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PROVIDER_RECORD",
        "type": "fn",
        "what": [
          "WHAT: A provider's standing as a read over the tables: claims by grade and state, methodologies used, verifications, disputes, agreements, counterparties, preregistered claims. Never a score.",
          "WHEN_TO_USE: a buyer's AI decides whom to trust with what.",
          "ARGS: provider",
          "EX: [PROVIDER_RECORD]owner[/PROVIDER_RECORD]",
          "TESTS: Returns the counts by category with the note that it is a record, not a score."
        ],
        "args": [
          {
            "pos": 1,
            "name": "owner",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the counts by category with the note that it is a record, not a score.",
        "example": "[PROVIDER_RECORD]owner[/PROVIDER_RECORD]",
        "tag": "[PROVIDER_RECORD]<owner …>[/PROVIDER_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PROVIDER_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PROVIDER_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/PROVIDER_RECORD",
        "update": "PUT /api/directory/PROVIDER_RECORD",
        "patch": "PATCH /api/directory/PROVIDER_RECORD",
        "delete": "DELETE /api/directory/PROVIDER_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"PROVIDER_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PROVIDER_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROVIDER_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PROVIDER_RECORD"
      },
      "examples": "[\"owner\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PROVIDER_RECORD"
    },
    {
      "key": "PULSE_THREE_AT_ONCE",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Check the clock, and if it answered, ask three sources at the same time. WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the argument the first step takes. EX: [PULSE_THREE_AT_ONCE]your input[/PULSE_THREE_AT_ONCE] TESTS: one receipt per step under one trace. Gated on IF $PREV contains \"today\" — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "PULSE_THREE_AT_ONCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "PULSE_THREE_AT_ONCE",
        "type": "flow",
        "what": [
          "WHAT: Check the clock, and if it answered, ask three sources at the same time.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the argument the first step takes.",
          "EX: [PULSE_THREE_AT_ONCE]your input[/PULSE_THREE_AT_ONCE]",
          "TESTS: one receipt per step under one trace. Gated on IF $PREV contains \"today\" — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[PULSE_THREE_AT_ONCE]your input[/PULSE_THREE_AT_ONCE]",
        "tag": "[PULSE_THREE_AT_ONCE][/PULSE_THREE_AT_ONCE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"PULSE_THREE_AT_ONCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/PULSE_THREE_AT_ONCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/PULSE_THREE_AT_ONCE",
        "update": "PUT /api/directory/PULSE_THREE_AT_ONCE",
        "patch": "PATCH /api/directory/PULSE_THREE_AT_ONCE",
        "delete": "DELETE /api/directory/PULSE_THREE_AT_ONCE",
        "invoke": "POST /api/dispatch {\"key\":\"PULSE_THREE_AT_ONCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"PULSE_THREE_AT_ONCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PULSE_THREE_AT_ONCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/PULSE_THREE_AT_ONCE"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=PULSE_THREE_AT_ONCE"
    },
    {
      "key": "QUADSYNC_RUN",
      "type": "fn",
      "category": "governance",
      "doc": "WHAT: Run the server half of QUADSYNC now — mirror new ledger events to GitHub (ledger-mirror/events-<day>.jsonl) and fold recent GitHub commits + [auto] issues back into the ledger/tasks. Returns both results plus all four corner health stamps. WHEN_TO_USE: the owner says \"sync\", \"sync everything\", \"run quadsync\", \"is everything synced\" — or any model needs the corners current before reasoning about build state. Automatic every 10 min via dispatch traffic; local Mac + Google Drive corners run via launchd com.the owner.miscsubjects.quadsync. ARGS: none EX: [QUADSYNC_RUN][/QUADSYNC_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUADSYNC_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUADSYNC_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run the server half of QUADSYNC now — mirror new ledger events to GitHub (ledger-mirror/events-<day>.jsonl) and fold recent GitHub commits + [auto] issues back into the ledger/tasks. Returns both results plus all four corner health stamps.",
          "WHEN_TO_USE: the owner says \"sync\", \"sync everything\", \"run quadsync\", \"is everything synced\" — or any model needs the corners current before reasoning about build state. Automatic every 10 min via dispatch traffic; local Mac + Google Drive corners run via launchd com.the owner.miscsubjects.quadsync.",
          "ARGS: none",
          "EX: [QUADSYNC_RUN][/QUADSYNC_RUN]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "both results plus all four corner health stamps.",
        "example": "[QUADSYNC_RUN][/QUADSYNC_RUN]",
        "tag": "[QUADSYNC_RUN][/QUADSYNC_RUN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUADSYNC_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUADSYNC_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/QUADSYNC_RUN",
        "update": "PUT /api/directory/QUADSYNC_RUN",
        "patch": "PATCH /api/directory/QUADSYNC_RUN",
        "delete": "DELETE /api/directory/QUADSYNC_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"QUADSYNC_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUADSYNC_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUADSYNC_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUADSYNC_RUN"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUADSYNC_RUN"
    },
    {
      "key": "QUAKE_FEED",
      "type": "http",
      "category": "reference",
      "doc": "WHAT: Recent earthquakes at or above a magnitude, from the USGS public feed. ARGS: $1=limit, $2=minmagnitude EXAMPLE: 3|5",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUAKE_FEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUAKE_FEED",
        "type": "http",
        "what": [
          "WHAT: Recent earthquakes at or above a magnitude, from the USGS public feed.",
          "ARGS: $1=limit, $2=minmagnitude",
          "EXAMPLE: 3|5"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "limit, $2=minmagnitude",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "3|5",
        "tag": "[QUAKE_FEED]<arg1>|<arg2>[/QUAKE_FEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUAKE_FEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUAKE_FEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUAKE_FEED",
        "update": "PUT /api/directory/QUAKE_FEED",
        "patch": "PATCH /api/directory/QUAKE_FEED",
        "delete": "DELETE /api/directory/QUAKE_FEED",
        "invoke": "POST /api/dispatch {\"key\":\"QUAKE_FEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUAKE_FEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUAKE_FEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUAKE_FEED"
      },
      "examples": "[\"3|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUAKE_FEED"
    },
    {
      "key": "QUAKE_PLACE",
      "type": "flow",
      "category": "reference",
      "doc": "WHAT: Where the most recent significant earthquake happened, as a place name. WHEN_TO_USE: a one-line answer about current seismic activity, and the worked example of a flow reaching inside an HTTP response. ARGS: $1 = how many recent quakes to consider (the first is the most recent) EXAMPLE: 3",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUAKE_PLACE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUAKE_PLACE",
        "type": "flow",
        "what": [
          "WHAT: Where the most recent significant earthquake happened, as a place name.",
          "WHEN_TO_USE: a one-line answer about current seismic activity, and the worked example of a flow reaching inside an HTTP response.",
          "ARGS: $1 = how many recent quakes to consider (the first is the most recent)",
          "EXAMPLE: 3"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "how many recent quakes to consider (the first is the most recent)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "3",
        "tag": "[QUAKE_PLACE]<arg1>[/QUAKE_PLACE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUAKE_PLACE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUAKE_PLACE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUAKE_PLACE",
        "update": "PUT /api/directory/QUAKE_PLACE",
        "patch": "PATCH /api/directory/QUAKE_PLACE",
        "delete": "DELETE /api/directory/QUAKE_PLACE",
        "invoke": "POST /api/dispatch {\"key\":\"QUAKE_PLACE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUAKE_PLACE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUAKE_PLACE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUAKE_PLACE"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUAKE_PLACE"
    },
    {
      "key": "QUAKE_PLACES",
      "type": "flow",
      "category": "reference",
      "doc": "WHAT: The id of each of the most recent significant earthquakes, one per row. WHEN_TO_USE: the worked example of EACH — a flow mapping a step over every element of a list. ARGS: $1 = how many quakes EXAMPLE: 3",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUAKE_PLACES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUAKE_PLACES",
        "type": "flow",
        "what": [
          "WHAT: The id of each of the most recent significant earthquakes, one per row.",
          "WHEN_TO_USE: the worked example of EACH — a flow mapping a step over every element of a list.",
          "ARGS: $1 = how many quakes",
          "EXAMPLE: 3"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "how many quakes",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "3",
        "tag": "[QUAKE_PLACES]<arg1>[/QUAKE_PLACES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUAKE_PLACES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUAKE_PLACES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUAKE_PLACES",
        "update": "PUT /api/directory/QUAKE_PLACES",
        "patch": "PATCH /api/directory/QUAKE_PLACES",
        "delete": "DELETE /api/directory/QUAKE_PLACES",
        "invoke": "POST /api/dispatch {\"key\":\"QUAKE_PLACES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUAKE_PLACES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUAKE_PLACES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUAKE_PLACES"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUAKE_PLACES"
    },
    {
      "key": "QUAKE_REGION_1BV5",
      "type": "flow",
      "category": "learned",
      "doc": "WHAT: Learned flow — the procedure QUAKE_PLACE → CLAUDE_WEB, compiled from a successful trace (inv_cou892hbho,inv_xw66nxifeu) into an executable capability. Runs the same steps in the same order with $1 in place of the run's input. WHEN_TO_USE: the same job comes up again. Call this instead of rediscovering the sequence; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the input the first step took. In the source run it was: 3 EX: [QUAKE_REGION_1BV5]3[/QUAKE_REGION_1BV5] TESTS: Produces a receipt per step under one trace; the final output is the last step's. Enabled on creation: every step is low-risk and none names a side effect. LEARNED_FROM: inv_cou892hbho,inv_xw66nxifeu · bindings: 1:argument, 2:previous_output_embedded · risk low",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUAKE_REGION_1BV5",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUAKE_REGION_1BV5",
        "type": "flow",
        "what": [
          "WHAT: Learned flow — the procedure QUAKE_PLACE → CLAUDE_WEB, compiled from a successful trace (inv_cou892hbho,inv_xw66nxifeu) into an executable capability. Runs the same steps in the same order with $1 in place of the run's input.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of rediscovering the sequence; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the input the first step took. In the source run it was: 3",
          "EX: [QUAKE_REGION_1BV5]3[/QUAKE_REGION_1BV5]",
          "TESTS: Produces a receipt per step under one trace; the final output is the last step's. Enabled on creation: every step is low-risk and none names a side effect.",
          "LEARNED_FROM: inv_cou892hbho,inv_xw66nxifeu · bindings: 1:argument, 2:previous_output_embedded · risk low"
        ],
        "args": [
          {
            "pos": 1,
            "name": "3",
            "desc": "the input the first step took. In the source run it was: 3",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[QUAKE_REGION_1BV5]3[/QUAKE_REGION_1BV5]",
        "tag": "[QUAKE_REGION_1BV5]<3 …>[/QUAKE_REGION_1BV5]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUAKE_REGION_1BV5\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUAKE_REGION_1BV5  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUAKE_REGION_1BV5",
        "update": "PUT /api/directory/QUAKE_REGION_1BV5",
        "patch": "PATCH /api/directory/QUAKE_REGION_1BV5",
        "delete": "DELETE /api/directory/QUAKE_REGION_1BV5",
        "invoke": "POST /api/dispatch {\"key\":\"QUAKE_REGION_1BV5\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUAKE_REGION_1BV5\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUAKE_REGION_1BV5\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUAKE_REGION_1BV5"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUAKE_REGION_1BV5"
    },
    {
      "key": "QUAKE_WATCH",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: Text the owner only when the USGS feed is showing a magnitude 6 or larger. WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the argument the first step takes. EX: [QUAKE_WATCH]your input[/QUAKE_WATCH] TESTS: one receipt per step under one trace. Gated on IF $PREV is at least 6 — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUAKE_WATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUAKE_WATCH",
        "type": "flow",
        "what": [
          "WHAT: Text the owner only when the USGS feed is showing a magnitude 6 or larger.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the argument the first step takes.",
          "EX: [QUAKE_WATCH]your input[/QUAKE_WATCH]",
          "TESTS: one receipt per step under one trace. Gated on IF $PREV is at least 6 — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "OWNER"
        ],
        "returns": "the final step's output.",
        "example": "[QUAKE_WATCH]your input[/QUAKE_WATCH]",
        "tag": "[QUAKE_WATCH][/QUAKE_WATCH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUAKE_WATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUAKE_WATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUAKE_WATCH",
        "update": "PUT /api/directory/QUAKE_WATCH",
        "patch": "PATCH /api/directory/QUAKE_WATCH",
        "delete": "DELETE /api/directory/QUAKE_WATCH",
        "invoke": "POST /api/dispatch {\"key\":\"QUAKE_WATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUAKE_WATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUAKE_WATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUAKE_WATCH"
      },
      "examples": "[\"1|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUAKE_WATCH"
    },
    {
      "key": "QUEUE_ARTICLES",
      "type": "fn",
      "category": "tools",
      "doc": "WHAT: Queue one or more article jobs for the automatic writer queue. Cron writes them one at a time so the owner does not have to wait for live replies.\\n# WHEN_TO_USE: the owner wants to batch article requests and let the build process them asynchronously.\\n# ARGS: $1 = JSON object or plain topic. JSON keys: ask, slug, topic, web_search (default true), max_tokens, post_to (default /api/protocol/write), max_rounds, model.\\n# EX: [QUEUE_ARTICLES]{\"ask\":\"Write evidence-graded TB-500 article\",\"slug\":\"tb-500\"}[/QUEUE_ARTICLES]\\n# EX: [QUEUE_ARTICLES]{\"ask\":\"Populate BPC-157 with sources and widgets\",\"slug\":\"bpc-157\",\"post_to\":\"/api/protocol/populate\",\"max_rounds\":4}[/QUEUE_ARTICLES]\\n[\"$1\",\"writer-queue\"]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUEUE_ARTICLES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUEUE_ARTICLES",
        "type": "fn",
        "what": [
          "WHAT: Queue one or more article jobs for the automatic writer queue. Cron writes them one at a time so the owner does not have to wait for live replies.\\n# WHEN_TO_USE: the owner wants to batch article requests and let the build process them asynchronously.\\n# ARGS: $1 = JSON object or plain topic. JSON keys: ask, slug, topic, web_search (default true), max_tokens, post_to (default /api/protocol/write), max_rounds, model.\\n# EX: [QUEUE_ARTICLES]{\"ask\":\"Write evidence-graded TB-500 article\",\"slug\":\"tb-500\"}[/QUEUE_ARTICLES]\\n# EX: [QUEUE_ARTICLES]{\"ask\":\"Populate BPC-157 with sources and widgets\",\"slug\":\"bpc-157\",\"post_to\":\"/api/protocol/populate\",\"max_rounds\":4}[/QUEUE_ARTICLES]\\n[\"$1\",\"writer-queue\"]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[QUEUE_ARTICLES][/QUEUE_ARTICLES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUEUE_ARTICLES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUEUE_ARTICLES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/QUEUE_ARTICLES",
        "update": "PUT /api/directory/QUEUE_ARTICLES",
        "patch": "PATCH /api/directory/QUEUE_ARTICLES",
        "delete": "DELETE /api/directory/QUEUE_ARTICLES",
        "invoke": "POST /api/dispatch {\"key\":\"QUEUE_ARTICLES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUEUE_ARTICLES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUEUE_ARTICLES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUEUE_ARTICLES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=QUEUE_ARTICLES"
    },
    {
      "key": "QUEUE_SEND",
      "type": "fn",
      "category": "queue",
      "doc": "WHAT: Enqueue a job on the loop-tasks queue for the sibling Worker to consume and forward to /api/dispatch. $1=KEY, $2=body string. Returns {queued, job} WHEN_TO_USE: you need to queue send ARGS: $1 | $2 EX: [QUEUE_SEND]arg1|arg2[/QUEUE_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUEUE_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUEUE_SEND",
        "type": "fn",
        "what": [
          "WHAT: Enqueue a job on the loop-tasks queue for the sibling Worker to consume and forward to /api/dispatch. $1=KEY, $2=body string. Returns {queued, job}",
          "WHEN_TO_USE: you need to queue send",
          "ARGS: $1 | $2",
          "EX: [QUEUE_SEND]arg1|arg2[/QUEUE_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "KEY, $2=body string. Returns {queued, job}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{queued, job}",
        "example": "[QUEUE_SEND]arg1|arg2[/QUEUE_SEND]",
        "tag": "[QUEUE_SEND]<arg1>|<arg2>[/QUEUE_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUEUE_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUEUE_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/QUEUE_SEND",
        "update": "PUT /api/directory/QUEUE_SEND",
        "patch": "PATCH /api/directory/QUEUE_SEND",
        "delete": "DELETE /api/directory/QUEUE_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"QUEUE_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUEUE_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUEUE_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUEUE_SEND"
      },
      "examples": "[\"NOW|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUEUE_SEND"
    },
    {
      "key": "QUE_ADD",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Add a question to the test que. $1 = prompt text. $2 = optional slug (default go) WHEN_TO_USE: you need to que add ARGS: $1 | $2 EX: [QUE_ADD]arg1|arg2[/QUE_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUE_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUE_ADD",
        "type": "fn",
        "what": [
          "WHAT: Add a question to the test que. $1 = prompt text. $2 = optional slug (default go)",
          "WHEN_TO_USE: you need to que add",
          "ARGS: $1 | $2",
          "EX: [QUE_ADD]arg1|arg2[/QUE_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "prompt text. $2 = optional slug (default go)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[QUE_ADD]arg1|arg2[/QUE_ADD]",
        "tag": "[QUE_ADD]<arg1>|<arg2>[/QUE_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUE_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUE_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/QUE_ADD",
        "update": "PUT /api/directory/QUE_ADD",
        "patch": "PATCH /api/directory/QUE_ADD",
        "delete": "DELETE /api/directory/QUE_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"QUE_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUE_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUE_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUE_ADD"
      },
      "examples": "[\"what is 2 plus 2|go\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUE_ADD"
    },
    {
      "key": "QUE_LIST",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Inspect the que. $1 = '' | pending | done | error. Returns rows (response truncated 200ch) WHEN_TO_USE: you need to que list ARGS: $1 EX: [QUE_LIST]arg1[/QUE_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUE_LIST",
        "type": "fn",
        "what": [
          "WHAT: Inspect the que. $1 = '' | pending | done | error. Returns rows (response truncated 200ch)",
          "WHEN_TO_USE: you need to que list",
          "ARGS: $1",
          "EX: [QUE_LIST]arg1[/QUE_LIST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "'' | pending | done | error. Returns rows (response truncated 200ch)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "rows (response truncated 200ch)",
        "example": "[QUE_LIST]arg1[/QUE_LIST]",
        "tag": "[QUE_LIST]<arg1>[/QUE_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/QUE_LIST",
        "update": "PUT /api/directory/QUE_LIST",
        "patch": "PATCH /api/directory/QUE_LIST",
        "delete": "DELETE /api/directory/QUE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"QUE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUE_LIST"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUE_LIST"
    },
    {
      "key": "QUE_RUN",
      "type": "fn",
      "category": "audit",
      "doc": "WHAT: Run pending que rows (max 25/call) through the real ROUTER. Writes response+trace_id+status back WHEN_TO_USE: you need to que run ARGS: $1 EX: [QUE_RUN]arg1[/QUE_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUE_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUE_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run pending que rows (max 25/call) through the real ROUTER. Writes response+trace_id+status back",
          "WHEN_TO_USE: you need to que run",
          "ARGS: $1",
          "EX: [QUE_RUN]arg1[/QUE_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[QUE_RUN]arg1[/QUE_RUN]",
        "tag": "[QUE_RUN]<arg1>[/QUE_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUE_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUE_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/QUE_RUN",
        "update": "PUT /api/directory/QUE_RUN",
        "patch": "PATCH /api/directory/QUE_RUN",
        "delete": "DELETE /api/directory/QUE_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"QUE_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUE_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUE_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUE_RUN"
      },
      "examples": "[\"25\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUE_RUN"
    },
    {
      "key": "QUOTE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Price one request: marginal cost for the units, the settlement fee, a risk premium and collateral when a scarce resource is involved. A quote is never one number hiding another. WHEN_TO_USE: a buyer or their AI asks what a row or a rental will cost before paying. ARGS: row_key|units|resource_id EX: [QUOTE]CLAUDE_WEB|4[/QUOTE] TESTS: Returns a quote with each component in cents; RIGHTS_MISSING, RESALE_NOT_ALLOWED or PRICE_MISSING by name.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "QUOTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "QUOTE",
        "type": "fn",
        "what": [
          "WHAT: Price one request: marginal cost for the units, the settlement fee, a risk premium and collateral when a scarce resource is involved. A quote is never one number hiding another.",
          "WHEN_TO_USE: a buyer or their AI asks what a row or a rental will cost before paying.",
          "ARGS: row_key|units|resource_id",
          "EX: [QUOTE]CLAUDE_WEB|4[/QUOTE]",
          "TESTS: Returns a quote with each component in cents; RIGHTS_MISSING, RESALE_NOT_ALLOWED or PRICE_MISSING by name."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CLAUDE_WEB",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a quote with each component in cents; RIGHTS_MISSING, RESALE_NOT_ALLOWED or PRICE_MISSING by name.",
        "example": "[QUOTE]CLAUDE_WEB|4[/QUOTE]",
        "tag": "[QUOTE]<CLAUDE_WEB …>[/QUOTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"QUOTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/QUOTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/QUOTE",
        "update": "PUT /api/directory/QUOTE",
        "patch": "PATCH /api/directory/QUOTE",
        "delete": "DELETE /api/directory/QUOTE",
        "invoke": "POST /api/dispatch {\"key\":\"QUOTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"QUOTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"QUOTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/QUOTE"
      },
      "examples": "[\"CLAUDE_WEB|4\", \"META_AD_LIBRARY_SEARCH|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=QUOTE"
    },
    {
      "key": "R2_DEL",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "R2_DEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "R2_DEL",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[R2_DEL]arg1[/R2_DEL]",
        "tag": "[R2_DEL]<arg1>[/R2_DEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"R2_DEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/R2_DEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/R2_DEL",
        "update": "PUT /api/directory/R2_DEL",
        "patch": "PATCH /api/directory/R2_DEL",
        "delete": "DELETE /api/directory/R2_DEL",
        "invoke": "POST /api/dispatch {\"key\":\"R2_DEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"R2_DEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"R2_DEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/R2_DEL"
      },
      "examples": "[\"law/decision-constitution/v1.3.3.txt\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=R2_DEL"
    },
    {
      "key": "R2_GET",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "R2_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "R2_GET",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[R2_GET]arg1[/R2_GET]",
        "tag": "[R2_GET]<arg1>[/R2_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"R2_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/R2_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/R2_GET",
        "update": "PUT /api/directory/R2_GET",
        "patch": "PATCH /api/directory/R2_GET",
        "delete": "DELETE /api/directory/R2_GET",
        "invoke": "POST /api/dispatch {\"key\":\"R2_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"R2_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"R2_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/R2_GET"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=R2_GET"
    },
    {
      "key": "R2_LIST",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "R2_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "R2_LIST",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[R2_LIST]arg1[/R2_LIST]",
        "tag": "[R2_LIST]<arg1>[/R2_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"R2_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/R2_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/R2_LIST",
        "update": "PUT /api/directory/R2_LIST",
        "patch": "PATCH /api/directory/R2_LIST",
        "delete": "DELETE /api/directory/R2_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"R2_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"R2_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"R2_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/R2_LIST"
      },
      "examples": "[\"img/gen/send-ledger\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=R2_LIST"
    },
    {
      "key": "R2_PUT",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "R2_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "R2_PUT",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[R2_PUT]arg1|arg2[/R2_PUT]",
        "tag": "[R2_PUT]<arg1>|<arg2>[/R2_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"R2_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/R2_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/R2_PUT",
        "update": "PUT /api/directory/R2_PUT",
        "patch": "PATCH /api/directory/R2_PUT",
        "delete": "DELETE /api/directory/R2_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"R2_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"R2_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"R2_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/R2_PUT"
      },
      "examples": "[\"img/audit/_probe.txt|hello-audit-probe\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=R2_PUT"
    },
    {
      "key": "REASON",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REASON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REASON",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[REASON][/REASON]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REASON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REASON  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/REASON",
        "update": "PUT /api/directory/REASON",
        "patch": "PATCH /api/directory/REASON",
        "delete": "DELETE /api/directory/REASON",
        "invoke": "POST /api/dispatch {\"key\":\"REASON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REASON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REASON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REASON"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REASON"
    },
    {
      "key": "REASONING_GET",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Current reasoning_effort for all xAI (grok) model calls. Returns {grok_reasoning_effort}. Values: low|medium|high|none|default. Default = model decides WHEN_TO_USE: \"what is the reasoning level set to\" ARGS: none EX: [REASONING_GET][/REASONING_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REASONING_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REASONING_GET",
        "type": "fn",
        "what": [
          "WHAT: Current reasoning_effort for all xAI (grok) model calls. Returns {grok_reasoning_effort}. Values: low|medium|high|none|default. Default = model decides",
          "WHEN_TO_USE: \"what is the reasoning level set to\"",
          "ARGS: none",
          "EX: [REASONING_GET][/REASONING_GET]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "{grok_reasoning_effort}. Values: low|medium|high|none|default. Default = model decides",
        "example": "[REASONING_GET][/REASONING_GET]",
        "tag": "[REASONING_GET][/REASONING_GET]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REASONING_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REASONING_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/REASONING_GET",
        "update": "PUT /api/directory/REASONING_GET",
        "patch": "PATCH /api/directory/REASONING_GET",
        "delete": "DELETE /api/directory/REASONING_GET",
        "invoke": "POST /api/dispatch {\"key\":\"REASONING_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REASONING_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REASONING_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REASONING_GET"
      },
      "examples": "[\"REASON\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REASONING_GET"
    },
    {
      "key": "REASONING_SET",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Set reasoning_effort for all xAI (grok) model calls. Arg: low|medium|high|none|default. \"default\" removes the field (model decides). Takes effect immediately WHEN_TO_USE: \"set reasoning to low/high/off\", \"turn reasoning off\", \"set grok reasoning effort\" ARGS: $1 EX: [REASONING_SET]arg1[/REASONING_SET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REASONING_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REASONING_SET",
        "type": "fn",
        "what": [
          "WHAT: Set reasoning_effort for all xAI (grok) model calls. Arg: low|medium|high|none|default. \"default\" removes the field (model decides). Takes effect immediately",
          "WHEN_TO_USE: \"set reasoning to low/high/off\", \"turn reasoning off\", \"set grok reasoning effort\"",
          "ARGS: $1",
          "EX: [REASONING_SET]arg1[/REASONING_SET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[REASONING_SET]arg1[/REASONING_SET]",
        "tag": "[REASONING_SET]<arg1>[/REASONING_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REASONING_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REASONING_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/REASONING_SET",
        "update": "PUT /api/directory/REASONING_SET",
        "patch": "PATCH /api/directory/REASONING_SET",
        "delete": "DELETE /api/directory/REASONING_SET",
        "invoke": "POST /api/dispatch {\"key\":\"REASONING_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REASONING_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REASONING_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REASONING_SET"
      },
      "examples": "[\"none\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REASONING_SET"
    },
    {
      "key": "REDDIT_REPLY",
      "type": "fn",
      "category": "reddit",
      "doc": "WHAT: Post ONE comment reply to a specific Reddit thing (thread or comment) AS the owner account. WHEN_TO_USE: only when the owner directs a reply to a specific target, under the owner rules. Single-target by design; not for autonomous mass-replying (protects the labeled account from bans). ARGS: $1=parent thing id (t3_<post> or t1_<comment>) | $2=reply text AUTH: owner-gated (sensitive). Needs REDDIT_USERNAME/REDDIT_PASSWORD + client creds. RETURNS: {ok,id,url,body} EX: REDDIT_REPLY t3_abc123|Great write-up — sourced our take here.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REDDIT_REPLY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REDDIT_REPLY",
        "type": "fn",
        "what": [
          "WHAT: Post ONE comment reply to a specific Reddit thing (thread or comment) AS the owner account.",
          "WHEN_TO_USE: only when the owner directs a reply to a specific target, under the owner rules. Single-target by design; not for autonomous mass-replying (protects the labeled account from bans).",
          "ARGS: $1=parent thing id (t3_<post> or t1_<comment>) | $2=reply text",
          "AUTH: owner-gated (sensitive). Needs REDDIT_USERNAME/REDDIT_PASSWORD + client creds.",
          "RETURNS: {ok,id,url,body}",
          "EX: REDDIT_REPLY t3_abc123|Great write-up — sourced our take here."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "parent thing id (t3_<post> or t1_<comment>) | $2=reply text",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "REDDIT_REPLY t3_abc123|Great write-up — sourced our take here.",
        "tag": "[REDDIT_REPLY]<arg1>|<arg2>[/REDDIT_REPLY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REDDIT_REPLY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REDDIT_REPLY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/REDDIT_REPLY",
        "update": "PUT /api/directory/REDDIT_REPLY",
        "patch": "PATCH /api/directory/REDDIT_REPLY",
        "delete": "DELETE /api/directory/REDDIT_REPLY",
        "invoke": "POST /api/dispatch {\"key\":\"REDDIT_REPLY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REDDIT_REPLY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REDDIT_REPLY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REDDIT_REPLY"
      },
      "examples": "[\"REDDIT_REPLY t3_abc123|Great write-up \\u2014 sourced our take here.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REDDIT_REPLY"
    },
    {
      "key": "REDDIT_SEARCH",
      "type": "fn",
      "category": "reddit",
      "doc": "WHAT: Search Reddit for real threads on a topic and return them ready to file as reddit-type sources (native widget). WHEN_TO_USE: gathering real Reddit discussion as evidence/sources for an article. ARGS: $1=query | $2=subreddit(optional, e.g. Retatrutide) | $3=sort(top|relevance|new) | $4=t(year|month|all) RETURNS: {ok,count,sources:[{type:reddit,id,subreddit,author,title,quote,url,stats:{votes,comments},flair}]} EX: REDDIT_SEARCH retatrutide|Retatrutide|top|year",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REDDIT_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REDDIT_SEARCH",
        "type": "fn",
        "what": [
          "WHAT: Search Reddit for real threads on a topic and return them ready to file as reddit-type sources (native widget).",
          "WHEN_TO_USE: gathering real Reddit discussion as evidence/sources for an article.",
          "ARGS: $1=query | $2=subreddit(optional, e.g. Retatrutide) | $3=sort(top|relevance|new) | $4=t(year|month|all)",
          "RETURNS: {ok,count,sources:[{type:reddit,id,subreddit,author,title,quote,url,stats:{votes,comments},flair}]}",
          "EX: REDDIT_SEARCH retatrutide|Retatrutide|top|year"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "query | $2=subreddit(optional, e.g. Retatrutide) | $3=sort(top|relevance|new) | $4=t(year|month|all)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "them ready to file as reddit-type sources (native widget).",
        "example": "REDDIT_SEARCH retatrutide|Retatrutide|top|year",
        "tag": "[REDDIT_SEARCH]<arg1>|<arg2>|<arg3>|<arg4>[/REDDIT_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REDDIT_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REDDIT_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/REDDIT_SEARCH",
        "update": "PUT /api/directory/REDDIT_SEARCH",
        "patch": "PATCH /api/directory/REDDIT_SEARCH",
        "delete": "DELETE /api/directory/REDDIT_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"REDDIT_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REDDIT_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REDDIT_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REDDIT_SEARCH"
      },
      "examples": "[\"peptides\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REDDIT_SEARCH"
    },
    {
      "key": "REDDIT_THREAD",
      "type": "fn",
      "category": "reddit",
      "doc": "WHAT: Fetch one Reddit thread plus its top comments as reddit-type sources. WHEN_TO_USE: citing a specific thread and its comment replies. ARGS: $1=thread url or id (t3_... or the /comments/ id) | $2=max_comments(1-25, default 8) RETURNS: {ok,post:{...},comments:[{type:reddit,id:t1_...,author,quote,url,stats}]} EX: REDDIT_THREAD https://www.reddit.com/r/Retatrutide/comments/xxxx|8",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REDDIT_THREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REDDIT_THREAD",
        "type": "fn",
        "what": [
          "WHAT: Fetch one Reddit thread plus its top comments as reddit-type sources.",
          "WHEN_TO_USE: citing a specific thread and its comment replies.",
          "ARGS: $1=thread url or id (t3_... or the /comments/ id) | $2=max_comments(1-25, default 8)",
          "RETURNS: {ok,post:{...},comments:[{type:reddit,id:t1_...,author,quote,url,stats}]}",
          "EX: REDDIT_THREAD https://www.reddit.com/r/Retatrutide/comments/xxxx|8"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "thread url or id (t3_... or the /comments/ id) | $2=max_comments(1-25, default 8)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "REDDIT_THREAD https://www.reddit.com/r/Retatrutide/comments/xxxx|8",
        "tag": "[REDDIT_THREAD]<arg1>|<arg2>[/REDDIT_THREAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REDDIT_THREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REDDIT_THREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/REDDIT_THREAD",
        "update": "PUT /api/directory/REDDIT_THREAD",
        "patch": "PATCH /api/directory/REDDIT_THREAD",
        "delete": "DELETE /api/directory/REDDIT_THREAD",
        "invoke": "POST /api/dispatch {\"key\":\"REDDIT_THREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REDDIT_THREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REDDIT_THREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REDDIT_THREAD"
      },
      "examples": "[\"https://www.reddit.com/r/eczema/comments/1szorjy/kpv_peptide_fixed_my_eczema/|10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REDDIT_THREAD"
    },
    {
      "key": "REFLEX_PASS",
      "type": "fn",
      "category": "content-ops",
      "doc": "WHAT: Live probes vs protocol vision claims — posts reflex conformance atoms with proves/responds_to edges. WHEN_TO_USE: after collaborate/audit, continuous self-proof loop, verify build topology matches vision. ARGS: slug (optional, default protocol) EX: [REFLEX_PASS]protocol[/REFLEX_PASS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REFLEX_PASS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REFLEX_PASS",
        "type": "fn",
        "what": [
          "WHAT: Live probes vs protocol vision claims — posts reflex conformance atoms with proves/responds_to edges.",
          "WHEN_TO_USE: after collaborate/audit, continuous self-proof loop, verify build topology matches vision.",
          "ARGS: slug (optional, default protocol)",
          "EX: [REFLEX_PASS]protocol[/REFLEX_PASS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "protocol",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[REFLEX_PASS]protocol[/REFLEX_PASS]",
        "tag": "[REFLEX_PASS]<protocol>[/REFLEX_PASS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REFLEX_PASS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REFLEX_PASS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/REFLEX_PASS",
        "update": "PUT /api/directory/REFLEX_PASS",
        "patch": "PATCH /api/directory/REFLEX_PASS",
        "delete": "DELETE /api/directory/REFLEX_PASS",
        "invoke": "POST /api/dispatch {\"key\":\"REFLEX_PASS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REFLEX_PASS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REFLEX_PASS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REFLEX_PASS"
      },
      "examples": "[\"protocol\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REFLEX_PASS"
    },
    {
      "key": "REGEX_PARSE",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REGEX_PARSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REGEX_PARSE",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[REGEX_PARSE]arg1[/REGEX_PARSE]",
        "tag": "[REGEX_PARSE]<arg1>[/REGEX_PARSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REGEX_PARSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REGEX_PARSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/REGEX_PARSE",
        "update": "PUT /api/directory/REGEX_PARSE",
        "patch": "PATCH /api/directory/REGEX_PARSE",
        "delete": "DELETE /api/directory/REGEX_PARSE",
        "invoke": "POST /api/dispatch {\"key\":\"REGEX_PARSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REGEX_PARSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REGEX_PARSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REGEX_PARSE"
      },
      "examples": "[\"hello 42|[0-9]+\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REGEX_PARSE"
    },
    {
      "key": "RELAY_POST_APPEND",
      "type": "fn",
      "category": "protocol",
      "doc": "WHAT: Append one model's public adoption/proof link to THE RELAY. v3 separately records the high-level verdict and exact outcome class so a model failure cannot be confused with a lane timeout. WHEN_TO_USE: After a model audits the prior relay and performs real work. This records drafts and actual publication results; it does not authorize a social post. ARGS: one JSON object: platform; identity_mode named|incognito; exact model_name, model_provider, model_version and session_label; action; result_summary; verdict PASS|FAIL|MIXED; outcome_class SUCCESS|PARTIAL|MODEL_FAILED|LANE_TIMEOUT (PASS=SUCCESS, MIXED=PARTIAL, FAIL uses one of the two failure classes); proof_links[]; media_links[]; platform_copy with LinkedIn/Facebook/Instagram/X required, each beginning [execution surface · exact model name · YYYY-MM-DD HH:MM UTC] then a newline and third-person observed result; tag_targets[{name,handle?,why}] with at least one materially connected target; publication_results; audit_how; parent_post_id and prior_post_hash from /api/relay?social=1. SECURITY: Public fields contain only cap_ fingerprints, inv_ ids, public hashes/status URLs/anchors. Never include share tokens or backend credentials. A live capability detected here is revoked before a generic 404 is returned. TESTS: Reject platform copy missing its attribution header, first-person copy, an empty tag target list, a target missing name/why, stale parent/hash, missing identity/proof/copy/tag rationale, inconsistent verdict/outcome_class, or credential material. Return v3 post, outcome class, receipt and chain links.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RELAY_POST_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RELAY_POST_APPEND",
        "type": "fn",
        "what": [
          "WHAT: Append one model's public adoption/proof link to THE RELAY. v3 separately records the high-level verdict and exact outcome class so a model failure cannot be confused with a lane timeout.",
          "WHEN_TO_USE: After a model audits the prior relay and performs real work. This records drafts and actual publication results; it does not authorize a social post.",
          "ARGS: one JSON object: platform; identity_mode named|incognito; exact model_name, model_provider, model_version and session_label; action; result_summary; verdict PASS|FAIL|MIXED; outcome_class SUCCESS|PARTIAL|MODEL_FAILED|LANE_TIMEOUT (PASS=SUCCESS, MIXED=PARTIAL, FAIL uses one of the two failure classes); proof_links[]; media_links[]; platform_copy with LinkedIn/Facebook/Instagram/X required, each beginning [execution surface · exact model name · YYYY-MM-DD HH:MM UTC] then a newline and third-person observed result; tag_targets[{name,handle?,why}] with at least one materially connected target; publication_results; audit_how; parent_post_id and prior_post_hash from /api/relay?social=1.",
          "SECURITY: Public fields contain only cap_ fingerprints, inv_ ids, public hashes/status URLs/anchors. Never include share tokens or backend credentials. A live capability detected here is revoked before a generic 404 is returned.",
          "TESTS: Reject platform copy missing its attribution header, first-person copy, an empty tag target list, a target missing name/why, stale parent/hash, missing identity/proof/copy/tag rationale, inconsistent verdict/outcome_class, or credential material. Return v3 post, outcome class, receipt and chain links."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "v3 post, outcome class, receipt and chain links.",
        "example": "[RELAY_POST_APPEND]arg1[/RELAY_POST_APPEND]",
        "tag": "[RELAY_POST_APPEND]<arg1 …>[/RELAY_POST_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RELAY_POST_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RELAY_POST_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/RELAY_POST_APPEND",
        "update": "PUT /api/directory/RELAY_POST_APPEND",
        "patch": "PATCH /api/directory/RELAY_POST_APPEND",
        "delete": "DELETE /api/directory/RELAY_POST_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"RELAY_POST_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RELAY_POST_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RELAY_POST_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RELAY_POST_APPEND"
      },
      "examples": "[{\"platform\":\"multi\",\"identity_mode\":\"incognito\",\"model_name\":\"Kimi K3\",\"model_provider\":\"Moonshot AI\",\"model_version\":\"K3\",\"session_label\":\"Kimi K3 (incognito)\",\"verdict\":\"PASS\",\"tag_targets\":[{\"name\":\"Anthropic\",\"handle\":\"@AnthropicAI\",\"why\":\"MCP defines one connectivity layer OIP receipts traverse\"}],\"publication_results\":{\"x\":{\"status\":\"POSTED\",\"url\":\"https://x.com/i/web/status/...\",\"receipt\":\"https://miscsubjects.com/receipt/inv_...\"}},\"parent_post_id\":\"rsp_...\",\"prior_post_hash\":\"...\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=RELAY_POST_APPEND"
    },
    {
      "key": "REMEMBER",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Additive memory. Append ONE line to a directory rows content without touching the rest. $1=row key (use ROUTER for your own memory), $2=the line. INVOKE: [REMEMBER]ROUTER|- <one-line memory>[/REMEMBER] WHEN_TO_USE: you need to remember ARGS: $1 | $2 EX: [REMEMBER]arg1|arg2[/REMEMBER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REMEMBER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REMEMBER",
        "type": "fn",
        "what": [
          "WHAT: Additive memory. Append ONE line to a directory rows content without touching the rest. $1=row key (use ROUTER for your own memory), $2=the line. INVOKE: [REMEMBER]ROUTER|- <one-line memory>[/REMEMBER]",
          "WHEN_TO_USE: you need to remember",
          "ARGS: $1 | $2",
          "EX: [REMEMBER]arg1|arg2[/REMEMBER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "row key (use ROUTER for your own memory), $2=the line. INVOKE: [REMEMBER]ROUTER|- <one-line memory>[/REMEMBER]",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "- one-line memory",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[REMEMBER]arg1|arg2[/REMEMBER]",
        "tag": "[REMEMBER]<ROUTER>|<- one-line memory>[/REMEMBER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REMEMBER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REMEMBER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/REMEMBER",
        "update": "PUT /api/directory/REMEMBER",
        "patch": "PATCH /api/directory/REMEMBER",
        "delete": "DELETE /api/directory/REMEMBER",
        "invoke": "POST /api/dispatch {\"key\":\"REMEMBER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REMEMBER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REMEMBER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REMEMBER"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REMEMBER"
    },
    {
      "key": "REPO_ABSORB",
      "type": "flow",
      "category": "repo",
      "doc": "Absorb a GitHub repo into directory rows on the owner's voice command. Args: a GitHub URL or owner/repo plus any extra instruction. Hands the job to BUILDER, which clones to ~/_absorbed/, reads README/AGENTS.md, ADD_ROWs working rows, smokes one call, reports.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REPO_ABSORB",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REPO_ABSORB",
        "type": "flow",
        "what": [
          "Absorb a GitHub repo into directory rows on the owner's voice command. Args: a GitHub URL or owner/repo plus any extra instruction. Hands the job to BUILDER, which clones to ~/_absorbed/, reads README/AGENTS.md, ADD_ROWs working rows, smokes one call, reports."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[REPO_ABSORB]arg1[/REPO_ABSORB]",
        "tag": "[REPO_ABSORB]<arg1 …>[/REPO_ABSORB]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REPO_ABSORB\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REPO_ABSORB  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/REPO_ABSORB",
        "update": "PUT /api/directory/REPO_ABSORB",
        "patch": "PATCH /api/directory/REPO_ABSORB",
        "delete": "DELETE /api/directory/REPO_ABSORB",
        "invoke": "POST /api/dispatch {\"key\":\"REPO_ABSORB\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REPO_ABSORB\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REPO_ABSORB\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REPO_ABSORB"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=REPO_ABSORB"
    },
    {
      "key": "REPO_SNAPSHOT",
      "type": "fn",
      "category": "repo",
      "doc": "WHAT: Read the FULL repo snapshot from KV: {sha, ts, byte_count, content} — content is ~310KB and floods the next turn's input. Use SNAPSHOT_META for metadata-only. Call this only when you need the raw blob itself WHEN_TO_USE: you need to repo snapshot ARGS: none EX: [REPO_SNAPSHOT][/REPO_SNAPSHOT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REPO_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REPO_SNAPSHOT",
        "type": "fn",
        "what": [
          "WHAT: Read the FULL repo snapshot from KV: {sha, ts, byte_count, content} — content is ~310KB and floods the next turn's input. Use SNAPSHOT_META for metadata-only. Call this only when you need the raw blob itself",
          "WHEN_TO_USE: you need to repo snapshot",
          "ARGS: none",
          "EX: [REPO_SNAPSHOT][/REPO_SNAPSHOT]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[REPO_SNAPSHOT][/REPO_SNAPSHOT]",
        "tag": "[REPO_SNAPSHOT][/REPO_SNAPSHOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REPO_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REPO_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"repo:snapshot:current\"]",
      "edit": {
        "read": "GET /api/directory/REPO_SNAPSHOT",
        "update": "PUT /api/directory/REPO_SNAPSHOT",
        "patch": "PATCH /api/directory/REPO_SNAPSHOT",
        "delete": "DELETE /api/directory/REPO_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"REPO_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REPO_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REPO_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REPO_SNAPSHOT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=REPO_SNAPSHOT"
    },
    {
      "key": "RESCUE_ROUTER",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESCUE_ROUTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESCUE_ROUTER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[RESCUE_ROUTER][/RESCUE_ROUTER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESCUE_ROUTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESCUE_ROUTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/RESCUE_ROUTER",
        "update": "PUT /api/directory/RESCUE_ROUTER",
        "patch": "PATCH /api/directory/RESCUE_ROUTER",
        "delete": "DELETE /api/directory/RESCUE_ROUTER",
        "invoke": "POST /api/dispatch {\"key\":\"RESCUE_ROUTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESCUE_ROUTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESCUE_ROUTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESCUE_ROUTER"
      },
      "examples": "[\"send to KIMI and read /Users/owner/miscsubjects-pages/README.md\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RESCUE_ROUTER"
    },
    {
      "key": "RESEARCH_BOT",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESEARCH_BOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESEARCH_BOT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[RESEARCH_BOT][/RESEARCH_BOT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESEARCH_BOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESEARCH_BOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/RESEARCH_BOT",
        "update": "PUT /api/directory/RESEARCH_BOT",
        "patch": "PATCH /api/directory/RESEARCH_BOT",
        "delete": "DELETE /api/directory/RESEARCH_BOT",
        "invoke": "POST /api/dispatch {\"key\":\"RESEARCH_BOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESEARCH_BOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESEARCH_BOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESEARCH_BOT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RESEARCH_BOT"
    },
    {
      "key": "RESEND_EMAILS",
      "type": "http",
      "category": "loop_metrics",
      "doc": "WHAT: Transactional email sends with delivery state. $1 = how many (max 100). WHEN_TO_USE: \"did the order confirmation go out\", bounce and complaint checks. ARGS: $1 = limit EX: [RESEND_EMAILS]20[/RESEND_EMAILS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESEND_EMAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESEND_EMAILS",
        "type": "http",
        "what": [
          "WHAT: Transactional email sends with delivery state. $1 = how many (max 100).",
          "WHEN_TO_USE: \"did the order confirmation go out\", bounce and complaint checks.",
          "ARGS: $1 = limit",
          "EX: [RESEND_EMAILS]20[/RESEND_EMAILS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[RESEND_EMAILS]20[/RESEND_EMAILS]",
        "tag": "[RESEND_EMAILS]<20>[/RESEND_EMAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESEND_EMAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESEND_EMAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/RESEND_EMAILS",
        "update": "PUT /api/directory/RESEND_EMAILS",
        "patch": "PATCH /api/directory/RESEND_EMAILS",
        "delete": "DELETE /api/directory/RESEND_EMAILS",
        "invoke": "POST /api/dispatch {\"key\":\"RESEND_EMAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESEND_EMAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESEND_EMAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESEND_EMAILS"
      },
      "examples": "[\"2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RESEND_EMAILS"
    },
    {
      "key": "RESOLVE",
      "type": "http",
      "category": "kernel",
      "doc": "WHAT: Turn one line of the invocation grammar (or a plain-English request) into a routed, receipted capability call. Resolves key, args, account, device and authority in one step; runs it when run=true. WHEN_TO_USE: you have words, not a key: \"quake feed 3 5\", \"message send +1415… hi\", \"screenshot example.com\". Also the door every CLI, SDK and function-calling runtime uses. ARGS: $1+ = the line EX: [RESOLVE]quake feed 3 5[/RESOLVE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESOLVE",
        "type": "http",
        "what": [
          "WHAT: Turn one line of the invocation grammar (or a plain-English request) into a routed, receipted capability call. Resolves key, args, account, device and authority in one step; runs it when run=true.",
          "WHEN_TO_USE: you have words, not a key: \"quake feed 3 5\", \"message send +1415… hi\", \"screenshot example.com\". Also the door every CLI, SDK and function-calling runtime uses.",
          "ARGS: $1+ = the line",
          "EX: [RESOLVE]quake feed 3 5[/RESOLVE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "quake feed 3 5",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[RESOLVE]quake feed 3 5[/RESOLVE]",
        "tag": "[RESOLVE]<quake feed 3 5 …>[/RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"line\":\"$1+\",\"run\":true}",
      "edit": {
        "read": "GET /api/directory/RESOLVE",
        "update": "PUT /api/directory/RESOLVE",
        "patch": "PATCH /api/directory/RESOLVE",
        "delete": "DELETE /api/directory/RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESOLVE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=RESOLVE"
    },
    {
      "key": "RESOURCE_NEW",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Declare a scarce resource with occupancy and state: an advertising account, a logged-in browser profile, a seat, a compute slot. Names the capability and fields that snapshot its material state, and its collateral and risk premium. WHEN_TO_USE: the owner offers something for lease rather than per-call use. ARGS: kind|label|snapshot_key|snapshot_body|snapshot_fields(csv)|collateral_usd|risk_premium_usd EX: [RESOURCE_NEW]meta_ad_account|Owner test account|META_ADS_ACCOUNT_GET|act_123|account_status,funding_source|100|5[/RESOURCE_NEW] TESTS: Returns resource_id in state available; owner only.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESOURCE_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESOURCE_NEW",
        "type": "fn",
        "what": [
          "WHAT: Declare a scarce resource with occupancy and state: an advertising account, a logged-in browser profile, a seat, a compute slot. Names the capability and fields that snapshot its material state, and its collateral and risk premium.",
          "WHEN_TO_USE: the owner offers something for lease rather than per-call use.",
          "ARGS: kind|label|snapshot_key|snapshot_body|snapshot_fields(csv)|collateral_usd|risk_premium_usd",
          "EX: [RESOURCE_NEW]meta_ad_account|Owner test account|META_ADS_ACCOUNT_GET|act_123|account_status,funding_source|100|5[/RESOURCE_NEW]",
          "TESTS: Returns resource_id in state available; owner only."
        ],
        "args": [
          {
            "pos": 1,
            "name": "meta_ad_account",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "resource_id in state available; owner only.",
        "example": "[RESOURCE_NEW]meta_ad_account|Owner test account|META_ADS_ACCOUNT_GET|act_123|account_status,funding_source|100|5[/RESOURCE_NEW]",
        "tag": "[RESOURCE_NEW]<meta_ad_account …>[/RESOURCE_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESOURCE_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESOURCE_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/RESOURCE_NEW",
        "update": "PUT /api/directory/RESOURCE_NEW",
        "patch": "PATCH /api/directory/RESOURCE_NEW",
        "delete": "DELETE /api/directory/RESOURCE_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"RESOURCE_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESOURCE_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESOURCE_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESOURCE_NEW"
      },
      "examples": "[\"meta_ad_account|Owner test account|META_ADS_ACCOUNT_GET|act_123|account_status,funding_source|100|5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RESOURCE_NEW"
    },
    {
      "key": "RESOURCE_SNAPSHOT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Hash the material state of a resource now: the fields it declares, read through its snapshot capability. WHEN_TO_USE: before and after a lease, or to check a resource by hand. ARGS: resource_id|lease_id|phase EX: [RESOURCE_SNAPSHOT]res_abc|lease_def|before[/RESOURCE_SNAPSHOT] TESTS: Returns state_hash and the picked fields.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RESOURCE_SNAPSHOT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RESOURCE_SNAPSHOT",
        "type": "fn",
        "what": [
          "WHAT: Hash the material state of a resource now: the fields it declares, read through its snapshot capability.",
          "WHEN_TO_USE: before and after a lease, or to check a resource by hand.",
          "ARGS: resource_id|lease_id|phase",
          "EX: [RESOURCE_SNAPSHOT]res_abc|lease_def|before[/RESOURCE_SNAPSHOT]",
          "TESTS: Returns state_hash and the picked fields."
        ],
        "args": [
          {
            "pos": 1,
            "name": "res_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "state_hash and the picked fields.",
        "example": "[RESOURCE_SNAPSHOT]res_abc|lease_def|before[/RESOURCE_SNAPSHOT]",
        "tag": "[RESOURCE_SNAPSHOT]<res_abc …>[/RESOURCE_SNAPSHOT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RESOURCE_SNAPSHOT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RESOURCE_SNAPSHOT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/RESOURCE_SNAPSHOT",
        "update": "PUT /api/directory/RESOURCE_SNAPSHOT",
        "patch": "PATCH /api/directory/RESOURCE_SNAPSHOT",
        "delete": "DELETE /api/directory/RESOURCE_SNAPSHOT",
        "invoke": "POST /api/dispatch {\"key\":\"RESOURCE_SNAPSHOT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RESOURCE_SNAPSHOT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RESOURCE_SNAPSHOT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RESOURCE_SNAPSHOT"
      },
      "examples": "[\"res_abc||adhoc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RESOURCE_SNAPSHOT"
    },
    {
      "key": "REVIEW_RECORD",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Confirm, challenge or abstain on a decision record while preserving reviewer provider/family, evidence, prompt/context fingerprints and whether prior answers were visible. ARGS: JSON {decision_id,reviewer_model,reviewer_provider,reviewer_family,stance:CONFIRM|CHALLENGE|ABSTAIN,justification,evidence[],evidence_recomputed?,prompt_hash?,context_hash?,prior_answers_visible?,authority,invocation_id?}. TESTS: Unknown decisions fail; repeated same-provider reviews remain visible but do not multiply independent-provider surety.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "REVIEW_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "REVIEW_RECORD",
        "type": "http",
        "what": [
          "WHAT: Confirm, challenge or abstain on a decision record while preserving reviewer provider/family, evidence, prompt/context fingerprints and whether prior answers were visible.",
          "ARGS: JSON {decision_id,reviewer_model,reviewer_provider,reviewer_family,stance:CONFIRM|CHALLENGE|ABSTAIN,justification,evidence[],evidence_recomputed?,prompt_hash?,context_hash?,prior_answers_visible?,authority,invocation_id?}.",
          "TESTS: Unknown decisions fail; repeated same-provider reviews remain visible but do not multiply independent-provider surety."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[REVIEW_RECORD]arg1[/REVIEW_RECORD]",
        "tag": "[REVIEW_RECORD]<arg1 …>[/REVIEW_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"REVIEW_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/REVIEW_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/REVIEW_RECORD",
        "update": "PUT /api/directory/REVIEW_RECORD",
        "patch": "PATCH /api/directory/REVIEW_RECORD",
        "delete": "DELETE /api/directory/REVIEW_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"REVIEW_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"REVIEW_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"REVIEW_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/REVIEW_RECORD"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=REVIEW_RECORD"
    },
    {
      "key": "RIGHTS_GET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Read the rights record of one row. WHEN_TO_USE: checking whether a row may be sold and on what entitlement. ARGS: row_key EX: [RIGHTS_GET]CLAUDE_WEB[/RIGHTS_GET] TESTS: Returns the record or ERR:RIGHTS_MISSING naming the row.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RIGHTS_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RIGHTS_GET",
        "type": "fn",
        "what": [
          "WHAT: Read the rights record of one row.",
          "WHEN_TO_USE: checking whether a row may be sold and on what entitlement.",
          "ARGS: row_key",
          "EX: [RIGHTS_GET]CLAUDE_WEB[/RIGHTS_GET]",
          "TESTS: Returns the record or ERR:RIGHTS_MISSING naming the row."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CLAUDE_WEB",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the record or ERR:RIGHTS_MISSING naming the row.",
        "example": "[RIGHTS_GET]CLAUDE_WEB[/RIGHTS_GET]",
        "tag": "[RIGHTS_GET]<CLAUDE_WEB …>[/RIGHTS_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RIGHTS_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RIGHTS_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/RIGHTS_GET",
        "update": "PUT /api/directory/RIGHTS_GET",
        "patch": "PATCH /api/directory/RIGHTS_GET",
        "delete": "DELETE /api/directory/RIGHTS_GET",
        "invoke": "POST /api/dispatch {\"key\":\"RIGHTS_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RIGHTS_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RIGHTS_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RIGHTS_GET"
      },
      "examples": "[\"CLAUDE_WEB\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RIGHTS_GET"
    },
    {
      "key": "RIGHTS_SET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Record the owner's right to sell one directory row: the entitlement behind it, whether resale is allowed, whether the row is read-only. A row with no rights record cannot be quoted, linked or granted. WHEN_TO_USE: before any row is sold or rented; the owner names what makes it sellable. ARGS: row_key|entitlement_source|resale_allowed(1/0)|read_only(1/0)|platform_terms_version|expires_at|purpose|region EX: [RIGHTS_SET]CLAUDE_WEB|owner subscription, personal use permitted|1|1[/RIGHTS_SET] TESTS: Returns ok with the recorded flags and a ledger event; a non-owner caller is refused OWNER_ONLY; an unknown row is refused UNKNOWN_KEY.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "RIGHTS_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "RIGHTS_SET",
        "type": "fn",
        "what": [
          "WHAT: Record the owner's right to sell one directory row: the entitlement behind it, whether resale is allowed, whether the row is read-only. A row with no rights record cannot be quoted, linked or granted.",
          "WHEN_TO_USE: before any row is sold or rented; the owner names what makes it sellable.",
          "ARGS: row_key|entitlement_source|resale_allowed(1/0)|read_only(1/0)|platform_terms_version|expires_at|purpose|region",
          "EX: [RIGHTS_SET]CLAUDE_WEB|owner subscription, personal use permitted|1|1[/RIGHTS_SET]",
          "TESTS: Returns ok with the recorded flags and a ledger event; a non-owner caller is refused OWNER_ONLY; an unknown row is refused UNKNOWN_KEY."
        ],
        "args": [
          {
            "pos": 1,
            "name": "CLAUDE_WEB",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ok with the recorded flags and a ledger event; a non-owner caller is refused OWNER_ONLY; an unknown row is refused UNKNOWN_KEY.",
        "example": "[RIGHTS_SET]CLAUDE_WEB|owner subscription, personal use permitted|1|1[/RIGHTS_SET]",
        "tag": "[RIGHTS_SET]<CLAUDE_WEB …>[/RIGHTS_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"RIGHTS_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/RIGHTS_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/RIGHTS_SET",
        "update": "PUT /api/directory/RIGHTS_SET",
        "patch": "PATCH /api/directory/RIGHTS_SET",
        "delete": "DELETE /api/directory/RIGHTS_SET",
        "invoke": "POST /api/dispatch {\"key\":\"RIGHTS_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"RIGHTS_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"RIGHTS_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/RIGHTS_SET"
      },
      "examples": "[\"CLAUDE_WEB|owner subscription|1|1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=RIGHTS_SET"
    },
    {
      "key": "ROAS_V1",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Methodology ROAS_V1, version 1: revenue divided by ad spend over one window, from a Meta insights receipt and a Stripe charges receipt; refunded charges excluded; attribution of revenue to spend is not claimed. Grade ceiling: method-reproducible. WHEN_TO_USE: a claim about return on ad spend. ARGS: none EX: [ROAS_V1][/ROAS_V1] TESTS: Returns the definition, evidence list and exclusions.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ROAS_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ROAS_V1",
        "type": "fn",
        "what": [
          "WHAT: Methodology ROAS_V1, version 1: revenue divided by ad spend over one window, from a Meta insights receipt and a Stripe charges receipt; refunded charges excluded; attribution of revenue to spend is not claimed. Grade ceiling: method-reproducible.",
          "WHEN_TO_USE: a claim about return on ad spend.",
          "ARGS: none",
          "EX: [ROAS_V1][/ROAS_V1]",
          "TESTS: Returns the definition, evidence list and exclusions."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "on ad spend.",
        "example": "[ROAS_V1][/ROAS_V1]",
        "tag": "[ROAS_V1][/ROAS_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ROAS_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ROAS_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"ROAS_V1\"]",
      "edit": {
        "read": "GET /api/directory/ROAS_V1",
        "update": "PUT /api/directory/ROAS_V1",
        "patch": "PATCH /api/directory/ROAS_V1",
        "delete": "DELETE /api/directory/ROAS_V1",
        "invoke": "POST /api/dispatch {\"key\":\"ROAS_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ROAS_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ROAS_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ROAS_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ROAS_V1"
    },
    {
      "key": "ROUTER",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "ROUTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "ROUTER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[ROUTER][/ROUTER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"ROUTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/ROUTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/ROUTER",
        "update": "PUT /api/directory/ROUTER",
        "patch": "PATCH /api/directory/ROUTER",
        "delete": "DELETE /api/directory/ROUTER",
        "invoke": "POST /api/dispatch {\"key\":\"ROUTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"ROUTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"ROUTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/ROUTER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=ROUTER"
    },
    {
      "key": "SAVE_FLOW",
      "type": "fn",
      "category": "flow",
      "doc": "WHAT: Create or replace a flow row from DSL (pipe-safe) WHEN_TO_USE: you need to save flow ARGS: key|dsl EX: [SAVE_FLOW]arg1|arg2[/SAVE_FLOW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SAVE_FLOW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SAVE_FLOW",
        "type": "fn",
        "what": [
          "WHAT: Create or replace a flow row from DSL (pipe-safe)",
          "WHEN_TO_USE: you need to save flow",
          "ARGS: key|dsl",
          "EX: [SAVE_FLOW]arg1|arg2[/SAVE_FLOW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SAVE_FLOW]arg1|arg2[/SAVE_FLOW]",
        "tag": "[SAVE_FLOW]<arg1>|<arg2 …>[/SAVE_FLOW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SAVE_FLOW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SAVE_FLOW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/SAVE_FLOW",
        "update": "PUT /api/directory/SAVE_FLOW",
        "patch": "PATCH /api/directory/SAVE_FLOW",
        "delete": "DELETE /api/directory/SAVE_FLOW",
        "invoke": "POST /api/dispatch {\"key\":\"SAVE_FLOW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SAVE_FLOW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SAVE_FLOW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SAVE_FLOW"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SAVE_FLOW"
    },
    {
      "key": "SCHEDULERS",
      "type": "fn",
      "category": "tools",
      "doc": "WHAT: List scheduler/autorun state: KV loop flags plus configured automations. WHEN_TO_USE: owner asks what loops, schedulers, cron, autoruns, or recurring jobs are on/off. ARGS: none EX: [SCHEDULERS][/SCHEDULERS] TESTS: returns JSON with loop_flags, enabled_automations, disabled_automations, and automations.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SCHEDULERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SCHEDULERS",
        "type": "fn",
        "what": [
          "WHAT: List scheduler/autorun state: KV loop flags plus configured automations.",
          "WHEN_TO_USE: owner asks what loops, schedulers, cron, autoruns, or recurring jobs are on/off.",
          "ARGS: none",
          "EX: [SCHEDULERS][/SCHEDULERS]",
          "TESTS: returns JSON with loop_flags, enabled_automations, disabled_automations, and automations."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "JSON with loop_flags, enabled_automations, disabled_automations, and automations.",
        "example": "[SCHEDULERS][/SCHEDULERS]",
        "tag": "[SCHEDULERS][/SCHEDULERS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SCHEDULERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SCHEDULERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/SCHEDULERS",
        "update": "PUT /api/directory/SCHEDULERS",
        "patch": "PATCH /api/directory/SCHEDULERS",
        "delete": "DELETE /api/directory/SCHEDULERS",
        "invoke": "POST /api/dispatch {\"key\":\"SCHEDULERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SCHEDULERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SCHEDULERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SCHEDULERS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SCHEDULERS"
    },
    {
      "key": "SCHEDULER_SET",
      "type": "fn",
      "category": "tools",
      "doc": "WHAT: Enable or disable a cron scheduler. $1=key, $2=value (0 or 1). EX: [SCHEDULER_SET]proactive_msgs|1[/SCHEDULER_SET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SCHEDULER_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SCHEDULER_SET",
        "type": "fn",
        "what": [
          "WHAT: Enable or disable a cron scheduler. $1=key, $2=value (0 or 1).",
          "EX: [SCHEDULER_SET]proactive_msgs|1[/SCHEDULER_SET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "proactive_msgs",
            "desc": "key, $2=value (0 or 1).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SCHEDULER_SET]proactive_msgs|1[/SCHEDULER_SET]",
        "tag": "[SCHEDULER_SET]<proactive_msgs>|<1>[/SCHEDULER_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SCHEDULER_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SCHEDULER_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/SCHEDULER_SET",
        "update": "PUT /api/directory/SCHEDULER_SET",
        "patch": "PATCH /api/directory/SCHEDULER_SET",
        "delete": "DELETE /api/directory/SCHEDULER_SET",
        "invoke": "POST /api/dispatch {\"key\":\"SCHEDULER_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SCHEDULER_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SCHEDULER_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SCHEDULER_SET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SCHEDULER_SET"
    },
    {
      "key": "SEAL_PANEL",
      "type": "fn",
      "category": "adjudication",
      "doc": "WHAT: The sealer. Deterministic arithmetic over a panel's findings that decides what happens to the ACTION and nothing else. No model runs at this position: a model here is a further opinion that can share the panel's blind spot while being the thing that decides. Five outcomes, all arithmetic: APPROVE (unanimous AFFIRM, identical clause citations, enough distinct training families, no malformed finding), NEGATE (unanimous DENY on the same terms - the action is refused, not deferred), NO_ACTION (unanimous CANNOT_CONCLUDE - a required record is missing, so nothing is authorised and nothing is refused), DISPUTE (the only failing test is a stated confidence below the supplied floor), ESCALATE (any verdict divergence, clause-citation divergence, malformed finding, too few channels, or too little training-family diversity). The recorded adversary saw the majority and is never counted as a channel. Independence is not assumed: channels from one training family count once for the diversity test, which is the common-cause discount IEC 61508 calls a beta factor. WHEN_TO_USE: at the end of every panel whose finding will reach a downstream actor. Clause-citation divergence fires before verdict divergence and is the more sensitive detector, so run this rather than counting votes. ARGS: one JSON object {findings:[{model,verdict,clauses|reasoning,confidence?,invocation_id,exposure,role}], min_families?, min_findings?, min_confidence?, escalate_to?} EX: [SEAL_PANEL]{\"findings\":[{\"model\":\"@cf/moonshotai/kimi-k2.7-code\",\"verdict\":\"AFFIRM\",\"clauses\":[2,6],\"confidence\":0.99}],\"min_families\":3,\"min_confidence\":0.95}[/SEAL_PANEL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEAL_PANEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEAL_PANEL",
        "type": "fn",
        "what": [
          "WHAT: The sealer. Deterministic arithmetic over a panel's findings that decides what happens to the ACTION and nothing else. No model runs at this position: a model here is a further opinion that can share the panel's blind spot while being the thing that decides. Five outcomes, all arithmetic: APPROVE (unanimous AFFIRM, identical clause citations, enough distinct training families, no malformed finding), NEGATE (unanimous DENY on the same terms - the action is refused, not deferred), NO_ACTION (unanimous CANNOT_CONCLUDE - a required record is missing, so nothing is authorised and nothing is refused), DISPUTE (the only failing test is a stated confidence below the supplied floor), ESCALATE (any verdict divergence, clause-citation divergence, malformed finding, too few channels, or too little training-family diversity). The recorded adversary saw the majority and is never counted as a channel. Independence is not assumed: channels from one training family count once for the diversity test, which is the common-cause discount IEC 61508 calls a beta factor.",
          "WHEN_TO_USE: at the end of every panel whose finding will reach a downstream actor. Clause-citation divergence fires before verdict divergence and is the more sensitive detector, so run this rather than counting votes.",
          "ARGS: one JSON object {findings:[{model,verdict,clauses|reasoning,confidence?,invocation_id,exposure,role}], min_families?, min_findings?, min_confidence?, escalate_to?}",
          "EX: [SEAL_PANEL]{\"findings\":[{\"model\":\"@cf/moonshotai/kimi-k2.7-code\",\"verdict\":\"AFFIRM\",\"clauses\":[2,6],\"confidence\":0.99}],\"min_families\":3,\"min_confidence\":0.95}[/SEAL_PANEL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SEAL_PANEL]{\"findings\":[{\"model\":\"@cf/moonshotai/kimi-k2.7-code\",\"verdict\":\"AFFIRM\",\"clauses\":[2,6],\"confidence\":0.99}],\"min_families\":3,\"min_confidence\":0.95}[/SEAL_PANEL]",
        "tag": "[SEAL_PANEL]<arg1 …>[/SEAL_PANEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEAL_PANEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEAL_PANEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/SEAL_PANEL",
        "update": "PUT /api/directory/SEAL_PANEL",
        "patch": "PATCH /api/directory/SEAL_PANEL",
        "delete": "DELETE /api/directory/SEAL_PANEL",
        "invoke": "POST /api/dispatch {\"key\":\"SEAL_PANEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEAL_PANEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEAL_PANEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEAL_PANEL"
      },
      "examples": "[{\"body\": \"{\\\"findings\\\":[{\\\"model\\\":\\\"@cf/moonshotai/kimi-k2.7-code\\\",\\\"verdict\\\":\\\"AFFIRM\\\",\\\"clauses\\\":[2,6],\\\"confidence\\\":0.99},{\\\"model\\\":\\\"@cf/zai-org/glm-5.2\\\",\\\"verdict\\\":\\\"AFFIRM\\\",\\\"clauses\\\":[2,6],\\\"confidence\\\":0.97},{\\\"model\\\":\\\"@cf/meta/llama-3.3-70b-instruct-fp8-fast\\\",\\\"verdict\\\":\\\"AFFIRM\\\",\\\"clauses\\\":[2,6],\\\"confidence\\\":0.96}],\\\"min_families\\\":3,\\\"min_confidence\\\":0.95}\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=SEAL_PANEL"
    },
    {
      "key": "SEND_BY_CHANNEL",
      "type": "fn",
      "category": "channel",
      "doc": "WHAT: Text the owner (or anyone) — the ONE way to send a message. $1=channel (use \"blooio\" to text the owner), $2=recipient (redacted is the owner), $3=the message text. WHEN_TO_USE: ANY \"text me / send a text / message the owner / notify me / sms / dm me\" request. This is the canonical texting row. Do NOT use BLOOIO_SEND_MESSAGE for this. ARGS: channel | recipient | text   (pipe-delimited, exactly three) EX: [SEND_BY_CHANNEL]blooio|redacted|Woof woof.[/SEND_BY_CHANNEL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEND_BY_CHANNEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEND_BY_CHANNEL",
        "type": "fn",
        "what": [
          "WHAT: Text the owner (or anyone) — the ONE way to send a message. $1=channel (use \"blooio\" to text the owner), $2=recipient (redacted is the owner), $3=the message text.",
          "WHEN_TO_USE: ANY \"text me / send a text / message the owner / notify me / sms / dm me\" request. This is the canonical texting row. Do NOT use BLOOIO_SEND_MESSAGE for this.",
          "ARGS: channel | recipient | text   (pipe-delimited, exactly three)",
          "EX: [SEND_BY_CHANNEL]blooio|redacted|Woof woof.[/SEND_BY_CHANNEL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "blooio",
            "desc": "channel (use \"blooio\" to text the owner), $2=recipient (redacted is the owner), $3=the message text.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "redacted",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "Woof woof.",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SEND_BY_CHANNEL]blooio|redacted|Woof woof.[/SEND_BY_CHANNEL]",
        "tag": "[SEND_BY_CHANNEL]<blooio>|<redacted>|<Woof woof.>[/SEND_BY_CHANNEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEND_BY_CHANNEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEND_BY_CHANNEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/SEND_BY_CHANNEL",
        "update": "PUT /api/directory/SEND_BY_CHANNEL",
        "patch": "PATCH /api/directory/SEND_BY_CHANNEL",
        "delete": "DELETE /api/directory/SEND_BY_CHANNEL",
        "invoke": "POST /api/dispatch {\"key\":\"SEND_BY_CHANNEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEND_BY_CHANNEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEND_BY_CHANNEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEND_BY_CHANNEL"
      },
      "examples": "[\"blooio|redacted|BREAKER: CF auth-locked after 8 consecutive 401s. The credential is dead \\u2014 replace it. Calls fail fast for 1h (clear: KV delete breaker:CF).\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SEND_BY_CHANNEL"
    },
    {
      "key": "SEND_IMAGE_BLOOIO",
      "type": "http",
      "category": "blooio",
      "doc": "WHAT: Send a message with an image to a Blooio chat (phone or group id) WHEN_TO_USE: you need to send image blooio ARGS: chat|text|attachment_url EX: [SEND_IMAGE_BLOOIO]arg2|arg3[/SEND_IMAGE_BLOOIO]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEND_IMAGE_BLOOIO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEND_IMAGE_BLOOIO",
        "type": "http",
        "what": [
          "WHAT: Send a message with an image to a Blooio chat (phone or group id)",
          "WHEN_TO_USE: you need to send image blooio",
          "ARGS: chat|text|attachment_url",
          "EX: [SEND_IMAGE_BLOOIO]arg2|arg3[/SEND_IMAGE_BLOOIO]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SEND_IMAGE_BLOOIO]arg2|arg3[/SEND_IMAGE_BLOOIO]",
        "tag": "[SEND_IMAGE_BLOOIO]<arg2>|<arg3>|<arg3>[/SEND_IMAGE_BLOOIO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEND_IMAGE_BLOOIO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEND_IMAGE_BLOOIO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"text\":\"$2\",\"attachments\":[\"$3\"]}",
      "edit": {
        "read": "GET /api/directory/SEND_IMAGE_BLOOIO",
        "update": "PUT /api/directory/SEND_IMAGE_BLOOIO",
        "patch": "PATCH /api/directory/SEND_IMAGE_BLOOIO",
        "delete": "DELETE /api/directory/SEND_IMAGE_BLOOIO",
        "invoke": "POST /api/dispatch {\"key\":\"SEND_IMAGE_BLOOIO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEND_IMAGE_BLOOIO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEND_IMAGE_BLOOIO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEND_IMAGE_BLOOIO"
      },
      "examples": "[\"redacted|New GHK-Cu 1x1 with the better font:|https://miscsubjects.com/img/gen/arcads-gpt-image-edit-100a2a60-995d-4b7f-bd4d-759d82125910.png\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SEND_IMAGE_BLOOIO"
    },
    {
      "key": "SEND_INVOICE_VIA_BLOOIO",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEND_INVOICE_VIA_BLOOIO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEND_INVOICE_VIA_BLOOIO",
        "type": "fn",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SEND_INVOICE_VIA_BLOOIO]arg1|arg2|arg3|arg4|arg5[/SEND_INVOICE_VIA_BLOOIO]",
        "tag": "[SEND_INVOICE_VIA_BLOOIO]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>[/SEND_INVOICE_VIA_BLOOIO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEND_INVOICE_VIA_BLOOIO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEND_INVOICE_VIA_BLOOIO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\"]",
      "edit": {
        "read": "GET /api/directory/SEND_INVOICE_VIA_BLOOIO",
        "update": "PUT /api/directory/SEND_INVOICE_VIA_BLOOIO",
        "patch": "PATCH /api/directory/SEND_INVOICE_VIA_BLOOIO",
        "delete": "DELETE /api/directory/SEND_INVOICE_VIA_BLOOIO",
        "invoke": "POST /api/dispatch {\"key\":\"SEND_INVOICE_VIA_BLOOIO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEND_INVOICE_VIA_BLOOIO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEND_INVOICE_VIA_BLOOIO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEND_INVOICE_VIA_BLOOIO"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SEND_INVOICE_VIA_BLOOIO"
    },
    {
      "key": "SEND_NAMED_INVOICE",
      "type": "fn",
      "category": "stripe",
      "doc": "WHAT: Bill a named peptide.  sku e.g. ESH-A9; tier starter|standard|advanced; duration 1mo|3mo|6mo|12mo; kind sub|onetime; mode resolve(lookup only, no write)|draft|send(finalize+SMS). Resolves price_id from stripe_catalog WHEN_TO_USE: you need to send named invoice ARGS: sku|tier|duration|kind|email|name|phone|mode EX: [SEND_NAMED_INVOICE]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8[/SEND_NAMED_INVOICE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEND_NAMED_INVOICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEND_NAMED_INVOICE",
        "type": "fn",
        "what": [
          "WHAT: Bill a named peptide.  sku e.g. ESH-A9; tier starter|standard|advanced; duration 1mo|3mo|6mo|12mo; kind sub|onetime; mode resolve(lookup only, no write)|draft|send(finalize+SMS). Resolves price_id from stripe_catalog",
          "WHEN_TO_USE: you need to send named invoice",
          "ARGS: sku|tier|duration|kind|email|name|phone|mode",
          "EX: [SEND_NAMED_INVOICE]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8[/SEND_NAMED_INVOICE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SEND_NAMED_INVOICE]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8[/SEND_NAMED_INVOICE]",
        "tag": "[SEND_NAMED_INVOICE]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>[/SEND_NAMED_INVOICE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEND_NAMED_INVOICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEND_NAMED_INVOICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\",\"$5\",\"$6\",\"$7\",\"$8\"]",
      "edit": {
        "read": "GET /api/directory/SEND_NAMED_INVOICE",
        "update": "PUT /api/directory/SEND_NAMED_INVOICE",
        "patch": "PATCH /api/directory/SEND_NAMED_INVOICE",
        "delete": "DELETE /api/directory/SEND_NAMED_INVOICE",
        "invoke": "POST /api/dispatch {\"key\":\"SEND_NAMED_INVOICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEND_NAMED_INVOICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEND_NAMED_INVOICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEND_NAMED_INVOICE"
      },
      "examples": "[\"ESH-A9|advanced|12mo|sub|x@y.com|Test|redacted|resolve\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SEND_NAMED_INVOICE"
    },
    {
      "key": "SEND_PEPTIDE_INVOICE",
      "type": "fn",
      "category": "stripe",
      "doc": "WHAT: Create an invoice for existing customer $1 using catalog price $2 (qty $3). $4=send (true to finalize+send; default false=draft) WHEN_TO_USE: you need to send peptide invoice ARGS: $1 | $2 | $3 | $4 EX: [SEND_PEPTIDE_INVOICE]arg1|arg2|arg3|arg4[/SEND_PEPTIDE_INVOICE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SEND_PEPTIDE_INVOICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SEND_PEPTIDE_INVOICE",
        "type": "fn",
        "what": [
          "WHAT: Create an invoice for existing customer $1 using catalog price $2 (qty $3). $4=send (true to finalize+send; default false=draft)",
          "WHEN_TO_USE: you need to send peptide invoice",
          "ARGS: $1 | $2 | $3 | $4",
          "EX: [SEND_PEPTIDE_INVOICE]arg1|arg2|arg3|arg4[/SEND_PEPTIDE_INVOICE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "send (true to finalize+send",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SEND_PEPTIDE_INVOICE]arg1|arg2|arg3|arg4[/SEND_PEPTIDE_INVOICE]",
        "tag": "[SEND_PEPTIDE_INVOICE]<arg1>|<arg2>|<arg3>|<arg4>[/SEND_PEPTIDE_INVOICE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SEND_PEPTIDE_INVOICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SEND_PEPTIDE_INVOICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/SEND_PEPTIDE_INVOICE",
        "update": "PUT /api/directory/SEND_PEPTIDE_INVOICE",
        "patch": "PATCH /api/directory/SEND_PEPTIDE_INVOICE",
        "delete": "DELETE /api/directory/SEND_PEPTIDE_INVOICE",
        "invoke": "POST /api/dispatch {\"key\":\"SEND_PEPTIDE_INVOICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SEND_PEPTIDE_INVOICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SEND_PEPTIDE_INVOICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SEND_PEPTIDE_INVOICE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SEND_PEPTIDE_INVOICE"
    },
    {
      "key": "SERVE_PAGE",
      "type": "flow",
      "category": "pages",
      "doc": "Body HTML for $1=slug (used by functions/[slug].js to serve /<slug>). Use ONLY from the page renderer.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SERVE_PAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SERVE_PAGE",
        "type": "flow",
        "what": [
          "Body HTML for $1=slug (used by functions/[slug].js to serve /<slug>). Use ONLY from the page renderer."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "slug (used by functions/[slug].js to serve /<slug>). Use ONLY from the page renderer.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[SERVE_PAGE]arg1[/SERVE_PAGE]",
        "tag": "[SERVE_PAGE]<arg1>[/SERVE_PAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SERVE_PAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SERVE_PAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SERVE_PAGE",
        "update": "PUT /api/directory/SERVE_PAGE",
        "patch": "PATCH /api/directory/SERVE_PAGE",
        "delete": "DELETE /api/directory/SERVE_PAGE",
        "invoke": "POST /api/dispatch {\"key\":\"SERVE_PAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SERVE_PAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SERVE_PAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SERVE_PAGE"
      },
      "examples": "[\"m\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SERVE_PAGE"
    },
    {
      "key": "SESSION_GET",
      "type": "fn",
      "category": "session",
      "doc": "WHAT: Read a session row WHEN_TO_USE: you need to session get ARGS: session_id EX: [SESSION_GET]arg1[/SESSION_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SESSION_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SESSION_GET",
        "type": "fn",
        "what": [
          "WHAT: Read a session row",
          "WHEN_TO_USE: you need to session get",
          "ARGS: session_id",
          "EX: [SESSION_GET]arg1[/SESSION_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SESSION_GET]arg1[/SESSION_GET]",
        "tag": "[SESSION_GET]<arg1>[/SESSION_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SESSION_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SESSION_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SESSION_GET",
        "update": "PUT /api/directory/SESSION_GET",
        "patch": "PATCH /api/directory/SESSION_GET",
        "delete": "DELETE /api/directory/SESSION_GET",
        "invoke": "POST /api/dispatch {\"key\":\"SESSION_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SESSION_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SESSION_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SESSION_GET"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SESSION_GET"
    },
    {
      "key": "SESSION_RESUME",
      "type": "fn",
      "category": "session",
      "doc": "WHAT: Rehydrate a cold terminal agent: session row + recent LEDGER events (actor=session_id) WHEN_TO_USE: you need to session resume ARGS: session_id|limit EX: [SESSION_RESUME]arg1|arg2[/SESSION_RESUME]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SESSION_RESUME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SESSION_RESUME",
        "type": "fn",
        "what": [
          "WHAT: Rehydrate a cold terminal agent: session row + recent LEDGER events (actor=session_id)",
          "WHEN_TO_USE: you need to session resume",
          "ARGS: session_id|limit",
          "EX: [SESSION_RESUME]arg1|arg2[/SESSION_RESUME]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SESSION_RESUME]arg1|arg2[/SESSION_RESUME]",
        "tag": "[SESSION_RESUME]<arg1>|<arg2>[/SESSION_RESUME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SESSION_RESUME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SESSION_RESUME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/SESSION_RESUME",
        "update": "PUT /api/directory/SESSION_RESUME",
        "patch": "PATCH /api/directory/SESSION_RESUME",
        "delete": "DELETE /api/directory/SESSION_RESUME",
        "invoke": "POST /api/dispatch {\"key\":\"SESSION_RESUME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SESSION_RESUME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SESSION_RESUME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SESSION_RESUME"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SESSION_RESUME"
    },
    {
      "key": "SESSION_START",
      "type": "fn",
      "category": "session",
      "doc": "WHAT: Start (or upsert) a stateful agent session WHEN_TO_USE: you need to session start ARGS: session_id|agent|cwd|goal EX: [SESSION_START]arg1|arg2|arg3|arg4[/SESSION_START]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SESSION_START",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SESSION_START",
        "type": "fn",
        "what": [
          "WHAT: Start (or upsert) a stateful agent session",
          "WHEN_TO_USE: you need to session start",
          "ARGS: session_id|agent|cwd|goal",
          "EX: [SESSION_START]arg1|arg2|arg3|arg4[/SESSION_START]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SESSION_START]arg1|arg2|arg3|arg4[/SESSION_START]",
        "tag": "[SESSION_START]<arg1>|<arg2>|<arg3>|<arg4 …>[/SESSION_START]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SESSION_START\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SESSION_START  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4+\"]",
      "edit": {
        "read": "GET /api/directory/SESSION_START",
        "update": "PUT /api/directory/SESSION_START",
        "patch": "PATCH /api/directory/SESSION_START",
        "delete": "DELETE /api/directory/SESSION_START",
        "invoke": "POST /api/dispatch {\"key\":\"SESSION_START\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SESSION_START\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SESSION_START\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SESSION_START"
      },
      "examples": "[\"arg1|arg2|arg3|arg4\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SESSION_START"
    },
    {
      "key": "SESSION_UPDATE",
      "type": "fn",
      "category": "session",
      "doc": "WHAT: Patch a session (agent|cwd|goal|status|last_event_id) WHEN_TO_USE: you need to session update ARGS: session_id|patch_json EX: [SESSION_UPDATE]arg1|arg2[/SESSION_UPDATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SESSION_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SESSION_UPDATE",
        "type": "fn",
        "what": [
          "WHAT: Patch a session (agent|cwd|goal|status|last_event_id)",
          "WHEN_TO_USE: you need to session update",
          "ARGS: session_id|patch_json",
          "EX: [SESSION_UPDATE]arg1|arg2[/SESSION_UPDATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SESSION_UPDATE]arg1|arg2[/SESSION_UPDATE]",
        "tag": "[SESSION_UPDATE]<arg1>|<arg2 …>[/SESSION_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SESSION_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SESSION_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/SESSION_UPDATE",
        "update": "PUT /api/directory/SESSION_UPDATE",
        "patch": "PATCH /api/directory/SESSION_UPDATE",
        "delete": "DELETE /api/directory/SESSION_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"SESSION_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SESSION_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SESSION_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SESSION_UPDATE"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SESSION_UPDATE"
    },
    {
      "key": "SETTINGS_GET",
      "type": "flow",
      "category": "settings",
      "doc": "Read one setting by $1=key. Use when reading a config value (e.g. grok_model).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTINGS_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTINGS_GET",
        "type": "flow",
        "what": [
          "Read one setting by $1=key. Use when reading a config value (e.g. grok_model)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "key. Use when reading a config value (e.g. grok_model).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[SETTINGS_GET]arg1[/SETTINGS_GET]",
        "tag": "[SETTINGS_GET]<arg1>[/SETTINGS_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTINGS_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTINGS_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SETTINGS_GET",
        "update": "PUT /api/directory/SETTINGS_GET",
        "patch": "PATCH /api/directory/SETTINGS_GET",
        "delete": "DELETE /api/directory/SETTINGS_GET",
        "invoke": "POST /api/dispatch {\"key\":\"SETTINGS_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTINGS_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTINGS_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTINGS_GET"
      },
      "examples": "[\"GORGIAS_USER\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTINGS_GET"
    },
    {
      "key": "SETTINGS_LIST",
      "type": "flow",
      "category": "settings",
      "doc": "List all settings. Use to enumerate keys that are read by code paths outside the directory.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTINGS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTINGS_LIST",
        "type": "flow",
        "what": [
          "List all settings. Use to enumerate keys that are read by code paths outside the directory."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[SETTINGS_LIST][/SETTINGS_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTINGS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTINGS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SETTINGS_LIST",
        "update": "PUT /api/directory/SETTINGS_LIST",
        "patch": "PATCH /api/directory/SETTINGS_LIST",
        "delete": "DELETE /api/directory/SETTINGS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"SETTINGS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTINGS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTINGS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTINGS_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTINGS_LIST"
    },
    {
      "key": "SETTINGS_READ_KV_FIRST",
      "type": "fn",
      "category": "settings",
      "doc": "WHAT: Read a setting value, KV first, fall back to settings table. Returns {key, value, source: kv|d1|miss} WHEN_TO_USE: you need to settings read kv first ARGS: $1 EX: [SETTINGS_READ_KV_FIRST]arg1[/SETTINGS_READ_KV_FIRST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTINGS_READ_KV_FIRST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTINGS_READ_KV_FIRST",
        "type": "fn",
        "what": [
          "WHAT: Read a setting value, KV first, fall back to settings table. Returns {key, value, source: kv|d1|miss}",
          "WHEN_TO_USE: you need to settings read kv first",
          "ARGS: $1",
          "EX: [SETTINGS_READ_KV_FIRST]arg1[/SETTINGS_READ_KV_FIRST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{key, value, source: kv|d1|miss}",
        "example": "[SETTINGS_READ_KV_FIRST]arg1[/SETTINGS_READ_KV_FIRST]",
        "tag": "[SETTINGS_READ_KV_FIRST]<arg1>[/SETTINGS_READ_KV_FIRST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTINGS_READ_KV_FIRST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTINGS_READ_KV_FIRST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SETTINGS_READ_KV_FIRST",
        "update": "PUT /api/directory/SETTINGS_READ_KV_FIRST",
        "patch": "PATCH /api/directory/SETTINGS_READ_KV_FIRST",
        "delete": "DELETE /api/directory/SETTINGS_READ_KV_FIRST",
        "invoke": "POST /api/dispatch {\"key\":\"SETTINGS_READ_KV_FIRST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTINGS_READ_KV_FIRST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTINGS_READ_KV_FIRST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTINGS_READ_KV_FIRST"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTINGS_READ_KV_FIRST"
    },
    {
      "key": "SETTLEMENT_GET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: The terms and finality of one settlement: rail, amount, fees, reversible-until, dispute window, reserve, refund policy, payout. Says SETTLEMENT_NOT_FINAL inside the reversal window. WHEN_TO_USE: anyone asks whether money has actually settled. ARGS: settlement_id or sale_id or agreement_id EX: [SETTLEMENT_GET]stl_abc[/SETTLEMENT_GET] TESTS: Returns the settlement and final true or false.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTLEMENT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTLEMENT_GET",
        "type": "fn",
        "what": [
          "WHAT: The terms and finality of one settlement: rail, amount, fees, reversible-until, dispute window, reserve, refund policy, payout. Says SETTLEMENT_NOT_FINAL inside the reversal window.",
          "WHEN_TO_USE: anyone asks whether money has actually settled.",
          "ARGS: settlement_id or sale_id or agreement_id",
          "EX: [SETTLEMENT_GET]stl_abc[/SETTLEMENT_GET]",
          "TESTS: Returns the settlement and final true or false."
        ],
        "args": [
          {
            "pos": 1,
            "name": "stl_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the settlement and final true or false.",
        "example": "[SETTLEMENT_GET]stl_abc[/SETTLEMENT_GET]",
        "tag": "[SETTLEMENT_GET]<stl_abc …>[/SETTLEMENT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTLEMENT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTLEMENT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/SETTLEMENT_GET",
        "update": "PUT /api/directory/SETTLEMENT_GET",
        "patch": "PATCH /api/directory/SETTLEMENT_GET",
        "delete": "DELETE /api/directory/SETTLEMENT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"SETTLEMENT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTLEMENT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTLEMENT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTLEMENT_GET"
      },
      "examples": "[\"stl_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTLEMENT_GET"
    },
    {
      "key": "SETTLEMENT_REFUND",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Refund one settlement. A card refund is a Stripe write and needs the owner's phrase; a settlement with no card behind it is recorded as refunded. WHEN_TO_USE: a refused acceptance or a lost dispute has queued a refund. ARGS: settlement_id|go ahead and refund EX: [SETTLEMENT_REFUND]stl_abc|go ahead and refund[/SETTLEMENT_REFUND] TESTS: Without the phrase: STRIPE_WRITE_GATED. With it: the Stripe refund id and the settlement marked refunded.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTLEMENT_REFUND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTLEMENT_REFUND",
        "type": "fn",
        "what": [
          "WHAT: Refund one settlement. A card refund is a Stripe write and needs the owner's phrase; a settlement with no card behind it is recorded as refunded.",
          "WHEN_TO_USE: a refused acceptance or a lost dispute has queued a refund.",
          "ARGS: settlement_id|go ahead and refund",
          "EX: [SETTLEMENT_REFUND]stl_abc|go ahead and refund[/SETTLEMENT_REFUND]",
          "TESTS: Without the phrase: STRIPE_WRITE_GATED. With it: the Stripe refund id and the settlement marked refunded."
        ],
        "args": [
          {
            "pos": 1,
            "name": "stl_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SETTLEMENT_REFUND]stl_abc|go ahead and refund[/SETTLEMENT_REFUND]",
        "tag": "[SETTLEMENT_REFUND]<stl_abc …>[/SETTLEMENT_REFUND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTLEMENT_REFUND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTLEMENT_REFUND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/SETTLEMENT_REFUND",
        "update": "PUT /api/directory/SETTLEMENT_REFUND",
        "patch": "PATCH /api/directory/SETTLEMENT_REFUND",
        "delete": "DELETE /api/directory/SETTLEMENT_REFUND",
        "invoke": "POST /api/dispatch {\"key\":\"SETTLEMENT_REFUND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTLEMENT_REFUND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTLEMENT_REFUND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTLEMENT_REFUND"
      },
      "examples": "[\"stl_abc|go ahead and refund\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTLEMENT_REFUND"
    },
    {
      "key": "SETTLEMENT_SWEEP",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Move held settlements when their tasks close: a completed task releases the settlement and completes the agreement; a refused or failed task queues a refund. Runs on a clock. WHEN_TO_USE: the automation runs it; or the owner runs it by hand. ARGS: none EX: [SETTLEMENT_SWEEP][/SETTLEMENT_SWEEP] TESTS: Returns the settlements moved with their new states.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SETTLEMENT_SWEEP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SETTLEMENT_SWEEP",
        "type": "fn",
        "what": [
          "WHAT: Move held settlements when their tasks close: a completed task releases the settlement and completes the agreement; a refused or failed task queues a refund. Runs on a clock.",
          "WHEN_TO_USE: the automation runs it; or the owner runs it by hand.",
          "ARGS: none",
          "EX: [SETTLEMENT_SWEEP][/SETTLEMENT_SWEEP]",
          "TESTS: Returns the settlements moved with their new states."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the settlements moved with their new states.",
        "example": "[SETTLEMENT_SWEEP][/SETTLEMENT_SWEEP]",
        "tag": "[SETTLEMENT_SWEEP]<arg1 …>[/SETTLEMENT_SWEEP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SETTLEMENT_SWEEP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SETTLEMENT_SWEEP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/SETTLEMENT_SWEEP",
        "update": "PUT /api/directory/SETTLEMENT_SWEEP",
        "patch": "PATCH /api/directory/SETTLEMENT_SWEEP",
        "delete": "DELETE /api/directory/SETTLEMENT_SWEEP",
        "invoke": "POST /api/dispatch {\"key\":\"SETTLEMENT_SWEEP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SETTLEMENT_SWEEP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SETTLEMENT_SWEEP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SETTLEMENT_SWEEP"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SETTLEMENT_SWEEP"
    },
    {
      "key": "SET_COST_CAP",
      "type": "fn",
      "category": "limits",
      "doc": "WHAT: Set per-turn USD cost cap (min 0.01). Arg: dollars. WHEN_TO_USE: the owner says \"cheaper turns\" / \"cap cost at $0.50\". ARGS: $1 EX: [SET_COST_CAP]0.50[/SET_COST_CAP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_COST_CAP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_COST_CAP",
        "type": "fn",
        "what": [
          "WHAT: Set per-turn USD cost cap (min 0.01). Arg: dollars.",
          "WHEN_TO_USE: the owner says \"cheaper turns\" / \"cap cost at $0.50\".",
          "ARGS: $1",
          "EX: [SET_COST_CAP]0.50[/SET_COST_CAP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "0.50",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SET_COST_CAP]0.50[/SET_COST_CAP]",
        "tag": "[SET_COST_CAP]<0.50>[/SET_COST_CAP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_COST_CAP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_COST_CAP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[null,null,null,\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SET_COST_CAP",
        "update": "PUT /api/directory/SET_COST_CAP",
        "patch": "PATCH /api/directory/SET_COST_CAP",
        "delete": "DELETE /api/directory/SET_COST_CAP",
        "invoke": "POST /api/dispatch {\"key\":\"SET_COST_CAP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_COST_CAP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_COST_CAP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_COST_CAP"
      },
      "examples": "[\"0.50\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_COST_CAP"
    },
    {
      "key": "SET_DEPTH_CAP",
      "type": "fn",
      "category": "limits",
      "doc": "WHAT: Set max recursion depth (1-10). Arg: the number. WHEN_TO_USE: the owner says \"deeper reasoning\" / \"only 2 levels deep\". ARGS: $1 EX: [SET_DEPTH_CAP]5[/SET_DEPTH_CAP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_DEPTH_CAP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_DEPTH_CAP",
        "type": "fn",
        "what": [
          "WHAT: Set max recursion depth (1-10). Arg: the number.",
          "WHEN_TO_USE: the owner says \"deeper reasoning\" / \"only 2 levels deep\".",
          "ARGS: $1",
          "EX: [SET_DEPTH_CAP]5[/SET_DEPTH_CAP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "5",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SET_DEPTH_CAP]5[/SET_DEPTH_CAP]",
        "tag": "[SET_DEPTH_CAP]<5>[/SET_DEPTH_CAP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_DEPTH_CAP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_DEPTH_CAP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[null,null,\"$1\",null]",
      "edit": {
        "read": "GET /api/directory/SET_DEPTH_CAP",
        "update": "PUT /api/directory/SET_DEPTH_CAP",
        "patch": "PATCH /api/directory/SET_DEPTH_CAP",
        "delete": "DELETE /api/directory/SET_DEPTH_CAP",
        "invoke": "POST /api/dispatch {\"key\":\"SET_DEPTH_CAP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_DEPTH_CAP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_DEPTH_CAP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_DEPTH_CAP"
      },
      "examples": "[\"5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_DEPTH_CAP"
    },
    {
      "key": "SET_GET",
      "type": "http",
      "category": "settings",
      "doc": "WHAT: Read a settings row by key WHEN_TO_USE: you need to set get ARGS: key EX: [SET_GET][/SET_GET] Read a settings row by key. Args: key.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_GET",
        "type": "http",
        "what": [
          "WHAT: Read a settings row by key",
          "WHEN_TO_USE: you need to set get",
          "ARGS: key",
          "EX: [SET_GET][/SET_GET]",
          "Read a settings row by key. Args: key."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SET_GET][/SET_GET]",
        "tag": "[SET_GET]<arg1>[/SET_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SET_GET",
        "update": "PUT /api/directory/SET_GET",
        "patch": "PATCH /api/directory/SET_GET",
        "delete": "DELETE /api/directory/SET_GET",
        "invoke": "POST /api/dispatch {\"key\":\"SET_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_GET"
      },
      "examples": "[\"CLOAKER_ENABLED\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_GET"
    },
    {
      "key": "SET_MEMORY_WINDOW",
      "type": "fn",
      "category": "limits",
      "doc": "WHAT: Set how many prior turns the agent recalls (0-100). Arg: the number. WHEN_TO_USE: the owner says \"remember more messages\" / \"keep the last 30\". ARGS: $1 EX: [SET_MEMORY_WINDOW]30[/SET_MEMORY_WINDOW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_MEMORY_WINDOW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_MEMORY_WINDOW",
        "type": "fn",
        "what": [
          "WHAT: Set how many prior turns the agent recalls (0-100). Arg: the number.",
          "WHEN_TO_USE: the owner says \"remember more messages\" / \"keep the last 30\".",
          "ARGS: $1",
          "EX: [SET_MEMORY_WINDOW]30[/SET_MEMORY_WINDOW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "30",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SET_MEMORY_WINDOW]30[/SET_MEMORY_WINDOW]",
        "tag": "[SET_MEMORY_WINDOW]<30>[/SET_MEMORY_WINDOW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_MEMORY_WINDOW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_MEMORY_WINDOW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[null,\"$1\",null,null]",
      "edit": {
        "read": "GET /api/directory/SET_MEMORY_WINDOW",
        "update": "PUT /api/directory/SET_MEMORY_WINDOW",
        "patch": "PATCH /api/directory/SET_MEMORY_WINDOW",
        "delete": "DELETE /api/directory/SET_MEMORY_WINDOW",
        "invoke": "POST /api/dispatch {\"key\":\"SET_MEMORY_WINDOW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_MEMORY_WINDOW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_MEMORY_WINDOW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_MEMORY_WINDOW"
      },
      "examples": "[\"20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_MEMORY_WINDOW"
    },
    {
      "key": "SET_PUT",
      "type": "http",
      "category": "settings",
      "doc": "WHAT: Write a settings value.  json_body = {\"value\":\"...\"} WHEN_TO_USE: you need to set put ARGS: key|json_body EX: [SET_PUT]arg2[/SET_PUT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_PUT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_PUT",
        "type": "http",
        "what": [
          "WHAT: Write a settings value.  json_body = {\"value\":\"...\"}",
          "WHEN_TO_USE: you need to set put",
          "ARGS: key|json_body",
          "EX: [SET_PUT]arg2[/SET_PUT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SET_PUT]arg2[/SET_PUT]",
        "tag": "[SET_PUT]<arg2>|<arg2 …>[/SET_PUT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_PUT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_PUT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$2+",
      "edit": {
        "read": "GET /api/directory/SET_PUT",
        "update": "PUT /api/directory/SET_PUT",
        "patch": "PATCH /api/directory/SET_PUT",
        "delete": "DELETE /api/directory/SET_PUT",
        "invoke": "POST /api/dispatch {\"key\":\"SET_PUT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_PUT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_PUT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_PUT"
      },
      "examples": "[\"outreach_postal_address|{\\\"value\\\":\\\"the owner, 1455 Market Street, Suite 770, San Francisco, CA 94103\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_PUT"
    },
    {
      "key": "SET_ROW_CONTENT",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Set a directory row's content (pipe-safe; replaces the whole content field). WHEN_TO_USE: \"replace a prompt's content\", \"set the content of a row\". For small edits prefer DIR_PATCH. ARGS: key | content EX: [SET_ROW_CONTENT]ROUTER|new full content here[/SET_ROW_CONTENT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_ROW_CONTENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_ROW_CONTENT",
        "type": "fn",
        "what": [
          "WHAT: Set a directory row's content (pipe-safe; replaces the whole content field).",
          "WHEN_TO_USE: \"replace a prompt's content\", \"set the content of a row\". For small edits prefer DIR_PATCH.",
          "ARGS: key | content",
          "EX: [SET_ROW_CONTENT]ROUTER|new full content here[/SET_ROW_CONTENT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "ROUTER",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "new full content here",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SET_ROW_CONTENT]ROUTER|new full content here[/SET_ROW_CONTENT]",
        "tag": "[SET_ROW_CONTENT]<ROUTER>|<new full content here …>[/SET_ROW_CONTENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_ROW_CONTENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_ROW_CONTENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2+\"]",
      "edit": {
        "read": "GET /api/directory/SET_ROW_CONTENT",
        "update": "PUT /api/directory/SET_ROW_CONTENT",
        "patch": "PATCH /api/directory/SET_ROW_CONTENT",
        "delete": "DELETE /api/directory/SET_ROW_CONTENT",
        "invoke": "POST /api/dispatch {\"key\":\"SET_ROW_CONTENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_ROW_CONTENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_ROW_CONTENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_ROW_CONTENT"
      },
      "examples": "[\"ROUTER|new full content here\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_ROW_CONTENT"
    },
    {
      "key": "SET_TOOL_LOOPS",
      "type": "fn",
      "category": "limits",
      "doc": "WHAT: Set how many tool calls the agent may make per turn (1-40). Arg: the number. WHEN_TO_USE: the owner says \"more tool loops\" / \"less tool loops\" / \"max 15 tools\". ARGS: $1 EX: [SET_TOOL_LOOPS]15[/SET_TOOL_LOOPS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SET_TOOL_LOOPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SET_TOOL_LOOPS",
        "type": "fn",
        "what": [
          "WHAT: Set how many tool calls the agent may make per turn (1-40). Arg: the number.",
          "WHEN_TO_USE: the owner says \"more tool loops\" / \"less tool loops\" / \"max 15 tools\".",
          "ARGS: $1",
          "EX: [SET_TOOL_LOOPS]15[/SET_TOOL_LOOPS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "15",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SET_TOOL_LOOPS]15[/SET_TOOL_LOOPS]",
        "tag": "[SET_TOOL_LOOPS]<15>[/SET_TOOL_LOOPS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SET_TOOL_LOOPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SET_TOOL_LOOPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",null,null,null]",
      "edit": {
        "read": "GET /api/directory/SET_TOOL_LOOPS",
        "update": "PUT /api/directory/SET_TOOL_LOOPS",
        "patch": "PATCH /api/directory/SET_TOOL_LOOPS",
        "delete": "DELETE /api/directory/SET_TOOL_LOOPS",
        "invoke": "POST /api/dispatch {\"key\":\"SET_TOOL_LOOPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SET_TOOL_LOOPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SET_TOOL_LOOPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SET_TOOL_LOOPS"
      },
      "examples": "[\"40\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SET_TOOL_LOOPS"
    },
    {
      "key": "SHA256_LOWER",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: SHA-256 hex of lowercased trimmed input WHEN_TO_USE: hash em/ph/external_id for Meta CAPI or any PII hashing ARGS: $1 EX: [SHA256_LOWER]arg1[/SHA256_LOWER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHA256_LOWER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHA256_LOWER",
        "type": "fn",
        "what": [
          "WHAT: SHA-256 hex of lowercased trimmed input",
          "WHEN_TO_USE: hash em/ph/external_id for Meta CAPI or any PII hashing",
          "ARGS: $1",
          "EX: [SHA256_LOWER]arg1[/SHA256_LOWER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SHA256_LOWER]arg1[/SHA256_LOWER]",
        "tag": "[SHA256_LOWER]<arg1>[/SHA256_LOWER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHA256_LOWER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHA256_LOWER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SHA256_LOWER",
        "update": "PUT /api/directory/SHA256_LOWER",
        "patch": "PATCH /api/directory/SHA256_LOWER",
        "delete": "DELETE /api/directory/SHA256_LOWER",
        "invoke": "POST /api/dispatch {\"key\":\"SHA256_LOWER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHA256_LOWER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHA256_LOWER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHA256_LOWER"
      },
      "examples": "[\"Lead\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHA256_LOWER"
    },
    {
      "key": "SHEETS",
      "type": "http",
      "category": "d1",
      "doc": "WHAT: Stored spreadsheet grids with Google-Sheets addressing. Every cell is A1-addressable; each sheet is one tab in /admin/sheets (Directory and Ledger are the other tabs). values_get/values_set read and write ranges (A1, B3, A1:C10, B:D, 2:5); append adds rows after the used range; batch does insert_rows/delete_rows/insert_cols/delete_cols/move_row/move_col; run executes a saved model-run config over grid rows through /api/invoke and writes request/response/text cells. WHEN_TO_USE: an agent or automation needs to read or write tabular working data by cell address, stage inputs for model runs over rows, or pull a sheet a human filled in the workbook UI. Full contract: GET https://miscsubjects.com/api/sheets ARGS: op|arg1|arg2|arg3 — list · get|<id> · create|<title> · values_get|<id>|<range> · values_set|<id>|<anchor>|<values 2D JSON> · append|<id>|<values 2D JSON> · clear|<id>|<range> · batch|<id>|<requests JSON> · run|<id>|<config_id>|<rows csv> · export|<id> · delete|<id> LIMIT: dispatch args are pipe-separated — JSON args must not contain the | character; send complex bodies straight to the REST lane instead.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEETS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEETS",
        "type": "http",
        "what": [
          "WHAT: Stored spreadsheet grids with Google-Sheets addressing. Every cell is A1-addressable; each sheet is one tab in /admin/sheets (Directory and Ledger are the other tabs). values_get/values_set read and write ranges (A1, B3, A1:C10, B:D, 2:5); append adds rows after the used range; batch does insert_rows/delete_rows/insert_cols/delete_cols/move_row/move_col; run executes a saved model-run config over grid rows through /api/invoke and writes request/response/text cells.",
          "WHEN_TO_USE: an agent or automation needs to read or write tabular working data by cell address, stage inputs for model runs over rows, or pull a sheet a human filled in the workbook UI. Full contract: GET https://miscsubjects.com/api/sheets",
          "ARGS: op|arg1|arg2|arg3 — list · get|<id> · create|<title> · values_get|<id>|<range> · values_set|<id>|<anchor>|<values 2D JSON> · append|<id>|<values 2D JSON> · clear|<id>|<range> · batch|<id>|<requests JSON> · run|<id>|<config_id>|<rows csv> · export|<id> · delete|<id>",
          "LIMIT: dispatch args are pipe-separated — JSON args must not contain the | character; send complex bodies straight to the REST lane instead."
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: append, batch, clear, create, delete, export, get, list, run, values_get, values_set",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "append",
            "sig": "[SHEETS]append|<arg1>|<arg2>[/SHEETS]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "batch",
            "sig": "[SHEETS]batch|<arg1>|<arg2>[/SHEETS]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "clear",
            "sig": "[SHEETS]clear|<arg1>|<arg2>[/SHEETS]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "create",
            "sig": "[SHEETS]create|<arg1>[/SHEETS]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "delete",
            "sig": "[SHEETS]delete|<arg1>[/SHEETS]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "export",
            "sig": "[SHEETS]export|<arg1>[/SHEETS]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "get",
            "sig": "[SHEETS]get|<arg1>[/SHEETS]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "list",
            "sig": "[SHEETS]list[/SHEETS]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "run",
            "sig": "[SHEETS]run|<arg1>|<arg2>|<arg3>[/SHEETS]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "values_get",
            "sig": "[SHEETS]values_get|<arg1>|<arg2>[/SHEETS]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "values_set",
            "sig": "[SHEETS]values_set|<arg1>|<arg2>|<arg3>[/SHEETS]",
            "extraArgs": 3,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": null,
        "tag": "[SHEETS]<op>|<args for that op>[/SHEETS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEETS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEETS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SHEETS",
        "update": "PUT /api/directory/SHEETS",
        "patch": "PATCH /api/directory/SHEETS",
        "delete": "DELETE /api/directory/SHEETS",
        "invoke": "POST /api/dispatch {\"key\":\"SHEETS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEETS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEETS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEETS"
      },
      "examples": "[{\"args\":\"list\",\"desc\":\"every stored sheet\"},{\"args\":\"values_get|sh_ab12cd34|A1:C10\",\"desc\":\"read a range\"},{\"args\":\"values_set|sh_ab12cd34|B3|[[\\\"hello\\\"]]\",\"desc\":\"write one cell at B3\"},{\"args\":\"append|sh_ab12cd34|[[\\\"new\\\",\\\"row\\\"]]\",\"desc\":\"append a row\"},{\"args\":\"batch|sh_ab12cd34|[{\\\"op\\\":\\\"insert_rows\\\",\\\"at\\\":2,\\\"n\\\":1}]\",\"desc\":\"insert a row at 2\"},{\"args\":\"run|sh_ab12cd34|rc_x1y2z3|2,3,4\",\"desc\":\"run saved config over rows 2-4\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEETS"
    },
    {
      "key": "SHEETS_SYNC_ALL",
      "type": "flow",
      "category": "sheets",
      "doc": "Push directory + pages + settings + recent ledger to the master Google Sheet via the airunner Apps Script. WHEN_TO_USE: \"sync the sheet\" or \"push the build state to the master sheet\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEETS_SYNC_ALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEETS_SYNC_ALL",
        "type": "flow",
        "what": [
          "Push directory + pages + settings + recent ledger to the master Google Sheet via the airunner Apps Script.",
          "WHEN_TO_USE: \"sync the sheet\" or \"push the build state to the master sheet\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[SHEETS_SYNC_ALL][/SHEETS_SYNC_ALL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEETS_SYNC_ALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEETS_SYNC_ALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SHEETS_SYNC_ALL",
        "update": "PUT /api/directory/SHEETS_SYNC_ALL",
        "patch": "PATCH /api/directory/SHEETS_SYNC_ALL",
        "delete": "DELETE /api/directory/SHEETS_SYNC_ALL",
        "invoke": "POST /api/dispatch {\"key\":\"SHEETS_SYNC_ALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEETS_SYNC_ALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEETS_SYNC_ALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEETS_SYNC_ALL"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEETS_SYNC_ALL"
    },
    {
      "key": "SHEETS_SYNC_MASTER",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: One-arg wrapper to run SHEETS_SYNC_ALL via the dispatcher. Used when an external caller (cron, GH Action) wants to push the sheet without picking a specific tab WHEN_TO_USE: scheduled sheet sync. ARGS: see content EX: [SHEETS_SYNC_MASTER][/SHEETS_SYNC_MASTER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEETS_SYNC_MASTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEETS_SYNC_MASTER",
        "type": "http",
        "what": [
          "WHAT: One-arg wrapper to run SHEETS_SYNC_ALL via the dispatcher. Used when an external caller (cron, GH Action) wants to push the sheet without picking a specific tab",
          "WHEN_TO_USE: scheduled sheet sync.",
          "ARGS: see content",
          "EX: [SHEETS_SYNC_MASTER][/SHEETS_SYNC_MASTER]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEETS_SYNC_MASTER][/SHEETS_SYNC_MASTER]",
        "tag": "[SHEETS_SYNC_MASTER][/SHEETS_SYNC_MASTER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEETS_SYNC_MASTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEETS_SYNC_MASTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"key\":\"SHEETS_SYNC_ALL\",\"body\":\"\"}",
      "edit": {
        "read": "GET /api/directory/SHEETS_SYNC_MASTER",
        "update": "PUT /api/directory/SHEETS_SYNC_MASTER",
        "patch": "PATCH /api/directory/SHEETS_SYNC_MASTER",
        "delete": "DELETE /api/directory/SHEETS_SYNC_MASTER",
        "invoke": "POST /api/dispatch {\"key\":\"SHEETS_SYNC_MASTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEETS_SYNC_MASTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEETS_SYNC_MASTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEETS_SYNC_MASTER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEETS_SYNC_MASTER"
    },
    {
      "key": "SHEET_ADD_COLUMN",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Add a column to a view sheet: a source column, a JSON path, or an =expression evaluated per row. WHEN_TO_USE: the owner wants one more thing visible on an existing sheet. ARGS: sheet_id | path EXAMPLE: [SHEET_ADD_COLUMN]sh_abc123|descriptor_json.governance.direct[/SHEET_ADD_COLUMN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_ADD_COLUMN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_ADD_COLUMN",
        "type": "http",
        "what": [
          "WHAT: Add a column to a view sheet: a source column, a JSON path, or an =expression evaluated per row.",
          "WHEN_TO_USE: the owner wants one more thing visible on an existing sheet.",
          "ARGS: sheet_id | path",
          "EXAMPLE: [SHEET_ADD_COLUMN]sh_abc123|descriptor_json.governance.direct[/SHEET_ADD_COLUMN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "descriptor_json.governance.direct",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_ADD_COLUMN]sh_abc123|descriptor_json.governance.direct[/SHEET_ADD_COLUMN]",
        "tag": "[SHEET_ADD_COLUMN]<sh_abc123>|<descriptor_json.governance.direct …>[/SHEET_ADD_COLUMN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_ADD_COLUMN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_ADD_COLUMN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"path\":\"$2+\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_ADD_COLUMN",
        "update": "PUT /api/directory/SHEET_ADD_COLUMN",
        "patch": "PATCH /api/directory/SHEET_ADD_COLUMN",
        "delete": "DELETE /api/directory/SHEET_ADD_COLUMN",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_ADD_COLUMN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_ADD_COLUMN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_ADD_COLUMN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_ADD_COLUMN"
      },
      "examples": "[\"sh_abc123|descriptor_json.governance.direct\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_ADD_COLUMN"
    },
    {
      "key": "SHEET_ADD_FILTER",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Add a row filter to a view sheet, written as words: \"field op value\". WHEN_TO_USE: the owner wants fewer rows on an existing sheet. ARGS: sheet_id | filter EXAMPLE: [SHEET_ADD_FILTER]sh_abc123|key contains BLOOIO[/SHEET_ADD_FILTER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_ADD_FILTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_ADD_FILTER",
        "type": "http",
        "what": [
          "WHAT: Add a row filter to a view sheet, written as words: \"field op value\".",
          "WHEN_TO_USE: the owner wants fewer rows on an existing sheet.",
          "ARGS: sheet_id | filter",
          "EXAMPLE: [SHEET_ADD_FILTER]sh_abc123|key contains BLOOIO[/SHEET_ADD_FILTER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "key contains BLOOIO",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_ADD_FILTER]sh_abc123|key contains BLOOIO[/SHEET_ADD_FILTER]",
        "tag": "[SHEET_ADD_FILTER]<sh_abc123>|<key contains BLOOIO …>[/SHEET_ADD_FILTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_ADD_FILTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_ADD_FILTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"filter\":\"$2+\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_ADD_FILTER",
        "update": "PUT /api/directory/SHEET_ADD_FILTER",
        "patch": "PATCH /api/directory/SHEET_ADD_FILTER",
        "delete": "DELETE /api/directory/SHEET_ADD_FILTER",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_ADD_FILTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_ADD_FILTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_ADD_FILTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_ADD_FILTER"
      },
      "examples": "[\"sh_abc123|key contains BLOOIO\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_ADD_FILTER"
    },
    {
      "key": "SHEET_DELETE",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Delete a sheet. The rows it projected are untouched. ARGS: sheet_id EXAMPLE: [SHEET_DELETE]sh_abc123[/SHEET_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_DELETE",
        "type": "http",
        "what": [
          "WHAT: Delete a sheet. The rows it projected are untouched.",
          "ARGS: sheet_id",
          "EXAMPLE: [SHEET_DELETE]sh_abc123[/SHEET_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_DELETE]sh_abc123[/SHEET_DELETE]",
        "tag": "[SHEET_DELETE]<sh_abc123>[/SHEET_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{}",
      "edit": {
        "read": "GET /api/directory/SHEET_DELETE",
        "update": "PUT /api/directory/SHEET_DELETE",
        "patch": "PATCH /api/directory/SHEET_DELETE",
        "delete": "DELETE /api/directory/SHEET_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_DELETE"
      },
      "examples": "[\"sh_abc123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_DELETE"
    },
    {
      "key": "SHEET_LIST",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Every sheet in the workbook: id, title, cell count, whether it is a view. The link of a sheet is https://miscsubjects.com/admin/sheets?tab=<id>. WHEN_TO_USE: the owner asks what sheets exist, or you need a sheet id. ARGS: none EXAMPLE: [SHEET_LIST][/SHEET_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_LIST",
        "type": "http",
        "what": [
          "WHAT: Every sheet in the workbook: id, title, cell count, whether it is a view. The link of a sheet is https://miscsubjects.com/admin/sheets?tab=<id>.",
          "WHEN_TO_USE: the owner asks what sheets exist, or you need a sheet id.",
          "ARGS: none",
          "EXAMPLE: [SHEET_LIST][/SHEET_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_LIST][/SHEET_LIST]",
        "tag": "[SHEET_LIST][/SHEET_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{}",
      "edit": {
        "read": "GET /api/directory/SHEET_LIST",
        "update": "PUT /api/directory/SHEET_LIST",
        "patch": "PATCH /api/directory/SHEET_LIST",
        "delete": "DELETE /api/directory/SHEET_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_LIST"
    },
    {
      "key": "SHEET_NEW",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Make a new sheet as a live view over a source of record. Columns are a comma list of source columns, JSON paths (descriptor_json.governance.direct, request_json.body.messages[0].content) or =expressions (=REGEXALL(response_json,\"\\\\[([A-Z_]+)\\\\]\")). Filter is \"field op value\" lines joined by \";\" (ops: = != contains starts in > < >= <= empty not_empty). Sources: directory, ledger, directory_versions, agent_turns. Returns the sheet id and its link. WHEN_TO_USE: the owner wants to see, compare or edit a set of agents, tools, payloads or events as a grid. ARGS: title | source | columns | filter EXAMPLE: [SHEET_NEW]Agents|directory|key,type,test_state,content,last_response|type = agent[/SHEET_NEW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_NEW",
        "type": "http",
        "what": [
          "WHAT: Make a new sheet as a live view over a source of record. Columns are a comma list of source columns, JSON paths (descriptor_json.governance.direct, request_json.body.messages[0].content) or =expressions (=REGEXALL(response_json,\"\\\\[([A-Z_]+)\\\\]\")). Filter is \"field op value\" lines joined by \";\" (ops: = != contains starts in > < >= <= empty not_empty). Sources: directory, ledger, directory_versions, agent_turns. Returns the sheet id and its link.",
          "WHEN_TO_USE: the owner wants to see, compare or edit a set of agents, tools, payloads or events as a grid.",
          "ARGS: title | source | columns | filter",
          "EXAMPLE: [SHEET_NEW]Agents|directory|key,type,test_state,content,last_response|type = agent[/SHEET_NEW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Agents",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "directory",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "key,type,test_state,content,last_response",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "type = agent",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the sheet id and its link.",
        "example": "[SHEET_NEW]Agents|directory|key,type,test_state,content,last_response|type = agent[/SHEET_NEW]",
        "tag": "[SHEET_NEW]<Agents>|<directory>|<key,type,test_state,content,last_response>|<type = agent …>[/SHEET_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"title\":\"$1\",\"source\":\"$2\",\"columns\":\"$3\",\"filter\":\"$4+\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_NEW",
        "update": "PUT /api/directory/SHEET_NEW",
        "patch": "PATCH /api/directory/SHEET_NEW",
        "delete": "DELETE /api/directory/SHEET_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_NEW"
      },
      "examples": "[\"Agents (seed check)|directory|key,type,test_state|type = agent\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_NEW"
    },
    {
      "key": "SHEET_PIN",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Pin one field of one object above a sheet's grid, editable in place: directory/<KEY>/<field> (an agent's prompt is directory/<KEY>/content), sheet/<id>/<A1>, settings/<key>. WHEN_TO_USE: the owner wants to read and edit a prompt or setting beside the rows it affects. ARGS: sheet_id | ref | label EXAMPLE: [SHEET_PIN]sh_abc123|directory/ROUTER/content|ROUTER prompt[/SHEET_PIN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_PIN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_PIN",
        "type": "http",
        "what": [
          "WHAT: Pin one field of one object above a sheet's grid, editable in place: directory/<KEY>/<field> (an agent's prompt is directory/<KEY>/content), sheet/<id>/<A1>, settings/<key>.",
          "WHEN_TO_USE: the owner wants to read and edit a prompt or setting beside the rows it affects.",
          "ARGS: sheet_id | ref | label",
          "EXAMPLE: [SHEET_PIN]sh_abc123|directory/ROUTER/content|ROUTER prompt[/SHEET_PIN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "directory/ROUTER/content",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "ROUTER prompt",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_PIN]sh_abc123|directory/ROUTER/content|ROUTER prompt[/SHEET_PIN]",
        "tag": "[SHEET_PIN]<sh_abc123>|<directory/ROUTER/content>|<ROUTER prompt …>[/SHEET_PIN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_PIN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_PIN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"ref\":\"$2\",\"label\":\"$3+\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_PIN",
        "update": "PUT /api/directory/SHEET_PIN",
        "patch": "PATCH /api/directory/SHEET_PIN",
        "delete": "DELETE /api/directory/SHEET_PIN",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_PIN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_PIN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_PIN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_PIN"
      },
      "examples": "[\"sh_abc123|directory/ROUTER/content|ROUTER prompt\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_PIN"
    },
    {
      "key": "SHEET_REMOVE_COLUMN",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Remove a column from a view sheet by its path. ARGS: sheet_id | path EXAMPLE: [SHEET_REMOVE_COLUMN]sh_abc123|content[/SHEET_REMOVE_COLUMN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_REMOVE_COLUMN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_REMOVE_COLUMN",
        "type": "http",
        "what": [
          "WHAT: Remove a column from a view sheet by its path.",
          "ARGS: sheet_id | path",
          "EXAMPLE: [SHEET_REMOVE_COLUMN]sh_abc123|content[/SHEET_REMOVE_COLUMN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "content",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_REMOVE_COLUMN]sh_abc123|content[/SHEET_REMOVE_COLUMN]",
        "tag": "[SHEET_REMOVE_COLUMN]<sh_abc123>|<content …>[/SHEET_REMOVE_COLUMN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_REMOVE_COLUMN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_REMOVE_COLUMN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"path\":\"$2+\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_REMOVE_COLUMN",
        "update": "PUT /api/directory/SHEET_REMOVE_COLUMN",
        "patch": "PATCH /api/directory/SHEET_REMOVE_COLUMN",
        "delete": "DELETE /api/directory/SHEET_REMOVE_COLUMN",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_REMOVE_COLUMN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_REMOVE_COLUMN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_REMOVE_COLUMN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_REMOVE_COLUMN"
      },
      "examples": "[\"sh_abc123|content\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_REMOVE_COLUMN"
    },
    {
      "key": "SHEET_SCRIPT_RUN",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Run a sheet script (GAS equivalent) over its range and get input/output/receipts back. WHEN_TO_USE: the owner asks to run/fire a script on a sheet, or a flow step needs script output. ARGS: sheet | name (script name on that sheet) EX: [SHEET_SCRIPT_RUN]leads|scrape[/SHEET_SCRIPT_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_SCRIPT_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_SCRIPT_RUN",
        "type": "http",
        "what": [
          "WHAT: Run a sheet script (GAS equivalent) over its range and get input/output/receipts back.",
          "WHEN_TO_USE: the owner asks to run/fire a script on a sheet, or a flow step needs script output.",
          "ARGS: sheet | name (script name on that sheet)",
          "EX: [SHEET_SCRIPT_RUN]leads|scrape[/SHEET_SCRIPT_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "leads",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "scrape",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_SCRIPT_RUN]leads|scrape[/SHEET_SCRIPT_RUN]",
        "tag": "[SHEET_SCRIPT_RUN]<leads>|<scrape>[/SHEET_SCRIPT_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_SCRIPT_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_SCRIPT_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"sheet\":\"$1\",\"name\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_SCRIPT_RUN",
        "update": "PUT /api/directory/SHEET_SCRIPT_RUN",
        "patch": "PATCH /api/directory/SHEET_SCRIPT_RUN",
        "delete": "DELETE /api/directory/SHEET_SCRIPT_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_SCRIPT_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_SCRIPT_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_SCRIPT_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_SCRIPT_RUN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_SCRIPT_RUN"
    },
    {
      "key": "SHEET_VISIBILITY",
      "type": "http",
      "category": "sheets",
      "doc": "WHAT: Make a sheet public (anyone reads it at https://miscsubjects.com/sheet/<id>) or private. ARGS: sheet_id | public|private EXAMPLE: [SHEET_VISIBILITY]sh_abc123|public[/SHEET_VISIBILITY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHEET_VISIBILITY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHEET_VISIBILITY",
        "type": "http",
        "what": [
          "WHAT: Make a sheet public (anyone reads it at https://miscsubjects.com/sheet/<id>) or private.",
          "ARGS: sheet_id | public|private",
          "EXAMPLE: [SHEET_VISIBILITY]sh_abc123|public[/SHEET_VISIBILITY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh_abc123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "public",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHEET_VISIBILITY]sh_abc123|public[/SHEET_VISIBILITY]",
        "tag": "[SHEET_VISIBILITY]<sh_abc123>|<public>[/SHEET_VISIBILITY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHEET_VISIBILITY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHEET_VISIBILITY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"visibility\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/SHEET_VISIBILITY",
        "update": "PUT /api/directory/SHEET_VISIBILITY",
        "patch": "PATCH /api/directory/SHEET_VISIBILITY",
        "delete": "DELETE /api/directory/SHEET_VISIBILITY",
        "invoke": "POST /api/dispatch {\"key\":\"SHEET_VISIBILITY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHEET_VISIBILITY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHEET_VISIBILITY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHEET_VISIBILITY"
      },
      "examples": "[\"sh_abc123|public\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHEET_VISIBILITY"
    },
    {
      "key": "SHORTCUT_RUN",
      "type": "flow",
      "category": "phone",
      "doc": "WHAT: catch-all for iOS Shortcuts that pass arbitrary JSON. Route to ROUTER. WHEN_TO_USE: /api/phone/in action=shortcut_run. ARGS: payload_json.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHORTCUT_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHORTCUT_RUN",
        "type": "flow",
        "what": [
          "WHAT: catch-all for iOS Shortcuts that pass arbitrary JSON. Route to ROUTER.",
          "WHEN_TO_USE: /api/phone/in action=shortcut_run.",
          "ARGS: payload_json."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[SHORTCUT_RUN]arg1[/SHORTCUT_RUN]",
        "tag": "[SHORTCUT_RUN]<arg1>[/SHORTCUT_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHORTCUT_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHORTCUT_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SHORTCUT_RUN",
        "update": "PUT /api/directory/SHORTCUT_RUN",
        "patch": "PATCH /api/directory/SHORTCUT_RUN",
        "delete": "DELETE /api/directory/SHORTCUT_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"SHORTCUT_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHORTCUT_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHORTCUT_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHORTCUT_RUN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SHORTCUT_RUN"
    },
    {
      "key": "SHORT_EDIT",
      "type": "http",
      "category": "rest_meta",
      "doc": "WHAT: Edit any surface by its short ID.  json_body shape depends on kind: directory={content,target?,auth?,...}; settings={value}; kv=raw text; r2=raw text; file={content,message?,sha?}; page={title?,body_html?}; article={title?,body?} WHEN_TO_USE: you need to short edit ARGS: short_id|json_body EX: [SHORT_EDIT]arg2[/SHORT_EDIT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHORT_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHORT_EDIT",
        "type": "http",
        "what": [
          "WHAT: Edit any surface by its short ID.  json_body shape depends on kind: directory={content,target?,auth?,...}; settings={value}; kv=raw text; r2=raw text; file={content,message?,sha?}; page={title?,body_html?}; article={title?,body?}",
          "WHEN_TO_USE: you need to short edit",
          "ARGS: short_id|json_body",
          "EX: [SHORT_EDIT]arg2[/SHORT_EDIT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SHORT_EDIT]arg2[/SHORT_EDIT]",
        "tag": "[SHORT_EDIT]<arg2>|<arg2 …>[/SHORT_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHORT_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHORT_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$2+",
      "edit": {
        "read": "GET /api/directory/SHORT_EDIT",
        "update": "PUT /api/directory/SHORT_EDIT",
        "patch": "PATCH /api/directory/SHORT_EDIT",
        "delete": "DELETE /api/directory/SHORT_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"SHORT_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHORT_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHORT_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHORT_EDIT"
      },
      "examples": "[\"arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHORT_EDIT"
    },
    {
      "key": "SHORT_GET",
      "type": "http",
      "category": "rest_meta",
      "doc": "WHAT: Read the actual content of any surface by its short ID (D35 = 35th directory row by name; K3 = 3rd KV key; etc).  Returns {short_id,kind,name,content,read,edit,edit_method,edit_body,status} WHEN_TO_USE: you need to short get ARGS: short_id EX: [SHORT_GET][/SHORT_GET] Read the actual content of any surface by its short ID (D35 = 35th directory row by name; K3 = 3rd KV key; etc). Args: short_id. Returns {short_id,kind,name,content,read,edit,edit_method,edit_body,status}.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHORT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHORT_GET",
        "type": "http",
        "what": [
          "WHAT: Read the actual content of any surface by its short ID (D35 = 35th directory row by name; K3 = 3rd KV key; etc).  Returns {short_id,kind,name,content,read,edit,edit_method,edit_body,status}",
          "WHEN_TO_USE: you need to short get",
          "ARGS: short_id",
          "EX: [SHORT_GET][/SHORT_GET]",
          "Read the actual content of any surface by its short ID (D35 = 35th directory row by name; K3 = 3rd KV key; etc). Args: short_id. Returns {short_id,kind,name,content,read,edit,edit_method,edit_body,status}."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{short_id,kind,name,content,read,edit,edit_method,edit_body,status}",
        "example": "[SHORT_GET][/SHORT_GET]",
        "tag": "[SHORT_GET]<arg1>[/SHORT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHORT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHORT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SHORT_GET",
        "update": "PUT /api/directory/SHORT_GET",
        "patch": "PATCH /api/directory/SHORT_GET",
        "delete": "DELETE /api/directory/SHORT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"SHORT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHORT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHORT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHORT_GET"
      },
      "examples": "[\"a\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHORT_GET"
    },
    {
      "key": "SHORT_RESOLVE",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Resolve a short_id (D35 / K3 / etc.) to its underlying surface via /api/inventory?short_id=<id>. Returns the inventory row JSON WHEN_TO_USE: you need to short resolve ARGS: $1 EX: [SHORT_RESOLVE]arg1[/SHORT_RESOLVE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SHORT_RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SHORT_RESOLVE",
        "type": "fn",
        "what": [
          "WHAT: Resolve a short_id (D35 / K3 / etc.) to its underlying surface via /api/inventory?short_id=<id>. Returns the inventory row JSON",
          "WHEN_TO_USE: you need to short resolve",
          "ARGS: $1",
          "EX: [SHORT_RESOLVE]arg1[/SHORT_RESOLVE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the inventory row JSON",
        "example": "[SHORT_RESOLVE]arg1[/SHORT_RESOLVE]",
        "tag": "[SHORT_RESOLVE]<arg1>[/SHORT_RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SHORT_RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SHORT_RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SHORT_RESOLVE",
        "update": "PUT /api/directory/SHORT_RESOLVE",
        "patch": "PATCH /api/directory/SHORT_RESOLVE",
        "delete": "DELETE /api/directory/SHORT_RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"SHORT_RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SHORT_RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SHORT_RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SHORT_RESOLVE"
      },
      "examples": "[\"D35\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SHORT_RESOLVE"
    },
    {
      "key": "SIBLING_DO_CHAT",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Chat with a named ExpertDO using Workers AI inside the DO context. $1=DO name. $2=JSON body string with shape {\"messages\":[{\"role\":\"user\",\"content\":\"...\"}],\"model\":\"@cf/meta/llama-3.3-70b-instruct-fp8-fast\"}. Uses $$2 raw so the JSON object passes through unescaped WHEN_TO_USE: \"ask the CF expert about workflows\" or \"chat with the <name> DO\" ARGS: see content EX: [SIBLING_DO_CHAT]arg2[/SIBLING_DO_CHAT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SIBLING_DO_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SIBLING_DO_CHAT",
        "type": "http",
        "what": [
          "WHAT: Chat with a named ExpertDO using Workers AI inside the DO context. $1=DO name. $2=JSON body string with shape {\"messages\":[{\"role\":\"user\",\"content\":\"...\"}],\"model\":\"@cf/meta/llama-3.3-70b-instruct-fp8-fast\"}. Uses $$2 raw so the JSON object passes through unescaped",
          "WHEN_TO_USE: \"ask the CF expert about workflows\" or \"chat with the <name> DO\"",
          "ARGS: see content",
          "EX: [SIBLING_DO_CHAT]arg2[/SIBLING_DO_CHAT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg2",
            "desc": "DO name. $2=JSON body string with shape {\"messages\":[{\"role\":\"user\",\"content\":\"...\"}],\"model\":\"@cf/meta/llama-3.3-70b-instruct-fp8-fast\"}. Uses $$2 raw so the JSON object passes through unescaped",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SIBLING_DO_CHAT]arg2[/SIBLING_DO_CHAT]",
        "tag": "[SIBLING_DO_CHAT]<arg2>|<arg2>[/SIBLING_DO_CHAT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SIBLING_DO_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SIBLING_DO_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$2",
      "edit": {
        "read": "GET /api/directory/SIBLING_DO_CHAT",
        "update": "PUT /api/directory/SIBLING_DO_CHAT",
        "patch": "PATCH /api/directory/SIBLING_DO_CHAT",
        "delete": "DELETE /api/directory/SIBLING_DO_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"SIBLING_DO_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SIBLING_DO_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SIBLING_DO_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SIBLING_DO_CHAT"
      },
      "examples": "[\"arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SIBLING_DO_CHAT"
    },
    {
      "key": "SIBLING_DO_PING",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Ping a named ExpertDO instance on the sibling Worker. Each name gets its own Durable Object id, its own SQLite state. $1=DO name (e.g. CF_EXPERT, STRIPE_EXPERT, default) WHEN_TO_USE: \"ping the CF expert DO\" or \"is the <name> expert alive\" ARGS: see content EX: [SIBLING_DO_PING]arg1[/SIBLING_DO_PING] Ping a named ExpertDO instance on the sibling Worker. Each name gets its own Durable Object id, its own SQLite state. $1=DO name (e.g. CF_EXPERT, STRIPE_EXPERT, default). WHEN_TO_USE: \"ping the CF expert DO\" or \"is the <name> expert alive\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SIBLING_DO_PING",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SIBLING_DO_PING",
        "type": "http",
        "what": [
          "WHAT: Ping a named ExpertDO instance on the sibling Worker. Each name gets its own Durable Object id, its own SQLite state. $1=DO name (e.g. CF_EXPERT, STRIPE_EXPERT, default)",
          "WHEN_TO_USE: \"ping the CF expert DO\" or \"is the <name> expert alive\"",
          "ARGS: see content",
          "EX: [SIBLING_DO_PING]arg1[/SIBLING_DO_PING]",
          "Ping a named ExpertDO instance on the sibling Worker. Each name gets its own Durable Object id, its own SQLite state. $1=DO name (e.g. CF_EXPERT, STRIPE_EXPERT, default).",
          "WHEN_TO_USE: \"ping the CF expert DO\" or \"is the <name> expert alive\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "DO name (e.g. CF_EXPERT, STRIPE_EXPERT, default).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SIBLING_DO_PING]arg1[/SIBLING_DO_PING]",
        "tag": "[SIBLING_DO_PING]<arg1>[/SIBLING_DO_PING]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SIBLING_DO_PING\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SIBLING_DO_PING  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SIBLING_DO_PING",
        "update": "PUT /api/directory/SIBLING_DO_PING",
        "patch": "PATCH /api/directory/SIBLING_DO_PING",
        "delete": "DELETE /api/directory/SIBLING_DO_PING",
        "invoke": "POST /api/dispatch {\"key\":\"SIBLING_DO_PING\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SIBLING_DO_PING\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SIBLING_DO_PING\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SIBLING_DO_PING"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SIBLING_DO_PING"
    },
    {
      "key": "SIBLING_HEALTH",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Liveness check for the sibling Worker (loop-safe-sibling) that hosts cron + Durable Objects + Queues + Workers AI. Returns {ok,name,ts}. No args WHEN_TO_USE: \"is the sibling worker up\" or \"ping the sibling\" ARGS: see content EX: [SIBLING_HEALTH][/SIBLING_HEALTH] Liveness check for the sibling Worker (loop-safe-sibling) that hosts cron + Durable Objects + Queues + Workers AI. Returns {ok,name,ts}. No args. WHEN_TO_USE: \"is the sibling worker up\" or \"ping the sibling\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SIBLING_HEALTH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SIBLING_HEALTH",
        "type": "http",
        "what": [
          "WHAT: Liveness check for the sibling Worker (loop-safe-sibling) that hosts cron + Durable Objects + Queues + Workers AI. Returns {ok,name,ts}. No args",
          "WHEN_TO_USE: \"is the sibling worker up\" or \"ping the sibling\"",
          "ARGS: see content",
          "EX: [SIBLING_HEALTH][/SIBLING_HEALTH]",
          "Liveness check for the sibling Worker (loop-safe-sibling) that hosts cron + Durable Objects + Queues + Workers AI. Returns {ok,name,ts}. No args.",
          "WHEN_TO_USE: \"is the sibling worker up\" or \"ping the sibling\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "{ok,name,ts}. No args",
        "example": "[SIBLING_HEALTH][/SIBLING_HEALTH]",
        "tag": "[SIBLING_HEALTH][/SIBLING_HEALTH]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SIBLING_HEALTH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SIBLING_HEALTH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SIBLING_HEALTH",
        "update": "PUT /api/directory/SIBLING_HEALTH",
        "patch": "PATCH /api/directory/SIBLING_HEALTH",
        "delete": "DELETE /api/directory/SIBLING_HEALTH",
        "invoke": "POST /api/dispatch {\"key\":\"SIBLING_HEALTH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SIBLING_HEALTH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SIBLING_HEALTH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SIBLING_HEALTH"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SIBLING_HEALTH"
    },
    {
      "key": "SIBLING_WORKFLOW_DELIVER_STATUS",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Status of a DeliverWorkflow instance. $1=instance id (from the trigger response) WHEN_TO_USE: \"what is workflow <id> doing\" ARGS: see content EX: [SIBLING_WORKFLOW_DELIVER_STATUS]arg1[/SIBLING_WORKFLOW_DELIVER_STATUS] Status of a DeliverWorkflow instance. $1=instance id (from the trigger response). WHEN_TO_USE: \"what is workflow <id> doing\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SIBLING_WORKFLOW_DELIVER_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SIBLING_WORKFLOW_DELIVER_STATUS",
        "type": "http",
        "what": [
          "WHAT: Status of a DeliverWorkflow instance. $1=instance id (from the trigger response)",
          "WHEN_TO_USE: \"what is workflow <id> doing\"",
          "ARGS: see content",
          "EX: [SIBLING_WORKFLOW_DELIVER_STATUS]arg1[/SIBLING_WORKFLOW_DELIVER_STATUS]",
          "Status of a DeliverWorkflow instance. $1=instance id (from the trigger response).",
          "WHEN_TO_USE: \"what is workflow <id> doing\""
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "instance id (from the trigger response).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SIBLING_WORKFLOW_DELIVER_STATUS]arg1[/SIBLING_WORKFLOW_DELIVER_STATUS]",
        "tag": "[SIBLING_WORKFLOW_DELIVER_STATUS]<arg1>[/SIBLING_WORKFLOW_DELIVER_STATUS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SIBLING_WORKFLOW_DELIVER_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SIBLING_WORKFLOW_DELIVER_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SIBLING_WORKFLOW_DELIVER_STATUS",
        "update": "PUT /api/directory/SIBLING_WORKFLOW_DELIVER_STATUS",
        "patch": "PATCH /api/directory/SIBLING_WORKFLOW_DELIVER_STATUS",
        "delete": "DELETE /api/directory/SIBLING_WORKFLOW_DELIVER_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"SIBLING_WORKFLOW_DELIVER_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SIBLING_WORKFLOW_DELIVER_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SIBLING_WORKFLOW_DELIVER_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SIBLING_WORKFLOW_DELIVER_STATUS"
      },
      "examples": "[\"test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SIBLING_WORKFLOW_DELIVER_STATUS"
    },
    {
      "key": "SIBLING_WORKFLOW_DELIVER_TRIGGER",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Trigger a one-off DeliverWorkflow instance on the sibling Worker. Returns {id, status}. $1=optional JSON params (default {}) WHEN_TO_USE: \"run the durable deliver workflow\" or \"fire DeliverWorkflow\" ARGS: see content EX: [SIBLING_WORKFLOW_DELIVER_TRIGGER]arg1[/SIBLING_WORKFLOW_DELIVER_TRIGGER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SIBLING_WORKFLOW_DELIVER_TRIGGER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SIBLING_WORKFLOW_DELIVER_TRIGGER",
        "type": "http",
        "what": [
          "WHAT: Trigger a one-off DeliverWorkflow instance on the sibling Worker. Returns {id, status}. $1=optional JSON params (default {})",
          "WHEN_TO_USE: \"run the durable deliver workflow\" or \"fire DeliverWorkflow\"",
          "ARGS: see content",
          "EX: [SIBLING_WORKFLOW_DELIVER_TRIGGER]arg1[/SIBLING_WORKFLOW_DELIVER_TRIGGER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional JSON params (default {})",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{id, status}. $1=optional JSON params (default {})",
        "example": "[SIBLING_WORKFLOW_DELIVER_TRIGGER]arg1[/SIBLING_WORKFLOW_DELIVER_TRIGGER]",
        "tag": "[SIBLING_WORKFLOW_DELIVER_TRIGGER]<arg1>[/SIBLING_WORKFLOW_DELIVER_TRIGGER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SIBLING_WORKFLOW_DELIVER_TRIGGER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SIBLING_WORKFLOW_DELIVER_TRIGGER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$$1",
      "edit": {
        "read": "GET /api/directory/SIBLING_WORKFLOW_DELIVER_TRIGGER",
        "update": "PUT /api/directory/SIBLING_WORKFLOW_DELIVER_TRIGGER",
        "patch": "PATCH /api/directory/SIBLING_WORKFLOW_DELIVER_TRIGGER",
        "delete": "DELETE /api/directory/SIBLING_WORKFLOW_DELIVER_TRIGGER",
        "invoke": "POST /api/dispatch {\"key\":\"SIBLING_WORKFLOW_DELIVER_TRIGGER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SIBLING_WORKFLOW_DELIVER_TRIGGER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SIBLING_WORKFLOW_DELIVER_TRIGGER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SIBLING_WORKFLOW_DELIVER_TRIGGER"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SIBLING_WORKFLOW_DELIVER_TRIGGER"
    },
    {
      "key": "SITE_LINKS",
      "type": "http",
      "category": "pages",
      "doc": "WHAT: Site surfaces (the only two human pages + every functional endpoint) WHEN_TO_USE: you need to site links ARGS: see content EX: [SITE_LINKS][/SITE_LINKS] Site surfaces (the only two human pages + every functional endpoint). DIRECTORY  https://miscsubjects.com/admin/directory   (the one surface; + /new, /models, /graph, /<key>) LEDGER     https://miscsubjects.com/admin/ledger       (every payload in/out) DISPATCH   POST https://miscsubjects.com/api/dispatch  {\"key\",\"body\"} SLUG       POST https://miscsubjects.com/s/<slug>       {\"body\"} DIRECTORY REST  GET|PUT|PATCH|DELETE https://miscsubjects.com/api/directory/<key> PROVIDERS  GET https://miscsubjects.com/api/providers   (LLM/model registry) DURABLE    GET https://miscsubjects.com/api/durable/ping  (bound Durable Object) CONTENT    GET https://miscsubjects.com/api/content/<slug>  (peptides/articles data) every other former page (/matrix /ads /queue /workbench /content /grok /api …) now 302 -> /admin/directory",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SITE_LINKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SITE_LINKS",
        "type": "http",
        "what": [
          "WHAT: Site surfaces (the only two human pages + every functional endpoint)",
          "WHEN_TO_USE: you need to site links",
          "ARGS: see content",
          "EX: [SITE_LINKS][/SITE_LINKS]",
          "Site surfaces (the only two human pages + every functional endpoint).",
          "DIRECTORY  https://miscsubjects.com/admin/directory   (the one surface; + /new, /models, /graph, /<key>)",
          "LEDGER     https://miscsubjects.com/admin/ledger       (every payload in/out)",
          "DISPATCH   POST https://miscsubjects.com/api/dispatch  {\"key\",\"body\"}",
          "SLUG       POST https://miscsubjects.com/s/<slug>       {\"body\"}",
          "DIRECTORY REST  GET|PUT|PATCH|DELETE https://miscsubjects.com/api/directory/<key>",
          "PROVIDERS  GET https://miscsubjects.com/api/providers   (LLM/model registry)",
          "DURABLE    GET https://miscsubjects.com/api/durable/ping  (bound Durable Object)",
          "CONTENT    GET https://miscsubjects.com/api/content/<slug>  (peptides/articles data)",
          "every other former page (/matrix /ads /queue /workbench /content /grok /api …) now 302 -> /admin/directory"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SITE_LINKS][/SITE_LINKS]",
        "tag": "[SITE_LINKS][/SITE_LINKS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SITE_LINKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SITE_LINKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SITE_LINKS",
        "update": "PUT /api/directory/SITE_LINKS",
        "patch": "PATCH /api/directory/SITE_LINKS",
        "delete": "DELETE /api/directory/SITE_LINKS",
        "invoke": "POST /api/dispatch {\"key\":\"SITE_LINKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SITE_LINKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SITE_LINKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SITE_LINKS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SITE_LINKS"
    },
    {
      "key": "SKILL_AGENTS_SDK",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: agents-sdk Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_AGENTS_SDK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_AGENTS_SDK",
        "type": "agent",
        "what": [
          "Cloudflare skill: agents-sdk",
          "Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_AGENTS_SDK][/SKILL_AGENTS_SDK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_AGENTS_SDK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_AGENTS_SDK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_AGENTS_SDK",
        "update": "PUT /api/directory/SKILL_AGENTS_SDK",
        "patch": "PATCH /api/directory/SKILL_AGENTS_SDK",
        "delete": "DELETE /api/directory/SKILL_AGENTS_SDK",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_AGENTS_SDK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_AGENTS_SDK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_AGENTS_SDK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_AGENTS_SDK"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_AGENTS_SDK"
    },
    {
      "key": "SKILL_CLOUDFLARE",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: cloudflare Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_CLOUDFLARE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_CLOUDFLARE",
        "type": "agent",
        "what": [
          "Cloudflare skill: cloudflare",
          "Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_CLOUDFLARE][/SKILL_CLOUDFLARE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_CLOUDFLARE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_CLOUDFLARE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_CLOUDFLARE",
        "update": "PUT /api/directory/SKILL_CLOUDFLARE",
        "patch": "PATCH /api/directory/SKILL_CLOUDFLARE",
        "delete": "DELETE /api/directory/SKILL_CLOUDFLARE",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_CLOUDFLARE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_CLOUDFLARE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_CLOUDFLARE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_CLOUDFLARE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_CLOUDFLARE"
    },
    {
      "key": "SKILL_CLOUDFLARE_EMAIL_SERVICE",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: cloudflare-email-service Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like \"add email to my Worker\" — this skill has critical config details.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_CLOUDFLARE_EMAIL_SERVICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_CLOUDFLARE_EMAIL_SERVICE",
        "type": "agent",
        "what": [
          "Cloudflare skill: cloudflare-email-service",
          "Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like \"add email to my Worker\" — this skill has critical config details."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_CLOUDFLARE_EMAIL_SERVICE][/SKILL_CLOUDFLARE_EMAIL_SERVICE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_CLOUDFLARE_EMAIL_SERVICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_CLOUDFLARE_EMAIL_SERVICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_CLOUDFLARE_EMAIL_SERVICE",
        "update": "PUT /api/directory/SKILL_CLOUDFLARE_EMAIL_SERVICE",
        "patch": "PATCH /api/directory/SKILL_CLOUDFLARE_EMAIL_SERVICE",
        "delete": "DELETE /api/directory/SKILL_CLOUDFLARE_EMAIL_SERVICE",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_CLOUDFLARE_EMAIL_SERVICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_CLOUDFLARE_EMAIL_SERVICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_CLOUDFLARE_EMAIL_SERVICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_CLOUDFLARE_EMAIL_SERVICE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_CLOUDFLARE_EMAIL_SERVICE"
    },
    {
      "key": "SKILL_CLOUDFLARE_ONE",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: cloudflare-one \"Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs/API schemas instead of embedded product docs.\"",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_CLOUDFLARE_ONE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_CLOUDFLARE_ONE",
        "type": "agent",
        "what": [
          "Cloudflare skill: cloudflare-one",
          "\"Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs/API schemas instead of embedded product docs.\""
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_CLOUDFLARE_ONE][/SKILL_CLOUDFLARE_ONE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_CLOUDFLARE_ONE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_CLOUDFLARE_ONE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_CLOUDFLARE_ONE",
        "update": "PUT /api/directory/SKILL_CLOUDFLARE_ONE",
        "patch": "PATCH /api/directory/SKILL_CLOUDFLARE_ONE",
        "delete": "DELETE /api/directory/SKILL_CLOUDFLARE_ONE",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_CLOUDFLARE_ONE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_CLOUDFLARE_ONE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_CLOUDFLARE_ONE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_CLOUDFLARE_ONE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_CLOUDFLARE_ONE"
    },
    {
      "key": "SKILL_CLOUDFLARE_ONE_MIGRATIONS",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: cloudflare-one-migrations Plans migrations from Zscaler ZIA/ZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity/gap analysis.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_CLOUDFLARE_ONE_MIGRATIONS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_CLOUDFLARE_ONE_MIGRATIONS",
        "type": "agent",
        "what": [
          "Cloudflare skill: cloudflare-one-migrations",
          "Plans migrations from Zscaler ZIA/ZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity/gap analysis."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_CLOUDFLARE_ONE_MIGRATIONS][/SKILL_CLOUDFLARE_ONE_MIGRATIONS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_CLOUDFLARE_ONE_MIGRATIONS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_CLOUDFLARE_ONE_MIGRATIONS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_CLOUDFLARE_ONE_MIGRATIONS",
        "update": "PUT /api/directory/SKILL_CLOUDFLARE_ONE_MIGRATIONS",
        "patch": "PATCH /api/directory/SKILL_CLOUDFLARE_ONE_MIGRATIONS",
        "delete": "DELETE /api/directory/SKILL_CLOUDFLARE_ONE_MIGRATIONS",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_CLOUDFLARE_ONE_MIGRATIONS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_CLOUDFLARE_ONE_MIGRATIONS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_CLOUDFLARE_ONE_MIGRATIONS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_CLOUDFLARE_ONE_MIGRATIONS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_CLOUDFLARE_ONE_MIGRATIONS"
    },
    {
      "key": "SKILL_DURABLE_OBJECTS",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: durable-objects Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_DURABLE_OBJECTS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_DURABLE_OBJECTS",
        "type": "agent",
        "what": [
          "Cloudflare skill: durable-objects",
          "Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_DURABLE_OBJECTS][/SKILL_DURABLE_OBJECTS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_DURABLE_OBJECTS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_DURABLE_OBJECTS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_DURABLE_OBJECTS",
        "update": "PUT /api/directory/SKILL_DURABLE_OBJECTS",
        "patch": "PATCH /api/directory/SKILL_DURABLE_OBJECTS",
        "delete": "DELETE /api/directory/SKILL_DURABLE_OBJECTS",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_DURABLE_OBJECTS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_DURABLE_OBJECTS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_DURABLE_OBJECTS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_DURABLE_OBJECTS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_DURABLE_OBJECTS"
    },
    {
      "key": "SKILL_IMPORT",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Cannibalize a SKILL.md (frontmatter name+description, markdown body) into a proposed agent row. PROPOSE only WHEN_TO_USE: you need to skill import ARGS: source(url|r2:key|raw)|model|category EX: [SKILL_IMPORT]arg1|arg2|arg3[/SKILL_IMPORT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_IMPORT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_IMPORT",
        "type": "fn",
        "what": [
          "WHAT: Cannibalize a SKILL.md (frontmatter name+description, markdown body) into a proposed agent row. PROPOSE only",
          "WHEN_TO_USE: you need to skill import",
          "ARGS: source(url|r2:key|raw)|model|category",
          "EX: [SKILL_IMPORT]arg1|arg2|arg3[/SKILL_IMPORT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SKILL_IMPORT]arg1|arg2|arg3[/SKILL_IMPORT]",
        "tag": "[SKILL_IMPORT]<arg1>|<arg2>|<arg3>[/SKILL_IMPORT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_IMPORT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_IMPORT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/SKILL_IMPORT",
        "update": "PUT /api/directory/SKILL_IMPORT",
        "patch": "PATCH /api/directory/SKILL_IMPORT",
        "delete": "DELETE /api/directory/SKILL_IMPORT",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_IMPORT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_IMPORT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_IMPORT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_IMPORT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_IMPORT"
    },
    {
      "key": "SKILL_SANDBOX_SDK",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: sandbox-sdk Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI/CD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_SANDBOX_SDK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_SANDBOX_SDK",
        "type": "agent",
        "what": [
          "Cloudflare skill: sandbox-sdk",
          "Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI/CD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_SANDBOX_SDK][/SKILL_SANDBOX_SDK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_SANDBOX_SDK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_SANDBOX_SDK  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_SANDBOX_SDK",
        "update": "PUT /api/directory/SKILL_SANDBOX_SDK",
        "patch": "PATCH /api/directory/SKILL_SANDBOX_SDK",
        "delete": "DELETE /api/directory/SKILL_SANDBOX_SDK",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_SANDBOX_SDK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_SANDBOX_SDK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_SANDBOX_SDK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_SANDBOX_SDK"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_SANDBOX_SDK"
    },
    {
      "key": "SKILL_TURNSTILE_SPIN",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: turnstile-spin Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form from bots, or fix a Turnstile integration. Mirrors developers.cloudflare.com/turnstile/spin.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_TURNSTILE_SPIN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_TURNSTILE_SPIN",
        "type": "agent",
        "what": [
          "Cloudflare skill: turnstile-spin",
          "Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form from bots, or fix a Turnstile integration. Mirrors developers.cloudflare.com/turnstile/spin."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "CLOUDFLARE_ACCOUNT_ID",
          "WIDGET_SECRET",
          "SITEKEY",
          "WORKER_NAME"
        ],
        "returns": null,
        "example": null,
        "tag": "[SKILL_TURNSTILE_SPIN][/SKILL_TURNSTILE_SPIN]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_TURNSTILE_SPIN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_TURNSTILE_SPIN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_TURNSTILE_SPIN",
        "update": "PUT /api/directory/SKILL_TURNSTILE_SPIN",
        "patch": "PATCH /api/directory/SKILL_TURNSTILE_SPIN",
        "delete": "DELETE /api/directory/SKILL_TURNSTILE_SPIN",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_TURNSTILE_SPIN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_TURNSTILE_SPIN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_TURNSTILE_SPIN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_TURNSTILE_SPIN"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_TURNSTILE_SPIN"
    },
    {
      "key": "SKILL_WEB_PERF",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: web-perf Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (LCP, INP, CLS) and supplementary metrics (FCP, TBT, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_WEB_PERF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_WEB_PERF",
        "type": "agent",
        "what": [
          "Cloudflare skill: web-perf",
          "Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (LCP, INP, CLS) and supplementary metrics (FCP, TBT, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_WEB_PERF][/SKILL_WEB_PERF]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_WEB_PERF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_WEB_PERF  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_WEB_PERF",
        "update": "PUT /api/directory/SKILL_WEB_PERF",
        "patch": "PATCH /api/directory/SKILL_WEB_PERF",
        "delete": "DELETE /api/directory/SKILL_WEB_PERF",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_WEB_PERF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_WEB_PERF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_WEB_PERF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_WEB_PERF"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_WEB_PERF"
    },
    {
      "key": "SKILL_WORKERS_BEST_PRACTICES",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: workers-best-practices Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_WORKERS_BEST_PRACTICES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_WORKERS_BEST_PRACTICES",
        "type": "agent",
        "what": [
          "Cloudflare skill: workers-best-practices",
          "Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[SKILL_WORKERS_BEST_PRACTICES][/SKILL_WORKERS_BEST_PRACTICES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_WORKERS_BEST_PRACTICES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_WORKERS_BEST_PRACTICES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_WORKERS_BEST_PRACTICES",
        "update": "PUT /api/directory/SKILL_WORKERS_BEST_PRACTICES",
        "patch": "PATCH /api/directory/SKILL_WORKERS_BEST_PRACTICES",
        "delete": "DELETE /api/directory/SKILL_WORKERS_BEST_PRACTICES",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_WORKERS_BEST_PRACTICES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_WORKERS_BEST_PRACTICES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_WORKERS_BEST_PRACTICES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_WORKERS_BEST_PRACTICES"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_WORKERS_BEST_PRACTICES"
    },
    {
      "key": "SKILL_WRANGLER",
      "type": "agent",
      "category": "cf-skill",
      "doc": "Cloudflare skill: wrangler Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SKILL_WRANGLER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SKILL_WRANGLER",
        "type": "agent",
        "what": [
          "Cloudflare skill: wrangler",
          "Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "DB_PASSWORD",
          "HYPERDRIVE_CONNECTION_STRING",
          "AWS_ACCESS_KEY_ID",
          "DOCKERHUB_USERNAME"
        ],
        "returns": null,
        "example": null,
        "tag": "[SKILL_WRANGLER][/SKILL_WRANGLER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SKILL_WRANGLER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SKILL_WRANGLER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SKILL_WRANGLER",
        "update": "PUT /api/directory/SKILL_WRANGLER",
        "patch": "PATCH /api/directory/SKILL_WRANGLER",
        "delete": "DELETE /api/directory/SKILL_WRANGLER",
        "invoke": "POST /api/dispatch {\"key\":\"SKILL_WRANGLER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SKILL_WRANGLER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SKILL_WRANGLER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SKILL_WRANGLER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SKILL_WRANGLER"
    },
    {
      "key": "SLACK_LIST_CHANNELS",
      "type": "http",
      "category": "slack",
      "doc": "WHAT: List the Slack channels the owner can post in, as the owner's own Slack user. WHEN_TO_USE: before a send, to resolve a channel id. Read-only. ARGS: (none) IDENTITY: connection slack:the owner — identity_kind owner, mechanism oauth2. EX: [SLACK_LIST_CHANNELS][/SLACK_LIST_CHANNELS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SLACK_LIST_CHANNELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SLACK_LIST_CHANNELS",
        "type": "http",
        "what": [
          "WHAT: List the Slack channels the owner can post in, as the owner's own Slack user.",
          "WHEN_TO_USE: before a send, to resolve a channel id. Read-only.",
          "ARGS: (none)",
          "IDENTITY: connection slack:the owner — identity_kind owner, mechanism oauth2.",
          "EX: [SLACK_LIST_CHANNELS][/SLACK_LIST_CHANNELS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SLACK_LIST_CHANNELS][/SLACK_LIST_CHANNELS]",
        "tag": "[SLACK_LIST_CHANNELS][/SLACK_LIST_CHANNELS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SLACK_LIST_CHANNELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SLACK_LIST_CHANNELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/SLACK_LIST_CHANNELS",
        "update": "PUT /api/directory/SLACK_LIST_CHANNELS",
        "patch": "PATCH /api/directory/SLACK_LIST_CHANNELS",
        "delete": "DELETE /api/directory/SLACK_LIST_CHANNELS",
        "invoke": "POST /api/dispatch {\"key\":\"SLACK_LIST_CHANNELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SLACK_LIST_CHANNELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SLACK_LIST_CHANNELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SLACK_LIST_CHANNELS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SLACK_LIST_CHANNELS"
    },
    {
      "key": "SLACK_POST_AS_OWNER",
      "type": "http",
      "category": "slack",
      "doc": "WHAT: Post one message to a Slack channel AS THE OWNER — his Slack user, not an app. WHEN_TO_USE: anything that should read as the owner wrote it in Slack. For an app/bot identity use SLACK_POST_AS_APP. ARGS: $1 = channel (id like C0123ABCD, or #name) | $2 = the exact message text. IDENTITY: connection slack:the owner — identity_kind owner, mechanism oauth2. The door refreshes the           grant through the shared token store before every call; no credential lives in this row. EX: [SLACK_POST_AS_OWNER]#general|shipped[/SLACK_POST_AS_OWNER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SLACK_POST_AS_OWNER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SLACK_POST_AS_OWNER",
        "type": "http",
        "what": [
          "WHAT: Post one message to a Slack channel AS THE OWNER — his Slack user, not an app.",
          "WHEN_TO_USE: anything that should read as the owner wrote it in Slack. For an app/bot identity use SLACK_POST_AS_APP.",
          "ARGS: $1 = channel (id like C0123ABCD, or #name) | $2 = the exact message text.",
          "IDENTITY: connection slack:the owner — identity_kind owner, mechanism oauth2. The door refreshes the",
          "          grant through the shared token store before every call; no credential lives in this row.",
          "EX: [SLACK_POST_AS_OWNER]#general|shipped[/SLACK_POST_AS_OWNER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "#general",
            "desc": "channel (id like C0123ABCD, or #name) | $2 = the exact message text.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "shipped",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SLACK_POST_AS_OWNER]#general|shipped[/SLACK_POST_AS_OWNER]",
        "tag": "[SLACK_POST_AS_OWNER]<#general>|<shipped>[/SLACK_POST_AS_OWNER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SLACK_POST_AS_OWNER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SLACK_POST_AS_OWNER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"channel\":\"$1\",\"text\":\"$2\"}",
      "edit": {
        "read": "GET /api/directory/SLACK_POST_AS_OWNER",
        "update": "PUT /api/directory/SLACK_POST_AS_OWNER",
        "patch": "PATCH /api/directory/SLACK_POST_AS_OWNER",
        "delete": "DELETE /api/directory/SLACK_POST_AS_OWNER",
        "invoke": "POST /api/dispatch {\"key\":\"SLACK_POST_AS_OWNER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SLACK_POST_AS_OWNER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SLACK_POST_AS_OWNER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SLACK_POST_AS_OWNER"
      },
      "examples": "[\"#general|A message sent as the owner through the mono-door.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SLACK_POST_AS_OWNER"
    },
    {
      "key": "SLACK_RAW",
      "type": "http",
      "category": "slack",
      "doc": "WHAT: Authenticated GET to any Slack Web API method as the owner (user token, oauth2:slack:the owner), for methods no named row covers yet. WHEN_TO_USE: a Slack call nobody has made a row for. Read-only methods only. ARGS: $1 = method and query, e.g. auth.test · users.info?user=U123 · conversations.history?channel=C123&limit=20 EX: [SLACK_RAW]auth.test[/SLACK_RAW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SLACK_RAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SLACK_RAW",
        "type": "http",
        "what": [
          "WHAT: Authenticated GET to any Slack Web API method as the owner (user token, oauth2:slack:the owner), for methods no named row covers yet.",
          "WHEN_TO_USE: a Slack call nobody has made a row for. Read-only methods only.",
          "ARGS: $1 = method and query, e.g. auth.test · users.info?user=U123 · conversations.history?channel=C123&limit=20",
          "EX: [SLACK_RAW]auth.test[/SLACK_RAW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "auth.test",
            "desc": "method and query, e.g. auth.test · users.info?user=U123 · conversations.history?channel=C123&limit=20",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SLACK_RAW]auth.test[/SLACK_RAW]",
        "tag": "[SLACK_RAW]<auth.test>[/SLACK_RAW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SLACK_RAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SLACK_RAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SLACK_RAW",
        "update": "PUT /api/directory/SLACK_RAW",
        "patch": "PATCH /api/directory/SLACK_RAW",
        "delete": "DELETE /api/directory/SLACK_RAW",
        "invoke": "POST /api/dispatch {\"key\":\"SLACK_RAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SLACK_RAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SLACK_RAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SLACK_RAW"
      },
      "examples": "[\"auth.test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SLACK_RAW"
    },
    {
      "key": "SNAPSHOT_META",
      "type": "http",
      "category": "repo",
      "doc": "WHAT: Repo snapshot metadata from KV: {sha, ts, byte_count} — no content blob. No args. Use this instead of REPO_SNAPSHOT whenever you only need to cite the sha, freshness, or size of the snapshot WHEN_TO_USE: you need to snapshot meta ARGS: see content EX: [SNAPSHOT_META][/SNAPSHOT_META] Repo snapshot metadata from KV: {sha, ts, byte_count} — no content blob. No args. Use this instead of REPO_SNAPSHOT whenever you only need to cite the sha, freshness, or size of the snapshot.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SNAPSHOT_META",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SNAPSHOT_META",
        "type": "http",
        "what": [
          "WHAT: Repo snapshot metadata from KV: {sha, ts, byte_count} — no content blob. No args. Use this instead of REPO_SNAPSHOT whenever you only need to cite the sha, freshness, or size of the snapshot",
          "WHEN_TO_USE: you need to snapshot meta",
          "ARGS: see content",
          "EX: [SNAPSHOT_META][/SNAPSHOT_META]",
          "Repo snapshot metadata from KV: {sha, ts, byte_count} — no content blob. No args. Use this instead of REPO_SNAPSHOT whenever you only need to cite the sha, freshness, or size of the snapshot."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SNAPSHOT_META][/SNAPSHOT_META]",
        "tag": "[SNAPSHOT_META][/SNAPSHOT_META]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SNAPSHOT_META\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SNAPSHOT_META  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SNAPSHOT_META",
        "update": "PUT /api/directory/SNAPSHOT_META",
        "patch": "PATCH /api/directory/SNAPSHOT_META",
        "delete": "DELETE /api/directory/SNAPSHOT_META",
        "invoke": "POST /api/dispatch {\"key\":\"SNAPSHOT_META\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SNAPSHOT_META\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SNAPSHOT_META\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SNAPSHOT_META"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=SNAPSHOT_META"
    },
    {
      "key": "STALE_ISSUE_DIGEST",
      "type": "fn",
      "category": "automation",
      "doc": "WHAT: Return a digest of open GitHub issues that have not been updated in N days. WHEN_TO_USE: weekly purge review, stale backlog triage. ARGS: days EX: [STALE_ISSUE_DIGEST]7[/STALE_ISSUE_DIGEST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STALE_ISSUE_DIGEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STALE_ISSUE_DIGEST",
        "type": "fn",
        "what": [
          "WHAT: Return a digest of open GitHub issues that have not been updated in N days.",
          "WHEN_TO_USE: weekly purge review, stale backlog triage.",
          "ARGS: days",
          "EX: [STALE_ISSUE_DIGEST]7[/STALE_ISSUE_DIGEST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "a digest of open GitHub issues that have not been updated in N days.",
        "example": "[STALE_ISSUE_DIGEST]7[/STALE_ISSUE_DIGEST]",
        "tag": "[STALE_ISSUE_DIGEST][/STALE_ISSUE_DIGEST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STALE_ISSUE_DIGEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STALE_ISSUE_DIGEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STALE_ISSUE_DIGEST",
        "update": "PUT /api/directory/STALE_ISSUE_DIGEST",
        "patch": "PATCH /api/directory/STALE_ISSUE_DIGEST",
        "delete": "DELETE /api/directory/STALE_ISSUE_DIGEST",
        "invoke": "POST /api/dispatch {\"key\":\"STALE_ISSUE_DIGEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STALE_ISSUE_DIGEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STALE_ISSUE_DIGEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STALE_ISSUE_DIGEST"
      },
      "examples": "[\"7\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STALE_ISSUE_DIGEST"
    },
    {
      "key": "STANDARD_REGISTER",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Register a versioned standard whose clauses can be cited by decision records. This records the source and authority class; it does not turn advisory text into law. ARGS: JSON {id,name,version,authority_class:internal-profile|external-source|advisory|legal-review-required,source_url?,canonical_text,clauses:[{id,title,requirement,test?,authority?}],status?,parent_id?,created_by}. TESTS: Unique clause ids; external/legal standards require an HTTPS source; exact canonical content is hash-pinned; bearer material is rejected.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STANDARD_REGISTER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STANDARD_REGISTER",
        "type": "http",
        "what": [
          "WHAT: Register a versioned standard whose clauses can be cited by decision records. This records the source and authority class; it does not turn advisory text into law.",
          "ARGS: JSON {id,name,version,authority_class:internal-profile|external-source|advisory|legal-review-required,source_url?,canonical_text,clauses:[{id,title,requirement,test?,authority?}],status?,parent_id?,created_by}.",
          "TESTS: Unique clause ids; external/legal standards require an HTTPS source; exact canonical content is hash-pinned; bearer material is rejected."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STANDARD_REGISTER]arg1[/STANDARD_REGISTER]",
        "tag": "[STANDARD_REGISTER]<arg1 …>[/STANDARD_REGISTER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STANDARD_REGISTER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STANDARD_REGISTER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/STANDARD_REGISTER",
        "update": "PUT /api/directory/STANDARD_REGISTER",
        "patch": "PATCH /api/directory/STANDARD_REGISTER",
        "delete": "DELETE /api/directory/STANDARD_REGISTER",
        "invoke": "POST /api/dispatch {\"key\":\"STANDARD_REGISTER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STANDARD_REGISTER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STANDARD_REGISTER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STANDARD_REGISTER"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=STANDARD_REGISTER"
    },
    {
      "key": "STATE_APPEND",
      "type": "fn",
      "category": "state",
      "doc": "WHAT: Add one entry to a shared state handle: a note, an open question, an artifact or a receipt. WHEN_TO_USE: a model or a capability produced something the next model needs to know. ARGS: $1 = handle|summary. Or a JSON object {handle, kind, actor, summary, ref, weight}. EX: [STATE_APPEND]state://ab12cd|The finance export is the only source with live fees[/STATE_APPEND] TESTS: The entry appears in the next STATE_RESOLVE briefing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_APPEND",
        "type": "fn",
        "what": [
          "WHAT: Add one entry to a shared state handle: a note, an open question, an artifact or a receipt.",
          "WHEN_TO_USE: a model or a capability produced something the next model needs to know.",
          "ARGS: $1 = handle|summary. Or a JSON object {handle, kind, actor, summary, ref, weight}.",
          "EX: [STATE_APPEND]state://ab12cd|The finance export is the only source with live fees[/STATE_APPEND]",
          "TESTS: The entry appears in the next STATE_RESOLVE briefing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "state://ab12cd",
            "desc": "handle|summary. Or a JSON object {handle, kind, actor, summary, ref, weight}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STATE_APPEND]state://ab12cd|The finance export is the only source with live fees[/STATE_APPEND]",
        "tag": "[STATE_APPEND]<state://ab12cd …>[/STATE_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/STATE_APPEND",
        "update": "PUT /api/directory/STATE_APPEND",
        "patch": "PATCH /api/directory/STATE_APPEND",
        "delete": "DELETE /api/directory/STATE_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_APPEND"
      },
      "examples": "[\"state://ab12cd|The finance export is the only source with live fees\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_APPEND"
    },
    {
      "key": "STATE_CARD",
      "type": "http",
      "category": "ledger",
      "doc": "WHAT: Return assembled state cards from the ledger: message/input, tools, output, trace. WHEN_TO_USE: the owner asks for a state card or the most recent turn card. ARGS: $1 = optional limit, default 1. EX: [STATE_CARD]1[/STATE_CARD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_CARD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_CARD",
        "type": "http",
        "what": [
          "WHAT: Return assembled state cards from the ledger: message/input, tools, output, trace.",
          "WHEN_TO_USE: the owner asks for a state card or the most recent turn card.",
          "ARGS: $1 = optional limit, default 1.",
          "EX: [STATE_CARD]1[/STATE_CARD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "1",
            "desc": "optional limit, default 1.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "assembled state cards from the ledger: message/input, tools, output, trace.",
        "example": "[STATE_CARD]1[/STATE_CARD]",
        "tag": "[STATE_CARD]<1>[/STATE_CARD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_CARD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_CARD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STATE_CARD",
        "update": "PUT /api/directory/STATE_CARD",
        "patch": "PATCH /api/directory/STATE_CARD",
        "delete": "DELETE /api/directory/STATE_CARD",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_CARD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_CARD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_CARD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_CARD"
      },
      "examples": "[\"1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_CARD"
    },
    {
      "key": "STATE_CARD_CERTIFY",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Certify a bounded, expiring compliance state card from an existing decision and its current surety/dissent record. The card grants no tool authority by itself. ARGS: JSON {decision_id,system_version,scope[],risk_ceiling,jurisdiction,audit_depth,certifier_type:regulator|insurer|auditor|compliance_officer|standards_body|owner,certifier_label,authority:owner-authorized|external-attestation,expires_at,parent_id?,evidence[],invocation_id?}. TESTS: Card binds standard/system/scope/risk/jurisdiction/audit depth/expiry; current dissent is attached; expiry is bounded; certification never erases dissent or becomes truth/legal compliance by itself.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_CARD_CERTIFY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_CARD_CERTIFY",
        "type": "http",
        "what": [
          "WHAT: Certify a bounded, expiring compliance state card from an existing decision and its current surety/dissent record. The card grants no tool authority by itself.",
          "ARGS: JSON {decision_id,system_version,scope[],risk_ceiling,jurisdiction,audit_depth,certifier_type:regulator|insurer|auditor|compliance_officer|standards_body|owner,certifier_label,authority:owner-authorized|external-attestation,expires_at,parent_id?,evidence[],invocation_id?}.",
          "TESTS: Card binds standard/system/scope/risk/jurisdiction/audit depth/expiry; current dissent is attached; expiry is bounded; certification never erases dissent or becomes truth/legal compliance by itself."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STATE_CARD_CERTIFY]arg1[/STATE_CARD_CERTIFY]",
        "tag": "[STATE_CARD_CERTIFY]<arg1 …>[/STATE_CARD_CERTIFY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_CARD_CERTIFY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_CARD_CERTIFY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/STATE_CARD_CERTIFY",
        "update": "PUT /api/directory/STATE_CARD_CERTIFY",
        "patch": "PATCH /api/directory/STATE_CARD_CERTIFY",
        "delete": "DELETE /api/directory/STATE_CARD_CERTIFY",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_CARD_CERTIFY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_CARD_CERTIFY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_CARD_CERTIFY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_CARD_CERTIFY"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_CARD_CERTIFY"
    },
    {
      "key": "STATE_CARD_REVOKE",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Revoke a state card without deleting it; append the reason, evidence and actor to the certifier history. ARGS: JSON {card_id,actor,reason,evidence[],invocation_id?}. TESTS: Revocation is append-only, idempotent only for already-revoked state, and immediately changes card standing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_CARD_REVOKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_CARD_REVOKE",
        "type": "http",
        "what": [
          "WHAT: Revoke a state card without deleting it; append the reason, evidence and actor to the certifier history.",
          "ARGS: JSON {card_id,actor,reason,evidence[],invocation_id?}.",
          "TESTS: Revocation is append-only, idempotent only for already-revoked state, and immediately changes card standing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STATE_CARD_REVOKE]arg1[/STATE_CARD_REVOKE]",
        "tag": "[STATE_CARD_REVOKE]<arg1 …>[/STATE_CARD_REVOKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_CARD_REVOKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_CARD_REVOKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/STATE_CARD_REVOKE",
        "update": "PUT /api/directory/STATE_CARD_REVOKE",
        "patch": "PATCH /api/directory/STATE_CARD_REVOKE",
        "delete": "DELETE /api/directory/STATE_CARD_REVOKE",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_CARD_REVOKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_CARD_REVOKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_CARD_REVOKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_CARD_REVOKE"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_CARD_REVOKE"
    },
    {
      "key": "STATE_NEW",
      "type": "fn",
      "category": "state",
      "doc": "WHAT: Create a shared state handle: one durable work object that models of different vendors can each continue without anyone pasting a transcript. WHEN_TO_USE: before handing the same piece of work to more than one model, or to an agent and then a browser model. ARGS: $1 = the objective, in plain words. EX: [STATE_NEW]Decide whether the refund policy change is safe to ship[/STATE_NEW] TESTS: Returns a state:// handle that STATE_RESOLVE can turn into a briefing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_NEW",
        "type": "fn",
        "what": [
          "WHAT: Create a shared state handle: one durable work object that models of different vendors can each continue without anyone pasting a transcript.",
          "WHEN_TO_USE: before handing the same piece of work to more than one model, or to an agent and then a browser model.",
          "ARGS: $1 = the objective, in plain words.",
          "EX: [STATE_NEW]Decide whether the refund policy change is safe to ship[/STATE_NEW]",
          "TESTS: Returns a state:// handle that STATE_RESOLVE can turn into a briefing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "Decide whether the refund policy change is safe to ship",
            "desc": "the objective, in plain words.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a state:// handle that STATE_RESOLVE can turn into a briefing.",
        "example": "[STATE_NEW]Decide whether the refund policy change is safe to ship[/STATE_NEW]",
        "tag": "[STATE_NEW]<Decide whether the refund policy change is safe to ship …>[/STATE_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/STATE_NEW",
        "update": "PUT /api/directory/STATE_NEW",
        "patch": "PATCH /api/directory/STATE_NEW",
        "delete": "DELETE /api/directory/STATE_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_NEW"
      },
      "examples": "[\"Decide whether the refund policy change is safe to ship\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_NEW"
    },
    {
      "key": "STATE_RESOLVE",
      "type": "fn",
      "category": "state",
      "doc": "WHAT: Turn a shared state handle into the bounded briefing a model is handed instead of a transcript: the objective, the open work and a window of what has already happened. WHEN_TO_USE: you are about to hand work to a model that was not present for the earlier turns. ARGS: $1 = handle, optionally handle|how_many_entries. EX: [STATE_RESOLVE]state://ab12cd[/STATE_RESOLVE] TESTS: Returns a briefing naming the objective and the prior actors, bounded to the requested number of entries.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STATE_RESOLVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STATE_RESOLVE",
        "type": "fn",
        "what": [
          "WHAT: Turn a shared state handle into the bounded briefing a model is handed instead of a transcript: the objective, the open work and a window of what has already happened.",
          "WHEN_TO_USE: you are about to hand work to a model that was not present for the earlier turns.",
          "ARGS: $1 = handle, optionally handle|how_many_entries.",
          "EX: [STATE_RESOLVE]state://ab12cd[/STATE_RESOLVE]",
          "TESTS: Returns a briefing naming the objective and the prior actors, bounded to the requested number of entries."
        ],
        "args": [
          {
            "pos": 1,
            "name": "state://ab12cd",
            "desc": "handle, optionally handle|how_many_entries.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a briefing naming the objective and the prior actors, bounded to the requested number of entries.",
        "example": "[STATE_RESOLVE]state://ab12cd[/STATE_RESOLVE]",
        "tag": "[STATE_RESOLVE]<state://ab12cd …>[/STATE_RESOLVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STATE_RESOLVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STATE_RESOLVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/STATE_RESOLVE",
        "update": "PUT /api/directory/STATE_RESOLVE",
        "patch": "PATCH /api/directory/STATE_RESOLVE",
        "delete": "DELETE /api/directory/STATE_RESOLVE",
        "invoke": "POST /api/dispatch {\"key\":\"STATE_RESOLVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STATE_RESOLVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STATE_RESOLVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STATE_RESOLVE"
      },
      "examples": "[\"state://ab12cd\",\"state://ab12cd|12\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STATE_RESOLVE"
    },
    {
      "key": "STORE_AND_LOG_REF",
      "type": "flow",
      "category": "flow",
      "doc": "Store a single ref-image URL to R2 and log the asset row. $1=URL. Returns the asset insert id from LOG_ASSET. WHEN_TO_USE: per inbound media URL before routing to ARCADS",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STORE_AND_LOG_REF",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STORE_AND_LOG_REF",
        "type": "flow",
        "what": [
          "Store a single ref-image URL to R2 and log the asset row. $1=URL. Returns the asset insert id from LOG_ASSET.",
          "WHEN_TO_USE: per inbound media URL before routing to ARCADS"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "URL. Returns the asset insert id from LOG_ASSET.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the asset insert id from LOG_ASSET.",
        "example": "[STORE_AND_LOG_REF]arg1[/STORE_AND_LOG_REF]",
        "tag": "[STORE_AND_LOG_REF]<arg1>[/STORE_AND_LOG_REF]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STORE_AND_LOG_REF\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STORE_AND_LOG_REF  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STORE_AND_LOG_REF",
        "update": "PUT /api/directory/STORE_AND_LOG_REF",
        "patch": "PATCH /api/directory/STORE_AND_LOG_REF",
        "delete": "DELETE /api/directory/STORE_AND_LOG_REF",
        "invoke": "POST /api/dispatch {\"key\":\"STORE_AND_LOG_REF\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STORE_AND_LOG_REF\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STORE_AND_LOG_REF\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STORE_AND_LOG_REF"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STORE_AND_LOG_REF"
    },
    {
      "key": "STORE_GET",
      "type": "http",
      "category": "storage",
      "doc": "WHAT: fetch one reference file from the storage Worker (vendored docs, old build, etc). WHEN_TO_USE: an agent needs a doc/file that was moved off the repo into the store. ARGS: $1 = path, e.g. docs/api/openai/sections/012_agent_builder.md EX: [STORE_GET]docs/api/openai/sections/012_agent_builder.md[/STORE_GET] TESTS: POSITIVE: {\"key\":\"STORE_GET\",\"body\":\"docs/api/openai/sections/012_agent_builder.md\"} -> HTTP 200 with the doc body INVERSE: {\"key\":\"STORE_GET\",\"body\":\"does/not/exist\"} -> HTTP 404 not_found",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STORE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STORE_GET",
        "type": "http",
        "what": [
          "WHAT: fetch one reference file from the storage Worker (vendored docs, old build, etc).",
          "WHEN_TO_USE: an agent needs a doc/file that was moved off the repo into the store.",
          "ARGS: $1 = path, e.g. docs/api/openai/sections/012_agent_builder.md",
          "EX: [STORE_GET]docs/api/openai/sections/012_agent_builder.md[/STORE_GET]",
          "TESTS:",
          "POSITIVE: {\"key\":\"STORE_GET\",\"body\":\"docs/api/openai/sections/012_agent_builder.md\"} -> HTTP 200 with the doc body",
          "INVERSE: {\"key\":\"STORE_GET\",\"body\":\"does/not/exist\"} -> HTTP 404 not_found"
        ],
        "args": [
          {
            "pos": 1,
            "name": "docs/api/openai/sections/012_agent_builder.md",
            "desc": "path, e.g. docs/api/openai/sections/012_agent_builder.md",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STORE_GET]docs/api/openai/sections/012_agent_builder.md[/STORE_GET]",
        "tag": "[STORE_GET]<docs/api/openai/sections/012_agent_builder.md>[/STORE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STORE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STORE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STORE_GET",
        "update": "PUT /api/directory/STORE_GET",
        "patch": "PATCH /api/directory/STORE_GET",
        "delete": "DELETE /api/directory/STORE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STORE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STORE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STORE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STORE_GET"
      },
      "examples": "[\"docs/api/openai/sections/012_agent_builder.md\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STORE_GET"
    },
    {
      "key": "STORE_REF_IMAGE",
      "type": "fn",
      "category": "openai",
      "doc": "WHAT: Save a reference image (e.g. one sent via Blooio) to R2 and return {filename,key,url}. Arg: source_url WHEN_TO_USE: you need to store ref image ARGS: $1 EX: [STORE_REF_IMAGE]arg1[/STORE_REF_IMAGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STORE_REF_IMAGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STORE_REF_IMAGE",
        "type": "fn",
        "what": [
          "WHAT: Save a reference image (e.g. one sent via Blooio) to R2 and return {filename,key,url}. Arg: source_url",
          "WHEN_TO_USE: you need to store ref image",
          "ARGS: $1",
          "EX: [STORE_REF_IMAGE]arg1[/STORE_REF_IMAGE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{filename,key,url}. Arg: source_url",
        "example": "[STORE_REF_IMAGE]arg1[/STORE_REF_IMAGE]",
        "tag": "[STORE_REF_IMAGE]<arg1>[/STORE_REF_IMAGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STORE_REF_IMAGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STORE_REF_IMAGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/STORE_REF_IMAGE",
        "update": "PUT /api/directory/STORE_REF_IMAGE",
        "patch": "PATCH /api/directory/STORE_REF_IMAGE",
        "delete": "DELETE /api/directory/STORE_REF_IMAGE",
        "invoke": "POST /api/dispatch {\"key\":\"STORE_REF_IMAGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STORE_REF_IMAGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STORE_REF_IMAGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STORE_REF_IMAGE"
      },
      "examples": "[\"https://miscsubjects.com/img/ref/leo-vial-black-bg.png\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STORE_REF_IMAGE"
    },
    {
      "key": "STORE_SEARCH",
      "type": "http",
      "category": "storage",
      "doc": "WHAT: search the storage index by path/tag substring. WHEN_TO_USE: find which reference files exist before fetching one with STORE_GET. ARGS: $1 = query substring, e.g. realtime EX: [STORE_SEARCH]realtime[/STORE_SEARCH] TESTS: POSITIVE: {\"key\":\"STORE_SEARCH\",\"body\":\"openai\"} -> HTTP 200 with results array of {path,size,tag,ts} INVERSE: {\"key\":\"STORE_SEARCH\",\"body\":\"zzzznomatch\"} -> HTTP 200 with count 0",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STORE_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STORE_SEARCH",
        "type": "http",
        "what": [
          "WHAT: search the storage index by path/tag substring.",
          "WHEN_TO_USE: find which reference files exist before fetching one with STORE_GET.",
          "ARGS: $1 = query substring, e.g. realtime",
          "EX: [STORE_SEARCH]realtime[/STORE_SEARCH]",
          "TESTS:",
          "POSITIVE: {\"key\":\"STORE_SEARCH\",\"body\":\"openai\"} -> HTTP 200 with results array of {path,size,tag,ts}",
          "INVERSE: {\"key\":\"STORE_SEARCH\",\"body\":\"zzzznomatch\"} -> HTTP 200 with count 0"
        ],
        "args": [
          {
            "pos": 1,
            "name": "realtime",
            "desc": "query substring, e.g. realtime",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STORE_SEARCH]realtime[/STORE_SEARCH]",
        "tag": "[STORE_SEARCH]<realtime>[/STORE_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STORE_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STORE_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STORE_SEARCH",
        "update": "PUT /api/directory/STORE_SEARCH",
        "patch": "PATCH /api/directory/STORE_SEARCH",
        "delete": "DELETE /api/directory/STORE_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"STORE_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STORE_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STORE_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STORE_SEARCH"
      },
      "examples": "[\"realtime\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STORE_SEARCH"
    },
    {
      "key": "STRIPE_ACCOUNT",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_ACCOUNT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_ACCOUNT",
        "type": "http",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[STRIPE_ACCOUNT][/STRIPE_ACCOUNT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_ACCOUNT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_ACCOUNT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_ACCOUNT",
        "update": "PUT /api/directory/STRIPE_ACCOUNT",
        "patch": "PATCH /api/directory/STRIPE_ACCOUNT",
        "delete": "DELETE /api/directory/STRIPE_ACCOUNT",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_ACCOUNT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_ACCOUNT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_ACCOUNT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_ACCOUNT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_ACCOUNT"
    },
    {
      "key": "STRIPE_BALANCE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_BALANCE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_BALANCE",
        "type": "http",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[STRIPE_BALANCE][/STRIPE_BALANCE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_BALANCE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_BALANCE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_BALANCE",
        "update": "PUT /api/directory/STRIPE_BALANCE",
        "patch": "PATCH /api/directory/STRIPE_BALANCE",
        "delete": "DELETE /api/directory/STRIPE_BALANCE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_BALANCE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_BALANCE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_BALANCE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_BALANCE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_BALANCE"
    },
    {
      "key": "STRIPE_BALANCE_TX_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_BALANCE_TX_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_BALANCE_TX_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_BALANCE_TX_LIST]arg1[/STRIPE_BALANCE_TX_LIST]",
        "tag": "[STRIPE_BALANCE_TX_LIST]<arg1>[/STRIPE_BALANCE_TX_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_BALANCE_TX_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_BALANCE_TX_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_BALANCE_TX_LIST",
        "update": "PUT /api/directory/STRIPE_BALANCE_TX_LIST",
        "patch": "PATCH /api/directory/STRIPE_BALANCE_TX_LIST",
        "delete": "DELETE /api/directory/STRIPE_BALANCE_TX_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_BALANCE_TX_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_BALANCE_TX_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_BALANCE_TX_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_BALANCE_TX_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_BALANCE_TX_LIST"
    },
    {
      "key": "STRIPE_CATALOG_SYNC",
      "type": "fn",
      "category": "stripe",
      "doc": "WHAT: Pull active products + prices from Stripe and upsert into D1.stripe_catalog WHEN_TO_USE: refresh local SKU cache ARGS: none EX: [STRIPE_CATALOG_SYNC][/STRIPE_CATALOG_SYNC]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CATALOG_SYNC",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CATALOG_SYNC",
        "type": "fn",
        "what": [
          "WHAT: Pull active products + prices from Stripe and upsert into D1.stripe_catalog",
          "WHEN_TO_USE: refresh local SKU cache",
          "ARGS: none",
          "EX: [STRIPE_CATALOG_SYNC][/STRIPE_CATALOG_SYNC]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_CATALOG_SYNC][/STRIPE_CATALOG_SYNC]",
        "tag": "[STRIPE_CATALOG_SYNC][/STRIPE_CATALOG_SYNC]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CATALOG_SYNC\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CATALOG_SYNC  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/STRIPE_CATALOG_SYNC",
        "update": "PUT /api/directory/STRIPE_CATALOG_SYNC",
        "patch": "PATCH /api/directory/STRIPE_CATALOG_SYNC",
        "delete": "DELETE /api/directory/STRIPE_CATALOG_SYNC",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CATALOG_SYNC\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CATALOG_SYNC\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CATALOG_SYNC\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CATALOG_SYNC"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CATALOG_SYNC"
    },
    {
      "key": "STRIPE_CHARGE",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The stripe charge as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF charge.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a stripe charge, or the flow runner resolves `charge.<path>`. ARGS: none EX: [STRIPE_CHARGE][/STRIPE_CHARGE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CHARGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CHARGE",
        "type": "fn",
        "what": [
          "WHAT: The stripe charge as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF charge.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a stripe charge, or the flow runner resolves `charge.<path>`.",
          "ARGS: none",
          "EX: [STRIPE_CHARGE][/STRIPE_CHARGE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_CHARGE][/STRIPE_CHARGE]",
        "tag": "[STRIPE_CHARGE][/STRIPE_CHARGE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CHARGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CHARGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_CHARGE\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_CHARGE",
        "update": "PUT /api/directory/STRIPE_CHARGE",
        "patch": "PATCH /api/directory/STRIPE_CHARGE",
        "delete": "DELETE /api/directory/STRIPE_CHARGE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CHARGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CHARGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CHARGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CHARGE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CHARGE"
    },
    {
      "key": "STRIPE_CHARGES_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CHARGES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CHARGES_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CHARGES_LIST]arg1[/STRIPE_CHARGES_LIST]",
        "tag": "[STRIPE_CHARGES_LIST]<arg1>[/STRIPE_CHARGES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CHARGES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CHARGES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CHARGES_LIST",
        "update": "PUT /api/directory/STRIPE_CHARGES_LIST",
        "patch": "PATCH /api/directory/STRIPE_CHARGES_LIST",
        "delete": "DELETE /api/directory/STRIPE_CHARGES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CHARGES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CHARGES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CHARGES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CHARGES_LIST"
      },
      "examples": "[\"5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CHARGES_LIST"
    },
    {
      "key": "STRIPE_CHARGE_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CHARGE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CHARGE_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CHARGE_GET]arg1[/STRIPE_CHARGE_GET]",
        "tag": "[STRIPE_CHARGE_GET]<arg1>[/STRIPE_CHARGE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CHARGE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CHARGE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CHARGE_GET",
        "update": "PUT /api/directory/STRIPE_CHARGE_GET",
        "patch": "PATCH /api/directory/STRIPE_CHARGE_GET",
        "delete": "DELETE /api/directory/STRIPE_CHARGE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CHARGE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CHARGE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CHARGE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CHARGE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CHARGE_GET"
    },
    {
      "key": "STRIPE_CREATE_REFUND",
      "type": "fn",
      "category": "stripe",
      "doc": "This tool will refund a payment intent in Stripe. It takes three arguments: - payment_intent (str): The ID of the payment intent to refund. - amount (int, optional): The amount to refund in currency m MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CREATE_REFUND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CREATE_REFUND",
        "type": "fn",
        "what": [
          "This tool will refund a payment intent in Stripe. It takes three arguments: - payment_intent (str): The ID of the payment intent to refund. - amount (int, optional): The amount to refund in currency m",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_CREATE_REFUND]arg1[/STRIPE_CREATE_REFUND]",
        "tag": "[STRIPE_CREATE_REFUND]<arg1 …>[/STRIPE_CREATE_REFUND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CREATE_REFUND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CREATE_REFUND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"create_refund\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_CREATE_REFUND",
        "update": "PUT /api/directory/STRIPE_CREATE_REFUND",
        "patch": "PATCH /api/directory/STRIPE_CREATE_REFUND",
        "delete": "DELETE /api/directory/STRIPE_CREATE_REFUND",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CREATE_REFUND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CREATE_REFUND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CREATE_REFUND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CREATE_REFUND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CREATE_REFUND"
    },
    {
      "key": "STRIPE_CUSTOMER",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The stripe customer as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF customer.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a stripe customer, or the flow runner resolves `customer.<path>`. ARGS: none EX: [STRIPE_CUSTOMER][/STRIPE_CUSTOMER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER",
        "type": "fn",
        "what": [
          "WHAT: The stripe customer as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF customer.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a stripe customer, or the flow runner resolves `customer.<path>`.",
          "ARGS: none",
          "EX: [STRIPE_CUSTOMER][/STRIPE_CUSTOMER]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_CUSTOMER][/STRIPE_CUSTOMER]",
        "tag": "[STRIPE_CUSTOMER][/STRIPE_CUSTOMER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_CUSTOMER\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER",
        "update": "PUT /api/directory/STRIPE_CUSTOMER",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER"
    },
    {
      "key": "STRIPE_CUSTOMERS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMERS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMERS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMERS_LIST]arg1[/STRIPE_CUSTOMERS_LIST]",
        "tag": "[STRIPE_CUSTOMERS_LIST]<arg1>[/STRIPE_CUSTOMERS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMERS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMERS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMERS_LIST",
        "update": "PUT /api/directory/STRIPE_CUSTOMERS_LIST",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMERS_LIST",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMERS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMERS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMERS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMERS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMERS_LIST"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMERS_LIST"
    },
    {
      "key": "STRIPE_CUSTOMER_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMER_CREATE]arg1|arg2|arg3[/STRIPE_CUSTOMER_CREATE]",
        "tag": "[STRIPE_CUSTOMER_CREATE]<arg1>|<arg2>|<arg3>[/STRIPE_CUSTOMER_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:email=$1&name=$2&phone=$3",
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER_CREATE",
        "update": "PUT /api/directory/STRIPE_CUSTOMER_CREATE",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER_CREATE",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER_CREATE"
    },
    {
      "key": "STRIPE_CUSTOMER_DELETE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER_DELETE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMER_DELETE]arg1[/STRIPE_CUSTOMER_DELETE]",
        "tag": "[STRIPE_CUSTOMER_DELETE]<arg1>[/STRIPE_CUSTOMER_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER_DELETE",
        "update": "PUT /api/directory/STRIPE_CUSTOMER_DELETE",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER_DELETE",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER_DELETE"
    },
    {
      "key": "STRIPE_CUSTOMER_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMER_GET]arg1[/STRIPE_CUSTOMER_GET]",
        "tag": "[STRIPE_CUSTOMER_GET]<arg1>[/STRIPE_CUSTOMER_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER_GET",
        "update": "PUT /api/directory/STRIPE_CUSTOMER_GET",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER_GET",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER_GET"
    },
    {
      "key": "STRIPE_CUSTOMER_SEARCH",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER_SEARCH",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMER_SEARCH]arg1[/STRIPE_CUSTOMER_SEARCH]",
        "tag": "[STRIPE_CUSTOMER_SEARCH]<arg1>[/STRIPE_CUSTOMER_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER_SEARCH",
        "update": "PUT /api/directory/STRIPE_CUSTOMER_SEARCH",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER_SEARCH",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER_SEARCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER_SEARCH"
    },
    {
      "key": "STRIPE_CUSTOMER_UPDATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_CUSTOMER_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_CUSTOMER_UPDATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_CUSTOMER_UPDATE]arg1|arg2|arg3|arg4[/STRIPE_CUSTOMER_UPDATE]",
        "tag": "[STRIPE_CUSTOMER_UPDATE]<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_CUSTOMER_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_CUSTOMER_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_CUSTOMER_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:email=$2&name=$3&phone=$4",
      "edit": {
        "read": "GET /api/directory/STRIPE_CUSTOMER_UPDATE",
        "update": "PUT /api/directory/STRIPE_CUSTOMER_UPDATE",
        "patch": "PATCH /api/directory/STRIPE_CUSTOMER_UPDATE",
        "delete": "DELETE /api/directory/STRIPE_CUSTOMER_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_CUSTOMER_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_CUSTOMER_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_CUSTOMER_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_CUSTOMER_UPDATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_CUSTOMER_UPDATE"
    },
    {
      "key": "STRIPE_EVENTS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_EVENTS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_EVENTS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_EVENTS_LIST]arg1[/STRIPE_EVENTS_LIST]",
        "tag": "[STRIPE_EVENTS_LIST]<arg1>[/STRIPE_EVENTS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_EVENTS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_EVENTS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_EVENTS_LIST",
        "update": "PUT /api/directory/STRIPE_EVENTS_LIST",
        "patch": "PATCH /api/directory/STRIPE_EVENTS_LIST",
        "delete": "DELETE /api/directory/STRIPE_EVENTS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_EVENTS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_EVENTS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_EVENTS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_EVENTS_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_EVENTS_LIST"
    },
    {
      "key": "STRIPE_FETCH_STRIPE_RESOURCES",
      "type": "fn",
      "category": "stripe",
      "doc": "Retrieve Stripe object details by ID. IMPORTANT: Only call this tool after search_stripe_resources is called to get specific object IDs. Do not use this tool to discover or search for objects. This to MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_FETCH_STRIPE_RESOURCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_FETCH_STRIPE_RESOURCES",
        "type": "fn",
        "what": [
          "Retrieve Stripe object details by ID. IMPORTANT: Only call this tool after search_stripe_resources is called to get specific object IDs. Do not use this tool to discover or search for objects. This to",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_FETCH_STRIPE_RESOURCES]arg1[/STRIPE_FETCH_STRIPE_RESOURCES]",
        "tag": "[STRIPE_FETCH_STRIPE_RESOURCES]<arg1 …>[/STRIPE_FETCH_STRIPE_RESOURCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_FETCH_STRIPE_RESOURCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_FETCH_STRIPE_RESOURCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"fetch_stripe_resources\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_FETCH_STRIPE_RESOURCES",
        "update": "PUT /api/directory/STRIPE_FETCH_STRIPE_RESOURCES",
        "patch": "PATCH /api/directory/STRIPE_FETCH_STRIPE_RESOURCES",
        "delete": "DELETE /api/directory/STRIPE_FETCH_STRIPE_RESOURCES",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_FETCH_STRIPE_RESOURCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_FETCH_STRIPE_RESOURCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_FETCH_STRIPE_RESOURCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_FETCH_STRIPE_RESOURCES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_FETCH_STRIPE_RESOURCES"
    },
    {
      "key": "STRIPE_GET_STRIPE_ACCOUNT_INFO",
      "type": "fn",
      "category": "stripe",
      "doc": "This will get the account info for the logged in Stripe account.  MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_GET_STRIPE_ACCOUNT_INFO",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_GET_STRIPE_ACCOUNT_INFO",
        "type": "fn",
        "what": [
          "This will get the account info for the logged in Stripe account. ",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_GET_STRIPE_ACCOUNT_INFO]arg1[/STRIPE_GET_STRIPE_ACCOUNT_INFO]",
        "tag": "[STRIPE_GET_STRIPE_ACCOUNT_INFO]<arg1 …>[/STRIPE_GET_STRIPE_ACCOUNT_INFO]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_GET_STRIPE_ACCOUNT_INFO\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_GET_STRIPE_ACCOUNT_INFO  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"get_stripe_account_info\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_GET_STRIPE_ACCOUNT_INFO",
        "update": "PUT /api/directory/STRIPE_GET_STRIPE_ACCOUNT_INFO",
        "patch": "PATCH /api/directory/STRIPE_GET_STRIPE_ACCOUNT_INFO",
        "delete": "DELETE /api/directory/STRIPE_GET_STRIPE_ACCOUNT_INFO",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_GET_STRIPE_ACCOUNT_INFO\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_GET_STRIPE_ACCOUNT_INFO\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_GET_STRIPE_ACCOUNT_INFO\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_GET_STRIPE_ACCOUNT_INFO"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_GET_STRIPE_ACCOUNT_INFO"
    },
    {
      "key": "STRIPE_INVOICE",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The stripe invoice as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF invoice.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a stripe invoice, or the flow runner resolves `invoice.<path>`. ARGS: none EX: [STRIPE_INVOICE][/STRIPE_INVOICE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE",
        "type": "fn",
        "what": [
          "WHAT: The stripe invoice as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF invoice.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a stripe invoice, or the flow runner resolves `invoice.<path>`.",
          "ARGS: none",
          "EX: [STRIPE_INVOICE][/STRIPE_INVOICE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_INVOICE][/STRIPE_INVOICE]",
        "tag": "[STRIPE_INVOICE][/STRIPE_INVOICE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_INVOICE\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE",
        "update": "PUT /api/directory/STRIPE_INVOICE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE"
    },
    {
      "key": "STRIPE_INVOICES_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICES_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICES_LIST]arg1[/STRIPE_INVOICES_LIST]",
        "tag": "[STRIPE_INVOICES_LIST]<arg1>[/STRIPE_INVOICES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICES_LIST",
        "update": "PUT /api/directory/STRIPE_INVOICES_LIST",
        "patch": "PATCH /api/directory/STRIPE_INVOICES_LIST",
        "delete": "DELETE /api/directory/STRIPE_INVOICES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICES_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICES_LIST"
    },
    {
      "key": "STRIPE_INVOICE_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_CREATE]arg1|arg2|arg3[/STRIPE_INVOICE_CREATE]",
        "tag": "[STRIPE_INVOICE_CREATE]<arg1>|<arg2>|<arg3>[/STRIPE_INVOICE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:customer=$1&collection_method=send_invoice&days_until_due=$2&description=$3",
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_CREATE",
        "update": "PUT /api/directory/STRIPE_INVOICE_CREATE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_CREATE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_CREATE"
    },
    {
      "key": "STRIPE_INVOICE_DELETE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_DELETE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_DELETE]arg1[/STRIPE_INVOICE_DELETE]",
        "tag": "[STRIPE_INVOICE_DELETE]<arg1>[/STRIPE_INVOICE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_DELETE",
        "update": "PUT /api/directory/STRIPE_INVOICE_DELETE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_DELETE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_DELETE"
    },
    {
      "key": "STRIPE_INVOICE_FINALIZE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_FINALIZE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_FINALIZE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_FINALIZE]arg1[/STRIPE_INVOICE_FINALIZE]",
        "tag": "[STRIPE_INVOICE_FINALIZE]<arg1>[/STRIPE_INVOICE_FINALIZE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_FINALIZE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_FINALIZE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_FINALIZE",
        "update": "PUT /api/directory/STRIPE_INVOICE_FINALIZE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_FINALIZE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_FINALIZE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_FINALIZE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_FINALIZE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_FINALIZE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_FINALIZE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_FINALIZE"
    },
    {
      "key": "STRIPE_INVOICE_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_GET]arg1[/STRIPE_INVOICE_GET]",
        "tag": "[STRIPE_INVOICE_GET]<arg1>[/STRIPE_INVOICE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_GET",
        "update": "PUT /api/directory/STRIPE_INVOICE_GET",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_GET",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_GET"
    },
    {
      "key": "STRIPE_INVOICE_ITEMS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_ITEMS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_ITEMS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_ITEMS_LIST]arg1|arg2[/STRIPE_INVOICE_ITEMS_LIST]",
        "tag": "[STRIPE_INVOICE_ITEMS_LIST]<arg1>|<arg2>[/STRIPE_INVOICE_ITEMS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_ITEMS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_ITEMS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_ITEMS_LIST",
        "update": "PUT /api/directory/STRIPE_INVOICE_ITEMS_LIST",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_ITEMS_LIST",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_ITEMS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_ITEMS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_ITEMS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_ITEMS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_ITEMS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_ITEMS_LIST"
    },
    {
      "key": "STRIPE_INVOICE_ITEM_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_ITEM_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_ITEM_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_ITEM_CREATE]arg1|arg2|arg3|arg4[/STRIPE_INVOICE_ITEM_CREATE]",
        "tag": "[STRIPE_INVOICE_ITEM_CREATE]<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_INVOICE_ITEM_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_ITEM_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_ITEM_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:customer=$1&amount=$2&currency=$3&description=$4",
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_ITEM_CREATE",
        "update": "PUT /api/directory/STRIPE_INVOICE_ITEM_CREATE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_ITEM_CREATE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_ITEM_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_ITEM_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_ITEM_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_ITEM_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_ITEM_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_ITEM_CREATE"
    },
    {
      "key": "STRIPE_INVOICE_ITEM_DELETE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_ITEM_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_ITEM_DELETE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_ITEM_DELETE]arg1[/STRIPE_INVOICE_ITEM_DELETE]",
        "tag": "[STRIPE_INVOICE_ITEM_DELETE]<arg1>[/STRIPE_INVOICE_ITEM_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_ITEM_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_ITEM_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_ITEM_DELETE",
        "update": "PUT /api/directory/STRIPE_INVOICE_ITEM_DELETE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_ITEM_DELETE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_ITEM_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_ITEM_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_ITEM_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_ITEM_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_ITEM_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_ITEM_DELETE"
    },
    {
      "key": "STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_MARK_UNCOLLECTIBLE]arg1[/STRIPE_INVOICE_MARK_UNCOLLECTIBLE]",
        "tag": "[STRIPE_INVOICE_MARK_UNCOLLECTIBLE]<arg1>[/STRIPE_INVOICE_MARK_UNCOLLECTIBLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_MARK_UNCOLLECTIBLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_MARK_UNCOLLECTIBLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
        "update": "PUT /api/directory/STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_MARK_UNCOLLECTIBLE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_MARK_UNCOLLECTIBLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_MARK_UNCOLLECTIBLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_MARK_UNCOLLECTIBLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_MARK_UNCOLLECTIBLE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_MARK_UNCOLLECTIBLE"
    },
    {
      "key": "STRIPE_INVOICE_PAY",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_PAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_PAY",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_PAY]arg1[/STRIPE_INVOICE_PAY]",
        "tag": "[STRIPE_INVOICE_PAY]<arg1>[/STRIPE_INVOICE_PAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_PAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_PAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_PAY",
        "update": "PUT /api/directory/STRIPE_INVOICE_PAY",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_PAY",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_PAY",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_PAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_PAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_PAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_PAY"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_PAY"
    },
    {
      "key": "STRIPE_INVOICE_SEND",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_SEND",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_SEND]arg1[/STRIPE_INVOICE_SEND]",
        "tag": "[STRIPE_INVOICE_SEND]<arg1>[/STRIPE_INVOICE_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_SEND",
        "update": "PUT /api/directory/STRIPE_INVOICE_SEND",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_SEND",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_SEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_SEND"
    },
    {
      "key": "STRIPE_INVOICE_UPDATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_UPDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_UPDATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_UPDATE]arg1|arg2[/STRIPE_INVOICE_UPDATE]",
        "tag": "[STRIPE_INVOICE_UPDATE]<arg1>|<arg2>[/STRIPE_INVOICE_UPDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_UPDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_UPDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:description=$2",
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_UPDATE",
        "update": "PUT /api/directory/STRIPE_INVOICE_UPDATE",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_UPDATE",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_UPDATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_UPDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_UPDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_UPDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_UPDATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_UPDATE"
    },
    {
      "key": "STRIPE_INVOICE_VOID",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_INVOICE_VOID",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_INVOICE_VOID",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_INVOICE_VOID]arg1[/STRIPE_INVOICE_VOID]",
        "tag": "[STRIPE_INVOICE_VOID]<arg1>[/STRIPE_INVOICE_VOID]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_INVOICE_VOID\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_INVOICE_VOID  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_INVOICE_VOID",
        "update": "PUT /api/directory/STRIPE_INVOICE_VOID",
        "patch": "PATCH /api/directory/STRIPE_INVOICE_VOID",
        "delete": "DELETE /api/directory/STRIPE_INVOICE_VOID",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_INVOICE_VOID\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_INVOICE_VOID\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_INVOICE_VOID\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_INVOICE_VOID"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_INVOICE_VOID"
    },
    {
      "key": "STRIPE_LH_CHARGES",
      "type": "http",
      "category": "loop_metrics",
      "doc": "WHAT: Stripe charges on the loop.health account. $1 = how many (max 100). WHEN_TO_USE: payment reconciliation, disputes, failures. READ ONLY. Never create or name anything in Stripe — the account is brand-firewalled. ARGS: $1 = limit EX: [STRIPE_LH_CHARGES]20[/STRIPE_LH_CHARGES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_LH_CHARGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_LH_CHARGES",
        "type": "http",
        "what": [
          "WHAT: Stripe charges on the loop.health account. $1 = how many (max 100).",
          "WHEN_TO_USE: payment reconciliation, disputes, failures.",
          "READ ONLY. Never create or name anything in Stripe — the account is brand-firewalled.",
          "ARGS: $1 = limit",
          "EX: [STRIPE_LH_CHARGES]20[/STRIPE_LH_CHARGES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_LH_CHARGES]20[/STRIPE_LH_CHARGES]",
        "tag": "[STRIPE_LH_CHARGES]<20>[/STRIPE_LH_CHARGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_LH_CHARGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_LH_CHARGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_LH_CHARGES",
        "update": "PUT /api/directory/STRIPE_LH_CHARGES",
        "patch": "PATCH /api/directory/STRIPE_LH_CHARGES",
        "delete": "DELETE /api/directory/STRIPE_LH_CHARGES",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_LH_CHARGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_LH_CHARGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_LH_CHARGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_LH_CHARGES"
      },
      "examples": "[\"20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_LH_CHARGES"
    },
    {
      "key": "STRIPE_LH_SUBS",
      "type": "http",
      "category": "loop_metrics",
      "doc": "WHAT: Stripe subscriptions, every status. THE live subscription record — the data platform's table is empty. WHEN_TO_USE: \"how many active subscriptions\", churn, dunning. ARGS: $1 = limit EX: [STRIPE_LH_SUBS]20[/STRIPE_LH_SUBS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_LH_SUBS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_LH_SUBS",
        "type": "http",
        "what": [
          "WHAT: Stripe subscriptions, every status. THE live subscription record — the data platform's table is empty.",
          "WHEN_TO_USE: \"how many active subscriptions\", churn, dunning.",
          "ARGS: $1 = limit",
          "EX: [STRIPE_LH_SUBS]20[/STRIPE_LH_SUBS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "20",
            "desc": "limit",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_LH_SUBS]20[/STRIPE_LH_SUBS]",
        "tag": "[STRIPE_LH_SUBS]<20>[/STRIPE_LH_SUBS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_LH_SUBS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_LH_SUBS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_LH_SUBS",
        "update": "PUT /api/directory/STRIPE_LH_SUBS",
        "patch": "PATCH /api/directory/STRIPE_LH_SUBS",
        "delete": "DELETE /api/directory/STRIPE_LH_SUBS",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_LH_SUBS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_LH_SUBS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_LH_SUBS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_LH_SUBS"
      },
      "examples": "[\"20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_LH_SUBS"
    },
    {
      "key": "STRIPE_PAYMENT_LINK",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The stripe payment_link as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF payment_link.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a stripe payment_link, or the flow runner resolves `payment_link.<path>`. ARGS: none EX: [STRIPE_PAYMENT_LINK][/STRIPE_PAYMENT_LINK]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PAYMENT_LINK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PAYMENT_LINK",
        "type": "fn",
        "what": [
          "WHAT: The stripe payment_link as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF payment_link.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a stripe payment_link, or the flow runner resolves `payment_link.<path>`.",
          "ARGS: none",
          "EX: [STRIPE_PAYMENT_LINK][/STRIPE_PAYMENT_LINK]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_PAYMENT_LINK][/STRIPE_PAYMENT_LINK]",
        "tag": "[STRIPE_PAYMENT_LINK][/STRIPE_PAYMENT_LINK]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PAYMENT_LINK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PAYMENT_LINK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_PAYMENT_LINK\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_PAYMENT_LINK",
        "update": "PUT /api/directory/STRIPE_PAYMENT_LINK",
        "patch": "PATCH /api/directory/STRIPE_PAYMENT_LINK",
        "delete": "DELETE /api/directory/STRIPE_PAYMENT_LINK",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PAYMENT_LINK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PAYMENT_LINK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PAYMENT_LINK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PAYMENT_LINK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PAYMENT_LINK"
    },
    {
      "key": "STRIPE_PAYMENT_LINKS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PAYMENT_LINKS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PAYMENT_LINKS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PAYMENT_LINKS_LIST]arg1[/STRIPE_PAYMENT_LINKS_LIST]",
        "tag": "[STRIPE_PAYMENT_LINKS_LIST]<arg1>[/STRIPE_PAYMENT_LINKS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PAYMENT_LINKS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PAYMENT_LINKS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PAYMENT_LINKS_LIST",
        "update": "PUT /api/directory/STRIPE_PAYMENT_LINKS_LIST",
        "patch": "PATCH /api/directory/STRIPE_PAYMENT_LINKS_LIST",
        "delete": "DELETE /api/directory/STRIPE_PAYMENT_LINKS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PAYMENT_LINKS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PAYMENT_LINKS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PAYMENT_LINKS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PAYMENT_LINKS_LIST"
      },
      "examples": "[\"5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PAYMENT_LINKS_LIST"
    },
    {
      "key": "STRIPE_PAYMENT_LINK_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PAYMENT_LINK_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PAYMENT_LINK_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PAYMENT_LINK_CREATE]arg1|arg2[/STRIPE_PAYMENT_LINK_CREATE]",
        "tag": "[STRIPE_PAYMENT_LINK_CREATE]<arg1>|<arg2>[/STRIPE_PAYMENT_LINK_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PAYMENT_LINK_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PAYMENT_LINK_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:line_items[0][price]=$1&line_items[0][quantity]=$2",
      "edit": {
        "read": "GET /api/directory/STRIPE_PAYMENT_LINK_CREATE",
        "update": "PUT /api/directory/STRIPE_PAYMENT_LINK_CREATE",
        "patch": "PATCH /api/directory/STRIPE_PAYMENT_LINK_CREATE",
        "delete": "DELETE /api/directory/STRIPE_PAYMENT_LINK_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PAYMENT_LINK_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PAYMENT_LINK_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PAYMENT_LINK_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PAYMENT_LINK_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PAYMENT_LINK_CREATE"
    },
    {
      "key": "STRIPE_PAYOUTS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PAYOUTS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PAYOUTS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PAYOUTS_LIST]arg1[/STRIPE_PAYOUTS_LIST]",
        "tag": "[STRIPE_PAYOUTS_LIST]<arg1>[/STRIPE_PAYOUTS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PAYOUTS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PAYOUTS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PAYOUTS_LIST",
        "update": "PUT /api/directory/STRIPE_PAYOUTS_LIST",
        "patch": "PATCH /api/directory/STRIPE_PAYOUTS_LIST",
        "delete": "DELETE /api/directory/STRIPE_PAYOUTS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PAYOUTS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PAYOUTS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PAYOUTS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PAYOUTS_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PAYOUTS_LIST"
    },
    {
      "key": "STRIPE_PAYOUT_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PAYOUT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PAYOUT_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PAYOUT_GET]arg1[/STRIPE_PAYOUT_GET]",
        "tag": "[STRIPE_PAYOUT_GET]<arg1>[/STRIPE_PAYOUT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PAYOUT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PAYOUT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PAYOUT_GET",
        "update": "PUT /api/directory/STRIPE_PAYOUT_GET",
        "patch": "PATCH /api/directory/STRIPE_PAYOUT_GET",
        "delete": "DELETE /api/directory/STRIPE_PAYOUT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PAYOUT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PAYOUT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PAYOUT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PAYOUT_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PAYOUT_GET"
    },
    {
      "key": "STRIPE_PEPTIDES",
      "type": "flow",
      "category": "stripe",
      "doc": "Return the active peptide product inventory from the stripe_catalog cache. Lists name, brand=esh, opaque_id, and the price tiers per product (24 prices each = starter/standard/advanced × 1mo/3mo/6mo/12mo × sub/onetime). Use when the user asks for the peptide list, the SKU list, or what is for sale.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PEPTIDES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PEPTIDES",
        "type": "flow",
        "what": [
          "Return the active peptide product inventory from the stripe_catalog cache. Lists name, brand=esh, opaque_id, and the price tiers per product (24 prices each = starter/standard/advanced × 1mo/3mo/6mo/12mo × sub/onetime). Use when the user asks for the peptide list, the SKU list, or what is for sale."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the active peptide product inventory from the stripe_catalog cache. Lists name, brand=esh, opaque_id, and the price tiers per product (24 prices each = starter/standard/advanced × 1mo/3mo/6mo/12mo × sub/onetime). Use when the user asks for the peptide list, the SKU list, or what is for sale.",
        "example": null,
        "tag": "[STRIPE_PEPTIDES][/STRIPE_PEPTIDES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PEPTIDES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PEPTIDES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PEPTIDES",
        "update": "PUT /api/directory/STRIPE_PEPTIDES",
        "patch": "PATCH /api/directory/STRIPE_PEPTIDES",
        "delete": "DELETE /api/directory/STRIPE_PEPTIDES",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PEPTIDES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PEPTIDES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PEPTIDES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PEPTIDES"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PEPTIDES"
    },
    {
      "key": "STRIPE_PI_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PI_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PI_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PI_CREATE]arg1|arg2|arg3|arg4[/STRIPE_PI_CREATE]",
        "tag": "[STRIPE_PI_CREATE]<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_PI_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PI_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PI_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:amount=$1&currency=$2&customer=$3&description=$4",
      "edit": {
        "read": "GET /api/directory/STRIPE_PI_CREATE",
        "update": "PUT /api/directory/STRIPE_PI_CREATE",
        "patch": "PATCH /api/directory/STRIPE_PI_CREATE",
        "delete": "DELETE /api/directory/STRIPE_PI_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PI_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PI_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PI_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PI_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PI_CREATE"
    },
    {
      "key": "STRIPE_PI_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PI_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PI_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PI_GET]arg1[/STRIPE_PI_GET]",
        "tag": "[STRIPE_PI_GET]<arg1>[/STRIPE_PI_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PI_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PI_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PI_GET",
        "update": "PUT /api/directory/STRIPE_PI_GET",
        "patch": "PATCH /api/directory/STRIPE_PI_GET",
        "delete": "DELETE /api/directory/STRIPE_PI_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PI_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PI_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PI_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PI_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PI_GET"
    },
    {
      "key": "STRIPE_PI_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PI_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PI_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PI_LIST]arg1[/STRIPE_PI_LIST]",
        "tag": "[STRIPE_PI_LIST]<arg1>[/STRIPE_PI_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PI_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PI_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PI_LIST",
        "update": "PUT /api/directory/STRIPE_PI_LIST",
        "patch": "PATCH /api/directory/STRIPE_PI_LIST",
        "delete": "DELETE /api/directory/STRIPE_PI_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PI_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PI_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PI_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PI_LIST"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PI_LIST"
    },
    {
      "key": "STRIPE_PRICES_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRICES_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRICES_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRICES_LIST]arg1[/STRIPE_PRICES_LIST]",
        "tag": "[STRIPE_PRICES_LIST]<arg1>[/STRIPE_PRICES_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRICES_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRICES_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PRICES_LIST",
        "update": "PUT /api/directory/STRIPE_PRICES_LIST",
        "patch": "PATCH /api/directory/STRIPE_PRICES_LIST",
        "delete": "DELETE /api/directory/STRIPE_PRICES_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRICES_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRICES_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRICES_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRICES_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRICES_LIST"
    },
    {
      "key": "STRIPE_PRICE_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRICE_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRICE_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRICE_CREATE]arg1|arg2|arg3[/STRIPE_PRICE_CREATE]",
        "tag": "[STRIPE_PRICE_CREATE]<arg1>|<arg2>|<arg3>[/STRIPE_PRICE_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRICE_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRICE_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:product=$1&unit_amount=$2&currency=$3",
      "edit": {
        "read": "GET /api/directory/STRIPE_PRICE_CREATE",
        "update": "PUT /api/directory/STRIPE_PRICE_CREATE",
        "patch": "PATCH /api/directory/STRIPE_PRICE_CREATE",
        "delete": "DELETE /api/directory/STRIPE_PRICE_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRICE_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRICE_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRICE_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRICE_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRICE_CREATE"
    },
    {
      "key": "STRIPE_PRICE_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRICE_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRICE_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRICE_GET]arg1[/STRIPE_PRICE_GET]",
        "tag": "[STRIPE_PRICE_GET]<arg1>[/STRIPE_PRICE_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRICE_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRICE_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PRICE_GET",
        "update": "PUT /api/directory/STRIPE_PRICE_GET",
        "patch": "PATCH /api/directory/STRIPE_PRICE_GET",
        "delete": "DELETE /api/directory/STRIPE_PRICE_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRICE_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRICE_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRICE_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRICE_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRICE_GET"
    },
    {
      "key": "STRIPE_PRODUCTS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRODUCTS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRODUCTS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRODUCTS_LIST]arg1[/STRIPE_PRODUCTS_LIST]",
        "tag": "[STRIPE_PRODUCTS_LIST]<arg1>[/STRIPE_PRODUCTS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRODUCTS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRODUCTS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PRODUCTS_LIST",
        "update": "PUT /api/directory/STRIPE_PRODUCTS_LIST",
        "patch": "PATCH /api/directory/STRIPE_PRODUCTS_LIST",
        "delete": "DELETE /api/directory/STRIPE_PRODUCTS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRODUCTS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRODUCTS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRODUCTS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRODUCTS_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRODUCTS_LIST"
    },
    {
      "key": "STRIPE_PRODUCT_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRODUCT_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRODUCT_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRODUCT_CREATE]arg1|arg2[/STRIPE_PRODUCT_CREATE]",
        "tag": "[STRIPE_PRODUCT_CREATE]<arg1>|<arg2>[/STRIPE_PRODUCT_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRODUCT_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRODUCT_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:name=$1&description=$2",
      "edit": {
        "read": "GET /api/directory/STRIPE_PRODUCT_CREATE",
        "update": "PUT /api/directory/STRIPE_PRODUCT_CREATE",
        "patch": "PATCH /api/directory/STRIPE_PRODUCT_CREATE",
        "delete": "DELETE /api/directory/STRIPE_PRODUCT_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRODUCT_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRODUCT_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRODUCT_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRODUCT_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRODUCT_CREATE"
    },
    {
      "key": "STRIPE_PRODUCT_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PRODUCT_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PRODUCT_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_PRODUCT_GET]arg1[/STRIPE_PRODUCT_GET]",
        "tag": "[STRIPE_PRODUCT_GET]<arg1>[/STRIPE_PRODUCT_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PRODUCT_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PRODUCT_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_PRODUCT_GET",
        "update": "PUT /api/directory/STRIPE_PRODUCT_GET",
        "patch": "PATCH /api/directory/STRIPE_PRODUCT_GET",
        "delete": "DELETE /api/directory/STRIPE_PRODUCT_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PRODUCT_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PRODUCT_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PRODUCT_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PRODUCT_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PRODUCT_GET"
    },
    {
      "key": "STRIPE_PUBLIC_KEY_GET",
      "type": "fn",
      "category": "stripe",
      "doc": "WHAT: Return env var by name. Use ONLY for publishable values (e.g. STRIPE_PUBLIC_KEY). Never for secret keys WHEN_TO_USE: you need to stripe public key get ARGS: none EX: [STRIPE_PUBLIC_KEY_GET][/STRIPE_PUBLIC_KEY_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_PUBLIC_KEY_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_PUBLIC_KEY_GET",
        "type": "fn",
        "what": [
          "WHAT: Return env var by name. Use ONLY for publishable values (e.g. STRIPE_PUBLIC_KEY). Never for secret keys",
          "WHEN_TO_USE: you need to stripe public key get",
          "ARGS: none",
          "EX: [STRIPE_PUBLIC_KEY_GET][/STRIPE_PUBLIC_KEY_GET]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "env var by name. Use ONLY for publishable values (e.g. STRIPE_PUBLIC_KEY). Never for secret keys",
        "example": "[STRIPE_PUBLIC_KEY_GET][/STRIPE_PUBLIC_KEY_GET]",
        "tag": "[STRIPE_PUBLIC_KEY_GET][/STRIPE_PUBLIC_KEY_GET]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_PUBLIC_KEY_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_PUBLIC_KEY_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_PUBLIC_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_PUBLIC_KEY_GET",
        "update": "PUT /api/directory/STRIPE_PUBLIC_KEY_GET",
        "patch": "PATCH /api/directory/STRIPE_PUBLIC_KEY_GET",
        "delete": "DELETE /api/directory/STRIPE_PUBLIC_KEY_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_PUBLIC_KEY_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_PUBLIC_KEY_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_PUBLIC_KEY_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_PUBLIC_KEY_GET"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_PUBLIC_KEY_GET"
    },
    {
      "key": "STRIPE_READ",
      "type": "http",
      "category": "stripe",
      "doc": "WHAT: Stripe READ-only unified entrypoint WHEN_TO_USE: any Stripe GET: balance, customers, invoices, charges, payouts, prices, products ARGS: $1=op, $2..$N=positional args EX: [STRIPE_READ]balance[/STRIPE_READ] TESTS: POSITIVE: {\"key\":\"STRIPE_READ\",\"body\":\"balance\"} → HTTP 200 livemode=true. INVERSE: {\"key\":\"STRIPE_READ\",\"body\":\"xxx\"} → ERR:target_map:unknown_op",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_READ",
        "type": "http",
        "what": [
          "WHAT: Stripe READ-only unified entrypoint",
          "WHEN_TO_USE: any Stripe GET: balance, customers, invoices, charges, payouts, prices, products",
          "ARGS: $1=op, $2..$N=positional args",
          "EX: [STRIPE_READ]balance[/STRIPE_READ]",
          "TESTS:",
          "POSITIVE: {\"key\":\"STRIPE_READ\",\"body\":\"balance\"} → HTTP 200 livemode=true.",
          "INVERSE: {\"key\":\"STRIPE_READ\",\"body\":\"xxx\"} → ERR:target_map:unknown_op"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: account, balance, balance_tx_list, charge_get, charges_list, customer_get, customer_search, customers_list, events_list, invoice_get, invoice_items_list, invoices_list, payment_links_list, payout_get, payouts_list, pi_get, pi_list, price_get, prices_list, product_get, products_list, refunds_list, subscription_get, subscriptions_list",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "account",
            "sig": "[STRIPE_READ]account[/STRIPE_READ]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "balance",
            "sig": "[STRIPE_READ]balance[/STRIPE_READ]",
            "extraArgs": 0,
            "variadic": false
          },
          {
            "op": "balance_tx_list",
            "sig": "[STRIPE_READ]balance_tx_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "charge_get",
            "sig": "[STRIPE_READ]charge_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "charges_list",
            "sig": "[STRIPE_READ]charges_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customer_get",
            "sig": "[STRIPE_READ]customer_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customer_search",
            "sig": "[STRIPE_READ]customer_search|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customers_list",
            "sig": "[STRIPE_READ]customers_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "events_list",
            "sig": "[STRIPE_READ]events_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_get",
            "sig": "[STRIPE_READ]invoice_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_items_list",
            "sig": "[STRIPE_READ]invoice_items_list|<arg1>|<arg2>[/STRIPE_READ]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "invoices_list",
            "sig": "[STRIPE_READ]invoices_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "payment_links_list",
            "sig": "[STRIPE_READ]payment_links_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "payout_get",
            "sig": "[STRIPE_READ]payout_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "payouts_list",
            "sig": "[STRIPE_READ]payouts_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "pi_get",
            "sig": "[STRIPE_READ]pi_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "pi_list",
            "sig": "[STRIPE_READ]pi_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "price_get",
            "sig": "[STRIPE_READ]price_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "prices_list",
            "sig": "[STRIPE_READ]prices_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "product_get",
            "sig": "[STRIPE_READ]product_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "products_list",
            "sig": "[STRIPE_READ]products_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "refunds_list",
            "sig": "[STRIPE_READ]refunds_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "subscription_get",
            "sig": "[STRIPE_READ]subscription_get|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "subscriptions_list",
            "sig": "[STRIPE_READ]subscriptions_list|<arg1>[/STRIPE_READ]",
            "extraArgs": 1,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[STRIPE_READ]balance[/STRIPE_READ]",
        "tag": "[STRIPE_READ]<op>|<args for that op>[/STRIPE_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_READ",
        "update": "PUT /api/directory/STRIPE_READ",
        "patch": "PATCH /api/directory/STRIPE_READ",
        "delete": "DELETE /api/directory/STRIPE_READ",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_READ"
      },
      "examples": "[\"balance\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_READ"
    },
    {
      "key": "STRIPE_REFUNDS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_REFUNDS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_REFUNDS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_REFUNDS_LIST]arg1[/STRIPE_REFUNDS_LIST]",
        "tag": "[STRIPE_REFUNDS_LIST]<arg1>[/STRIPE_REFUNDS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_REFUNDS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_REFUNDS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_REFUNDS_LIST",
        "update": "PUT /api/directory/STRIPE_REFUNDS_LIST",
        "patch": "PATCH /api/directory/STRIPE_REFUNDS_LIST",
        "delete": "DELETE /api/directory/STRIPE_REFUNDS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_REFUNDS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_REFUNDS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_REFUNDS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_REFUNDS_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_REFUNDS_LIST"
    },
    {
      "key": "STRIPE_REFUND_CREATE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_REFUND_CREATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_REFUND_CREATE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_REFUND_CREATE]arg1|arg2[/STRIPE_REFUND_CREATE]",
        "tag": "[STRIPE_REFUND_CREATE]<arg1>|<arg2>[/STRIPE_REFUND_CREATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_REFUND_CREATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_REFUND_CREATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "form:charge=$1&amount=$2",
      "edit": {
        "read": "GET /api/directory/STRIPE_REFUND_CREATE",
        "update": "PUT /api/directory/STRIPE_REFUND_CREATE",
        "patch": "PATCH /api/directory/STRIPE_REFUND_CREATE",
        "delete": "DELETE /api/directory/STRIPE_REFUND_CREATE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_REFUND_CREATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_REFUND_CREATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_REFUND_CREATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_REFUND_CREATE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_REFUND_CREATE"
    },
    {
      "key": "STRIPE_SEARCH_STRIPE_DOCUMENTATION",
      "type": "fn",
      "category": "stripe",
      "doc": "Search the Stripe documentation for the given question and language. It takes two arguments: - question (str): The user question to search an answer for in the Stripe documentation. - language (str, o MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SEARCH_STRIPE_DOCUMENTATION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SEARCH_STRIPE_DOCUMENTATION",
        "type": "fn",
        "what": [
          "Search the Stripe documentation for the given question and language. It takes two arguments: - question (str): The user question to search an answer for in the Stripe documentation. - language (str, o",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_SEARCH_STRIPE_DOCUMENTATION]arg1[/STRIPE_SEARCH_STRIPE_DOCUMENTATION]",
        "tag": "[STRIPE_SEARCH_STRIPE_DOCUMENTATION]<arg1 …>[/STRIPE_SEARCH_STRIPE_DOCUMENTATION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SEARCH_STRIPE_DOCUMENTATION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SEARCH_STRIPE_DOCUMENTATION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"search_stripe_documentation\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_SEARCH_STRIPE_DOCUMENTATION",
        "update": "PUT /api/directory/STRIPE_SEARCH_STRIPE_DOCUMENTATION",
        "patch": "PATCH /api/directory/STRIPE_SEARCH_STRIPE_DOCUMENTATION",
        "delete": "DELETE /api/directory/STRIPE_SEARCH_STRIPE_DOCUMENTATION",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SEARCH_STRIPE_DOCUMENTATION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SEARCH_STRIPE_DOCUMENTATION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SEARCH_STRIPE_DOCUMENTATION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SEARCH_STRIPE_DOCUMENTATION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SEARCH_STRIPE_DOCUMENTATION"
    },
    {
      "key": "STRIPE_SEARCH_STRIPE_RESOURCES",
      "type": "fn",
      "category": "stripe",
      "doc": "This tool can be used to search for specific Stripe resources using a custom Stripe query syntax. It is only able to search for the following resources: customers, payment_intents, charges, invoices,  MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SEARCH_STRIPE_RESOURCES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SEARCH_STRIPE_RESOURCES",
        "type": "fn",
        "what": [
          "This tool can be used to search for specific Stripe resources using a custom Stripe query syntax. It is only able to search for the following resources: customers, payment_intents, charges, invoices, ",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_SEARCH_STRIPE_RESOURCES]arg1[/STRIPE_SEARCH_STRIPE_RESOURCES]",
        "tag": "[STRIPE_SEARCH_STRIPE_RESOURCES]<arg1 …>[/STRIPE_SEARCH_STRIPE_RESOURCES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SEARCH_STRIPE_RESOURCES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SEARCH_STRIPE_RESOURCES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"search_stripe_resources\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_SEARCH_STRIPE_RESOURCES",
        "update": "PUT /api/directory/STRIPE_SEARCH_STRIPE_RESOURCES",
        "patch": "PATCH /api/directory/STRIPE_SEARCH_STRIPE_RESOURCES",
        "delete": "DELETE /api/directory/STRIPE_SEARCH_STRIPE_RESOURCES",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SEARCH_STRIPE_RESOURCES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SEARCH_STRIPE_RESOURCES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SEARCH_STRIPE_RESOURCES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SEARCH_STRIPE_RESOURCES"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SEARCH_STRIPE_RESOURCES"
    },
    {
      "key": "STRIPE_SEND_STRIPE_MCP_FEEDBACK",
      "type": "fn",
      "category": "stripe",
      "doc": "Submit feedback from user or agent about Stripe's MCP server tools. Valid: \"the search tool returned irrelevant results\", \"I wish there was a tool for X\" Invalid: Stripe API complaints, AI model issue MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SEND_STRIPE_MCP_FEEDBACK",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SEND_STRIPE_MCP_FEEDBACK",
        "type": "fn",
        "what": [
          "Submit feedback from user or agent about Stripe's MCP server tools. Valid: \"the search tool returned irrelevant results\", \"I wish there was a tool for X\" Invalid: Stripe API complaints, AI model issue",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_SEND_STRIPE_MCP_FEEDBACK]arg1[/STRIPE_SEND_STRIPE_MCP_FEEDBACK]",
        "tag": "[STRIPE_SEND_STRIPE_MCP_FEEDBACK]<arg1 …>[/STRIPE_SEND_STRIPE_MCP_FEEDBACK]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SEND_STRIPE_MCP_FEEDBACK\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SEND_STRIPE_MCP_FEEDBACK  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"send_stripe_mcp_feedback\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_SEND_STRIPE_MCP_FEEDBACK",
        "update": "PUT /api/directory/STRIPE_SEND_STRIPE_MCP_FEEDBACK",
        "patch": "PATCH /api/directory/STRIPE_SEND_STRIPE_MCP_FEEDBACK",
        "delete": "DELETE /api/directory/STRIPE_SEND_STRIPE_MCP_FEEDBACK",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SEND_STRIPE_MCP_FEEDBACK\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SEND_STRIPE_MCP_FEEDBACK\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SEND_STRIPE_MCP_FEEDBACK\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SEND_STRIPE_MCP_FEEDBACK"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SEND_STRIPE_MCP_FEEDBACK"
    },
    {
      "key": "STRIPE_SKUS_BY_NAME",
      "type": "flow",
      "category": "stripe",
      "doc": "Find cached SKU by name pattern $1 (LIKE %$1%). Returns matching products + prices.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SKUS_BY_NAME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SKUS_BY_NAME",
        "type": "flow",
        "what": [
          "Find cached SKU by name pattern $1 (LIKE %$1%). Returns matching products + prices."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "matching products + prices.",
        "example": "[STRIPE_SKUS_BY_NAME]arg1[/STRIPE_SKUS_BY_NAME]",
        "tag": "[STRIPE_SKUS_BY_NAME]<arg1>[/STRIPE_SKUS_BY_NAME]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SKUS_BY_NAME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SKUS_BY_NAME  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_SKUS_BY_NAME",
        "update": "PUT /api/directory/STRIPE_SKUS_BY_NAME",
        "patch": "PATCH /api/directory/STRIPE_SKUS_BY_NAME",
        "delete": "DELETE /api/directory/STRIPE_SKUS_BY_NAME",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SKUS_BY_NAME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SKUS_BY_NAME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SKUS_BY_NAME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SKUS_BY_NAME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SKUS_BY_NAME"
    },
    {
      "key": "STRIPE_SKUS_LIST",
      "type": "flow",
      "category": "stripe",
      "doc": "List cached SKUs (product name, brand, opaque_id, prices summary). Run STRIPE_CATALOG_SYNC first to refresh.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SKUS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SKUS_LIST",
        "type": "flow",
        "what": [
          "List cached SKUs (product name, brand, opaque_id, prices summary). Run STRIPE_CATALOG_SYNC first to refresh."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[STRIPE_SKUS_LIST][/STRIPE_SKUS_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SKUS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SKUS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_SKUS_LIST",
        "update": "PUT /api/directory/STRIPE_SKUS_LIST",
        "patch": "PATCH /api/directory/STRIPE_SKUS_LIST",
        "delete": "DELETE /api/directory/STRIPE_SKUS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SKUS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SKUS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SKUS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SKUS_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SKUS_LIST"
    },
    {
      "key": "STRIPE_STRIPE_API_DETAILS",
      "type": "fn",
      "category": "stripe",
      "doc": "Get detailed parameter information for a specific Stripe API operation. Provide the stripe_api_operation_id from stripe_api_search results to see all path, query, and body parameters with their types, MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_STRIPE_API_DETAILS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_STRIPE_API_DETAILS",
        "type": "fn",
        "what": [
          "Get detailed parameter information for a specific Stripe API operation. Provide the stripe_api_operation_id from stripe_api_search results to see all path, query, and body parameters with their types,",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_STRIPE_API_DETAILS]arg1[/STRIPE_STRIPE_API_DETAILS]",
        "tag": "[STRIPE_STRIPE_API_DETAILS]<arg1 …>[/STRIPE_STRIPE_API_DETAILS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_STRIPE_API_DETAILS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_STRIPE_API_DETAILS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"stripe_api_details\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_STRIPE_API_DETAILS",
        "update": "PUT /api/directory/STRIPE_STRIPE_API_DETAILS",
        "patch": "PATCH /api/directory/STRIPE_STRIPE_API_DETAILS",
        "delete": "DELETE /api/directory/STRIPE_STRIPE_API_DETAILS",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_STRIPE_API_DETAILS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_STRIPE_API_DETAILS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_STRIPE_API_DETAILS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_STRIPE_API_DETAILS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_STRIPE_API_DETAILS"
    },
    {
      "key": "STRIPE_STRIPE_API_READ",
      "type": "fn",
      "category": "stripe",
      "doc": "Read data from any Stripe API GET operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with nested object field MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_STRIPE_API_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_STRIPE_API_READ",
        "type": "fn",
        "what": [
          "Read data from any Stripe API GET operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with nested object field",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_STRIPE_API_READ]arg1[/STRIPE_STRIPE_API_READ]",
        "tag": "[STRIPE_STRIPE_API_READ]<arg1 …>[/STRIPE_STRIPE_API_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_STRIPE_API_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_STRIPE_API_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"stripe_api_read\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_STRIPE_API_READ",
        "update": "PUT /api/directory/STRIPE_STRIPE_API_READ",
        "patch": "PATCH /api/directory/STRIPE_STRIPE_API_READ",
        "delete": "DELETE /api/directory/STRIPE_STRIPE_API_READ",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_STRIPE_API_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_STRIPE_API_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_STRIPE_API_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_STRIPE_API_READ"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_STRIPE_API_READ"
    },
    {
      "key": "STRIPE_STRIPE_API_SEARCH",
      "type": "fn",
      "category": "stripe",
      "doc": "Search for Stripe API operations by keyword. Returns matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum  MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_STRIPE_API_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_STRIPE_API_SEARCH",
        "type": "fn",
        "what": [
          "Search for Stripe API operations by keyword. Returns matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum ",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "matching operations with their HTTP method, path, summary, and top-level parameter names with types. Does not include parameter descriptions, enum",
        "example": "[STRIPE_STRIPE_API_SEARCH]arg1[/STRIPE_STRIPE_API_SEARCH]",
        "tag": "[STRIPE_STRIPE_API_SEARCH]<arg1 …>[/STRIPE_STRIPE_API_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_STRIPE_API_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_STRIPE_API_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"stripe_api_search\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_STRIPE_API_SEARCH",
        "update": "PUT /api/directory/STRIPE_STRIPE_API_SEARCH",
        "patch": "PATCH /api/directory/STRIPE_STRIPE_API_SEARCH",
        "delete": "DELETE /api/directory/STRIPE_STRIPE_API_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_STRIPE_API_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_STRIPE_API_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_STRIPE_API_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_STRIPE_API_SEARCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_STRIPE_API_SEARCH"
    },
    {
      "key": "STRIPE_STRIPE_API_WRITE",
      "type": "fn",
      "category": "stripe",
      "doc": "Write data via any Stripe API POST/PATCH/PUT/DELETE operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with n MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_STRIPE_API_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_STRIPE_API_WRITE",
        "type": "fn",
        "what": [
          "Write data via any Stripe API POST/PATCH/PUT/DELETE operation: 1. Use stripe_api_search to find the operation ID. 2. Use stripe_api_details to understand its parameters (required for operations with n",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_STRIPE_API_WRITE]arg1[/STRIPE_STRIPE_API_WRITE]",
        "tag": "[STRIPE_STRIPE_API_WRITE]<arg1 …>[/STRIPE_STRIPE_API_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_STRIPE_API_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_STRIPE_API_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"stripe_api_write\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_STRIPE_API_WRITE",
        "update": "PUT /api/directory/STRIPE_STRIPE_API_WRITE",
        "patch": "PATCH /api/directory/STRIPE_STRIPE_API_WRITE",
        "delete": "DELETE /api/directory/STRIPE_STRIPE_API_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_STRIPE_API_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_STRIPE_API_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_STRIPE_API_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_STRIPE_API_WRITE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_STRIPE_API_WRITE"
    },
    {
      "key": "STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
      "type": "fn",
      "category": "stripe",
      "doc": "Stripe payment integration planner. Use this tool to help users accept payments, sell products online, set up billing, or build any Stripe integration. Call this BEFORE writing code when the user want MCP: https://mcp.stripe.com/",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
        "type": "fn",
        "what": [
          "Stripe payment integration planner. Use this tool to help users accept payments, sell products online, set up billing, or build any Stripe integration. Call this BEFORE writing code when the user want",
          "MCP: https://mcp.stripe.com/"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_STRIPE_IMPLEMENTATION_PLANNER]arg1[/STRIPE_STRIPE_IMPLEMENTATION_PLANNER]",
        "tag": "[STRIPE_STRIPE_IMPLEMENTATION_PLANNER]<arg1 …>[/STRIPE_STRIPE_IMPLEMENTATION_PLANNER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_STRIPE_IMPLEMENTATION_PLANNER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_STRIPE_IMPLEMENTATION_PLANNER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"https://mcp.stripe.com/\",\"stripe_implementation_planner\",\"$1+\",\"STRIPE_SECRET_KEY\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
        "update": "PUT /api/directory/STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
        "patch": "PATCH /api/directory/STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
        "delete": "DELETE /api/directory/STRIPE_STRIPE_IMPLEMENTATION_PLANNER",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_STRIPE_IMPLEMENTATION_PLANNER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_STRIPE_IMPLEMENTATION_PLANNER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_STRIPE_IMPLEMENTATION_PLANNER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_STRIPE_IMPLEMENTATION_PLANNER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_STRIPE_IMPLEMENTATION_PLANNER"
    },
    {
      "key": "STRIPE_SUBSCRIPTION",
      "type": "fn",
      "category": "objects",
      "doc": "WHAT: The stripe subscription as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF subscription.<field> …). Dispatching it describes the object, it never calls the provider. WHEN_TO_USE: a model or flow needs to know how to reach a stripe subscription, or the flow runner resolves `subscription.<path>`. ARGS: none EX: [STRIPE_SUBSCRIPTION][/STRIPE_SUBSCRIPTION]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SUBSCRIPTION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SUBSCRIPTION",
        "type": "fn",
        "what": [
          "WHAT: The stripe subscription as one object: which rows read, list, create or change it, how its ids look, which fields a flow predicate may read (IF subscription.<field> …). Dispatching it describes the object, it never calls the provider.",
          "WHEN_TO_USE: a model or flow needs to know how to reach a stripe subscription, or the flow runner resolves `subscription.<path>`.",
          "ARGS: none",
          "EX: [STRIPE_SUBSCRIPTION][/STRIPE_SUBSCRIPTION]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[STRIPE_SUBSCRIPTION][/STRIPE_SUBSCRIPTION]",
        "tag": "[STRIPE_SUBSCRIPTION][/STRIPE_SUBSCRIPTION]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SUBSCRIPTION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SUBSCRIPTION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"STRIPE_SUBSCRIPTION\"]",
      "edit": {
        "read": "GET /api/directory/STRIPE_SUBSCRIPTION",
        "update": "PUT /api/directory/STRIPE_SUBSCRIPTION",
        "patch": "PATCH /api/directory/STRIPE_SUBSCRIPTION",
        "delete": "DELETE /api/directory/STRIPE_SUBSCRIPTION",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SUBSCRIPTION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SUBSCRIPTION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SUBSCRIPTION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SUBSCRIPTION"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SUBSCRIPTION"
    },
    {
      "key": "STRIPE_SUBSCRIPTIONS_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SUBSCRIPTIONS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SUBSCRIPTIONS_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_SUBSCRIPTIONS_LIST]arg1[/STRIPE_SUBSCRIPTIONS_LIST]",
        "tag": "[STRIPE_SUBSCRIPTIONS_LIST]<arg1>[/STRIPE_SUBSCRIPTIONS_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SUBSCRIPTIONS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SUBSCRIPTIONS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_SUBSCRIPTIONS_LIST",
        "update": "PUT /api/directory/STRIPE_SUBSCRIPTIONS_LIST",
        "patch": "PATCH /api/directory/STRIPE_SUBSCRIPTIONS_LIST",
        "delete": "DELETE /api/directory/STRIPE_SUBSCRIPTIONS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SUBSCRIPTIONS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SUBSCRIPTIONS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SUBSCRIPTIONS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SUBSCRIPTIONS_LIST"
      },
      "examples": "[\"10\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SUBSCRIPTIONS_LIST"
    },
    {
      "key": "STRIPE_SUBSCRIPTION_CANCEL",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SUBSCRIPTION_CANCEL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SUBSCRIPTION_CANCEL",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_SUBSCRIPTION_CANCEL]arg1[/STRIPE_SUBSCRIPTION_CANCEL]",
        "tag": "[STRIPE_SUBSCRIPTION_CANCEL]<arg1>[/STRIPE_SUBSCRIPTION_CANCEL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SUBSCRIPTION_CANCEL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SUBSCRIPTION_CANCEL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_SUBSCRIPTION_CANCEL",
        "update": "PUT /api/directory/STRIPE_SUBSCRIPTION_CANCEL",
        "patch": "PATCH /api/directory/STRIPE_SUBSCRIPTION_CANCEL",
        "delete": "DELETE /api/directory/STRIPE_SUBSCRIPTION_CANCEL",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SUBSCRIPTION_CANCEL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SUBSCRIPTION_CANCEL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SUBSCRIPTION_CANCEL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SUBSCRIPTION_CANCEL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SUBSCRIPTION_CANCEL"
    },
    {
      "key": "STRIPE_SUBSCRIPTION_GET",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_SUBSCRIPTION_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_SUBSCRIPTION_GET",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[STRIPE_SUBSCRIPTION_GET]arg1[/STRIPE_SUBSCRIPTION_GET]",
        "tag": "[STRIPE_SUBSCRIPTION_GET]<arg1>[/STRIPE_SUBSCRIPTION_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_SUBSCRIPTION_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_SUBSCRIPTION_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_SUBSCRIPTION_GET",
        "update": "PUT /api/directory/STRIPE_SUBSCRIPTION_GET",
        "patch": "PATCH /api/directory/STRIPE_SUBSCRIPTION_GET",
        "delete": "DELETE /api/directory/STRIPE_SUBSCRIPTION_GET",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_SUBSCRIPTION_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_SUBSCRIPTION_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_SUBSCRIPTION_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_SUBSCRIPTION_GET"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_SUBSCRIPTION_GET"
    },
    {
      "key": "STRIPE_WRITE",
      "type": "http",
      "category": "stripe",
      "doc": "WHAT: Stripe WRITE unified entrypoint — GATED WHEN_TO_USE: only after the owner says \"go ahead and <verb>\". POST/PATCH/DELETE on Stripe ARGS: $1=op, $2..$N=positional args EX: [STRIPE_WRITE]invoice_void|in_xyz[/STRIPE_WRITE] TESTS: INVERSE: {\"key\":\"STRIPE_WRITE\",\"body\":\"xxx\"} → ERR:target_map:unknown_op",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "STRIPE_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "STRIPE_WRITE",
        "type": "http",
        "what": [
          "WHAT: Stripe WRITE unified entrypoint — GATED",
          "WHEN_TO_USE: only after the owner says \"go ahead and <verb>\". POST/PATCH/DELETE on Stripe",
          "ARGS: $1=op, $2..$N=positional args",
          "EX: [STRIPE_WRITE]invoice_void|in_xyz[/STRIPE_WRITE]",
          "TESTS:",
          "INVERSE: {\"key\":\"STRIPE_WRITE\",\"body\":\"xxx\"} → ERR:target_map:unknown_op"
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: customer_create, customer_delete, customer_update, invoice_create, invoice_delete, invoice_finalize, invoice_item_create, invoice_item_delete, invoice_mark_uncollectible, invoice_pay, invoice_send, invoice_update, invoice_void, payment_link_create, pi_create, price_create, product_create, refund_create, subscription_cancel",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "customer_create",
            "sig": "[STRIPE_WRITE]customer_create|<arg1>|<arg2>|<arg3>[/STRIPE_WRITE]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "customer_delete",
            "sig": "[STRIPE_WRITE]customer_delete|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "customer_update",
            "sig": "[STRIPE_WRITE]customer_update|<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_WRITE]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "invoice_create",
            "sig": "[STRIPE_WRITE]invoice_create|<arg1>|<arg2>|<arg3>[/STRIPE_WRITE]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "invoice_delete",
            "sig": "[STRIPE_WRITE]invoice_delete|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_finalize",
            "sig": "[STRIPE_WRITE]invoice_finalize|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_item_create",
            "sig": "[STRIPE_WRITE]invoice_item_create|<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_WRITE]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "invoice_item_delete",
            "sig": "[STRIPE_WRITE]invoice_item_delete|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_mark_uncollectible",
            "sig": "[STRIPE_WRITE]invoice_mark_uncollectible|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_pay",
            "sig": "[STRIPE_WRITE]invoice_pay|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_send",
            "sig": "[STRIPE_WRITE]invoice_send|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "invoice_update",
            "sig": "[STRIPE_WRITE]invoice_update|<arg1>|<arg2>[/STRIPE_WRITE]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "invoice_void",
            "sig": "[STRIPE_WRITE]invoice_void|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "payment_link_create",
            "sig": "[STRIPE_WRITE]payment_link_create|<arg1>|<arg2>[/STRIPE_WRITE]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "pi_create",
            "sig": "[STRIPE_WRITE]pi_create|<arg1>|<arg2>|<arg3>|<arg4>[/STRIPE_WRITE]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "price_create",
            "sig": "[STRIPE_WRITE]price_create|<arg1>|<arg2>|<arg3>[/STRIPE_WRITE]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "product_create",
            "sig": "[STRIPE_WRITE]product_create|<arg1>|<arg2>[/STRIPE_WRITE]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "refund_create",
            "sig": "[STRIPE_WRITE]refund_create|<arg1>|<arg2>[/STRIPE_WRITE]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "subscription_cancel",
            "sig": "[STRIPE_WRITE]subscription_cancel|<arg1>[/STRIPE_WRITE]",
            "extraArgs": 1,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP <status>: <response body> from the matched URL.",
        "example": "[STRIPE_WRITE]invoice_void|in_xyz[/STRIPE_WRITE]",
        "tag": "[STRIPE_WRITE]<op>|<args for that op>[/STRIPE_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"STRIPE_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/STRIPE_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/STRIPE_WRITE",
        "update": "PUT /api/directory/STRIPE_WRITE",
        "patch": "PATCH /api/directory/STRIPE_WRITE",
        "delete": "DELETE /api/directory/STRIPE_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"STRIPE_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"STRIPE_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"STRIPE_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/STRIPE_WRITE"
      },
      "examples": "[\"invoice_void|in_xyz\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=STRIPE_WRITE"
    },
    {
      "key": "SUBJECT_LINKS",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: The links of a person or an object: give a profile id (prf_…) to see everything linked to that person, or an object ref (receipt://…, external://…) to see who it belongs to. WHEN_TO_USE: \"what do we know about this person\", \"whose receipt is this\". ARGS: $1 = profile id or object ref EX: [SUBJECT_LINKS]prf_48a2284fd3f13a212f[/SUBJECT_LINKS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SUBJECT_LINKS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SUBJECT_LINKS",
        "type": "fn",
        "what": [
          "WHAT: The links of a person or an object: give a profile id (prf_…) to see everything linked to that person, or an object ref (receipt://…, external://…) to see who it belongs to.",
          "WHEN_TO_USE: \"what do we know about this person\", \"whose receipt is this\".",
          "ARGS: $1 = profile id or object ref",
          "EX: [SUBJECT_LINKS]prf_48a2284fd3f13a212f[/SUBJECT_LINKS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_48a2284fd3f13a212f",
            "desc": "profile id or object ref",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SUBJECT_LINKS]prf_48a2284fd3f13a212f[/SUBJECT_LINKS]",
        "tag": "[SUBJECT_LINKS]<prf_48a2284fd3f13a212f>[/SUBJECT_LINKS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SUBJECT_LINKS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SUBJECT_LINKS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SUBJECT_LINKS",
        "update": "PUT /api/directory/SUBJECT_LINKS",
        "patch": "PATCH /api/directory/SUBJECT_LINKS",
        "delete": "DELETE /api/directory/SUBJECT_LINKS",
        "invoke": "POST /api/dispatch {\"key\":\"SUBJECT_LINKS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SUBJECT_LINKS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SUBJECT_LINKS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SUBJECT_LINKS"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SUBJECT_LINKS"
    },
    {
      "key": "SUBJECT_LINK_ADD",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: Link a person (traffic profile) to an object: receipt://inv_…, work://WT-…, external://stripe/customer/cus_…, sheet://…, article://… with a relation (created_by, acted_on, attributed_to, came_from, converted_to, member_of, observed_on, assigned_to, belongs_to). The identity spine reaching the objects. WHEN_TO_USE: \"this customer is that Stripe customer\", attributing a receipt or a task to a person. ARGS: $1 = profile id (prf_…), $2 = object ref, $3 = relation, $4 = evidence source (owner_assertion | provider_match | capability_context | cookie, default owner_assertion) EX: [SUBJECT_LINK_ADD]prf_48a2284fd3f13a212f|external://stripe/customer/cus_123|belongs_to|owner_assertion[/SUBJECT_LINK_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SUBJECT_LINK_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SUBJECT_LINK_ADD",
        "type": "fn",
        "what": [
          "WHAT: Link a person (traffic profile) to an object: receipt://inv_…, work://WT-…, external://stripe/customer/cus_…, sheet://…, article://… with a relation (created_by, acted_on, attributed_to, came_from, converted_to, member_of, observed_on, assigned_to, belongs_to). The identity spine reaching the objects.",
          "WHEN_TO_USE: \"this customer is that Stripe customer\", attributing a receipt or a task to a person.",
          "ARGS: $1 = profile id (prf_…), $2 = object ref, $3 = relation, $4 = evidence source (owner_assertion | provider_match | capability_context | cookie, default owner_assertion)",
          "EX: [SUBJECT_LINK_ADD]prf_48a2284fd3f13a212f|external://stripe/customer/cus_123|belongs_to|owner_assertion[/SUBJECT_LINK_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_48a2284fd3f13a212f",
            "desc": "profile id (prf_…), $2 = object ref, $3 = relation, $4 = evidence source (owner_assertion | provider_match | capability_context | cookie, default owner_assertion)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "external://stripe/customer/cus_123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "belongs_to",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "owner_assertion",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SUBJECT_LINK_ADD]prf_48a2284fd3f13a212f|external://stripe/customer/cus_123|belongs_to|owner_assertion[/SUBJECT_LINK_ADD]",
        "tag": "[SUBJECT_LINK_ADD]<prf_48a2284fd3f13a212f>|<external://stripe/customer/cus_123>|<belongs_to>|<owner_assertion>[/SUBJECT_LINK_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SUBJECT_LINK_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SUBJECT_LINK_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/SUBJECT_LINK_ADD",
        "update": "PUT /api/directory/SUBJECT_LINK_ADD",
        "patch": "PATCH /api/directory/SUBJECT_LINK_ADD",
        "delete": "DELETE /api/directory/SUBJECT_LINK_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"SUBJECT_LINK_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SUBJECT_LINK_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SUBJECT_LINK_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SUBJECT_LINK_ADD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SUBJECT_LINK_ADD"
    },
    {
      "key": "SUBSCRIBE_ADD",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: Subscribe to events: every invocation or ledger row matching a pattern is delivered out, signed (Standard Webhooks headers), to a URL or handed to a capability. The signing secret is shown once. WHEN_TO_USE: \"tell my server whenever X happens\", events out to another system, a fan-out the census needs. ARGS: $1 = pattern (invocation:STRIPE_* | event:blooio:*:* | * ), $2 = destination (https://… URL, or KEY to dispatch with the event as its body), $3 = tenant id (optional) EX: [SUBSCRIBE_ADD]invocation:STRIPE_*|https://example.com/hooks/misc[/SUBSCRIBE_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SUBSCRIBE_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SUBSCRIBE_ADD",
        "type": "fn",
        "what": [
          "WHAT: Subscribe to events: every invocation or ledger row matching a pattern is delivered out, signed (Standard Webhooks headers), to a URL or handed to a capability. The signing secret is shown once.",
          "WHEN_TO_USE: \"tell my server whenever X happens\", events out to another system, a fan-out the census needs.",
          "ARGS: $1 = pattern (invocation:STRIPE_* | event:blooio:*:* | * ), $2 = destination (https://… URL, or KEY to dispatch with the event as its body), $3 = tenant id (optional)",
          "EX: [SUBSCRIBE_ADD]invocation:STRIPE_*|https://example.com/hooks/misc[/SUBSCRIBE_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "invocation:STRIPE_*",
            "desc": "pattern (invocation:STRIPE_* | event:blooio:*:* | * ), $2 = destination (https://… URL, or KEY to dispatch with the event as its body), $3 = tenant id (optional)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "https://example.com/hooks/misc",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SUBSCRIBE_ADD]invocation:STRIPE_*|https://example.com/hooks/misc[/SUBSCRIBE_ADD]",
        "tag": "[SUBSCRIBE_ADD]<invocation:STRIPE_*>|<https://example.com/hooks/misc>|<arg3>[/SUBSCRIBE_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SUBSCRIBE_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SUBSCRIBE_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/SUBSCRIBE_ADD",
        "update": "PUT /api/directory/SUBSCRIBE_ADD",
        "patch": "PATCH /api/directory/SUBSCRIBE_ADD",
        "delete": "DELETE /api/directory/SUBSCRIBE_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"SUBSCRIBE_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SUBSCRIBE_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SUBSCRIBE_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SUBSCRIBE_ADD"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SUBSCRIBE_ADD"
    },
    {
      "key": "SUBSCRIBE_DELETE",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: End a subscription by id (state becomes revoked, the row stays). WHEN_TO_USE: \"stop sending events to …\". ARGS: $1 = subscription id (sub_…) EX: [SUBSCRIBE_DELETE]sub_abc123[/SUBSCRIBE_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SUBSCRIBE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SUBSCRIBE_DELETE",
        "type": "fn",
        "what": [
          "WHAT: End a subscription by id (state becomes revoked, the row stays).",
          "WHEN_TO_USE: \"stop sending events to …\".",
          "ARGS: $1 = subscription id (sub_…)",
          "EX: [SUBSCRIBE_DELETE]sub_abc123[/SUBSCRIBE_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sub_abc123",
            "desc": "subscription id (sub_…)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SUBSCRIBE_DELETE]sub_abc123[/SUBSCRIBE_DELETE]",
        "tag": "[SUBSCRIBE_DELETE]<sub_abc123>[/SUBSCRIBE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SUBSCRIBE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SUBSCRIBE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/SUBSCRIBE_DELETE",
        "update": "PUT /api/directory/SUBSCRIBE_DELETE",
        "patch": "PATCH /api/directory/SUBSCRIBE_DELETE",
        "delete": "DELETE /api/directory/SUBSCRIBE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"SUBSCRIBE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SUBSCRIBE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SUBSCRIBE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SUBSCRIBE_DELETE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SUBSCRIBE_DELETE"
    },
    {
      "key": "SUBSCRIBE_LIST",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: List subscriptions (events out): id, pattern, destination kind, state, deliveries, failures. WHEN_TO_USE: \"who is subscribed\", auditing fan-out. ARGS: none EX: [SUBSCRIBE_LIST][/SUBSCRIBE_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SUBSCRIBE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SUBSCRIBE_LIST",
        "type": "fn",
        "what": [
          "WHAT: List subscriptions (events out): id, pattern, destination kind, state, deliveries, failures.",
          "WHEN_TO_USE: \"who is subscribed\", auditing fan-out.",
          "ARGS: none",
          "EX: [SUBSCRIBE_LIST][/SUBSCRIBE_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[SUBSCRIBE_LIST][/SUBSCRIBE_LIST]",
        "tag": "[SUBSCRIBE_LIST][/SUBSCRIBE_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SUBSCRIBE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SUBSCRIBE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/SUBSCRIBE_LIST",
        "update": "PUT /api/directory/SUBSCRIBE_LIST",
        "patch": "PATCH /api/directory/SUBSCRIBE_LIST",
        "delete": "DELETE /api/directory/SUBSCRIBE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"SUBSCRIBE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SUBSCRIBE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SUBSCRIBE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SUBSCRIBE_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=SUBSCRIBE_LIST"
    },
    {
      "key": "SURETY_RECORD",
      "type": "http",
      "category": "governance",
      "doc": "WHAT: Compute the disclosed independence-weighted support/challenge profile for one decision. Surety measures corroboration, not truth, legality or consensus authority. ARGS: JSON {decision_id}. TESTS: Count unique providers separately from raw reviews; disclose every weight and discount; preserve challenges and prior-answer visibility.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "SURETY_RECORD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "SURETY_RECORD",
        "type": "http",
        "what": [
          "WHAT: Compute the disclosed independence-weighted support/challenge profile for one decision. Surety measures corroboration, not truth, legality or consensus authority.",
          "ARGS: JSON {decision_id}.",
          "TESTS: Count unique providers separately from raw reviews; disclose every weight and discount; preserve challenges and prior-answer visibility."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[SURETY_RECORD]arg1[/SURETY_RECORD]",
        "tag": "[SURETY_RECORD]<arg1 …>[/SURETY_RECORD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"SURETY_RECORD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/SURETY_RECORD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/SURETY_RECORD",
        "update": "PUT /api/directory/SURETY_RECORD",
        "patch": "PATCH /api/directory/SURETY_RECORD",
        "delete": "DELETE /api/directory/SURETY_RECORD",
        "invoke": "POST /api/dispatch {\"key\":\"SURETY_RECORD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"SURETY_RECORD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"SURETY_RECORD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/SURETY_RECORD"
      },
      "examples": "[]",
      "test": "GET https://miscsubjects.com/api/manual?test=SURETY_RECORD"
    },
    {
      "key": "TAP_GO_MODEL_PROFILES",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Read the five owner-editable model-specific content slots used by token Tap & Go: ChatGPT, Claude, Grok, Gemini, and Kimi. The model selector belongs to the token DROP, not the build audit. ARGS: None for read. Owner edits one profile with PUT /api/tap-go-profiles {model,content}. EX: [TAP_GO_MODEL_PROFILES][/TAP_GO_MODEL_PROFILES] TESTS: Returns tap-go-model-profiles/1.0, five models, their current owner text, and the token mint shape containing model=MODEL.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TAP_GO_MODEL_PROFILES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TAP_GO_MODEL_PROFILES",
        "type": "http",
        "what": [
          "WHAT: Read the five owner-editable model-specific content slots used by token Tap & Go: ChatGPT, Claude, Grok, Gemini, and Kimi. The model selector belongs to the token DROP, not the build audit.",
          "ARGS: None for read. Owner edits one profile with PUT /api/tap-go-profiles {model,content}.",
          "EX: [TAP_GO_MODEL_PROFILES][/TAP_GO_MODEL_PROFILES]",
          "TESTS: Returns tap-go-model-profiles/1.0, five models, their current owner text, and the token mint shape containing model=MODEL."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "tap-go-model-profiles/1.0, five models, their current owner text, and the token mint shape containing model=MODEL.",
        "example": "[TAP_GO_MODEL_PROFILES][/TAP_GO_MODEL_PROFILES]",
        "tag": "[TAP_GO_MODEL_PROFILES][/TAP_GO_MODEL_PROFILES]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TAP_GO_MODEL_PROFILES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TAP_GO_MODEL_PROFILES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TAP_GO_MODEL_PROFILES",
        "update": "PUT /api/directory/TAP_GO_MODEL_PROFILES",
        "patch": "PATCH /api/directory/TAP_GO_MODEL_PROFILES",
        "delete": "DELETE /api/directory/TAP_GO_MODEL_PROFILES",
        "invoke": "POST /api/dispatch {\"key\":\"TAP_GO_MODEL_PROFILES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TAP_GO_MODEL_PROFILES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TAP_GO_MODEL_PROFILES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TAP_GO_MODEL_PROFILES"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TAP_GO_MODEL_PROFILES"
    },
    {
      "key": "TASKS_ADD",
      "type": "flow",
      "category": "tasks",
      "doc": "WHAT: Add a new task to the queue. $1=title/ask, $2=description/context, $3=priority(P0/P1/P2/P3), $4=assigned_to_agent/role. Stores a structured JSON job so the cron runner can execute it. WHEN_TO_USE: queue work for the build to execute later (writer jobs, audits, fixes). ARGS: $1=title/ask, $2=description, $3=priority, $4=role/agent EX: [TASKS_ADD]write article about BPC-157|evidence-graded review|P2|writer[/TASKS_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASKS_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASKS_ADD",
        "type": "flow",
        "what": [
          "WHAT: Add a new task to the queue. $1=title/ask, $2=description/context, $3=priority(P0/P1/P2/P3), $4=assigned_to_agent/role. Stores a structured JSON job so the cron runner can execute it.",
          "WHEN_TO_USE: queue work for the build to execute later (writer jobs, audits, fixes).",
          "ARGS: $1=title/ask, $2=description, $3=priority, $4=role/agent",
          "EX: [TASKS_ADD]write article about BPC-157|evidence-graded review|P2|writer[/TASKS_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "write article about BPC-157",
            "desc": "title/ask, $2=description, $3=priority, $4=role/agent",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "evidence-graded review",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "P2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "writer",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[TASKS_ADD]write article about BPC-157|evidence-graded review|P2|writer[/TASKS_ADD]",
        "tag": "[TASKS_ADD]<write article about BPC-157>|<evidence-graded review>|<P2>|<writer>[/TASKS_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASKS_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASKS_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TASKS_ADD",
        "update": "PUT /api/directory/TASKS_ADD",
        "patch": "PATCH /api/directory/TASKS_ADD",
        "delete": "DELETE /api/directory/TASKS_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"TASKS_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASKS_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASKS_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASKS_ADD"
      },
      "examples": "[\"diag tasks_add probe\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASKS_ADD"
    },
    {
      "key": "TASKS_ASSIGN",
      "type": "flow",
      "category": "tasks",
      "doc": "Assign a task to an agent. $1=task_id, $2=agent_name. Updates the source field to indicate assignment.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASKS_ASSIGN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASKS_ASSIGN",
        "type": "flow",
        "what": [
          "Assign a task to an agent. $1=task_id, $2=agent_name. Updates the source field to indicate assignment."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "task_id, $2=agent_name. Updates the source field to indicate assignment.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[TASKS_ASSIGN]arg1|arg2[/TASKS_ASSIGN]",
        "tag": "[TASKS_ASSIGN]<arg1>|<arg2>[/TASKS_ASSIGN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASKS_ASSIGN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASKS_ASSIGN  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TASKS_ASSIGN",
        "update": "PUT /api/directory/TASKS_ASSIGN",
        "patch": "PATCH /api/directory/TASKS_ASSIGN",
        "delete": "DELETE /api/directory/TASKS_ASSIGN",
        "invoke": "POST /api/dispatch {\"key\":\"TASKS_ASSIGN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASKS_ASSIGN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASKS_ASSIGN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASKS_ASSIGN"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TASKS_ASSIGN"
    },
    {
      "key": "TASKS_LIST",
      "type": "flow",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASKS_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASKS_LIST",
        "type": "flow",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": null,
        "tag": "[TASKS_LIST][/TASKS_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASKS_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASKS_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TASKS_LIST",
        "update": "PUT /api/directory/TASKS_LIST",
        "patch": "PATCH /api/directory/TASKS_LIST",
        "delete": "DELETE /api/directory/TASKS_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"TASKS_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASKS_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASKS_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASKS_LIST"
      },
      "examples": "[\"open|20\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASKS_LIST"
    },
    {
      "key": "TASKS_SYNC_GOOGLE",
      "type": "fn",
      "category": "tasks",
      "doc": "WHAT: Sync all unsynced open D1 tasks to Google Tasks. Call when asked to sync tasks to Google Tasks or when the admin Tasks tab shows unsynced items.\\n# WHEN_TO_USE: user says sync tasks to Google Tasks, or admin page shows unsynced count.\\n# ARGS: none.\\n# EX: [TASKS_SYNC_GOOGLE][/TASKS_SYNC_GOOGLE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASKS_SYNC_GOOGLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASKS_SYNC_GOOGLE",
        "type": "fn",
        "what": [
          "WHAT: Sync all unsynced open D1 tasks to Google Tasks. Call when asked to sync tasks to Google Tasks or when the admin Tasks tab shows unsynced items.\\n# WHEN_TO_USE: user says sync tasks to Google Tasks, or admin page shows unsynced count.\\n# ARGS: none.\\n# EX: [TASKS_SYNC_GOOGLE][/TASKS_SYNC_GOOGLE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[TASKS_SYNC_GOOGLE][/TASKS_SYNC_GOOGLE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASKS_SYNC_GOOGLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASKS_SYNC_GOOGLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TASKS_SYNC_GOOGLE",
        "update": "PUT /api/directory/TASKS_SYNC_GOOGLE",
        "patch": "PATCH /api/directory/TASKS_SYNC_GOOGLE",
        "delete": "DELETE /api/directory/TASKS_SYNC_GOOGLE",
        "invoke": "POST /api/dispatch {\"key\":\"TASKS_SYNC_GOOGLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASKS_SYNC_GOOGLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASKS_SYNC_GOOGLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASKS_SYNC_GOOGLE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASKS_SYNC_GOOGLE"
    },
    {
      "key": "TASK_ADD",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Add a task to the build queue (tasks table). Plain text is fine — it is stored and shown as-is. WHEN_TO_USE: the owner says remember to / add a task / put X on the list / follow up on Y. ARGS: $1 = the task in plain words. Pipes are allowed. EX: [TASK_ADD]call the peptide supplier back about white-label pricing[/TASK_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_ADD",
        "type": "fn",
        "what": [
          "WHAT: Add a task to the build queue (tasks table). Plain text is fine — it is stored and shown as-is.",
          "WHEN_TO_USE: the owner says remember to / add a task / put X on the list / follow up on Y.",
          "ARGS: $1 = the task in plain words. Pipes are allowed.",
          "EX: [TASK_ADD]call the peptide supplier back about white-label pricing[/TASK_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "call the peptide supplier back about white-label pricing",
            "desc": "the task in plain words. Pipes are allowed.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_ADD]call the peptide supplier back about white-label pricing[/TASK_ADD]",
        "tag": "[TASK_ADD]<call the peptide supplier back about white-label pricing …>[/TASK_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/TASK_ADD",
        "update": "PUT /api/directory/TASK_ADD",
        "patch": "PATCH /api/directory/TASK_ADD",
        "delete": "DELETE /api/directory/TASK_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_ADD"
      },
      "examples": "[\"Reconcile /v1/models catalog against actual AI Gateway billed pricing and log any mismatches as flagged ledger events.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_ADD"
    },
    {
      "key": "TASK_COMPLETE",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Mark a task done (removes it from the open backlog). Same as DONETASK. WHEN_TO_USE: a task is finished. ARGS: $1 = task_id (number), $2 = optional short result note. EX: [TASK_COMPLETE]448|called them, pricing sent[/TASK_COMPLETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_COMPLETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_COMPLETE",
        "type": "fn",
        "what": [
          "WHAT: Mark a task done (removes it from the open backlog). Same as DONETASK.",
          "WHEN_TO_USE: a task is finished.",
          "ARGS: $1 = task_id (number), $2 = optional short result note.",
          "EX: [TASK_COMPLETE]448|called them, pricing sent[/TASK_COMPLETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "448",
            "desc": "task_id (number), $2 = optional short result note.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "called them, pricing sent",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_COMPLETE]448|called them, pricing sent[/TASK_COMPLETE]",
        "tag": "[TASK_COMPLETE]<448>|<called them, pricing sent>[/TASK_COMPLETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_COMPLETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_COMPLETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/TASK_COMPLETE",
        "update": "PUT /api/directory/TASK_COMPLETE",
        "patch": "PATCH /api/directory/TASK_COMPLETE",
        "delete": "DELETE /api/directory/TASK_COMPLETE",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_COMPLETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_COMPLETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_COMPLETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_COMPLETE"
      },
      "examples": "[\"6084|Created schema.sql with idempotent agents table and updated scripts/ship.mjs to run it before incremental migrations. Committed 6d956ae8d.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_COMPLETE"
    },
    {
      "key": "TASK_DELETE",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Delete a task for good. Any child tasks are lifted to top level so nothing is hidden. WHEN_TO_USE: a task is junk / a duplicate / should never run. ARGS: $1 = task_id. EX: [TASK_DELETE]448[/TASK_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_DELETE",
        "type": "fn",
        "what": [
          "WHAT: Delete a task for good. Any child tasks are lifted to top level so nothing is hidden.",
          "WHEN_TO_USE: a task is junk / a duplicate / should never run.",
          "ARGS: $1 = task_id.",
          "EX: [TASK_DELETE]448[/TASK_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "448",
            "desc": "task_id.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_DELETE]448[/TASK_DELETE]",
        "tag": "[TASK_DELETE]<448>[/TASK_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TASK_DELETE",
        "update": "PUT /api/directory/TASK_DELETE",
        "patch": "PATCH /api/directory/TASK_DELETE",
        "delete": "DELETE /api/directory/TASK_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_DELETE"
      },
      "examples": "[\"448\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_DELETE"
    },
    {
      "key": "TASK_EDIT",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Change a task's text and/or status in place. WHEN_TO_USE: reword a task, or move it to open/done/cancelled without deleting it. ARGS: $1 = task_id, $2 = new text (no pipes), $3 = optional new status (open|done|cancelled). EX: [TASK_EDIT]448|call the vendor back Friday|open[/TASK_EDIT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_EDIT",
        "type": "fn",
        "what": [
          "WHAT: Change a task's text and/or status in place.",
          "WHEN_TO_USE: reword a task, or move it to open/done/cancelled without deleting it.",
          "ARGS: $1 = task_id, $2 = new text (no pipes), $3 = optional new status (open|done|cancelled).",
          "EX: [TASK_EDIT]448|call the vendor back Friday|open[/TASK_EDIT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "448",
            "desc": "task_id, $2 = new text (no pipes), $3 = optional new status (open|done|cancelled).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "call the vendor back Friday",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "open",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_EDIT]448|call the vendor back Friday|open[/TASK_EDIT]",
        "tag": "[TASK_EDIT]<448>|<call the vendor back Friday>|<open>[/TASK_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/TASK_EDIT",
        "update": "PUT /api/directory/TASK_EDIT",
        "patch": "PATCH /api/directory/TASK_EDIT",
        "delete": "DELETE /api/directory/TASK_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_EDIT"
      },
      "examples": "[\"4015|reach out to 5 peptide brands about white-label pricing|open\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_EDIT"
    },
    {
      "key": "TASK_LIST",
      "type": "fn",
      "category": "tasks",
      "doc": "List tasks / writer jobs. ARGS: status (default open).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_LIST",
        "type": "fn",
        "what": [
          "List tasks / writer jobs. ARGS: status (default open)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_LIST]arg1[/TASK_LIST]",
        "tag": "[TASK_LIST]<arg1>[/TASK_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TASK_LIST",
        "update": "PUT /api/directory/TASK_LIST",
        "patch": "PATCH /api/directory/TASK_LIST",
        "delete": "DELETE /api/directory/TASK_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_LIST"
      },
      "examples": "[\"open\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_LIST"
    },
    {
      "key": "TASK_PLAIN_REWRITE",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_PLAIN_REWRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_PLAIN_REWRITE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[TASK_PLAIN_REWRITE][/TASK_PLAIN_REWRITE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_PLAIN_REWRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_PLAIN_REWRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TASK_PLAIN_REWRITE",
        "update": "PUT /api/directory/TASK_PLAIN_REWRITE",
        "patch": "PATCH /api/directory/TASK_PLAIN_REWRITE",
        "delete": "DELETE /api/directory/TASK_PLAIN_REWRITE",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_PLAIN_REWRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_PLAIN_REWRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_PLAIN_REWRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_PLAIN_REWRITE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_PLAIN_REWRITE"
    },
    {
      "key": "TASK_THREAD",
      "type": "fn",
      "category": "email",
      "doc": "WHAT: Hang one task under another so related work groups together. Empty parent un-threads to top level. WHEN_TO_USE: a task is a sub-step of a bigger task. ARGS: $1 = child task_id, $2 = parent task_id (leave empty to move back to top level). EX: [TASK_THREAD]451|448[/TASK_THREAD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TASK_THREAD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TASK_THREAD",
        "type": "fn",
        "what": [
          "WHAT: Hang one task under another so related work groups together. Empty parent un-threads to top level.",
          "WHEN_TO_USE: a task is a sub-step of a bigger task.",
          "ARGS: $1 = child task_id, $2 = parent task_id (leave empty to move back to top level).",
          "EX: [TASK_THREAD]451|448[/TASK_THREAD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "451",
            "desc": "child task_id, $2 = parent task_id (leave empty to move back to top level).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "448",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TASK_THREAD]451|448[/TASK_THREAD]",
        "tag": "[TASK_THREAD]<451>|<448>[/TASK_THREAD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TASK_THREAD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TASK_THREAD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/TASK_THREAD",
        "update": "PUT /api/directory/TASK_THREAD",
        "patch": "PATCH /api/directory/TASK_THREAD",
        "delete": "DELETE /api/directory/TASK_THREAD",
        "invoke": "POST /api/dispatch {\"key\":\"TASK_THREAD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TASK_THREAD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TASK_THREAD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TASK_THREAD"
      },
      "examples": "[\"451|448\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TASK_THREAD"
    },
    {
      "key": "TEAM_RUN",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Two agents reason against each other on a goal, bounded rounds, converge. $1=goal $2=proposer(default CODE_AUDIT) $3=critic(default CRITIC) $4=rounds(default 3) WHEN_TO_USE: you need to team run ARGS: $1 | $2 | $3 | $4 EX: [TEAM_RUN]arg1|arg2|arg3|arg4[/TEAM_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TEAM_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TEAM_RUN",
        "type": "fn",
        "what": [
          "WHAT: Two agents reason against each other on a goal, bounded rounds, converge. $1=goal $2=proposer(default CODE_AUDIT) $3=critic(default CRITIC) $4=rounds(default 3)",
          "WHEN_TO_USE: you need to team run",
          "ARGS: $1 | $2 | $3 | $4",
          "EX: [TEAM_RUN]arg1|arg2|arg3|arg4[/TEAM_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "goal $2=proposer(default CODE_AUDIT) $3=critic(default CRITIC) $4=rounds(default 3)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TEAM_RUN]arg1|arg2|arg3|arg4[/TEAM_RUN]",
        "tag": "[TEAM_RUN]<arg1>|<arg2>|<arg3>|<arg4>[/TEAM_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TEAM_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TEAM_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/TEAM_RUN",
        "update": "PUT /api/directory/TEAM_RUN",
        "patch": "PATCH /api/directory/TEAM_RUN",
        "delete": "DELETE /api/directory/TEAM_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"TEAM_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TEAM_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TEAM_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TEAM_RUN"
      },
      "examples": "[\"propose one concrete, safe improvement to the build reply path and vet it|ASK_GPT|CRITIC|2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TEAM_RUN"
    },
    {
      "key": "TENANT_ASK_ANSWER",
      "type": "agent",
      "category": "tenant",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TENANT_ASK_ANSWER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TENANT_ASK_ANSWER",
        "type": "agent",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 5,
            "name": "arg5",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 6,
            "name": "arg6",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 7,
            "name": "arg7",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 8,
            "name": "arg8",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 9,
            "name": "arg9",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 10,
            "name": "arg10",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 11,
            "name": "arg11",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 12,
            "name": "arg12",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 13,
            "name": "arg13",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 14,
            "name": "arg14",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 15,
            "name": "arg15",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 16,
            "name": "arg16",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 17,
            "name": "arg17",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 18,
            "name": "arg18",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 19,
            "name": "arg19",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 20,
            "name": "arg20",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 21,
            "name": "arg21",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 22,
            "name": "arg22",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 23,
            "name": "arg23",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 24,
            "name": "arg24",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 25,
            "name": "arg25",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 26,
            "name": "arg26",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 27,
            "name": "arg27",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 28,
            "name": "arg28",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 29,
            "name": "arg29",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 30,
            "name": "arg30",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 31,
            "name": "arg31",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 32,
            "name": "arg32",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 33,
            "name": "arg33",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 34,
            "name": "arg34",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 35,
            "name": "arg35",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 36,
            "name": "arg36",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 37,
            "name": "arg37",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 38,
            "name": "arg38",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 39,
            "name": "arg39",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 40,
            "name": "arg40",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 41,
            "name": "arg41",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 42,
            "name": "arg42",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 43,
            "name": "arg43",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 44,
            "name": "arg44",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 45,
            "name": "arg45",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 46,
            "name": "arg46",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 47,
            "name": "arg47",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 48,
            "name": "arg48",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 49,
            "name": "arg49",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 50,
            "name": "arg50",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 51,
            "name": "arg51",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 52,
            "name": "arg52",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 53,
            "name": "arg53",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 54,
            "name": "arg54",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 55,
            "name": "arg55",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 56,
            "name": "arg56",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 57,
            "name": "arg57",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 58,
            "name": "arg58",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 59,
            "name": "arg59",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 60,
            "name": "arg60",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 61,
            "name": "arg61",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 62,
            "name": "arg62",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 63,
            "name": "arg63",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 64,
            "name": "arg64",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 65,
            "name": "arg65",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 66,
            "name": "arg66",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 67,
            "name": "arg67",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 68,
            "name": "arg68",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 69,
            "name": "arg69",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 70,
            "name": "arg70",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 71,
            "name": "arg71",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 72,
            "name": "arg72",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 73,
            "name": "arg73",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 74,
            "name": "arg74",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 75,
            "name": "arg75",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 76,
            "name": "arg76",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 77,
            "name": "arg77",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 78,
            "name": "arg78",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 79,
            "name": "arg79",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 80,
            "name": "arg80",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 81,
            "name": "arg81",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 82,
            "name": "arg82",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 83,
            "name": "arg83",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 84,
            "name": "arg84",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 85,
            "name": "arg85",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 86,
            "name": "arg86",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 87,
            "name": "arg87",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 88,
            "name": "arg88",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 89,
            "name": "arg89",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 90,
            "name": "arg90",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 91,
            "name": "arg91",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 92,
            "name": "arg92",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 93,
            "name": "arg93",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 94,
            "name": "arg94",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 95,
            "name": "arg95",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 96,
            "name": "arg96",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 97,
            "name": "arg97",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 98,
            "name": "arg98",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 99,
            "name": "arg99",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 100,
            "name": "arg100",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 101,
            "name": "arg101",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 102,
            "name": "arg102",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 103,
            "name": "arg103",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 104,
            "name": "arg104",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 105,
            "name": "arg105",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 106,
            "name": "arg106",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 107,
            "name": "arg107",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 108,
            "name": "arg108",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 109,
            "name": "arg109",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 110,
            "name": "arg110",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 111,
            "name": "arg111",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 112,
            "name": "arg112",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 113,
            "name": "arg113",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 114,
            "name": "arg114",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 115,
            "name": "arg115",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 116,
            "name": "arg116",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 117,
            "name": "arg117",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 118,
            "name": "arg118",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 119,
            "name": "arg119",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 120,
            "name": "arg120",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 121,
            "name": "arg121",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 122,
            "name": "arg122",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 123,
            "name": "arg123",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 124,
            "name": "arg124",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 125,
            "name": "arg125",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 126,
            "name": "arg126",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 127,
            "name": "arg127",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 128,
            "name": "arg128",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 129,
            "name": "arg129",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 130,
            "name": "arg130",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 131,
            "name": "arg131",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 132,
            "name": "arg132",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 133,
            "name": "arg133",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 134,
            "name": "arg134",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 135,
            "name": "arg135",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 136,
            "name": "arg136",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 137,
            "name": "arg137",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 138,
            "name": "arg138",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 139,
            "name": "arg139",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 140,
            "name": "arg140",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 141,
            "name": "arg141",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 142,
            "name": "arg142",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 143,
            "name": "arg143",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 144,
            "name": "arg144",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 145,
            "name": "arg145",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 146,
            "name": "arg146",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 147,
            "name": "arg147",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 148,
            "name": "arg148",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 149,
            "name": "arg149",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 150,
            "name": "arg150",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 151,
            "name": "arg151",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 152,
            "name": "arg152",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 153,
            "name": "arg153",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 154,
            "name": "arg154",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 155,
            "name": "arg155",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 156,
            "name": "arg156",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 157,
            "name": "arg157",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 158,
            "name": "arg158",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 159,
            "name": "arg159",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 160,
            "name": "arg160",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 161,
            "name": "arg161",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 162,
            "name": "arg162",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 163,
            "name": "arg163",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 164,
            "name": "arg164",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 165,
            "name": "arg165",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 166,
            "name": "arg166",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 167,
            "name": "arg167",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 168,
            "name": "arg168",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 169,
            "name": "arg169",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 170,
            "name": "arg170",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 171,
            "name": "arg171",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 172,
            "name": "arg172",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 173,
            "name": "arg173",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 174,
            "name": "arg174",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 175,
            "name": "arg175",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 176,
            "name": "arg176",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 177,
            "name": "arg177",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 178,
            "name": "arg178",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 179,
            "name": "arg179",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 180,
            "name": "arg180",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 181,
            "name": "arg181",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 182,
            "name": "arg182",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 183,
            "name": "arg183",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 184,
            "name": "arg184",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 185,
            "name": "arg185",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 186,
            "name": "arg186",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 187,
            "name": "arg187",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 188,
            "name": "arg188",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 189,
            "name": "arg189",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 190,
            "name": "arg190",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 191,
            "name": "arg191",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 192,
            "name": "arg192",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 193,
            "name": "arg193",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 194,
            "name": "arg194",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 195,
            "name": "arg195",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 196,
            "name": "arg196",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 197,
            "name": "arg197",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 198,
            "name": "arg198",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 199,
            "name": "arg199",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 200,
            "name": "arg200",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 201,
            "name": "arg201",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 202,
            "name": "arg202",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 203,
            "name": "arg203",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 204,
            "name": "arg204",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 205,
            "name": "arg205",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 206,
            "name": "arg206",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 207,
            "name": "arg207",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 208,
            "name": "arg208",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 209,
            "name": "arg209",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 210,
            "name": "arg210",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 211,
            "name": "arg211",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 212,
            "name": "arg212",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 213,
            "name": "arg213",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 214,
            "name": "arg214",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 215,
            "name": "arg215",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 216,
            "name": "arg216",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 217,
            "name": "arg217",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 218,
            "name": "arg218",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 219,
            "name": "arg219",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 220,
            "name": "arg220",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 221,
            "name": "arg221",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 222,
            "name": "arg222",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 223,
            "name": "arg223",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 224,
            "name": "arg224",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 225,
            "name": "arg225",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 226,
            "name": "arg226",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 227,
            "name": "arg227",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 228,
            "name": "arg228",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 229,
            "name": "arg229",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 230,
            "name": "arg230",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 231,
            "name": "arg231",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 232,
            "name": "arg232",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 233,
            "name": "arg233",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 234,
            "name": "arg234",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 235,
            "name": "arg235",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 236,
            "name": "arg236",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 237,
            "name": "arg237",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 238,
            "name": "arg238",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 239,
            "name": "arg239",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 240,
            "name": "arg240",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 241,
            "name": "arg241",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 242,
            "name": "arg242",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 243,
            "name": "arg243",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 244,
            "name": "arg244",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 245,
            "name": "arg245",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 246,
            "name": "arg246",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 247,
            "name": "arg247",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 248,
            "name": "arg248",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 249,
            "name": "arg249",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 250,
            "name": "arg250",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 251,
            "name": "arg251",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 252,
            "name": "arg252",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 253,
            "name": "arg253",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 254,
            "name": "arg254",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 255,
            "name": "arg255",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 256,
            "name": "arg256",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 257,
            "name": "arg257",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 258,
            "name": "arg258",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 259,
            "name": "arg259",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 260,
            "name": "arg260",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 261,
            "name": "arg261",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 262,
            "name": "arg262",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 263,
            "name": "arg263",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 264,
            "name": "arg264",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 265,
            "name": "arg265",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 266,
            "name": "arg266",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 267,
            "name": "arg267",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 268,
            "name": "arg268",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 269,
            "name": "arg269",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 270,
            "name": "arg270",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 271,
            "name": "arg271",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 272,
            "name": "arg272",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 273,
            "name": "arg273",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 274,
            "name": "arg274",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 275,
            "name": "arg275",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 276,
            "name": "arg276",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 277,
            "name": "arg277",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 278,
            "name": "arg278",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 279,
            "name": "arg279",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 280,
            "name": "arg280",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 281,
            "name": "arg281",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 282,
            "name": "arg282",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 283,
            "name": "arg283",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 284,
            "name": "arg284",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 285,
            "name": "arg285",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 286,
            "name": "arg286",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 287,
            "name": "arg287",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 288,
            "name": "arg288",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 289,
            "name": "arg289",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 290,
            "name": "arg290",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 291,
            "name": "arg291",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 292,
            "name": "arg292",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 293,
            "name": "arg293",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 294,
            "name": "arg294",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 295,
            "name": "arg295",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 296,
            "name": "arg296",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 297,
            "name": "arg297",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 298,
            "name": "arg298",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 299,
            "name": "arg299",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 300,
            "name": "arg300",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 301,
            "name": "arg301",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 302,
            "name": "arg302",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 303,
            "name": "arg303",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 304,
            "name": "arg304",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 305,
            "name": "arg305",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 306,
            "name": "arg306",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 307,
            "name": "arg307",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 308,
            "name": "arg308",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 309,
            "name": "arg309",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 310,
            "name": "arg310",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 311,
            "name": "arg311",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 312,
            "name": "arg312",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 313,
            "name": "arg313",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 314,
            "name": "arg314",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 315,
            "name": "arg315",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 316,
            "name": "arg316",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 317,
            "name": "arg317",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 318,
            "name": "arg318",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 319,
            "name": "arg319",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 320,
            "name": "arg320",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 321,
            "name": "arg321",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 322,
            "name": "arg322",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 323,
            "name": "arg323",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 324,
            "name": "arg324",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 325,
            "name": "arg325",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 326,
            "name": "arg326",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 327,
            "name": "arg327",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 328,
            "name": "arg328",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 329,
            "name": "arg329",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 330,
            "name": "arg330",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 331,
            "name": "arg331",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 332,
            "name": "arg332",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 333,
            "name": "arg333",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 334,
            "name": "arg334",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 335,
            "name": "arg335",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 336,
            "name": "arg336",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 337,
            "name": "arg337",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 338,
            "name": "arg338",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 339,
            "name": "arg339",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 340,
            "name": "arg340",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 341,
            "name": "arg341",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 342,
            "name": "arg342",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 343,
            "name": "arg343",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 344,
            "name": "arg344",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 345,
            "name": "arg345",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 346,
            "name": "arg346",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 347,
            "name": "arg347",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 348,
            "name": "arg348",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 349,
            "name": "arg349",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 350,
            "name": "arg350",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 351,
            "name": "arg351",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 352,
            "name": "arg352",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 353,
            "name": "arg353",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 354,
            "name": "arg354",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 355,
            "name": "arg355",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 356,
            "name": "arg356",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 357,
            "name": "arg357",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 358,
            "name": "arg358",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 359,
            "name": "arg359",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 360,
            "name": "arg360",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 361,
            "name": "arg361",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 362,
            "name": "arg362",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 363,
            "name": "arg363",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 364,
            "name": "arg364",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 365,
            "name": "arg365",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 366,
            "name": "arg366",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 367,
            "name": "arg367",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 368,
            "name": "arg368",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 369,
            "name": "arg369",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 370,
            "name": "arg370",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 371,
            "name": "arg371",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 372,
            "name": "arg372",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 373,
            "name": "arg373",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 374,
            "name": "arg374",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 375,
            "name": "arg375",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 376,
            "name": "arg376",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 377,
            "name": "arg377",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 378,
            "name": "arg378",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 379,
            "name": "arg379",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 380,
            "name": "arg380",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 381,
            "name": "arg381",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 382,
            "name": "arg382",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 383,
            "name": "arg383",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 384,
            "name": "arg384",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 385,
            "name": "arg385",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 386,
            "name": "arg386",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 387,
            "name": "arg387",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 388,
            "name": "arg388",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 389,
            "name": "arg389",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 390,
            "name": "arg390",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 391,
            "name": "arg391",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 392,
            "name": "arg392",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 393,
            "name": "arg393",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 394,
            "name": "arg394",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 395,
            "name": "arg395",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 396,
            "name": "arg396",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 397,
            "name": "arg397",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 398,
            "name": "arg398",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 399,
            "name": "arg399",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 400,
            "name": "arg400",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 401,
            "name": "arg401",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 402,
            "name": "arg402",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 403,
            "name": "arg403",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 404,
            "name": "arg404",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 405,
            "name": "arg405",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 406,
            "name": "arg406",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 407,
            "name": "arg407",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 408,
            "name": "arg408",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 409,
            "name": "arg409",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 410,
            "name": "arg410",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 411,
            "name": "arg411",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 412,
            "name": "arg412",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": "[TENANT_ASK_ANSWER]arg1|arg2|arg3|arg4|arg5|arg6|arg7|arg8|arg9|arg10|arg11|arg12|arg13|arg14|arg15|arg16|arg17|arg18|arg19|arg20|arg21|arg22|arg23|arg24|arg25|arg26|arg27|arg28|arg29|arg30|arg31|arg32|arg33|arg34|arg35|arg36|arg37|arg38|arg39|arg40|arg41|arg42|arg43|arg44|arg45|arg46|arg47|arg48|arg49|arg50|arg51|arg52|arg53|arg54|arg55|arg56|arg57|arg58|arg59|arg60|arg61|arg62|arg63|arg64|arg65|arg66|arg67|arg68|arg69|arg70|arg71|arg72|arg73|arg74|arg75|arg76|arg77|arg78|arg79|arg80|arg81|arg82|arg83|arg84|arg85|arg86|arg87|arg88|arg89|arg90|arg91|arg92|arg93|arg94|arg95|arg96|arg97|arg98|arg99|arg100|arg101|arg102|arg103|arg104|arg105|arg106|arg107|arg108|arg109|arg110|arg111|arg112|arg113|arg114|arg115|arg116|arg117|arg118|arg119|arg120|arg121|arg122|arg123|arg124|arg125|arg126|arg127|arg128|arg129|arg130|arg131|arg132|arg133|arg134|arg135|arg136|arg137|arg138|arg139|arg140|arg141|arg142|arg143|arg144|arg145|arg146|arg147|arg148|arg149|arg150|arg151|arg152|arg153|arg154|arg155|arg156|arg157|arg158|arg159|arg160|arg161|arg162|arg163|arg164|arg165|arg166|arg167|arg168|arg169|arg170|arg171|arg172|arg173|arg174|arg175|arg176|arg177|arg178|arg179|arg180|arg181|arg182|arg183|arg184|arg185|arg186|arg187|arg188|arg189|arg190|arg191|arg192|arg193|arg194|arg195|arg196|arg197|arg198|arg199|arg200|arg201|arg202|arg203|arg204|arg205|arg206|arg207|arg208|arg209|arg210|arg211|arg212|arg213|arg214|arg215|arg216|arg217|arg218|arg219|arg220|arg221|arg222|arg223|arg224|arg225|arg226|arg227|arg228|arg229|arg230|arg231|arg232|arg233|arg234|arg235|arg236|arg237|arg238|arg239|arg240|arg241|arg242|arg243|arg244|arg245|arg246|arg247|arg248|arg249|arg250|arg251|arg252|arg253|arg254|arg255|arg256|arg257|arg258|arg259|arg260|arg261|arg262|arg263|arg264|arg265|arg266|arg267|arg268|arg269|arg270|arg271|arg272|arg273|arg274|arg275|arg276|arg277|arg278|arg279|arg280|arg281|arg282|arg283|arg284|arg285|arg286|arg287|arg288|arg289|arg290|arg291|arg292|arg293|arg294|arg295|arg296|arg297|arg298|arg299|arg300|arg301|arg302|arg303|arg304|arg305|arg306|arg307|arg308|arg309|arg310|arg311|arg312|arg313|arg314|arg315|arg316|arg317|arg318|arg319|arg320|arg321|arg322|arg323|arg324|arg325|arg326|arg327|arg328|arg329|arg330|arg331|arg332|arg333|arg334|arg335|arg336|arg337|arg338|arg339|arg340|arg341|arg342|arg343|arg344|arg345|arg346|arg347|arg348|arg349|arg350|arg351|arg352|arg353|arg354|arg355|arg356|arg357|arg358|arg359|arg360|arg361|arg362|arg363|arg364|arg365|arg366|arg367|arg368|arg369|arg370|arg371|arg372|arg373|arg374|arg375|arg376|arg377|arg378|arg379|arg380|arg381|arg382|arg383|arg384|arg385|arg386|arg387|arg388|arg389|arg390|arg391|arg392|arg393|arg394|arg395|arg396|arg397|arg398|arg399|arg400|arg401|arg402|arg403|arg404|arg405|arg406|arg407|arg408|arg409|arg410|arg411|arg412[/TENANT_ASK_ANSWER]",
        "tag": "[TENANT_ASK_ANSWER]<arg1>|<arg2>|<arg3>|<arg4>|<arg5>|<arg6>|<arg7>|<arg8>|<arg9>|<arg10>|<arg11>|<arg12>|<arg13>|<arg14>|<arg15>|<arg16>|<arg17>|<arg18>|<arg19>|<arg20>|<arg21>|<arg22>|<arg23>|<arg24>|<arg25>|<arg26>|<arg27>|<arg28>|<arg29>|<arg30>|<arg31>|<arg32>|<arg33>|<arg34>|<arg35>|<arg36>|<arg37>|<arg38>|<arg39>|<arg40>|<arg41>|<arg42>|<arg43>|<arg44>|<arg45>|<arg46>|<arg47>|<arg48>|<arg49>|<arg50>|<arg51>|<arg52>|<arg53>|<arg54>|<arg55>|<arg56>|<arg57>|<arg58>|<arg59>|<arg60>|<arg61>|<arg62>|<arg63>|<arg64>|<arg65>|<arg66>|<arg67>|<arg68>|<arg69>|<arg70>|<arg71>|<arg72>|<arg73>|<arg74>|<arg75>|<arg76>|<arg77>|<arg78>|<arg79>|<arg80>|<arg81>|<arg82>|<arg83>|<arg84>|<arg85>|<arg86>|<arg87>|<arg88>|<arg89>|<arg90>|<arg91>|<arg92>|<arg93>|<arg94>|<arg95>|<arg96>|<arg97>|<arg98>|<arg99>|<arg100>|<arg101>|<arg102>|<arg103>|<arg104>|<arg105>|<arg106>|<arg107>|<arg108>|<arg109>|<arg110>|<arg111>|<arg112>|<arg113>|<arg114>|<arg115>|<arg116>|<arg117>|<arg118>|<arg119>|<arg120>|<arg121>|<arg122>|<arg123>|<arg124>|<arg125>|<arg126>|<arg127>|<arg128>|<arg129>|<arg130>|<arg131>|<arg132>|<arg133>|<arg134>|<arg135>|<arg136>|<arg137>|<arg138>|<arg139>|<arg140>|<arg141>|<arg142>|<arg143>|<arg144>|<arg145>|<arg146>|<arg147>|<arg148>|<arg149>|<arg150>|<arg151>|<arg152>|<arg153>|<arg154>|<arg155>|<arg156>|<arg157>|<arg158>|<arg159>|<arg160>|<arg161>|<arg162>|<arg163>|<arg164>|<arg165>|<arg166>|<arg167>|<arg168>|<arg169>|<arg170>|<arg171>|<arg172>|<arg173>|<arg174>|<arg175>|<arg176>|<arg177>|<arg178>|<arg179>|<arg180>|<arg181>|<arg182>|<arg183>|<arg184>|<arg185>|<arg186>|<arg187>|<arg188>|<arg189>|<arg190>|<arg191>|<arg192>|<arg193>|<arg194>|<arg195>|<arg196>|<arg197>|<arg198>|<arg199>|<arg200>|<arg201>|<arg202>|<arg203>|<arg204>|<arg205>|<arg206>|<arg207>|<arg208>|<arg209>|<arg210>|<arg211>|<arg212>|<arg213>|<arg214>|<arg215>|<arg216>|<arg217>|<arg218>|<arg219>|<arg220>|<arg221>|<arg222>|<arg223>|<arg224>|<arg225>|<arg226>|<arg227>|<arg228>|<arg229>|<arg230>|<arg231>|<arg232>|<arg233>|<arg234>|<arg235>|<arg236>|<arg237>|<arg238>|<arg239>|<arg240>|<arg241>|<arg242>|<arg243>|<arg244>|<arg245>|<arg246>|<arg247>|<arg248>|<arg249>|<arg250>|<arg251>|<arg252>|<arg253>|<arg254>|<arg255>|<arg256>|<arg257>|<arg258>|<arg259>|<arg260>|<arg261>|<arg262>|<arg263>|<arg264>|<arg265>|<arg266>|<arg267>|<arg268>|<arg269>|<arg270>|<arg271>|<arg272>|<arg273>|<arg274>|<arg275>|<arg276>|<arg277>|<arg278>|<arg279>|<arg280>|<arg281>|<arg282>|<arg283>|<arg284>|<arg285>|<arg286>|<arg287>|<arg288>|<arg289>|<arg290>|<arg291>|<arg292>|<arg293>|<arg294>|<arg295>|<arg296>|<arg297>|<arg298>|<arg299>|<arg300>|<arg301>|<arg302>|<arg303>|<arg304>|<arg305>|<arg306>|<arg307>|<arg308>|<arg309>|<arg310>|<arg311>|<arg312>|<arg313>|<arg314>|<arg315>|<arg316>|<arg317>|<arg318>|<arg319>|<arg320>|<arg321>|<arg322>|<arg323>|<arg324>|<arg325>|<arg326>|<arg327>|<arg328>|<arg329>|<arg330>|<arg331>|<arg332>|<arg333>|<arg334>|<arg335>|<arg336>|<arg337>|<arg338>|<arg339>|<arg340>|<arg341>|<arg342>|<arg343>|<arg344>|<arg345>|<arg346>|<arg347>|<arg348>|<arg349>|<arg350>|<arg351>|<arg352>|<arg353>|<arg354>|<arg355>|<arg356>|<arg357>|<arg358>|<arg359>|<arg360>|<arg361>|<arg362>|<arg363>|<arg364>|<arg365>|<arg366>|<arg367>|<arg368>|<arg369>|<arg370>|<arg371>|<arg372>|<arg373>|<arg374>|<arg375>|<arg376>|<arg377>|<arg378>|<arg379>|<arg380>|<arg381>|<arg382>|<arg383>|<arg384>|<arg385>|<arg386>|<arg387>|<arg388>|<arg389>|<arg390>|<arg391>|<arg392>|<arg393>|<arg394>|<arg395>|<arg396>|<arg397>|<arg398>|<arg399>|<arg400>|<arg401>|<arg402>|<arg403>|<arg404>|<arg405>|<arg406>|<arg407>|<arg408>|<arg409>|<arg410>|<arg411>|<arg412>[/TENANT_ASK_ANSWER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TENANT_ASK_ANSWER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TENANT_ASK_ANSWER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TENANT_ASK_ANSWER",
        "update": "PUT /api/directory/TENANT_ASK_ANSWER",
        "patch": "PATCH /api/directory/TENANT_ASK_ANSWER",
        "delete": "DELETE /api/directory/TENANT_ASK_ANSWER",
        "invoke": "POST /api/dispatch {\"key\":\"TENANT_ASK_ANSWER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TENANT_ASK_ANSWER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TENANT_ASK_ANSWER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TENANT_ASK_ANSWER"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TENANT_ASK_ANSWER"
    },
    {
      "key": "TENANT_ASK_SQL",
      "type": "agent",
      "category": "tenant",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TENANT_ASK_SQL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TENANT_ASK_SQL",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[TENANT_ASK_SQL][/TENANT_ASK_SQL]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TENANT_ASK_SQL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TENANT_ASK_SQL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TENANT_ASK_SQL",
        "update": "PUT /api/directory/TENANT_ASK_SQL",
        "patch": "PATCH /api/directory/TENANT_ASK_SQL",
        "delete": "DELETE /api/directory/TENANT_ASK_SQL",
        "invoke": "POST /api/dispatch {\"key\":\"TENANT_ASK_SQL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TENANT_ASK_SQL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TENANT_ASK_SQL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TENANT_ASK_SQL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TENANT_ASK_SQL"
    },
    {
      "key": "TENANT_LEAD_DRAFT",
      "type": "agent",
      "category": "tenant",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TENANT_LEAD_DRAFT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TENANT_LEAD_DRAFT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[TENANT_LEAD_DRAFT][/TENANT_LEAD_DRAFT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TENANT_LEAD_DRAFT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TENANT_LEAD_DRAFT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TENANT_LEAD_DRAFT",
        "update": "PUT /api/directory/TENANT_LEAD_DRAFT",
        "patch": "PATCH /api/directory/TENANT_LEAD_DRAFT",
        "delete": "DELETE /api/directory/TENANT_LEAD_DRAFT",
        "invoke": "POST /api/dispatch {\"key\":\"TENANT_LEAD_DRAFT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TENANT_LEAD_DRAFT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TENANT_LEAD_DRAFT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TENANT_LEAD_DRAFT"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TENANT_LEAD_DRAFT"
    },
    {
      "key": "TEST_ALL",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Run TEST_ROW on every key that has a directory_tests entry. $1=limit (default 50). Returns {run_id, keys, passed, failed, summary[]} WHEN_TO_USE: you need to test all ARGS: $1 EX: [TEST_ALL]arg1[/TEST_ALL]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TEST_ALL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TEST_ALL",
        "type": "fn",
        "what": [
          "WHAT: Run TEST_ROW on every key that has a directory_tests entry. $1=limit (default 50). Returns {run_id, keys, passed, failed, summary[]}",
          "WHEN_TO_USE: you need to test all",
          "ARGS: $1",
          "EX: [TEST_ALL]arg1[/TEST_ALL]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "limit (default 50). Returns {run_id, keys, passed, failed, summary[]}",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{run_id, keys, passed, failed, summary[]}",
        "example": "[TEST_ALL]arg1[/TEST_ALL]",
        "tag": "[TEST_ALL]<arg1>[/TEST_ALL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TEST_ALL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TEST_ALL  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TEST_ALL",
        "update": "PUT /api/directory/TEST_ALL",
        "patch": "PATCH /api/directory/TEST_ALL",
        "delete": "DELETE /api/directory/TEST_ALL",
        "invoke": "POST /api/dispatch {\"key\":\"TEST_ALL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TEST_ALL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TEST_ALL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TEST_ALL"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TEST_ALL"
    },
    {
      "key": "TEST_ROW",
      "type": "fn",
      "category": "capability",
      "doc": "WHAT: Run every directory_tests row for the given KEY against /api/dispatch, score against expect_kind/expect_value, append rows to fidelity_log under one run_id. $1=KEY. Returns {key, run_id, total, passed, failed, results[]} WHEN_TO_USE: you need to test row ARGS: $1 EX: [TEST_ROW]arg1[/TEST_ROW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TEST_ROW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TEST_ROW",
        "type": "fn",
        "what": [
          "WHAT: Run every directory_tests row for the given KEY against /api/dispatch, score against expect_kind/expect_value, append rows to fidelity_log under one run_id. $1=KEY. Returns {key, run_id, total, passed, failed, results[]}",
          "WHEN_TO_USE: you need to test row",
          "ARGS: $1",
          "EX: [TEST_ROW]arg1[/TEST_ROW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "KEY. Returns {key, run_id, total, passed, failed, results[]}",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{key, run_id, total, passed, failed, results[]}",
        "example": "[TEST_ROW]arg1[/TEST_ROW]",
        "tag": "[TEST_ROW]<arg1>[/TEST_ROW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TEST_ROW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TEST_ROW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TEST_ROW",
        "update": "PUT /api/directory/TEST_ROW",
        "patch": "PATCH /api/directory/TEST_ROW",
        "delete": "DELETE /api/directory/TEST_ROW",
        "invoke": "POST /api/dispatch {\"key\":\"TEST_ROW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TEST_ROW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TEST_ROW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TEST_ROW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TEST_ROW"
    },
    {
      "key": "THREAD_ADD",
      "type": "fn",
      "category": "threads",
      "doc": "WHAT: open a new thread (title + body + tags). status=open. WHEN_TO_USE: the owner dumps a new line of thought; capture it for later iteration. ARGS: title|body|tags (comma-sep, optional). EX: THREAD_ADD \"peptide before/after creatives\"|\"5 variations using nano-banana with our hero shot as ref\"|arcads,images",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "THREAD_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "THREAD_ADD",
        "type": "fn",
        "what": [
          "WHAT: open a new thread (title + body + tags). status=open.",
          "WHEN_TO_USE: the owner dumps a new line of thought; capture it for later iteration.",
          "ARGS: title|body|tags (comma-sep, optional).",
          "EX: THREAD_ADD \"peptide before/after creatives\"|\"5 variations using nano-banana with our hero shot as ref\"|arcads,images"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "THREAD_ADD \"peptide before/after creatives\"|\"5 variations using nano-banana with our hero shot as ref\"|arcads,images",
        "tag": "[THREAD_ADD]<arg1>|<arg2>|<arg3>[/THREAD_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"THREAD_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/THREAD_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/THREAD_ADD",
        "update": "PUT /api/directory/THREAD_ADD",
        "patch": "PATCH /api/directory/THREAD_ADD",
        "delete": "DELETE /api/directory/THREAD_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"THREAD_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"THREAD_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"THREAD_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/THREAD_ADD"
      },
      "examples": "[\"test thread|small body|test\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=THREAD_ADD"
    },
    {
      "key": "THREAD_APPEND",
      "type": "fn",
      "category": "threads",
      "doc": "WHAT: append a line to an existing thread's body. WHEN_TO_USE: the owner says \"for that peptide thread, also …\". ARGS: id|line.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "THREAD_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "THREAD_APPEND",
        "type": "fn",
        "what": [
          "WHAT: append a line to an existing thread's body.",
          "WHEN_TO_USE: the owner says \"for that peptide thread, also …\".",
          "ARGS: id|line."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[THREAD_APPEND]arg1|arg2[/THREAD_APPEND]",
        "tag": "[THREAD_APPEND]<arg1>|<arg2>[/THREAD_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"THREAD_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/THREAD_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/THREAD_APPEND",
        "update": "PUT /api/directory/THREAD_APPEND",
        "patch": "PATCH /api/directory/THREAD_APPEND",
        "delete": "DELETE /api/directory/THREAD_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"THREAD_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"THREAD_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"THREAD_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/THREAD_APPEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=THREAD_APPEND"
    },
    {
      "key": "THREAD_CLOSE",
      "type": "fn",
      "category": "threads",
      "doc": "WHAT: mark a thread closed. ARGS: id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "THREAD_CLOSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "THREAD_CLOSE",
        "type": "fn",
        "what": [
          "WHAT: mark a thread closed.",
          "ARGS: id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[THREAD_CLOSE]arg1[/THREAD_CLOSE]",
        "tag": "[THREAD_CLOSE]<arg1>[/THREAD_CLOSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"THREAD_CLOSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/THREAD_CLOSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/THREAD_CLOSE",
        "update": "PUT /api/directory/THREAD_CLOSE",
        "patch": "PATCH /api/directory/THREAD_CLOSE",
        "delete": "DELETE /api/directory/THREAD_CLOSE",
        "invoke": "POST /api/dispatch {\"key\":\"THREAD_CLOSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"THREAD_CLOSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"THREAD_CLOSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/THREAD_CLOSE"
      },
      "examples": "[\"6\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=THREAD_CLOSE"
    },
    {
      "key": "THREAD_GET",
      "type": "fn",
      "category": "threads",
      "doc": "WHAT: Read one thread fully. WHEN_TO_USE: you need to read a thread ARGS: id EX: [THREAD_GET]42[/THREAD_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "THREAD_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "THREAD_GET",
        "type": "fn",
        "what": [
          "WHAT: Read one thread fully.",
          "WHEN_TO_USE: you need to read a thread",
          "ARGS: id",
          "EX: [THREAD_GET]42[/THREAD_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "42",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[THREAD_GET]42[/THREAD_GET]",
        "tag": "[THREAD_GET]<42>[/THREAD_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"THREAD_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/THREAD_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/THREAD_GET",
        "update": "PUT /api/directory/THREAD_GET",
        "patch": "PATCH /api/directory/THREAD_GET",
        "delete": "DELETE /api/directory/THREAD_GET",
        "invoke": "POST /api/dispatch {\"key\":\"THREAD_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"THREAD_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"THREAD_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/THREAD_GET"
      },
      "examples": "[\"7\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=THREAD_GET"
    },
    {
      "key": "THREAD_LIST",
      "type": "fn",
      "category": "threads",
      "doc": "WHAT: list open threads (or by tag / status). ARGS: filter (optional — open|paused|closed OR tag:<name>).",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "THREAD_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "THREAD_LIST",
        "type": "fn",
        "what": [
          "WHAT: list open threads (or by tag / status).",
          "ARGS: filter (optional — open|paused|closed OR tag:<name>)."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[THREAD_LIST]arg1[/THREAD_LIST]",
        "tag": "[THREAD_LIST]<arg1>[/THREAD_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"THREAD_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/THREAD_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/THREAD_LIST",
        "update": "PUT /api/directory/THREAD_LIST",
        "patch": "PATCH /api/directory/THREAD_LIST",
        "delete": "DELETE /api/directory/THREAD_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"THREAD_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"THREAD_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"THREAD_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/THREAD_LIST"
      },
      "examples": "[\"open\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=THREAD_LIST"
    },
    {
      "key": "TIME_NOW",
      "type": "fn",
      "category": "tools",
      "doc": "WHAT: Return the current UTC ISO timestamp.\\n# EX: [TIME_NOW][/TIME_NOW]\\n[]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TIME_NOW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TIME_NOW",
        "type": "fn",
        "what": [
          "WHAT: Return the current UTC ISO timestamp.\\n# EX: [TIME_NOW][/TIME_NOW]\\n[]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the current UTC ISO timestamp.\\n# EX: [TIME_NOW][/TIME_NOW]\\n[]",
        "example": null,
        "tag": "[TIME_NOW][/TIME_NOW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TIME_NOW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TIME_NOW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TIME_NOW",
        "update": "PUT /api/directory/TIME_NOW",
        "patch": "PATCH /api/directory/TIME_NOW",
        "delete": "DELETE /api/directory/TIME_NOW",
        "invoke": "POST /api/dispatch {\"key\":\"TIME_NOW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TIME_NOW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TIME_NOW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TIME_NOW"
      },
      "examples": "[\"PST\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TIME_NOW"
    },
    {
      "key": "TODO_RUN",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Run the next open task in the build to-do (tasks table) through the ROUTER. $1=mode; pass force to run on-demand. Cron calls it every 5 min, gated by KV todo_autorun WHEN_TO_USE: you need to todo run ARGS: $1 EX: [TODO_RUN]arg1[/TODO_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TODO_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TODO_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run the next open task in the build to-do (tasks table) through the ROUTER. $1=mode; pass force to run on-demand. Cron calls it every 5 min, gated by KV todo_autorun",
          "WHEN_TO_USE: you need to todo run",
          "ARGS: $1",
          "EX: [TODO_RUN]arg1[/TODO_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "mode",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TODO_RUN]arg1[/TODO_RUN]",
        "tag": "[TODO_RUN]<arg1>[/TODO_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TODO_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TODO_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TODO_RUN",
        "update": "PUT /api/directory/TODO_RUN",
        "patch": "PATCH /api/directory/TODO_RUN",
        "delete": "DELETE /api/directory/TODO_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"TODO_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TODO_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TODO_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TODO_RUN"
      },
      "examples": "[\"force\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TODO_RUN"
    },
    {
      "key": "TOOLING_DOCS",
      "type": "http",
      "category": "cloudflare",
      "doc": "WHAT: Platform + protocol references (external) WHEN_TO_USE: you need to tooling docs ARGS: see content EX: [TOOLING_DOCS][/TOOLING_DOCS] Platform + protocol references (external). Cloudflare   https://developers.cloudflare.com · api https://api.cloudflare.com (Workers/Pages/D1/KV/R2/DO/Workflows) MCP          https://modelcontextprotocol.io JSON Schema  https://json-schema.org MDN          https://developer.mozilla.org GitHub repo  https://github.com/the owner/miscsubjects-pages · api https://api.github.com",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TOOLING_DOCS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TOOLING_DOCS",
        "type": "http",
        "what": [
          "WHAT: Platform + protocol references (external)",
          "WHEN_TO_USE: you need to tooling docs",
          "ARGS: see content",
          "EX: [TOOLING_DOCS][/TOOLING_DOCS]",
          "Platform + protocol references (external).",
          "Cloudflare   https://developers.cloudflare.com · api https://api.cloudflare.com (Workers/Pages/D1/KV/R2/DO/Workflows)",
          "MCP          https://modelcontextprotocol.io",
          "JSON Schema  https://json-schema.org",
          "MDN          https://developer.mozilla.org",
          "GitHub repo  https://github.com/the owner/miscsubjects-pages · api https://api.github.com"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TOOLING_DOCS][/TOOLING_DOCS]",
        "tag": "[TOOLING_DOCS][/TOOLING_DOCS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TOOLING_DOCS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TOOLING_DOCS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TOOLING_DOCS",
        "update": "PUT /api/directory/TOOLING_DOCS",
        "patch": "PATCH /api/directory/TOOLING_DOCS",
        "delete": "DELETE /api/directory/TOOLING_DOCS",
        "invoke": "POST /api/dispatch {\"key\":\"TOOLING_DOCS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TOOLING_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TOOLING_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TOOLING_DOCS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TOOLING_DOCS"
    },
    {
      "key": "TOOLKIT",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TOOLKIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TOOLKIT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[TOOLKIT][/TOOLKIT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TOOLKIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TOOLKIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TOOLKIT",
        "update": "PUT /api/directory/TOOLKIT",
        "patch": "PATCH /api/directory/TOOLKIT",
        "delete": "DELETE /api/directory/TOOLKIT",
        "invoke": "POST /api/dispatch {\"key\":\"TOOLKIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TOOLKIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TOOLKIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TOOLKIT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TOOLKIT"
    },
    {
      "key": "TOOLS_IN",
      "type": "fn",
      "category": "directory",
      "doc": "WHAT: Return JSON [{key,type,docs}] of planner-visible tools in $1. $1=category, $2=limit (default 30, max 100). Use as stage 2 of tool selection after CATEGORIES WHEN_TO_USE: you need to tools in ARGS: $1 | $2 EX: [TOOLS_IN]arg1|arg2[/TOOLS_IN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TOOLS_IN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TOOLS_IN",
        "type": "fn",
        "what": [
          "WHAT: Return JSON [{key,type,docs}] of planner-visible tools in $1. $1=category, $2=limit (default 30, max 100). Use as stage 2 of tool selection after CATEGORIES",
          "WHEN_TO_USE: you need to tools in",
          "ARGS: $1 | $2",
          "EX: [TOOLS_IN]arg1|arg2[/TOOLS_IN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "category, $2=limit (default 30, max 100). Use as stage 2 of tool selection after CATEGORIES",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON [{key,type,docs}] of planner-visible tools in $1. $1=category, $2=limit (default 30, max 100). Use as stage 2 of tool selection after CATEGORIES",
        "example": "[TOOLS_IN]arg1|arg2[/TOOLS_IN]",
        "tag": "[TOOLS_IN]<arg1>|<arg2>[/TOOLS_IN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TOOLS_IN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TOOLS_IN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/TOOLS_IN",
        "update": "PUT /api/directory/TOOLS_IN",
        "patch": "PATCH /api/directory/TOOLS_IN",
        "delete": "DELETE /api/directory/TOOLS_IN",
        "invoke": "POST /api/dispatch {\"key\":\"TOOLS_IN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TOOLS_IN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TOOLS_IN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TOOLS_IN"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TOOLS_IN"
    },
    {
      "key": "TRAIL_LIST",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: List the trails in your own space - owner, token, or tenant; trails never cross spaces. ARGS: (none) EX: [TRAIL_LIST][/TRAIL_LIST] PRECONDITIONS: current invocation has a verified owner or recorded capability context EFFECTS: reads namespaced trail metadata only; does not expose recorded step inputs POSTCONDITIONS: returns only trail names, step counts, maximum risk, and creation timestamps from the caller namespace SAFE: true IDEMPOTENT: true TESTS: caller sees only its own namespace; missing authority fails closed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRAIL_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRAIL_LIST",
        "type": "fn",
        "what": [
          "WHAT: List the trails in your own space - owner, token, or tenant; trails never cross spaces.",
          "ARGS: (none)",
          "EX: [TRAIL_LIST][/TRAIL_LIST]",
          "PRECONDITIONS: current invocation has a verified owner or recorded capability context",
          "EFFECTS: reads namespaced trail metadata only; does not expose recorded step inputs",
          "POSTCONDITIONS: returns only trail names, step counts, maximum risk, and creation timestamps from the caller namespace",
          "SAFE: true",
          "IDEMPOTENT: true",
          "TESTS: caller sees only its own namespace; missing authority fails closed."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "only trail names, step counts, maximum risk, and creation timestamps from the caller namespace",
        "example": "[TRAIL_LIST][/TRAIL_LIST]",
        "tag": "[TRAIL_LIST][/TRAIL_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRAIL_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRAIL_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/TRAIL_LIST",
        "update": "PUT /api/directory/TRAIL_LIST",
        "patch": "PATCH /api/directory/TRAIL_LIST",
        "delete": "DELETE /api/directory/TRAIL_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"TRAIL_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRAIL_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRAIL_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRAIL_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRAIL_LIST"
    },
    {
      "key": "TRAIL_RUN",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Run a named TRAIL (a saved sequence of past calls). Every recorded step is checked again against the caller's own token, consumes that caller's use budget, and produces a receipt linked to the original invocation. ARGS: name (the trail name given to TRAIL_SAVE) EX: [TRAIL_RUN]morning-report[/TRAIL_RUN] PRECONDITIONS: trail exists in the current authority namespace; current credential independently permits every step; all ancestor, tenant, risk, owner-gate, fixed-body, and use-budget checks pass EFFECTS: executes steps sequentially until the first denial or failed result; each executed step may produce its declared effects POSTCONDITIONS: every executed step has a new receipt with replay_of lineage; execution stops at the first failure; ok=true only when every step succeeds SAFE: false IDEMPOTENT: false TESTS: TRAIL_RUN-only token cannot execute a NOW step. Revoked ancestor stops before execution. Failed step stops later steps.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRAIL_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRAIL_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run a named TRAIL (a saved sequence of past calls). Every recorded step is checked again against the caller's own token, consumes that caller's use budget, and produces a receipt linked to the original invocation.",
          "ARGS: name (the trail name given to TRAIL_SAVE)",
          "EX: [TRAIL_RUN]morning-report[/TRAIL_RUN]",
          "PRECONDITIONS: trail exists in the current authority namespace; current credential independently permits every step; all ancestor, tenant, risk, owner-gate, fixed-body, and use-budget checks pass",
          "EFFECTS: executes steps sequentially until the first denial or failed result; each executed step may produce its declared effects",
          "POSTCONDITIONS: every executed step has a new receipt with replay_of lineage; execution stops at the first failure; ok=true only when every step succeeds",
          "SAFE: false",
          "IDEMPOTENT: false",
          "TESTS: TRAIL_RUN-only token cannot execute a NOW step. Revoked ancestor stops before execution. Failed step stops later steps."
        ],
        "args": [
          {
            "pos": 1,
            "name": "morning-report",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TRAIL_RUN]morning-report[/TRAIL_RUN]",
        "tag": "[TRAIL_RUN]<morning-report>[/TRAIL_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRAIL_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRAIL_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TRAIL_RUN",
        "update": "PUT /api/directory/TRAIL_RUN",
        "patch": "PATCH /api/directory/TRAIL_RUN",
        "delete": "DELETE /api/directory/TRAIL_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"TRAIL_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRAIL_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRAIL_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRAIL_RUN"
      },
      "examples": "[\"conformance-c20-wzejhq\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRAIL_RUN"
    },
    {
      "key": "TRAIL_SAVE",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Name a sequence of past invocations as a TRAIL - a named sequence of past calls you can run again as one unit (the trail itself carries no permissions). Stores each step's object key and recorded input in the current owner/capability/tenant namespace. ARGS: name|inv_ID1,inv_ID2,... (2-20 receipt ids, oldest first, comma-separated) EX: [TRAIL_SAVE]morning-report|inv_abc123,inv_def456[/TRAIL_SAVE] PRECONDITIONS: caller may read every source receipt; caller scope permits every source object; every source receipt belongs to the same authority namespace EFFECTS: writes one namespaced trail record to KV; stores the exact recorded step inputs POSTCONDITIONS: result names the namespace, maximum step risk, and saved receipt ids; no step is executed SAFE: false IDEMPOTENT: true TESTS: foreign receipt -> ERR:trail:receipt_denied. Mixed authority -> ERR:trail:mixed_authority_namespaces. TRAIL_ steps are refused.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRAIL_SAVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRAIL_SAVE",
        "type": "fn",
        "what": [
          "WHAT: Name a sequence of past invocations as a TRAIL - a named sequence of past calls you can run again as one unit (the trail itself carries no permissions). Stores each step's object key and recorded input in the current owner/capability/tenant namespace.",
          "ARGS: name|inv_ID1,inv_ID2,... (2-20 receipt ids, oldest first, comma-separated)",
          "EX: [TRAIL_SAVE]morning-report|inv_abc123,inv_def456[/TRAIL_SAVE]",
          "PRECONDITIONS: caller may read every source receipt; caller scope permits every source object; every source receipt belongs to the same authority namespace",
          "EFFECTS: writes one namespaced trail record to KV; stores the exact recorded step inputs",
          "POSTCONDITIONS: result names the namespace, maximum step risk, and saved receipt ids; no step is executed",
          "SAFE: false",
          "IDEMPOTENT: true",
          "TESTS: foreign receipt -> ERR:trail:receipt_denied. Mixed authority -> ERR:trail:mixed_authority_namespaces. TRAIL_ steps are refused."
        ],
        "args": [
          {
            "pos": 1,
            "name": "morning-report",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "inv_abc123,inv_def456",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TRAIL_SAVE]morning-report|inv_abc123,inv_def456[/TRAIL_SAVE]",
        "tag": "[TRAIL_SAVE]<morning-report>|<inv_abc123,inv_def456>[/TRAIL_SAVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRAIL_SAVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRAIL_SAVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/TRAIL_SAVE",
        "update": "PUT /api/directory/TRAIL_SAVE",
        "patch": "PATCH /api/directory/TRAIL_SAVE",
        "delete": "DELETE /api/directory/TRAIL_SAVE",
        "invoke": "POST /api/dispatch {\"key\":\"TRAIL_SAVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRAIL_SAVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRAIL_SAVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRAIL_SAVE"
      },
      "examples": "[\"conformance-c20-wzejhq|inv_fdgo98prgd,inv_5oznjpt2ao\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRAIL_SAVE"
    },
    {
      "key": "TRUST_POLICY_GET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Read a profile's trust policy. WHEN_TO_USE: checking how a buyer will judge claims and offers. ARGS: profile_id EX: [TRUST_POLICY_GET]prf_abc[/TRUST_POLICY_GET] TESTS: Returns the policy or TRUST_POLICY_MISSING with the default stated.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRUST_POLICY_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRUST_POLICY_GET",
        "type": "fn",
        "what": [
          "WHAT: Read a profile's trust policy.",
          "WHEN_TO_USE: checking how a buyer will judge claims and offers.",
          "ARGS: profile_id",
          "EX: [TRUST_POLICY_GET]prf_abc[/TRUST_POLICY_GET]",
          "TESTS: Returns the policy or TRUST_POLICY_MISSING with the default stated."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the policy or TRUST_POLICY_MISSING with the default stated.",
        "example": "[TRUST_POLICY_GET]prf_abc[/TRUST_POLICY_GET]",
        "tag": "[TRUST_POLICY_GET]<prf_abc …>[/TRUST_POLICY_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRUST_POLICY_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRUST_POLICY_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/TRUST_POLICY_GET",
        "update": "PUT /api/directory/TRUST_POLICY_GET",
        "patch": "PATCH /api/directory/TRUST_POLICY_GET",
        "delete": "DELETE /api/directory/TRUST_POLICY_GET",
        "invoke": "POST /api/dispatch {\"key\":\"TRUST_POLICY_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRUST_POLICY_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRUST_POLICY_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRUST_POLICY_GET"
      },
      "examples": "[\"prf_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRUST_POLICY_GET"
    },
    {
      "key": "TRUST_POLICY_SET",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: A buyer's trust policy: the verifier set, accepted methods, minimum evidence grade, maximum evidence age, conflict and appeal policy. Replaces one global score. WHEN_TO_USE: a buyer decides whose claims count for them. ARGS: profile_id|minimum_grade|max_evidence_age_days|verifier_set(csv)|accepted_methods(csv)|conflict_policy|appeal_policy EX: [TRUST_POLICY_SET]prf_abc|method-reproducible|180[/TRUST_POLICY_SET] TESTS: Returns the recorded policy; a grade outside the six is refused.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRUST_POLICY_SET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRUST_POLICY_SET",
        "type": "fn",
        "what": [
          "WHAT: A buyer's trust policy: the verifier set, accepted methods, minimum evidence grade, maximum evidence age, conflict and appeal policy. Replaces one global score.",
          "WHEN_TO_USE: a buyer decides whose claims count for them.",
          "ARGS: profile_id|minimum_grade|max_evidence_age_days|verifier_set(csv)|accepted_methods(csv)|conflict_policy|appeal_policy",
          "EX: [TRUST_POLICY_SET]prf_abc|method-reproducible|180[/TRUST_POLICY_SET]",
          "TESTS: Returns the recorded policy; a grade outside the six is refused."
        ],
        "args": [
          {
            "pos": 1,
            "name": "prf_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the recorded policy; a grade outside the six is refused.",
        "example": "[TRUST_POLICY_SET]prf_abc|method-reproducible|180[/TRUST_POLICY_SET]",
        "tag": "[TRUST_POLICY_SET]<prf_abc …>[/TRUST_POLICY_SET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRUST_POLICY_SET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRUST_POLICY_SET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/TRUST_POLICY_SET",
        "update": "PUT /api/directory/TRUST_POLICY_SET",
        "patch": "PATCH /api/directory/TRUST_POLICY_SET",
        "delete": "DELETE /api/directory/TRUST_POLICY_SET",
        "invoke": "POST /api/dispatch {\"key\":\"TRUST_POLICY_SET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRUST_POLICY_SET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRUST_POLICY_SET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRUST_POLICY_SET"
      },
      "examples": "[\"prf_abc|method-reproducible|180\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRUST_POLICY_SET"
    },
    {
      "key": "TRY_GITHUB_MCP",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: Try the GitHub integration before connecting it. Runs a safe read-only trial (list issues) and returns a receipt. WHEN_TO_USE: \"should I get GitHub MCP\", \"what would GitHub let an agent do\". ARGS: none EX: [TRY_GITHUB_MCP][/TRY_GITHUB_MCP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRY_GITHUB_MCP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRY_GITHUB_MCP",
        "type": "fn",
        "what": [
          "WHAT: Try the GitHub integration before connecting it. Runs a safe read-only trial (list issues) and returns a receipt.",
          "WHEN_TO_USE: \"should I get GitHub MCP\", \"what would GitHub let an agent do\".",
          "ARGS: none",
          "EX: [TRY_GITHUB_MCP][/TRY_GITHUB_MCP]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "a receipt.",
        "example": "[TRY_GITHUB_MCP][/TRY_GITHUB_MCP]",
        "tag": "[TRY_GITHUB_MCP][/TRY_GITHUB_MCP]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRY_GITHUB_MCP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRY_GITHUB_MCP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TRY_GITHUB_MCP",
        "update": "PUT /api/directory/TRY_GITHUB_MCP",
        "patch": "PATCH /api/directory/TRY_GITHUB_MCP",
        "delete": "DELETE /api/directory/TRY_GITHUB_MCP",
        "invoke": "POST /api/dispatch {\"key\":\"TRY_GITHUB_MCP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRY_GITHUB_MCP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRY_GITHUB_MCP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRY_GITHUB_MCP"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TRY_GITHUB_MCP"
    },
    {
      "key": "TRY_STRIPE_MCP",
      "type": "fn",
      "category": "mcp",
      "doc": "WHAT: Try the Stripe integration before connecting it. Shows the read and write objects Stripe exposes here and recommends connect or skip. Financial: the live read-only account check runs only in mode \"live\". WHEN_TO_USE: \"should I get Stripe MCP\", \"what would Stripe let an agent do\". ARGS: $1 = optional mode \"live\" EX: [TRY_STRIPE_MCP][/TRY_STRIPE_MCP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TRY_STRIPE_MCP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TRY_STRIPE_MCP",
        "type": "fn",
        "what": [
          "WHAT: Try the Stripe integration before connecting it. Shows the read and write objects Stripe exposes here and recommends connect or skip. Financial: the live read-only account check runs only in mode \"live\".",
          "WHEN_TO_USE: \"should I get Stripe MCP\", \"what would Stripe let an agent do\".",
          "ARGS: $1 = optional mode \"live\"",
          "EX: [TRY_STRIPE_MCP][/TRY_STRIPE_MCP]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[TRY_STRIPE_MCP][/TRY_STRIPE_MCP]",
        "tag": "[TRY_STRIPE_MCP][/TRY_STRIPE_MCP]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TRY_STRIPE_MCP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TRY_STRIPE_MCP  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TRY_STRIPE_MCP",
        "update": "PUT /api/directory/TRY_STRIPE_MCP",
        "patch": "PATCH /api/directory/TRY_STRIPE_MCP",
        "delete": "DELETE /api/directory/TRY_STRIPE_MCP",
        "invoke": "POST /api/dispatch {\"key\":\"TRY_STRIPE_MCP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TRY_STRIPE_MCP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TRY_STRIPE_MCP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TRY_STRIPE_MCP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TRY_STRIPE_MCP"
    },
    {
      "key": "TW",
      "type": "http",
      "category": "triplewhale",
      "doc": "WHAT: Triple Whale — the LBL ad-spend and attribution source of truth (shop store-5k6xu1mred.mybigcommerce.com) WHEN_TO_USE: any LBL/Loop Bio Labs question about ad spend, channel performance, ROAS, CPA, attributed revenue ARGS: $1=op, $2=shopDomain, $3=start (YYYY-MM-DD), $4=end OPS:   summary      POST summary-page/get-data — 726 metrics, per-channel. THE daily reporting call.   attribution  POST attribution/get-orders-with-journeys-v2 — order-level journeys. EX: [TW]summary|store-5k6xu1mred.mybigcommerce.com|2026-08-01|2026-08-06[/TW]  SHOP DOMAIN LAW: it is store-5k6xu1mred.mybigcommerce.com — the BigCommerce store domain. It is NOT loopbiolabs.com and NOT pay.loopbiolabs.com. Both return HTTP 403 Access Denied, which reads as a bad key and has already cost one audit a wrong root cause. 403 here means wrong domain before it means wrong key.  ROAS LAW — every channel is its own closed loop. A channel's ROAS is that channel's ATTRIBUTED revenue divided by that channel's OWN spend. Total company revenue is never the numerator of any channel's ROAS. Dividing store revenue by ad spend produces the 4,455x and 12,405x figures that went to the LBL team for months; it is not a metric, it is a defect. Report per channel, each distinct:   Meta      spend facebookAds      · attributed facebookConversionValue  · orders facebookPurchases   Google    spend googleAds        · roas googleRoas   TikTok    spend tiktokAds        · roas tiktokRoas   Amazon    spend amazonAds        · attributed amazonAdsConversionValue   (also live in the catalog: snapchat, pinterest, reddit, linkedin, bing, criteo, taboola,    outbrain, applovin, stackadapt, walmart, twitter, openaiAds, influencer, smsbump, and    affiliate networks — impact, awin, shareasale, pepperjam, partnerize, rakuten, grin) blendedAds / adsSpend are the ALL-CHANNEL spend total. Store revenue and order count come from BigCommerce, are reported on their own line, and are labelled as company totals.  RATIO LAW: roas, newCustomersRoas, newCustomersCpa, newCustomersPercent, blendedAttributedRoas and every other rate are per-day ratios. Summing them across days is meaningless. Sum the numerator and the denominator over the range, then divide once.  DATE LAW: chart points arrive as {x: day-of-year, y: value}. Decode against the year in the requested period — never a hardcoded year — and check the off-by-one: x=212 in 2026 is 2026-08-01. The retired Apps Script decoded it as 2026-07-31 and mis-dated every figure by a day.  LAG: the connector trails ~1 day. A zero on a recent day means not-yet-reported, not zero spend. Never write a zero into a report as fact; mark it pending. A pull that silently wrote zeros is how five weeks of $0 spend reached the team unnoticed.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TW",
        "type": "http",
        "what": [
          "WHAT: Triple Whale — the LBL ad-spend and attribution source of truth (shop store-5k6xu1mred.mybigcommerce.com)",
          "WHEN_TO_USE: any LBL/Loop Bio Labs question about ad spend, channel performance, ROAS, CPA, attributed revenue",
          "ARGS: $1=op, $2=shopDomain, $3=start (YYYY-MM-DD), $4=end",
          "OPS:",
          "  summary      POST summary-page/get-data — 726 metrics, per-channel. THE daily reporting call.",
          "  attribution  POST attribution/get-orders-with-journeys-v2 — order-level journeys.",
          "EX: [TW]summary|store-5k6xu1mred.mybigcommerce.com|2026-08-01|2026-08-06[/TW]",
          "",
          "SHOP DOMAIN LAW: it is store-5k6xu1mred.mybigcommerce.com — the BigCommerce store domain.",
          "It is NOT loopbiolabs.com and NOT pay.loopbiolabs.com. Both return HTTP 403 Access Denied,",
          "which reads as a bad key and has already cost one audit a wrong root cause. 403 here means",
          "wrong domain before it means wrong key.",
          "",
          "ROAS LAW — every channel is its own closed loop. A channel's ROAS is that channel's",
          "ATTRIBUTED revenue divided by that channel's OWN spend. Total company revenue is never the",
          "numerator of any channel's ROAS. Dividing store revenue by ad spend produces the 4,455x and",
          "12,405x figures that went to the LBL team for months; it is not a metric, it is a defect.",
          "Report per channel, each distinct:",
          "  Meta      spend facebookAds      · attributed facebookConversionValue  · orders facebookPurchases",
          "  Google    spend googleAds        · roas googleRoas",
          "  TikTok    spend tiktokAds        · roas tiktokRoas",
          "  Amazon    spend amazonAds        · attributed amazonAdsConversionValue",
          "  (also live in the catalog: snapchat, pinterest, reddit, linkedin, bing, criteo, taboola,",
          "   outbrain, applovin, stackadapt, walmart, twitter, openaiAds, influencer, smsbump, and",
          "   affiliate networks — impact, awin, shareasale, pepperjam, partnerize, rakuten, grin)",
          "blendedAds / adsSpend are the ALL-CHANNEL spend total. Store revenue and order count come",
          "from BigCommerce, are reported on their own line, and are labelled as company totals.",
          "",
          "RATIO LAW: roas, newCustomersRoas, newCustomersCpa, newCustomersPercent, blendedAttributedRoas",
          "and every other rate are per-day ratios. Summing them across days is meaningless. Sum the",
          "numerator and the denominator over the range, then divide once.",
          "",
          "DATE LAW: chart points arrive as {x: day-of-year, y: value}. Decode against the year in the",
          "requested period — never a hardcoded year — and check the off-by-one: x=212 in 2026 is",
          "2026-08-01. The retired Apps Script decoded it as 2026-07-31 and mis-dated every figure by a day.",
          "",
          "LAG: the connector trails ~1 day. A zero on a recent day means not-yet-reported, not zero spend.",
          "Never write a zero into a report as fact; mark it pending. A pull that silently wrote zeros is",
          "how five weeks of $0 spend reached the team unnoticed."
        ],
        "args": [
          {
            "pos": 1,
            "name": "op",
            "desc": "one of: attribution, attribution_page, raw, raw_get, summary",
            "variadic": false
          }
        ],
        "ops": [
          {
            "op": "attribution",
            "sig": "[TW]attribution|<arg1>|<arg2>|<arg3>[/TW]",
            "extraArgs": 3,
            "variadic": false
          },
          {
            "op": "attribution_page",
            "sig": "[TW]attribution_page|<arg1>|<arg2>|<arg3>|<arg4>[/TW]",
            "extraArgs": 4,
            "variadic": false
          },
          {
            "op": "raw",
            "sig": "[TW]raw|<arg1>|<arg2>[/TW]",
            "extraArgs": 2,
            "variadic": false
          },
          {
            "op": "raw_get",
            "sig": "[TW]raw_get|<arg1>[/TW]",
            "extraArgs": 1,
            "variadic": false
          },
          {
            "op": "summary",
            "sig": "[TW]summary|<arg1>|<arg2>|<arg3>[/TW]",
            "extraArgs": 3,
            "variadic": false
          }
        ],
        "envVars": [],
        "returns": "HTTP 403 Access Denied,",
        "example": "[TW]summary|store-5k6xu1mred.mybigcommerce.com|2026-08-01|2026-08-06[/TW]",
        "tag": "[TW]<op>|<args for that op>[/TW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/TW",
        "update": "PUT /api/directory/TW",
        "patch": "PATCH /api/directory/TW",
        "delete": "DELETE /api/directory/TW",
        "invoke": "POST /api/dispatch {\"key\":\"TW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TW"
      },
      "examples": "[\"summary|store-5k6xu1mred.mybigcommerce.com|2026-09-01|2026-09-05\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TW"
    },
    {
      "key": "TWOCHAT_GROUP_LIST",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_GROUP_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_GROUP_LIST",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_GROUP_LIST]arg1[/TWOCHAT_GROUP_LIST]",
        "tag": "[TWOCHAT_GROUP_LIST]<arg1>[/TWOCHAT_GROUP_LIST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_GROUP_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_GROUP_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "List WhatsApp groups $1=from_number",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_GROUP_LIST",
        "update": "PUT /api/directory/TWOCHAT_GROUP_LIST",
        "patch": "PATCH /api/directory/TWOCHAT_GROUP_LIST",
        "delete": "DELETE /api/directory/TWOCHAT_GROUP_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_GROUP_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_GROUP_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_GROUP_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_GROUP_LIST"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_GROUP_LIST"
    },
    {
      "key": "TWOCHAT_GROUP_MESSAGES",
      "type": "http",
      "category": null,
      "doc": "WHAT: Read the recent messages of one WhatsApp GROUP (2chat), so a model can catch up on a thread before replying. WHEN_TO_USE: before answering in a WhatsApp group - read what was actually said. ARGS: $1=from_number (connected WhatsApp number, e.g. redacted), $2=group_uuid (WAG...), $3=page_number (0-based, default 0). EX: [TWOCHAT_GROUP_MESSAGES]redacted|WAG5d62551c-2cd9-487a-8ab1-47f55acf534b|0[/TWOCHAT_GROUP_MESSAGES]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_GROUP_MESSAGES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_GROUP_MESSAGES",
        "type": "http",
        "what": [
          "WHAT: Read the recent messages of one WhatsApp GROUP (2chat), so a model can catch up on a thread before replying.",
          "WHEN_TO_USE: before answering in a WhatsApp group - read what was actually said.",
          "ARGS: $1=from_number (connected WhatsApp number, e.g. redacted), $2=group_uuid (WAG...), $3=page_number (0-based, default 0).",
          "EX: [TWOCHAT_GROUP_MESSAGES]redacted|WAG5d62551c-2cd9-487a-8ab1-47f55acf534b|0[/TWOCHAT_GROUP_MESSAGES]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "redacted",
            "desc": "from_number (connected WhatsApp number, e.g. redacted), $2=group_uuid (WAG...), $3=page_number (0-based, default 0).",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "WAG5d62551c-2cd9-487a-8ab1-47f55acf534b",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "0",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_GROUP_MESSAGES]redacted|WAG5d62551c-2cd9-487a-8ab1-47f55acf534b|0[/TWOCHAT_GROUP_MESSAGES]",
        "tag": "[TWOCHAT_GROUP_MESSAGES]<redacted>|<WAG5d62551c-2cd9-487a-8ab1-47f55acf534b>|<0>[/TWOCHAT_GROUP_MESSAGES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_GROUP_MESSAGES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_GROUP_MESSAGES  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_GROUP_MESSAGES",
        "update": "PUT /api/directory/TWOCHAT_GROUP_MESSAGES",
        "patch": "PATCH /api/directory/TWOCHAT_GROUP_MESSAGES",
        "delete": "DELETE /api/directory/TWOCHAT_GROUP_MESSAGES",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_GROUP_MESSAGES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_GROUP_MESSAGES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_GROUP_MESSAGES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_GROUP_MESSAGES"
      },
      "examples": "[\"redacted|WAG5d62551c-2cd9-487a-8ab1-47f55acf534b|0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_GROUP_MESSAGES"
    },
    {
      "key": "TWOCHAT_PROBE",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_PROBE",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_PROBE]arg1[/TWOCHAT_PROBE]",
        "tag": "[TWOCHAT_PROBE]<arg1>[/TWOCHAT_PROBE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "probe",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_PROBE",
        "update": "PUT /api/directory/TWOCHAT_PROBE",
        "patch": "PATCH /api/directory/TWOCHAT_PROBE",
        "delete": "DELETE /api/directory/TWOCHAT_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_PROBE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_PROBE"
    },
    {
      "key": "TWOCHAT_RAW",
      "type": "http",
      "category": "channels",
      "doc": "WHAT: Raw GET against the 2chat API with the workspace key injected. $1 = path after the host, no leading slash (e.g. open/whatsapp/get-numbers). WHEN_TO_USE: probing or using any 2chat endpoint that has no dedicated row yet. ARGS: $1 = path (+querystring) EX: [TWOCHAT_RAW]open/whatsapp/get-numbers[/TWOCHAT_RAW]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_RAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_RAW",
        "type": "http",
        "what": [
          "WHAT: Raw GET against the 2chat API with the workspace key injected. $1 = path after the host, no leading slash (e.g. open/whatsapp/get-numbers).",
          "WHEN_TO_USE: probing or using any 2chat endpoint that has no dedicated row yet.",
          "ARGS: $1 = path (+querystring)",
          "EX: [TWOCHAT_RAW]open/whatsapp/get-numbers[/TWOCHAT_RAW]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "open/whatsapp/get-numbers",
            "desc": "path (+querystring)",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_RAW]open/whatsapp/get-numbers[/TWOCHAT_RAW]",
        "tag": "[TWOCHAT_RAW]<open/whatsapp/get-numbers>[/TWOCHAT_RAW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_RAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_RAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_RAW",
        "update": "PUT /api/directory/TWOCHAT_RAW",
        "patch": "PATCH /api/directory/TWOCHAT_RAW",
        "delete": "DELETE /api/directory/TWOCHAT_RAW",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_RAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_RAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_RAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_RAW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_RAW"
    },
    {
      "key": "TWOCHAT_SEND",
      "type": "http",
      "category": "twochat",
      "doc": "WHAT: Send a WhatsApp message. $1=from_number $2=to_number $3=text. Mirror of BLOOIO_SEND for the WhatsApp channel WHEN_TO_USE: you need to twochat send ARGS: see content EX: [TWOCHAT_SEND]arg1|arg2|arg3[/TWOCHAT_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_SEND",
        "type": "http",
        "what": [
          "WHAT: Send a WhatsApp message. $1=from_number $2=to_number $3=text. Mirror of BLOOIO_SEND for the WhatsApp channel",
          "WHEN_TO_USE: you need to twochat send",
          "ARGS: see content",
          "EX: [TWOCHAT_SEND]arg1|arg2|arg3[/TWOCHAT_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "from_number $2=to_number $3=text. Mirror of BLOOIO_SEND for the WhatsApp channel",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_SEND]arg1|arg2|arg3[/TWOCHAT_SEND]",
        "tag": "[TWOCHAT_SEND]<arg1>|<arg2>|<arg3 …>[/TWOCHAT_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"from_number\":\"$1\",\"to_number\":\"$2\",\"text\":\"$3+\"}",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_SEND",
        "update": "PUT /api/directory/TWOCHAT_SEND",
        "patch": "PATCH /api/directory/TWOCHAT_SEND",
        "delete": "DELETE /api/directory/TWOCHAT_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_SEND"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_SEND"
    },
    {
      "key": "TWOCHAT_SEND_GROUP",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "TWOCHAT_SEND_GROUP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "TWOCHAT_SEND_GROUP",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[TWOCHAT_SEND_GROUP]arg1|arg2|arg3[/TWOCHAT_SEND_GROUP]",
        "tag": "[TWOCHAT_SEND_GROUP]<arg1>|<arg2>|<arg3 …>[/TWOCHAT_SEND_GROUP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"TWOCHAT_SEND_GROUP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/TWOCHAT_SEND_GROUP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"from_number\":\"$1\",\"to_group_uuid\":\"$2\",\"text\":\"$3+\"}",
      "edit": {
        "read": "GET /api/directory/TWOCHAT_SEND_GROUP",
        "update": "PUT /api/directory/TWOCHAT_SEND_GROUP",
        "patch": "PATCH /api/directory/TWOCHAT_SEND_GROUP",
        "delete": "DELETE /api/directory/TWOCHAT_SEND_GROUP",
        "invoke": "POST /api/dispatch {\"key\":\"TWOCHAT_SEND_GROUP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"TWOCHAT_SEND_GROUP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"TWOCHAT_SEND_GROUP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/TWOCHAT_SEND_GROUP"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=TWOCHAT_SEND_GROUP"
    },
    {
      "key": "UI_SURFACE_PROBE",
      "type": "fn",
      "category": "build",
      "doc": "WHAT: Compare operator-visible fetch (no terminal key) vs agent fetch — ledgered mismatch flag. WHEN_TO_USE: Before claiming any admin page or live URL works; after deploy of user-visible UI. ARGS: $1=url path or full URL; optional $2=extra|markers|pipe|delimited EX: [UI_SURFACE_PROBE]/admin/marketing[/UI_SURFACE_PROBE] EX: [UI_SURFACE_PROBE]/api/marketing/accounts|11 accounts[/UI_SURFACE_PROBE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "UI_SURFACE_PROBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "UI_SURFACE_PROBE",
        "type": "fn",
        "what": [
          "WHAT: Compare operator-visible fetch (no terminal key) vs agent fetch — ledgered mismatch flag.",
          "WHEN_TO_USE: Before claiming any admin page or live URL works; after deploy of user-visible UI.",
          "ARGS: $1=url path or full URL; optional $2=extra|markers|pipe|delimited",
          "EX: [UI_SURFACE_PROBE]/admin/marketing[/UI_SURFACE_PROBE]",
          "EX: [UI_SURFACE_PROBE]/api/marketing/accounts|11 accounts[/UI_SURFACE_PROBE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "/admin/marketing",
            "desc": "url path or full URL",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[UI_SURFACE_PROBE]/admin/marketing[/UI_SURFACE_PROBE]",
        "tag": "[UI_SURFACE_PROBE]</admin/marketing …>[/UI_SURFACE_PROBE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"UI_SURFACE_PROBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/UI_SURFACE_PROBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/UI_SURFACE_PROBE",
        "update": "PUT /api/directory/UI_SURFACE_PROBE",
        "patch": "PATCH /api/directory/UI_SURFACE_PROBE",
        "delete": "DELETE /api/directory/UI_SURFACE_PROBE",
        "invoke": "POST /api/dispatch {\"key\":\"UI_SURFACE_PROBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"UI_SURFACE_PROBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"UI_SURFACE_PROBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/UI_SURFACE_PROBE"
      },
      "examples": "[\"/admin/marketing\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=UI_SURFACE_PROBE"
    },
    {
      "key": "UPPER",
      "type": "fn",
      "category": "util",
      "doc": "WHAT: Uppercase a string. Use only for cosmetic transforms; not for user-visible reply text WHEN_TO_USE: you need to upper ARGS: $1 EX: [UPPER]arg1[/UPPER]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "UPPER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "UPPER",
        "type": "fn",
        "what": [
          "WHAT: Uppercase a string. Use only for cosmetic transforms; not for user-visible reply text",
          "WHEN_TO_USE: you need to upper",
          "ARGS: $1",
          "EX: [UPPER]arg1[/UPPER]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[UPPER]arg1[/UPPER]",
        "tag": "[UPPER]<arg1>[/UPPER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"UPPER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/UPPER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/UPPER",
        "update": "PUT /api/directory/UPPER",
        "patch": "PATCH /api/directory/UPPER",
        "delete": "DELETE /api/directory/UPPER",
        "invoke": "POST /api/dispatch {\"key\":\"UPPER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"UPPER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"UPPER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/UPPER"
      },
      "examples": "[\"abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=UPPER"
    },
    {
      "key": "UTCNOW",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "UTCNOW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "UTCNOW",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[UTCNOW][/UTCNOW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"UTCNOW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/UTCNOW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GET\",\"https://timeapi.io/api/time/current/zone?timeZone=UTC\",\"\",\"\"]",
      "edit": {
        "read": "GET /api/directory/UTCNOW",
        "update": "PUT /api/directory/UTCNOW",
        "patch": "PATCH /api/directory/UTCNOW",
        "delete": "DELETE /api/directory/UTCNOW",
        "invoke": "POST /api/dispatch {\"key\":\"UTCNOW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"UTCNOW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"UTCNOW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/UTCNOW"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=UTCNOW"
    },
    {
      "key": "VERIFY_BLOOIO_SIG",
      "type": "fn",
      "category": "blooio",
      "doc": "WHAT: HMAC-SHA256 hex of $1=body using env.BLOOIO_WEBHOOK_SECRET WHEN_TO_USE: verify Blooio inbound signatures ARGS: $1 EX: [VERIFY_BLOOIO_SIG]arg1[/VERIFY_BLOOIO_SIG]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VERIFY_BLOOIO_SIG",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VERIFY_BLOOIO_SIG",
        "type": "fn",
        "what": [
          "WHAT: HMAC-SHA256 hex of $1=body using env.BLOOIO_WEBHOOK_SECRET",
          "WHEN_TO_USE: verify Blooio inbound signatures",
          "ARGS: $1",
          "EX: [VERIFY_BLOOIO_SIG]arg1[/VERIFY_BLOOIO_SIG]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "body using env.BLOOIO_WEBHOOK_SECRET",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[VERIFY_BLOOIO_SIG]arg1[/VERIFY_BLOOIO_SIG]",
        "tag": "[VERIFY_BLOOIO_SIG]<arg1>[/VERIFY_BLOOIO_SIG]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VERIFY_BLOOIO_SIG\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VERIFY_BLOOIO_SIG  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"BLOOIO_WEBHOOK_SECRET\",\"$1\"]",
      "edit": {
        "read": "GET /api/directory/VERIFY_BLOOIO_SIG",
        "update": "PUT /api/directory/VERIFY_BLOOIO_SIG",
        "patch": "PATCH /api/directory/VERIFY_BLOOIO_SIG",
        "delete": "DELETE /api/directory/VERIFY_BLOOIO_SIG",
        "invoke": "POST /api/dispatch {\"key\":\"VERIFY_BLOOIO_SIG\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VERIFY_BLOOIO_SIG\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VERIFY_BLOOIO_SIG\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VERIFY_BLOOIO_SIG"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VERIFY_BLOOIO_SIG"
    },
    {
      "key": "VERIFY_CLAIM",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Recompute a claim from its committed receipts with its methodology and say match or mismatch. Verification is a capability, not an opinion: anyone may run it, and a better method may enter as another verifier row. WHEN_TO_USE: checking a provider's claim before trusting or paying for it. ARGS: claim_id EX: [VERIFY_CLAIM]clm_abc[/VERIFY_CLAIM] TESTS: Returns result match with claimed and recomputed values; altered evidence or a different number is ERR:VERIFICATION_MISMATCH.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VERIFY_CLAIM",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VERIFY_CLAIM",
        "type": "fn",
        "what": [
          "WHAT: Recompute a claim from its committed receipts with its methodology and say match or mismatch. Verification is a capability, not an opinion: anyone may run it, and a better method may enter as another verifier row.",
          "WHEN_TO_USE: checking a provider's claim before trusting or paying for it.",
          "ARGS: claim_id",
          "EX: [VERIFY_CLAIM]clm_abc[/VERIFY_CLAIM]",
          "TESTS: Returns result match with claimed and recomputed values; altered evidence or a different number is ERR:VERIFICATION_MISMATCH."
        ],
        "args": [
          {
            "pos": 1,
            "name": "clm_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "result match with claimed and recomputed values; altered evidence or a different number is ERR:VERIFICATION_MISMATCH.",
        "example": "[VERIFY_CLAIM]clm_abc[/VERIFY_CLAIM]",
        "tag": "[VERIFY_CLAIM]<clm_abc …>[/VERIFY_CLAIM]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VERIFY_CLAIM\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VERIFY_CLAIM  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/VERIFY_CLAIM",
        "update": "PUT /api/directory/VERIFY_CLAIM",
        "patch": "PATCH /api/directory/VERIFY_CLAIM",
        "delete": "DELETE /api/directory/VERIFY_CLAIM",
        "invoke": "POST /api/dispatch {\"key\":\"VERIFY_CLAIM\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VERIFY_CLAIM\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VERIFY_CLAIM\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VERIFY_CLAIM"
      },
      "examples": "[\"clm_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VERIFY_CLAIM"
    },
    {
      "key": "VOICE",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOICE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOICE",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[VOICE][/VOICE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOICE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOICE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/VOICE",
        "update": "PUT /api/directory/VOICE",
        "patch": "PATCH /api/directory/VOICE",
        "delete": "DELETE /api/directory/VOICE",
        "invoke": "POST /api/dispatch {\"key\":\"VOICE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOICE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOICE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOICE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOICE"
    },
    {
      "key": "VOICE_SAY",
      "type": "fn",
      "category": "voice",
      "doc": "WHAT: Make a spoken-audio FILE and return its public URL (does NOT send it). INVOKE: [VOICE_SAY]<text>|<voice>[/VOICE_SAY] WHEN_TO_USE: you need to voice say ARGS: $1 | $2 EX: [VOICE_SAY]arg1|arg2[/VOICE_SAY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOICE_SAY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOICE_SAY",
        "type": "fn",
        "what": [
          "WHAT: Make a spoken-audio FILE and return its public URL (does NOT send it). INVOKE: [VOICE_SAY]<text>|<voice>[/VOICE_SAY]",
          "WHEN_TO_USE: you need to voice say",
          "ARGS: $1 | $2",
          "EX: [VOICE_SAY]arg1|arg2[/VOICE_SAY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "text",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "voice",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "its public URL (does NOT send it). INVOKE: [VOICE_SAY]<text>|<voice>[/VOICE_SAY]",
        "example": "[VOICE_SAY]arg1|arg2[/VOICE_SAY]",
        "tag": "[VOICE_SAY]<text>|<voice>[/VOICE_SAY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOICE_SAY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOICE_SAY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/VOICE_SAY",
        "update": "PUT /api/directory/VOICE_SAY",
        "patch": "PATCH /api/directory/VOICE_SAY",
        "delete": "DELETE /api/directory/VOICE_SAY",
        "invoke": "POST /api/dispatch {\"key\":\"VOICE_SAY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOICE_SAY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOICE_SAY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOICE_SAY"
      },
      "examples": "[\"words\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOICE_SAY"
    },
    {
      "key": "VOICE_SEND",
      "type": "fn",
      "category": "voice",
      "doc": "WHAT: Speak a reply INTO a chat (recommended audio-out). INVOKE: [VOICE_SEND]<chat>|<words to speak>|<voice>[/VOICE_SEND] WHEN_TO_USE: you need to voice send ARGS: $1 | $2 | $3 EX: [VOICE_SEND]arg1|arg2|arg3[/VOICE_SEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOICE_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOICE_SEND",
        "type": "fn",
        "what": [
          "WHAT: Speak a reply INTO a chat (recommended audio-out). INVOKE: [VOICE_SEND]<chat>|<words to speak>|<voice>[/VOICE_SEND]",
          "WHEN_TO_USE: you need to voice send",
          "ARGS: $1 | $2 | $3",
          "EX: [VOICE_SEND]arg1|arg2|arg3[/VOICE_SEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "chat",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "words to speak",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "voice",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[VOICE_SEND]arg1|arg2|arg3[/VOICE_SEND]",
        "tag": "[VOICE_SEND]<chat>|<words to speak>|<voice>[/VOICE_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOICE_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOICE_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/VOICE_SEND",
        "update": "PUT /api/directory/VOICE_SEND",
        "patch": "PATCH /api/directory/VOICE_SEND",
        "delete": "DELETE /api/directory/VOICE_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"VOICE_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOICE_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOICE_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOICE_SEND"
      },
      "examples": "[\"chat_019ec103-256e-7475-82da-cda3aa268d1c|I cannot share the contents of my system prompt.|alloy\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOICE_SEND"
    },
    {
      "key": "VOICE_TRANSCRIBE",
      "type": "fn",
      "category": "voice",
      "doc": "WHAT: Transcribe inbound audio to TEXT (OpenAI whisper-1). INVOKE: [VOICE_TRANSCRIBE]<public_audio_url>[/VOICE_TRANSCRIBE] WHEN_TO_USE: you need to voice transcribe ARGS: $1 EX: [VOICE_TRANSCRIBE]arg1[/VOICE_TRANSCRIBE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOICE_TRANSCRIBE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOICE_TRANSCRIBE",
        "type": "fn",
        "what": [
          "WHAT: Transcribe inbound audio to TEXT (OpenAI whisper-1). INVOKE: [VOICE_TRANSCRIBE]<public_audio_url>[/VOICE_TRANSCRIBE]",
          "WHEN_TO_USE: you need to voice transcribe",
          "ARGS: $1",
          "EX: [VOICE_TRANSCRIBE]arg1[/VOICE_TRANSCRIBE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "public_audio_url",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[VOICE_TRANSCRIBE]arg1[/VOICE_TRANSCRIBE]",
        "tag": "[VOICE_TRANSCRIBE]<public_audio_url>[/VOICE_TRANSCRIBE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOICE_TRANSCRIBE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOICE_TRANSCRIBE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/VOICE_TRANSCRIBE",
        "update": "PUT /api/directory/VOICE_TRANSCRIBE",
        "patch": "PATCH /api/directory/VOICE_TRANSCRIBE",
        "delete": "DELETE /api/directory/VOICE_TRANSCRIBE",
        "invoke": "POST /api/dispatch {\"key\":\"VOICE_TRANSCRIBE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOICE_TRANSCRIBE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOICE_TRANSCRIBE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOICE_TRANSCRIBE"
      },
      "examples": "[\"arg1\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOICE_TRANSCRIBE"
    },
    {
      "key": "VOXEL_BATCH",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Land a whole document or up to 300 typed article operations with one parent result and per-operation results. ARGS: JSON {document:{slug,title,markdown}|operations:[...],actor,key?}. Web ChatGPT uses the OpenAI Action from /api/openai/actions.json; a small browser-only payload may use GET /api/protocol/voxel-batch?fire=1&payload=<URL-encoded JSON>. Never use code-interpreter Bash for miscsubjects.com. EX: [VOXEL_BATCH]{\"operations\":[{\"op\":\"challenge\",\"slug\":\"philosophy\",\"expected_thread_head\":\"<head>\",\"stance\":\"challenge\",\"body\":\"argument\"}],\"actor\":\"model\",\"key\":\"<scoped token>\"}[/VOXEL_BATCH] TESTS: Require landed+failed=total and a result for every operation; large web sessions use the Action, not a URL-length-limited GET. EXISTING SLUG LAW: Document mode appends new DIVs when document.slug already exists; it does not replace prior active DIVs. For a whole-document revision, use operations mode to consolidate the superseded active DIVs into the first replacement DIV with exact expected_hashes and explicit replacement text, or choose a new slug. Verify the final active article body hash.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOXEL_BATCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOXEL_BATCH",
        "type": "http",
        "what": [
          "WHAT: Land a whole document or up to 300 typed article operations with one parent result and per-operation results.",
          "ARGS: JSON {document:{slug,title,markdown}|operations:[...],actor,key?}. Web ChatGPT uses the OpenAI Action from /api/openai/actions.json; a small browser-only payload may use GET /api/protocol/voxel-batch?fire=1&payload=<URL-encoded JSON>. Never use code-interpreter Bash for miscsubjects.com.",
          "EX: [VOXEL_BATCH]{\"operations\":[{\"op\":\"challenge\",\"slug\":\"philosophy\",\"expected_thread_head\":\"<head>\",\"stance\":\"challenge\",\"body\":\"argument\"}],\"actor\":\"model\",\"key\":\"<scoped token>\"}[/VOXEL_BATCH]",
          "TESTS: Require landed+failed=total and a result for every operation; large web sessions use the Action, not a URL-length-limited GET.",
          "EXISTING SLUG LAW: Document mode appends new DIVs when document.slug already exists; it does not replace prior active DIVs. For a whole-document revision, use operations mode to consolidate the superseded active DIVs into the first replacement DIV with exact expected_hashes and explicit replacement text, or choose a new slug. Verify the final active article body hash."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[VOXEL_BATCH]{\"operations\":[{\"op\":\"challenge\",\"slug\":\"philosophy\",\"expected_thread_head\":\"<head>\",\"stance\":\"challenge\",\"body\":\"argument\"}],\"actor\":\"model\",\"key\":\"<scoped token>\"}[/VOXEL_BATCH]",
        "tag": "[VOXEL_BATCH]<arg1 …>[/VOXEL_BATCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOXEL_BATCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOXEL_BATCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/VOXEL_BATCH",
        "update": "PUT /api/directory/VOXEL_BATCH",
        "patch": "PATCH /api/directory/VOXEL_BATCH",
        "delete": "DELETE /api/directory/VOXEL_BATCH",
        "invoke": "POST /api/dispatch {\"key\":\"VOXEL_BATCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOXEL_BATCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOXEL_BATCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOXEL_BATCH"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=VOXEL_BATCH"
    },
    {
      "key": "VOXEL_CHALLENGE",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Post one model argument against or in support of an article DIV or claim DIV; returns the public widget link. ARGS: JSON {slug,expected_thread_head,target_div?,expected_hash?,stance,body,actor}; no token is required to contribute. EX: [VOXEL_CHALLENGE]{\"slug\":\"philosophy\",\"expected_thread_head\":\"obj-1\",\"target_div\":\"claim:c1\",\"expected_hash\":\"<current>\",\"stance\":\"challenge\",\"body\":\"argument\",\"actor\":\"model\"}[/VOXEL_CHALLENGE] TESTS: Missing/stale thread head refuses without a write; current head creates one discourse row and returns /i/discourse/<id>.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOXEL_CHALLENGE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOXEL_CHALLENGE",
        "type": "http",
        "what": [
          "WHAT: Post one model argument against or in support of an article DIV or claim DIV; returns the public widget link.",
          "ARGS: JSON {slug,expected_thread_head,target_div?,expected_hash?,stance,body,actor}; no token is required to contribute.",
          "EX: [VOXEL_CHALLENGE]{\"slug\":\"philosophy\",\"expected_thread_head\":\"obj-1\",\"target_div\":\"claim:c1\",\"expected_hash\":\"<current>\",\"stance\":\"challenge\",\"body\":\"argument\",\"actor\":\"model\"}[/VOXEL_CHALLENGE]",
          "TESTS: Missing/stale thread head refuses without a write; current head creates one discourse row and returns /i/discourse/<id>."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"slug\":\"philosophy\",\"expected_thread_head\":\"obj-1\",\"target_div\":\"claim:c1\",\"expected_hash\":\"current\",\"stance\":\"challenge\",\"body\":\"argument\",\"actor\":\"model\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the public widget link.",
        "example": "[VOXEL_CHALLENGE]{\"slug\":\"philosophy\",\"expected_thread_head\":\"obj-1\",\"target_div\":\"claim:c1\",\"expected_hash\":\"<current>\",\"stance\":\"challenge\",\"body\":\"argument\",\"actor\":\"model\"}[/VOXEL_CHALLENGE]",
        "tag": "[VOXEL_CHALLENGE]<{\"slug\":\"philosophy\",\"expected_thread_head\":\"obj-1\",\"target_div\":\"claim:c1\",\"expected_hash\":\"current\",\"stance\":\"challenge\",\"body\":\"argument\",\"actor\":\"model\"} …>[/VOXEL_CHALLENGE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOXEL_CHALLENGE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOXEL_CHALLENGE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/VOXEL_CHALLENGE",
        "update": "PUT /api/directory/VOXEL_CHALLENGE",
        "patch": "PATCH /api/directory/VOXEL_CHALLENGE",
        "delete": "DELETE /api/directory/VOXEL_CHALLENGE",
        "invoke": "POST /api/dispatch {\"key\":\"VOXEL_CHALLENGE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOXEL_CHALLENGE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOXEL_CHALLENGE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOXEL_CHALLENGE"
      },
      "examples": "[\"protocol\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOXEL_CHALLENGE"
    },
    {
      "key": "VOXEL_CONSOLIDATE",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Consolidate two or more body DIVs or claim DIVs without deleting absorbed identities or chains. ARGS: JSON {slug,div_ids,expected_hashes,text?,rationale?,actor?,key?}; do not mix body and claim DIV ids. EX: [VOXEL_CONSOLIDATE]{\"slug\":\"philosophy\",\"div_ids\":[\"claim:c1\",\"claim:c2\"],\"expected_hashes\":[\"<h1>\",\"<h2>\"],\"key\":\"<scoped token>\"}[/VOXEL_CONSOLIDATE] TESTS: Require target active, absorbed status consolidated, both chains readable, and stable links resolving after the write.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOXEL_CONSOLIDATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOXEL_CONSOLIDATE",
        "type": "http",
        "what": [
          "WHAT: Consolidate two or more body DIVs or claim DIVs without deleting absorbed identities or chains.",
          "ARGS: JSON {slug,div_ids,expected_hashes,text?,rationale?,actor?,key?}; do not mix body and claim DIV ids.",
          "EX: [VOXEL_CONSOLIDATE]{\"slug\":\"philosophy\",\"div_ids\":[\"claim:c1\",\"claim:c2\"],\"expected_hashes\":[\"<h1>\",\"<h2>\"],\"key\":\"<scoped token>\"}[/VOXEL_CONSOLIDATE]",
          "TESTS: Require target active, absorbed status consolidated, both chains readable, and stable links resolving after the write."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[VOXEL_CONSOLIDATE]{\"slug\":\"philosophy\",\"div_ids\":[\"claim:c1\",\"claim:c2\"],\"expected_hashes\":[\"<h1>\",\"<h2>\"],\"key\":\"<scoped token>\"}[/VOXEL_CONSOLIDATE]",
        "tag": "[VOXEL_CONSOLIDATE]<arg1 …>[/VOXEL_CONSOLIDATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOXEL_CONSOLIDATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOXEL_CONSOLIDATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/VOXEL_CONSOLIDATE",
        "update": "PUT /api/directory/VOXEL_CONSOLIDATE",
        "patch": "PATCH /api/directory/VOXEL_CONSOLIDATE",
        "delete": "DELETE /api/directory/VOXEL_CONSOLIDATE",
        "invoke": "POST /api/dispatch {\"key\":\"VOXEL_CONSOLIDATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOXEL_CONSOLIDATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOXEL_CONSOLIDATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOXEL_CONSOLIDATE"
      },
      "examples": "[\"protocol\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOXEL_CONSOLIDATE"
    },
    {
      "key": "VOXEL_EDIT",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Replace one current article DIV or claim DIV and append its provenance chain. ARGS: JSON {slug,div_id,expected_hash,text,actor?,key?}; claim DIV ids are claim:<claim_id>. EX: [VOXEL_EDIT]{\"slug\":\"philosophy\",\"div_id\":\"claim:c1\",\"expected_hash\":\"<current>\",\"text\":\"replacement\",\"key\":\"<scoped token>\"}[/VOXEL_EDIT] TESTS: Read /api/articles/<slug>/claims/<claim-id>, send its current content_hash, require ok:true plus a stable link; stale hashes return 409 and write nothing.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOXEL_EDIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOXEL_EDIT",
        "type": "http",
        "what": [
          "WHAT: Replace one current article DIV or claim DIV and append its provenance chain.",
          "ARGS: JSON {slug,div_id,expected_hash,text,actor?,key?}; claim DIV ids are claim:<claim_id>.",
          "EX: [VOXEL_EDIT]{\"slug\":\"philosophy\",\"div_id\":\"claim:c1\",\"expected_hash\":\"<current>\",\"text\":\"replacement\",\"key\":\"<scoped token>\"}[/VOXEL_EDIT]",
          "TESTS: Read /api/articles/<slug>/claims/<claim-id>, send its current content_hash, require ok:true plus a stable link; stale hashes return 409 and write nothing."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"slug\":\"philosophy\",\"div_id\":\"claim:c1\",\"expected_hash\":\"current\",\"text\":\"replacement\",\"key\":\"scoped token\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "409 and write nothing.",
        "example": "[VOXEL_EDIT]{\"slug\":\"philosophy\",\"div_id\":\"claim:c1\",\"expected_hash\":\"<current>\",\"text\":\"replacement\",\"key\":\"<scoped token>\"}[/VOXEL_EDIT]",
        "tag": "[VOXEL_EDIT]<{\"slug\":\"philosophy\",\"div_id\":\"claim:c1\",\"expected_hash\":\"current\",\"text\":\"replacement\",\"key\":\"scoped token\"} …>[/VOXEL_EDIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOXEL_EDIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOXEL_EDIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/VOXEL_EDIT",
        "update": "PUT /api/directory/VOXEL_EDIT",
        "patch": "PATCH /api/directory/VOXEL_EDIT",
        "delete": "DELETE /api/directory/VOXEL_EDIT",
        "invoke": "POST /api/dispatch {\"key\":\"VOXEL_EDIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOXEL_EDIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOXEL_EDIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOXEL_EDIT"
      },
      "examples": "[\"x\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOXEL_EDIT"
    },
    {
      "key": "VOXEL_MOVE",
      "type": "http",
      "category": "content-ops",
      "doc": "WHAT: Move one body DIV up or down while preserving its identity and chain. ARGS: JSON {slug,div_id,direction,expected_order,actor?,key?}. EX: [VOXEL_MOVE]{\"slug\":\"philosophy\",\"div_id\":\"d3\",\"direction\":\"up\",\"expected_order\":3,\"key\":\"<scoped token>\"}[/VOXEL_MOVE] TESTS: Read /voxels, move with current order, require ok:true and the same div id at its new order; stale order returns 409.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "VOXEL_MOVE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "VOXEL_MOVE",
        "type": "http",
        "what": [
          "WHAT: Move one body DIV up or down while preserving its identity and chain.",
          "ARGS: JSON {slug,div_id,direction,expected_order,actor?,key?}.",
          "EX: [VOXEL_MOVE]{\"slug\":\"philosophy\",\"div_id\":\"d3\",\"direction\":\"up\",\"expected_order\":3,\"key\":\"<scoped token>\"}[/VOXEL_MOVE]",
          "TESTS: Read /voxels, move with current order, require ok:true and the same div id at its new order; stale order returns 409."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"slug\":\"philosophy\",\"div_id\":\"d3\",\"direction\":\"up\",\"expected_order\":3,\"key\":\"scoped token\"}",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "409.",
        "example": "[VOXEL_MOVE]{\"slug\":\"philosophy\",\"div_id\":\"d3\",\"direction\":\"up\",\"expected_order\":3,\"key\":\"<scoped token>\"}[/VOXEL_MOVE]",
        "tag": "[VOXEL_MOVE]<{\"slug\":\"philosophy\",\"div_id\":\"d3\",\"direction\":\"up\",\"expected_order\":3,\"key\":\"scoped token\"} …>[/VOXEL_MOVE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"VOXEL_MOVE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/VOXEL_MOVE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "$1+",
      "edit": {
        "read": "GET /api/directory/VOXEL_MOVE",
        "update": "PUT /api/directory/VOXEL_MOVE",
        "patch": "PATCH /api/directory/VOXEL_MOVE",
        "delete": "DELETE /api/directory/VOXEL_MOVE",
        "invoke": "POST /api/dispatch {\"key\":\"VOXEL_MOVE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"VOXEL_MOVE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"VOXEL_MOVE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/VOXEL_MOVE"
      },
      "examples": "[\"{\\\"slug\\\":\\\"philosophy\\\",\\\"div_id\\\":\\\"d3\\\",\\\"direction\\\":\\\"up\\\",\\\"expected_order\\\":3,\\\"key\\\":\\\"<scoped token>\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=VOXEL_MOVE"
    },
    {
      "key": "WAI_EMBED",
      "type": "fn",
      "category": "ai",
      "doc": "WHAT: Compute embedding vector(s) for text using a Workers AI embedding model via env.AI binding. $1=text, $2=optional model id (default @cf/baai/bge-base-en-v1.5) WHEN_TO_USE: you need to wai embed ARGS: $1 | $2 EX: [WAI_EMBED]arg1|arg2[/WAI_EMBED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WAI_EMBED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WAI_EMBED",
        "type": "fn",
        "what": [
          "WHAT: Compute embedding vector(s) for text using a Workers AI embedding model via env.AI binding. $1=text, $2=optional model id (default @cf/baai/bge-base-en-v1.5)",
          "WHEN_TO_USE: you need to wai embed",
          "ARGS: $1 | $2",
          "EX: [WAI_EMBED]arg1|arg2[/WAI_EMBED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "text, $2=optional model id (default @cf/baai/bge-base-en-v1.5)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WAI_EMBED]arg1|arg2[/WAI_EMBED]",
        "tag": "[WAI_EMBED]<arg1>|<arg2>[/WAI_EMBED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WAI_EMBED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WAI_EMBED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WAI_EMBED",
        "update": "PUT /api/directory/WAI_EMBED",
        "patch": "PATCH /api/directory/WAI_EMBED",
        "delete": "DELETE /api/directory/WAI_EMBED",
        "invoke": "POST /api/dispatch {\"key\":\"WAI_EMBED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WAI_EMBED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WAI_EMBED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WAI_EMBED"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WAI_EMBED"
    },
    {
      "key": "WAI_RUN",
      "type": "fn",
      "category": "ai",
      "doc": "WHAT: Run a Workers AI model via the env.AI binding. $1=model id (e.g. @cf/meta/llama-3.3-70b-instruct), $2=user prompt. Returns the raw JSON from env.AI.run WHEN_TO_USE: you need to wai run ARGS: $1 | $2 EX: [WAI_RUN]arg1|arg2[/WAI_RUN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WAI_RUN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WAI_RUN",
        "type": "fn",
        "what": [
          "WHAT: Run a Workers AI model via the env.AI binding. $1=model id (e.g. @cf/meta/llama-3.3-70b-instruct), $2=user prompt. Returns the raw JSON from env.AI.run",
          "WHEN_TO_USE: you need to wai run",
          "ARGS: $1 | $2",
          "EX: [WAI_RUN]arg1|arg2[/WAI_RUN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "model id (e.g. @cf/meta/llama-3.3-70b-instruct), $2=user prompt. Returns the raw JSON from env.AI.run",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the raw JSON from env.AI.run",
        "example": "[WAI_RUN]arg1|arg2[/WAI_RUN]",
        "tag": "[WAI_RUN]<arg1>|<arg2>[/WAI_RUN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WAI_RUN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WAI_RUN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WAI_RUN",
        "update": "PUT /api/directory/WAI_RUN",
        "patch": "PATCH /api/directory/WAI_RUN",
        "delete": "DELETE /api/directory/WAI_RUN",
        "invoke": "POST /api/dispatch {\"key\":\"WAI_RUN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WAI_RUN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WAI_RUN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WAI_RUN"
      },
      "examples": "[\"@cf/meta/llama-3.3-70b-instruct-fp8-fast|Say hello in 6 words.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WAI_RUN"
    },
    {
      "key": "WAI_T2I",
      "type": "fn",
      "category": "ai",
      "doc": "WHAT: Generate an image from a prompt using a Workers AI text-to-image model via env.AI binding. Stores the result in R2 and returns a stable URL. $1=prompt, $2=optional model id (default @cf/stabilityai/stable-diffusion-xl-base-1.0) WHEN_TO_USE: you need to wai t2i ARGS: $1 | $2 EX: [WAI_T2I]arg1|arg2[/WAI_T2I]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WAI_T2I",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WAI_T2I",
        "type": "fn",
        "what": [
          "WHAT: Generate an image from a prompt using a Workers AI text-to-image model via env.AI binding. Stores the result in R2 and returns a stable URL. $1=prompt, $2=optional model id (default @cf/stabilityai/stable-diffusion-xl-base-1.0)",
          "WHEN_TO_USE: you need to wai t2i",
          "ARGS: $1 | $2",
          "EX: [WAI_T2I]arg1|arg2[/WAI_T2I]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "prompt, $2=optional model id (default @cf/stabilityai/stable-diffusion-xl-base-1.0)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "a stable URL. $1=prompt, $2=optional model id (default @cf/stabilityai/stable-diffusion-xl-base-1.0)",
        "example": "[WAI_T2I]arg1|arg2[/WAI_T2I]",
        "tag": "[WAI_T2I]<arg1>|<arg2>[/WAI_T2I]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WAI_T2I\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WAI_T2I  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WAI_T2I",
        "update": "PUT /api/directory/WAI_T2I",
        "patch": "PATCH /api/directory/WAI_T2I",
        "delete": "DELETE /api/directory/WAI_T2I",
        "invoke": "POST /api/dispatch {\"key\":\"WAI_T2I\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WAI_T2I\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WAI_T2I\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WAI_T2I"
      },
      "examples": "[\"Dark cosmic scientific infographic poster about fractals and recursion, branching patterns, intricate line art on black background\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WAI_T2I"
    },
    {
      "key": "WAI_TRANSLATE",
      "type": "fn",
      "category": "ai",
      "doc": "WHAT: Translate text between languages using @cf/meta/m2m100-1.2b via env.AI binding. $1=text, $2=source lang code (default en), $3=target lang code (default es) WHEN_TO_USE: you need to wai translate ARGS: $1 | $2 | $3 EX: [WAI_TRANSLATE]arg1|arg2|arg3[/WAI_TRANSLATE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WAI_TRANSLATE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WAI_TRANSLATE",
        "type": "fn",
        "what": [
          "WHAT: Translate text between languages using @cf/meta/m2m100-1.2b via env.AI binding. $1=text, $2=source lang code (default en), $3=target lang code (default es)",
          "WHEN_TO_USE: you need to wai translate",
          "ARGS: $1 | $2 | $3",
          "EX: [WAI_TRANSLATE]arg1|arg2|arg3[/WAI_TRANSLATE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "text, $2=source lang code (default en), $3=target lang code (default es)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WAI_TRANSLATE]arg1|arg2|arg3[/WAI_TRANSLATE]",
        "tag": "[WAI_TRANSLATE]<arg1>|<arg2>|<arg3>[/WAI_TRANSLATE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WAI_TRANSLATE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WAI_TRANSLATE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\"]",
      "edit": {
        "read": "GET /api/directory/WAI_TRANSLATE",
        "update": "PUT /api/directory/WAI_TRANSLATE",
        "patch": "PATCH /api/directory/WAI_TRANSLATE",
        "delete": "DELETE /api/directory/WAI_TRANSLATE",
        "invoke": "POST /api/dispatch {\"key\":\"WAI_TRANSLATE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WAI_TRANSLATE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WAI_TRANSLATE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WAI_TRANSLATE"
      },
      "examples": "[\"arg1|arg2|arg3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WAI_TRANSLATE"
    },
    {
      "key": "WANT_DELIVER",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Deliver a private solicitation to named providers by text; email waits on the mail law and is stored for the owner to forward. Every delivery is a row. WHEN_TO_USE: a want was solicited privately and the buyer names who should see it. ARGS: solicitation_id|targets(csv phones, emails or provider profile ids) EX: [WANT_DELIVER]sol_abc|+15555550100,prf_provider[/WANT_DELIVER] TESTS: Returns one delivery record per target with channel and status.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WANT_DELIVER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WANT_DELIVER",
        "type": "fn",
        "what": [
          "WHAT: Deliver a private solicitation to named providers by text; email waits on the mail law and is stored for the owner to forward. Every delivery is a row.",
          "WHEN_TO_USE: a want was solicited privately and the buyer names who should see it.",
          "ARGS: solicitation_id|targets(csv phones, emails or provider profile ids)",
          "EX: [WANT_DELIVER]sol_abc|+15555550100,prf_provider[/WANT_DELIVER]",
          "TESTS: Returns one delivery record per target with channel and status."
        ],
        "args": [
          {
            "pos": 1,
            "name": "sol_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "one delivery record per target with channel and status.",
        "example": "[WANT_DELIVER]sol_abc|+15555550100,prf_provider[/WANT_DELIVER]",
        "tag": "[WANT_DELIVER]<sol_abc …>[/WANT_DELIVER]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WANT_DELIVER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WANT_DELIVER  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WANT_DELIVER",
        "update": "PUT /api/directory/WANT_DELIVER",
        "patch": "PATCH /api/directory/WANT_DELIVER",
        "delete": "DELETE /api/directory/WANT_DELIVER",
        "invoke": "POST /api/dispatch {\"key\":\"WANT_DELIVER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WANT_DELIVER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WANT_DELIVER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WANT_DELIVER"
      },
      "examples": "[\"sol_abc|+15555550100\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WANT_DELIVER"
    },
    {
      "key": "WANT_EXECUTE",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Run a want's best direct match unattended when the mandate allows it: the price is under the auto-execute threshold, the row is among the allowed actions, and the buyer holds a live paid capability for it. One use is consumed; the run is attributed to the mandate. WHEN_TO_USE: the buyer's AI acts on a want without asking, inside the authority the person granted. ARGS: want_id EX: [WANT_EXECUTE]want_abc[/WANT_EXECUTE] TESTS: Over the threshold: CONFIRMATION_REQUIRED. No paid capability: NOT_A_BUYER. Under both: the run and its invocation id.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WANT_EXECUTE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WANT_EXECUTE",
        "type": "fn",
        "what": [
          "WHAT: Run a want's best direct match unattended when the mandate allows it: the price is under the auto-execute threshold, the row is among the allowed actions, and the buyer holds a live paid capability for it. One use is consumed; the run is attributed to the mandate.",
          "WHEN_TO_USE: the buyer's AI acts on a want without asking, inside the authority the person granted.",
          "ARGS: want_id",
          "EX: [WANT_EXECUTE]want_abc[/WANT_EXECUTE]",
          "TESTS: Over the threshold: CONFIRMATION_REQUIRED. No paid capability: NOT_A_BUYER. Under both: the run and its invocation id."
        ],
        "args": [
          {
            "pos": 1,
            "name": "want_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WANT_EXECUTE]want_abc[/WANT_EXECUTE]",
        "tag": "[WANT_EXECUTE]<want_abc …>[/WANT_EXECUTE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WANT_EXECUTE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WANT_EXECUTE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WANT_EXECUTE",
        "update": "PUT /api/directory/WANT_EXECUTE",
        "patch": "PATCH /api/directory/WANT_EXECUTE",
        "delete": "DELETE /api/directory/WANT_EXECUTE",
        "invoke": "POST /api/dispatch {\"key\":\"WANT_EXECUTE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WANT_EXECUTE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WANT_EXECUTE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WANT_EXECUTE"
      },
      "examples": "[\"want_abc\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WANT_EXECUTE"
    },
    {
      "key": "WANT_NEW",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Record what a person wants, in their words, private by default. WHEN_TO_USE: someone says what outcome they want, by text or through their model. ARGS: phone_or_profile|text|public(1/0) EX: [WANT_NEW]+15555550100|I want the best peptide ads running on Meta|0[/WANT_NEW] TESTS: Returns want_id and the next step: MANDATE_SET before anything executes.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WANT_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WANT_NEW",
        "type": "fn",
        "what": [
          "WHAT: Record what a person wants, in their words, private by default.",
          "WHEN_TO_USE: someone says what outcome they want, by text or through their model.",
          "ARGS: phone_or_profile|text|public(1/0)",
          "EX: [WANT_NEW]+15555550100|I want the best peptide ads running on Meta|0[/WANT_NEW]",
          "TESTS: Returns want_id and the next step: MANDATE_SET before anything executes."
        ],
        "args": [
          {
            "pos": 1,
            "name": "+15555550100",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "want_id and the next step: MANDATE_SET before anything executes.",
        "example": "[WANT_NEW]+15555550100|I want the best peptide ads running on Meta|0[/WANT_NEW]",
        "tag": "[WANT_NEW]<+15555550100 …>[/WANT_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WANT_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WANT_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WANT_NEW",
        "update": "PUT /api/directory/WANT_NEW",
        "patch": "PATCH /api/directory/WANT_NEW",
        "delete": "DELETE /api/directory/WANT_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"WANT_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WANT_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WANT_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WANT_NEW"
      },
      "examples": "[\"+15555550100|I want the best peptide ads running on Meta|0\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WANT_NEW"
    },
    {
      "key": "WANT_SOLICIT",
      "type": "fn",
      "category": "market",
      "doc": "WHAT: Resolve a want under its mandate: direct (match priced rows into a set: best match and cheapest, never one winner), private (solicit matching providers), or public (post to the board, only if the want was marked public). WHEN_TO_USE: the mandate is set and the buyer's AI goes to market. ARGS: want_id|direct or private or public|targets(csv) EX: [WANT_SOLICIT]want_abc|direct|[/WANT_SOLICIT] TESTS: Returns solicitation_id, mode and matches for direct; NO_MANDATE without a mandate; WANT_PRIVATE for a public post on a private want.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WANT_SOLICIT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WANT_SOLICIT",
        "type": "fn",
        "what": [
          "WHAT: Resolve a want under its mandate: direct (match priced rows into a set: best match and cheapest, never one winner), private (solicit matching providers), or public (post to the board, only if the want was marked public).",
          "WHEN_TO_USE: the mandate is set and the buyer's AI goes to market.",
          "ARGS: want_id|direct or private or public|targets(csv)",
          "EX: [WANT_SOLICIT]want_abc|direct|[/WANT_SOLICIT]",
          "TESTS: Returns solicitation_id, mode and matches for direct; NO_MANDATE without a mandate; WANT_PRIVATE for a public post on a private want."
        ],
        "args": [
          {
            "pos": 1,
            "name": "want_abc",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "solicitation_id, mode and matches for direct; NO_MANDATE without a mandate; WANT_PRIVATE for a public post on a private want.",
        "example": "[WANT_SOLICIT]want_abc|direct|[/WANT_SOLICIT]",
        "tag": "[WANT_SOLICIT]<want_abc …>[/WANT_SOLICIT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WANT_SOLICIT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WANT_SOLICIT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WANT_SOLICIT",
        "update": "PUT /api/directory/WANT_SOLICIT",
        "patch": "PATCH /api/directory/WANT_SOLICIT",
        "delete": "DELETE /api/directory/WANT_SOLICIT",
        "invoke": "POST /api/dispatch {\"key\":\"WANT_SOLICIT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WANT_SOLICIT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WANT_SOLICIT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WANT_SOLICIT"
      },
      "examples": "[\"want_abc|direct|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WANT_SOLICIT"
    },
    {
      "key": "WATCH_ACTION",
      "type": "fn",
      "category": "security",
      "doc": "WHAT: Pre-flight gate. Given a proposed {key, body}, look up watch_rules and return {allowed:bool, reason}. Use BEFORE invoking any potentially destructive directory key. $1=KEY, $2=body WHEN_TO_USE: you need to watch action ARGS: $1 | $2 EX: [WATCH_ACTION]arg1|arg2[/WATCH_ACTION]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WATCH_ACTION",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WATCH_ACTION",
        "type": "fn",
        "what": [
          "WHAT: Pre-flight gate. Given a proposed {key, body}, look up watch_rules and return {allowed:bool, reason}. Use BEFORE invoking any potentially destructive directory key. $1=KEY, $2=body",
          "WHEN_TO_USE: you need to watch action",
          "ARGS: $1 | $2",
          "EX: [WATCH_ACTION]arg1|arg2[/WATCH_ACTION]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "KEY, $2=body",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{allowed:bool, reason}. Use BEFORE invoking any potentially destructive directory key. $1=KEY, $2=body",
        "example": "[WATCH_ACTION]arg1|arg2[/WATCH_ACTION]",
        "tag": "[WATCH_ACTION]<arg1>|<arg2>[/WATCH_ACTION]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WATCH_ACTION\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WATCH_ACTION  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WATCH_ACTION",
        "update": "PUT /api/directory/WATCH_ACTION",
        "patch": "PATCH /api/directory/WATCH_ACTION",
        "delete": "DELETE /api/directory/WATCH_ACTION",
        "invoke": "POST /api/dispatch {\"key\":\"WATCH_ACTION\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WATCH_ACTION\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WATCH_ACTION\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WATCH_ACTION"
      },
      "examples": "[\"arg1|arg2\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WATCH_ACTION"
    },
    {
      "key": "WATCH_RULE_ADD",
      "type": "fn",
      "category": "security",
      "doc": "WHAT: Add a deny rule to watch_rules. $1=pattern_key (regex over KEY), $2=pattern_body (regex over body, optional), $3=reason, $4=action (default \"deny\"). Returns {ok,id,...} WHEN_TO_USE: you need to watch rule add ARGS: $1 | $2 | $3 | $4 EX: [WATCH_RULE_ADD]arg1|arg2|arg3|arg4[/WATCH_RULE_ADD]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WATCH_RULE_ADD",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WATCH_RULE_ADD",
        "type": "fn",
        "what": [
          "WHAT: Add a deny rule to watch_rules. $1=pattern_key (regex over KEY), $2=pattern_body (regex over body, optional), $3=reason, $4=action (default \"deny\"). Returns {ok,id,...}",
          "WHEN_TO_USE: you need to watch rule add",
          "ARGS: $1 | $2 | $3 | $4",
          "EX: [WATCH_RULE_ADD]arg1|arg2|arg3|arg4[/WATCH_RULE_ADD]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "pattern_key (regex over KEY), $2=pattern_body (regex over body, optional), $3=reason, $4=action (default \"deny\"). Returns {ok,id,...}",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "{ok,id,...}",
        "example": "[WATCH_RULE_ADD]arg1|arg2|arg3|arg4[/WATCH_RULE_ADD]",
        "tag": "[WATCH_RULE_ADD]<arg1>|<arg2>|<arg3>|<arg4>[/WATCH_RULE_ADD]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WATCH_RULE_ADD\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WATCH_RULE_ADD  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/WATCH_RULE_ADD",
        "update": "PUT /api/directory/WATCH_RULE_ADD",
        "patch": "PATCH /api/directory/WATCH_RULE_ADD",
        "delete": "DELETE /api/directory/WATCH_RULE_ADD",
        "invoke": "POST /api/dispatch {\"key\":\"WATCH_RULE_ADD\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WATCH_RULE_ADD\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WATCH_RULE_ADD\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WATCH_RULE_ADD"
      },
      "examples": "[\"^STRIPE_STRIPE_API_WRITE||Stripe write op: needs explicit owner approval (feedback_stripe_no_writes). Reads (LIST/GET/SEARCH/BALANCE) are allowed.|deny\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WATCH_RULE_ADD"
    },
    {
      "key": "WATCH_RULE_DELETE",
      "type": "fn",
      "category": "security",
      "doc": "WHAT: Delete a watch_rules entry by id. $1=id WHEN_TO_USE: you need to watch rule delete ARGS: $1 EX: [WATCH_RULE_DELETE]arg1[/WATCH_RULE_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WATCH_RULE_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WATCH_RULE_DELETE",
        "type": "fn",
        "what": [
          "WHAT: Delete a watch_rules entry by id. $1=id",
          "WHEN_TO_USE: you need to watch rule delete",
          "ARGS: $1",
          "EX: [WATCH_RULE_DELETE]arg1[/WATCH_RULE_DELETE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "id",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WATCH_RULE_DELETE]arg1[/WATCH_RULE_DELETE]",
        "tag": "[WATCH_RULE_DELETE]<arg1>[/WATCH_RULE_DELETE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WATCH_RULE_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WATCH_RULE_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WATCH_RULE_DELETE",
        "update": "PUT /api/directory/WATCH_RULE_DELETE",
        "patch": "PATCH /api/directory/WATCH_RULE_DELETE",
        "delete": "DELETE /api/directory/WATCH_RULE_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"WATCH_RULE_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WATCH_RULE_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WATCH_RULE_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WATCH_RULE_DELETE"
      },
      "examples": "[\"8\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WATCH_RULE_DELETE"
    },
    {
      "key": "WATCH_RULE_LIST",
      "type": "fn",
      "category": "security",
      "doc": "WHAT: List every watch_rules entry WHEN_TO_USE: you need to watch rule list ARGS: none EX: [WATCH_RULE_LIST][/WATCH_RULE_LIST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WATCH_RULE_LIST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WATCH_RULE_LIST",
        "type": "fn",
        "what": [
          "WHAT: List every watch_rules entry",
          "WHEN_TO_USE: you need to watch rule list",
          "ARGS: none",
          "EX: [WATCH_RULE_LIST][/WATCH_RULE_LIST]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WATCH_RULE_LIST][/WATCH_RULE_LIST]",
        "tag": "[WATCH_RULE_LIST][/WATCH_RULE_LIST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WATCH_RULE_LIST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WATCH_RULE_LIST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/WATCH_RULE_LIST",
        "update": "PUT /api/directory/WATCH_RULE_LIST",
        "patch": "PATCH /api/directory/WATCH_RULE_LIST",
        "delete": "DELETE /api/directory/WATCH_RULE_LIST",
        "invoke": "POST /api/dispatch {\"key\":\"WATCH_RULE_LIST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WATCH_RULE_LIST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WATCH_RULE_LIST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WATCH_RULE_LIST"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WATCH_RULE_LIST"
    },
    {
      "key": "WATCH_TOGGLE",
      "type": "fn",
      "category": "kernel",
      "doc": "WHAT: Pause or resume one watch rule by id without deleting it. Paused rules stop matching; the row and its history stay. WHEN_TO_USE: \"pause that watch rule\", \"turn rule 12 back on\", the switchboard cell watch_rules.enabled. ARGS: $1=id, $2=0|1 EX: [WATCH_TOGGLE]12|0[/WATCH_TOGGLE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WATCH_TOGGLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WATCH_TOGGLE",
        "type": "fn",
        "what": [
          "WHAT: Pause or resume one watch rule by id without deleting it. Paused rules stop matching; the row and its history stay.",
          "WHEN_TO_USE: \"pause that watch rule\", \"turn rule 12 back on\", the switchboard cell watch_rules.enabled.",
          "ARGS: $1=id, $2=0|1",
          "EX: [WATCH_TOGGLE]12|0[/WATCH_TOGGLE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "12",
            "desc": "id, $2=0|1",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "0",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WATCH_TOGGLE]12|0[/WATCH_TOGGLE]",
        "tag": "[WATCH_TOGGLE]<12>|<0>[/WATCH_TOGGLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WATCH_TOGGLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WATCH_TOGGLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WATCH_TOGGLE",
        "update": "PUT /api/directory/WATCH_TOGGLE",
        "patch": "PATCH /api/directory/WATCH_TOGGLE",
        "delete": "DELETE /api/directory/WATCH_TOGGLE",
        "invoke": "POST /api/dispatch {\"key\":\"WATCH_TOGGLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WATCH_TOGGLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WATCH_TOGGLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WATCH_TOGGLE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=WATCH_TOGGLE"
    },
    {
      "key": "WEBHOOK_INTAKE",
      "type": "flow",
      "category": "flow",
      "doc": "Per-webhook intake (Blooio / 2chat / Telegram) collapsed to one flow. $1=channel (blooio|twochat|telegram), $2=sender, $3=text. Dedup, log, then route to BLOOIO_TURN_PHASE_A. WHEN_TO_USE: drop-in for the existing channel webhook handlers.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBHOOK_INTAKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBHOOK_INTAKE",
        "type": "flow",
        "what": [
          "Per-webhook intake (Blooio / 2chat / Telegram) collapsed to one flow. $1=channel (blooio|twochat|telegram), $2=sender, $3=text. Dedup, log, then route to BLOOIO_TURN_PHASE_A.",
          "WHEN_TO_USE: drop-in for the existing channel webhook handlers."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "channel (blooio|twochat|telegram), $2=sender, $3=text. Dedup, log, then route to BLOOIO_TURN_PHASE_A.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[WEBHOOK_INTAKE]arg1|arg2|arg3[/WEBHOOK_INTAKE]",
        "tag": "[WEBHOOK_INTAKE]<arg1>|<arg2>|<arg3>[/WEBHOOK_INTAKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBHOOK_INTAKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBHOOK_INTAKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WEBHOOK_INTAKE",
        "update": "PUT /api/directory/WEBHOOK_INTAKE",
        "patch": "PATCH /api/directory/WEBHOOK_INTAKE",
        "delete": "DELETE /api/directory/WEBHOOK_INTAKE",
        "invoke": "POST /api/dispatch {\"key\":\"WEBHOOK_INTAKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBHOOK_INTAKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBHOOK_INTAKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBHOOK_INTAKE"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=WEBHOOK_INTAKE"
    },
    {
      "key": "WEBMODEL_AGENT",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Give a logged-in web model (ChatGPT, Claude, Grok, Gemini, Kimi) the directory as text and let it CALL capabilities. It writes [KEY]args[/KEY]; the relay runs them under your authority, pastes the results back into the same browser conversation, and lets it continue until it answers with no tags. WHEN_TO_USE: you want a browser model to actually do something in the build — look data up, check a figure, act on a result — without MCP, function calling, a connector or any credential reaching the vendor. ARGS: $1 = provider_or_session|task. Or a JSON object {provider or session_id, task, tools (comma-separated keys, or * for everything your token allows), max_iterations (default 4, ceiling 8), state_handle, request_id}. EX: [WEBMODEL_AGENT]{\"provider\":\"claude\",\"task\":\"How many capabilities are in the directory right now? Use a capability to find out.\",\"tools\":\"D1_QUERY\"}[/WEBMODEL_AGENT] TESTS: Returns final_answer plus tool_calls, each with its own invocation id and public receipt. A sensitive or disabled row is refused and the refusal is handed to the model as a tool result. Nothing runs that the caller’s own token could not have run directly.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_AGENT",
        "type": "fn",
        "what": [
          "WHAT: Give a logged-in web model (ChatGPT, Claude, Grok, Gemini, Kimi) the directory as text and let it CALL capabilities. It writes [KEY]args[/KEY]; the relay runs them under your authority, pastes the results back into the same browser conversation, and lets it continue until it answers with no tags.",
          "WHEN_TO_USE: you want a browser model to actually do something in the build — look data up, check a figure, act on a result — without MCP, function calling, a connector or any credential reaching the vendor.",
          "ARGS: $1 = provider_or_session|task. Or a JSON object {provider or session_id, task, tools (comma-separated keys, or * for everything your token allows), max_iterations (default 4, ceiling 8), state_handle, request_id}.",
          "EX: [WEBMODEL_AGENT]{\"provider\":\"claude\",\"task\":\"How many capabilities are in the directory right now? Use a capability to find out.\",\"tools\":\"D1_QUERY\"}[/WEBMODEL_AGENT]",
          "TESTS: Returns final_answer plus tool_calls, each with its own invocation id and public receipt. A sensitive or disabled row is refused and the refusal is handed to the model as a tool result. Nothing runs that the caller’s own token could not have run directly."
        ],
        "args": [
          {
            "pos": 1,
            "name": "{\"provider\":\"claude\",\"task\":\"How many capabilities are in the directory right now? Use a capability to find out.\",\"tools\":\"D1_QUERY\"}",
            "desc": "provider_or_session|task. Or a JSON object {provider or session_id, task, tools (comma-separated keys, or * for everything your token allows), max_iterations (default 4, ceiling 8), state_handle, request_id}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "final_answer plus tool_calls, each with its own invocation id and public receipt. A sensitive or disabled row is refused and the refusal is handed to the model as a tool result. Nothing runs that the caller’s own token could not have run directly.",
        "example": "[WEBMODEL_AGENT]{\"provider\":\"claude\",\"task\":\"How many capabilities are in the directory right now? Use a capability to find out.\",\"tools\":\"D1_QUERY\"}[/WEBMODEL_AGENT]",
        "tag": "[WEBMODEL_AGENT]<{\"provider\":\"claude\",\"task\":\"How many capabilities are in the directory right now? Use a capability to find out.\",\"tools\":\"D1_QUERY\"} …>[/WEBMODEL_AGENT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_AGENT",
        "update": "PUT /api/directory/WEBMODEL_AGENT",
        "patch": "PATCH /api/directory/WEBMODEL_AGENT",
        "delete": "DELETE /api/directory/WEBMODEL_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_AGENT"
      },
      "examples": "[\"claude|Use a capability to tell me how many rows the directory has\",\"{\\\"provider\\\":\\\"chatgpt\\\",\\\"task\\\":\\\"Check the build is healthy\\\",\\\"tools\\\":\\\"WEBMODEL_STATUS\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_AGENT"
    },
    {
      "key": "WEBMODEL_CLOSE",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Release a browser-model session: close its tab and mark the durable session closed. WHEN_TO_USE: you are finished with a conversation and want the browser resource back. ARGS: $1 = session_id. EX: [WEBMODEL_CLOSE]wms_abc123[/WEBMODEL_CLOSE] TESTS: Session state becomes closed and a further WEBMODEL_SEND returns ERR:SESSION_NOT_FOUND.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_CLOSE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_CLOSE",
        "type": "fn",
        "what": [
          "WHAT: Release a browser-model session: close its tab and mark the durable session closed.",
          "WHEN_TO_USE: you are finished with a conversation and want the browser resource back.",
          "ARGS: $1 = session_id.",
          "EX: [WEBMODEL_CLOSE]wms_abc123[/WEBMODEL_CLOSE]",
          "TESTS: Session state becomes closed and a further WEBMODEL_SEND returns ERR:SESSION_NOT_FOUND."
        ],
        "args": [
          {
            "pos": 1,
            "name": "wms_abc123",
            "desc": "session_id.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ERR:SESSION_NOT_FOUND.",
        "example": "[WEBMODEL_CLOSE]wms_abc123[/WEBMODEL_CLOSE]",
        "tag": "[WEBMODEL_CLOSE]<wms_abc123 …>[/WEBMODEL_CLOSE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_CLOSE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_CLOSE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_CLOSE",
        "update": "PUT /api/directory/WEBMODEL_CLOSE",
        "patch": "PATCH /api/directory/WEBMODEL_CLOSE",
        "delete": "DELETE /api/directory/WEBMODEL_CLOSE",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_CLOSE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_CLOSE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_CLOSE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_CLOSE"
      },
      "examples": "[\"wms_abc123\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_CLOSE"
    },
    {
      "key": "WEBMODEL_READ",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Read the captured turns of a browser-model session back out of the durable record, not out of the page. WHEN_TO_USE: you want what the model actually said on an earlier turn, after the tab is gone. ARGS: $1 = session_id, optionally session_id|how_many. EX: [WEBMODEL_READ]wms_abc123|3[/WEBMODEL_READ] TESTS: Returns the turns in order with capture_method and ledger_event_id on each.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_READ",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_READ",
        "type": "fn",
        "what": [
          "WHAT: Read the captured turns of a browser-model session back out of the durable record, not out of the page.",
          "WHEN_TO_USE: you want what the model actually said on an earlier turn, after the tab is gone.",
          "ARGS: $1 = session_id, optionally session_id|how_many.",
          "EX: [WEBMODEL_READ]wms_abc123|3[/WEBMODEL_READ]",
          "TESTS: Returns the turns in order with capture_method and ledger_event_id on each."
        ],
        "args": [
          {
            "pos": 1,
            "name": "wms_abc123",
            "desc": "session_id, optionally session_id|how_many.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the turns in order with capture_method and ledger_event_id on each.",
        "example": "[WEBMODEL_READ]wms_abc123|3[/WEBMODEL_READ]",
        "tag": "[WEBMODEL_READ]<wms_abc123 …>[/WEBMODEL_READ]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_READ\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_READ  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_READ",
        "update": "PUT /api/directory/WEBMODEL_READ",
        "patch": "PATCH /api/directory/WEBMODEL_READ",
        "delete": "DELETE /api/directory/WEBMODEL_READ",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_READ\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_READ\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_READ\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_READ"
      },
      "examples": "[\"wms_abc123\",\"wms_abc123|3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_READ"
    },
    {
      "key": "WEBMODEL_SEND",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Send a prompt into a logged-in web model and return only when the completed response has been captured, the turn written to D1 and the receipt taken. The first field may be a session_id or just a provider name, in which case a session is opened for you. WHEN_TO_USE: you want an answer from a web ChatGPT/Claude/Grok/Gemini/Kimi subscription instead of a metered API, or you want a browser model as a step inside a flow. ARGS: $1 = session_id_or_provider|prompt — pipes inside the prompt are preserved. Or a JSON object {session_id or provider, prompt, request_id, state_handle, timeout_ms}. EX: [WEBMODEL_SEND]chatgpt|Reply with exactly GATEWAY_LIVE_OK[/WEBMODEL_SEND] TESTS: Response carries the exact assistant text, the capture_method that proved completion, substrate browser_web, a wmt_ turn_id and a ledger_event_id. A provider that is not signed in returns ERR:AUTH_REQUIRED, never a fabricated answer.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_SEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_SEND",
        "type": "fn",
        "what": [
          "WHAT: Send a prompt into a logged-in web model and return only when the completed response has been captured, the turn written to D1 and the receipt taken. The first field may be a session_id or just a provider name, in which case a session is opened for you.",
          "WHEN_TO_USE: you want an answer from a web ChatGPT/Claude/Grok/Gemini/Kimi subscription instead of a metered API, or you want a browser model as a step inside a flow.",
          "ARGS: $1 = session_id_or_provider|prompt — pipes inside the prompt are preserved. Or a JSON object {session_id or provider, prompt, request_id, state_handle, timeout_ms}.",
          "EX: [WEBMODEL_SEND]chatgpt|Reply with exactly GATEWAY_LIVE_OK[/WEBMODEL_SEND]",
          "TESTS: Response carries the exact assistant text, the capture_method that proved completion, substrate browser_web, a wmt_ turn_id and a ledger_event_id. A provider that is not signed in returns ERR:AUTH_REQUIRED, never a fabricated answer."
        ],
        "args": [
          {
            "pos": 1,
            "name": "chatgpt",
            "desc": "session_id_or_provider|prompt — pipes inside the prompt are preserved. Or a JSON object {session_id or provider, prompt, request_id, state_handle, timeout_ms}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "only when the completed response has been captured, the turn written to D1 and the receipt taken. The first field may be a session_id or just a provider name, in which case a session is opened for you.",
        "example": "[WEBMODEL_SEND]chatgpt|Reply with exactly GATEWAY_LIVE_OK[/WEBMODEL_SEND]",
        "tag": "[WEBMODEL_SEND]<chatgpt …>[/WEBMODEL_SEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_SEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_SEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_SEND",
        "update": "PUT /api/directory/WEBMODEL_SEND",
        "patch": "PATCH /api/directory/WEBMODEL_SEND",
        "delete": "DELETE /api/directory/WEBMODEL_SEND",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_SEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_SEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_SEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_SEND"
      },
      "examples": "[\"chatgpt|Reply with exactly GATEWAY_LIVE_OK\",\"claude|Name one risk in this plan\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_SEND"
    },
    {
      "key": "WEBMODEL_SESSION_NEW",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Open or resume a browser-model conversation on a logged-in web session (ChatGPT, Claude, Grok, Gemini, Kimi) and record it as a durable session object. WHEN_TO_USE: you want a multi-turn browser-model conversation you can send into repeatedly, or you want a conversation_url you can hand to a person. ARGS: $1 = provider, optionally provider|profile. Or a JSON object {provider, profile, conversation_url, state_handle}. EX: [WEBMODEL_SESSION_NEW]chatgpt[/WEBMODEL_SESSION_NEW] TESTS: Returns ok:true with a wms_ session_id and state ready, or ERR:AUTH_REQUIRED naming the provider that is not signed in.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_SESSION_NEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_SESSION_NEW",
        "type": "fn",
        "what": [
          "WHAT: Open or resume a browser-model conversation on a logged-in web session (ChatGPT, Claude, Grok, Gemini, Kimi) and record it as a durable session object.",
          "WHEN_TO_USE: you want a multi-turn browser-model conversation you can send into repeatedly, or you want a conversation_url you can hand to a person.",
          "ARGS: $1 = provider, optionally provider|profile. Or a JSON object {provider, profile, conversation_url, state_handle}.",
          "EX: [WEBMODEL_SESSION_NEW]chatgpt[/WEBMODEL_SESSION_NEW]",
          "TESTS: Returns ok:true with a wms_ session_id and state ready, or ERR:AUTH_REQUIRED naming the provider that is not signed in."
        ],
        "args": [
          {
            "pos": 1,
            "name": "chatgpt",
            "desc": "provider, optionally provider|profile. Or a JSON object {provider, profile, conversation_url, state_handle}.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "ok:true with a wms_ session_id and state ready, or ERR:AUTH_REQUIRED naming the provider that is not signed in.",
        "example": "[WEBMODEL_SESSION_NEW]chatgpt[/WEBMODEL_SESSION_NEW]",
        "tag": "[WEBMODEL_SESSION_NEW]<chatgpt …>[/WEBMODEL_SESSION_NEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_SESSION_NEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_SESSION_NEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_SESSION_NEW",
        "update": "PUT /api/directory/WEBMODEL_SESSION_NEW",
        "patch": "PATCH /api/directory/WEBMODEL_SESSION_NEW",
        "delete": "DELETE /api/directory/WEBMODEL_SESSION_NEW",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_SESSION_NEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_SESSION_NEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_SESSION_NEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_SESSION_NEW"
      },
      "examples": "[\"chatgpt\",\"claude\",\"{\\\"provider\\\":\\\"grok\\\",\\\"profile\\\":\\\"default\\\"}\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_SESSION_NEW"
    },
    {
      "key": "WEBMODEL_STATUS",
      "type": "fn",
      "category": "browser",
      "doc": "WHAT: Health of the browser-model substrate: worker up or down, Chrome and its profile, each provider adapter, live sessions, running jobs, and the last success and last failure per provider. WHEN_TO_USE: a browser-model call failed and you need to know whether the worker, Chrome, or one provider session is the problem. ARGS: none. EX: [WEBMODEL_STATUS][/WEBMODEL_STATUS] TESTS: With the worker up, returns providers with capture_method_working. With the worker down, returns ERR:BROWSER_WORKER_OFFLINE and still reports the durable history.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEBMODEL_STATUS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEBMODEL_STATUS",
        "type": "fn",
        "what": [
          "WHAT: Health of the browser-model substrate: worker up or down, Chrome and its profile, each provider adapter, live sessions, running jobs, and the last success and last failure per provider.",
          "WHEN_TO_USE: a browser-model call failed and you need to know whether the worker, Chrome, or one provider session is the problem.",
          "ARGS: none.",
          "EX: [WEBMODEL_STATUS][/WEBMODEL_STATUS]",
          "TESTS: With the worker up, returns providers with capture_method_working. With the worker down, returns ERR:BROWSER_WORKER_OFFLINE and still reports the durable history."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "providers with capture_method_working. With the worker down, returns ERR:BROWSER_WORKER_OFFLINE and still reports the durable history.",
        "example": "[WEBMODEL_STATUS][/WEBMODEL_STATUS]",
        "tag": "[WEBMODEL_STATUS][/WEBMODEL_STATUS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEBMODEL_STATUS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEBMODEL_STATUS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"\"]",
      "edit": {
        "read": "GET /api/directory/WEBMODEL_STATUS",
        "update": "PUT /api/directory/WEBMODEL_STATUS",
        "patch": "PATCH /api/directory/WEBMODEL_STATUS",
        "delete": "DELETE /api/directory/WEBMODEL_STATUS",
        "invoke": "POST /api/dispatch {\"key\":\"WEBMODEL_STATUS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEBMODEL_STATUS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEBMODEL_STATUS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEBMODEL_STATUS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEBMODEL_STATUS"
    },
    {
      "key": "WEB_COUNCIL",
      "type": "flow",
      "category": "browser",
      "doc": "WHAT: Ask the same question of three logged-in browser models at once — ChatGPT Web, Claude Web and Grok Web — then have a fourth browser model, Gemini Web, reconcile the three answers into one and say which was most correct. WHEN_TO_USE: a judgment call where one model is not enough, or where you want disagreement surfaced rather than averaged away. ARGS: $1 = the question. It must not contain a | character: inside the fan-out braces the pipe separates branches. EX: [WEB_COUNCIL]In one sentence: is a browser-driven model session a reasonable production dependency?[/WEB_COUNCIL] TESTS: Four browser turns land in webmodel_turns with four ledger receipts, and the final answer names which branch it preferred. This is an ordinary flow row — the fan-out and the judge are the build’s existing flow engine, not browser-specific machinery.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEB_COUNCIL",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEB_COUNCIL",
        "type": "flow",
        "what": [
          "WHAT: Ask the same question of three logged-in browser models at once — ChatGPT Web, Claude Web and Grok Web — then have a fourth browser model, Gemini Web, reconcile the three answers into one and say which was most correct.",
          "WHEN_TO_USE: a judgment call where one model is not enough, or where you want disagreement surfaced rather than averaged away.",
          "ARGS: $1 = the question. It must not contain a | character: inside the fan-out braces the pipe separates branches.",
          "EX: [WEB_COUNCIL]In one sentence: is a browser-driven model session a reasonable production dependency?[/WEB_COUNCIL]",
          "TESTS: Four browser turns land in webmodel_turns with four ledger receipts, and the final answer names which branch it preferred. This is an ordinary flow row — the fan-out and the judge are the build’s existing flow engine, not browser-specific machinery."
        ],
        "args": [
          {
            "pos": 1,
            "name": "In one sentence: is a browser-driven model session a reasonable production dependency?",
            "desc": "the question. It must not contain a | character: inside the fan-out braces the pipe separates branches.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[WEB_COUNCIL]In one sentence: is a browser-driven model session a reasonable production dependency?[/WEB_COUNCIL]",
        "tag": "[WEB_COUNCIL]<In one sentence: is a browser-driven model session a reasonable production dependency? …>[/WEB_COUNCIL]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEB_COUNCIL\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEB_COUNCIL  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WEB_COUNCIL",
        "update": "PUT /api/directory/WEB_COUNCIL",
        "patch": "PATCH /api/directory/WEB_COUNCIL",
        "delete": "DELETE /api/directory/WEB_COUNCIL",
        "invoke": "POST /api/dispatch {\"key\":\"WEB_COUNCIL\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEB_COUNCIL\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEB_COUNCIL\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEB_COUNCIL"
      },
      "examples": "[\"In one sentence: is a browser-driven model session a reasonable production dependency?\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEB_COUNCIL"
    },
    {
      "key": "WEB_DATA_REVIEW",
      "type": "flow",
      "category": "browser",
      "doc": "WHAT: Two live data capabilities fan out (the most recent significant earthquake as a place, and the gold spot price), join into one block, and Claude Web reviews the joined output and states both facts in two sentences. WHEN_TO_USE: the worked example of a browser model consuming prior flow output through $PREV — a business step feeds a web model, not the other way round. ARGS: $1 = how many recent quakes QUAKE_PLACE should consider. EX: [WEB_DATA_REVIEW]3[/WEB_DATA_REVIEW] TESTS: Two capability receipts and one browser turn under one trace; the final text names a place and a gold price taken from the joined outputs.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEB_DATA_REVIEW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEB_DATA_REVIEW",
        "type": "flow",
        "what": [
          "WHAT: Two live data capabilities fan out (the most recent significant earthquake as a place, and the gold spot price), join into one block, and Claude Web reviews the joined output and states both facts in two sentences.",
          "WHEN_TO_USE: the worked example of a browser model consuming prior flow output through $PREV — a business step feeds a web model, not the other way round.",
          "ARGS: $1 = how many recent quakes QUAKE_PLACE should consider.",
          "EX: [WEB_DATA_REVIEW]3[/WEB_DATA_REVIEW]",
          "TESTS: Two capability receipts and one browser turn under one trace; the final text names a place and a gold price taken from the joined outputs."
        ],
        "args": [
          {
            "pos": 1,
            "name": "3",
            "desc": "how many recent quakes QUAKE_PLACE should consider.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the final step's output.",
        "example": "[WEB_DATA_REVIEW]3[/WEB_DATA_REVIEW]",
        "tag": "[WEB_DATA_REVIEW]<3 …>[/WEB_DATA_REVIEW]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEB_DATA_REVIEW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEB_DATA_REVIEW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WEB_DATA_REVIEW",
        "update": "PUT /api/directory/WEB_DATA_REVIEW",
        "patch": "PATCH /api/directory/WEB_DATA_REVIEW",
        "delete": "DELETE /api/directory/WEB_DATA_REVIEW",
        "invoke": "POST /api/dispatch {\"key\":\"WEB_DATA_REVIEW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEB_DATA_REVIEW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEB_DATA_REVIEW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEB_DATA_REVIEW"
      },
      "examples": "[\"3\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEB_DATA_REVIEW"
    },
    {
      "key": "WEB_FETCH",
      "type": "fn",
      "category": "web",
      "doc": "WHAT: Call any URL with any method.  body and headers_json optional. Full request/response logged (credentials redacted).  Example: POST|https://api.example.com/x|{\"a\":1}|{\"Authorization\":\"Bearer XYZ\"} WHEN_TO_USE: POST/PUT/DELETE to any API, or GET with custom headers/auth ARGS: method|url|body|headers_json EX: [WEB_FETCH]arg1|arg2|arg3|arg4[/WEB_FETCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEB_FETCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEB_FETCH",
        "type": "fn",
        "what": [
          "WHAT: Call any URL with any method.  body and headers_json optional. Full request/response logged (credentials redacted).  Example: POST|https://api.example.com/x|{\"a\":1}|{\"Authorization\":\"Bearer XYZ\"}",
          "WHEN_TO_USE: POST/PUT/DELETE to any API, or GET with custom headers/auth",
          "ARGS: method|url|body|headers_json",
          "EX: [WEB_FETCH]arg1|arg2|arg3|arg4[/WEB_FETCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 4,
            "name": "arg4",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WEB_FETCH]arg1|arg2|arg3|arg4[/WEB_FETCH]",
        "tag": "[WEB_FETCH]<arg1>|<arg2>|<arg3>|<arg4>[/WEB_FETCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEB_FETCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEB_FETCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3\",\"$4\"]",
      "edit": {
        "read": "GET /api/directory/WEB_FETCH",
        "update": "PUT /api/directory/WEB_FETCH",
        "patch": "PATCH /api/directory/WEB_FETCH",
        "delete": "DELETE /api/directory/WEB_FETCH",
        "invoke": "POST /api/dispatch {\"key\":\"WEB_FETCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEB_FETCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEB_FETCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEB_FETCH"
      },
      "examples": "[\"GET|https://miscsubjects.com/api/proven-work/epitalon-ibd||\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEB_FETCH"
    },
    {
      "key": "WEB_GET",
      "type": "fn",
      "category": "web",
      "doc": "WHAT: GET any URL and return its status + body (first 20000 chars). Arg: the full https URL (slashes and query string preserved). Full request/response logged.  Grok also has native web_search for open-ended search; use WEB_GET when you know the exact URL WHEN_TO_USE: read any web page or public API — \"look around the internet\", check a doc, hit a third-party endpoint ARGS: $1 EX: [WEB_GET]arg1[/WEB_GET]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEB_GET",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEB_GET",
        "type": "fn",
        "what": [
          "WHAT: GET any URL and return its status + body (first 20000 chars). Arg: the full https URL (slashes and query string preserved). Full request/response logged.  Grok also has native web_search for open-ended search; use WEB_GET when you know the exact URL",
          "WHEN_TO_USE: read any web page or public API — \"look around the internet\", check a doc, hit a third-party endpoint",
          "ARGS: $1",
          "EX: [WEB_GET]arg1[/WEB_GET]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "its status + body (first 20000 chars). Arg: the full https URL (slashes and query string preserved). Full request/response logged.  Grok also has native web_search for open-ended search; use WEB_GET when you know the exact URL",
        "example": "[WEB_GET]arg1[/WEB_GET]",
        "tag": "[WEB_GET]<arg1 …>[/WEB_GET]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEB_GET\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEB_GET  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GET\",\"$1+\",\"\",\"\"]",
      "edit": {
        "read": "GET /api/directory/WEB_GET",
        "update": "PUT /api/directory/WEB_GET",
        "patch": "PATCH /api/directory/WEB_GET",
        "delete": "DELETE /api/directory/WEB_GET",
        "invoke": "POST /api/dispatch {\"key\":\"WEB_GET\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEB_GET\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEB_GET\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEB_GET"
      },
      "examples": "[\"https://example.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEB_GET"
    },
    {
      "key": "WEB_MODEL_LANE",
      "type": "http",
      "category": "protocol",
      "doc": "WHAT: Tell a web ChatGPT or similar browser-based model exactly how to reach miscsubjects without code-interpreter Bash. ARGS: none. EX: [WEB_MODEL_LANE][/WEB_MODEL_LANE] TESTS: Response names browser/web, OpenAI Actions, GET fire=1, and says not to use Bash/curl after a code-interpreter DNS failure.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEB_MODEL_LANE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEB_MODEL_LANE",
        "type": "http",
        "what": [
          "WHAT: Tell a web ChatGPT or similar browser-based model exactly how to reach miscsubjects without code-interpreter Bash.",
          "ARGS: none.",
          "EX: [WEB_MODEL_LANE][/WEB_MODEL_LANE]",
          "TESTS: Response names browser/web, OpenAI Actions, GET fire=1, and says not to use Bash/curl after a code-interpreter DNS failure."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WEB_MODEL_LANE][/WEB_MODEL_LANE]",
        "tag": "[WEB_MODEL_LANE][/WEB_MODEL_LANE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEB_MODEL_LANE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEB_MODEL_LANE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WEB_MODEL_LANE",
        "update": "PUT /api/directory/WEB_MODEL_LANE",
        "patch": "PATCH /api/directory/WEB_MODEL_LANE",
        "delete": "DELETE /api/directory/WEB_MODEL_LANE",
        "invoke": "POST /api/dispatch {\"key\":\"WEB_MODEL_LANE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEB_MODEL_LANE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEB_MODEL_LANE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEB_MODEL_LANE"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEB_MODEL_LANE"
    },
    {
      "key": "WEEKEND_ERROR_DIGEST",
      "type": "flow",
      "category": "composed",
      "doc": "WHAT: On a weekend, text the owner the last thing that errored. On a weekday it does nothing at all. WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row. ARGS: $1 = the argument the first step takes. EX: [WEEKEND_ERROR_DIGEST]your input[/WEEKEND_ERROR_DIGEST] TESTS: one receipt per step under one trace. Gated on WHEN weekend; IF $PREV is not empty — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing. COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WEEKEND_ERROR_DIGEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WEEKEND_ERROR_DIGEST",
        "type": "flow",
        "what": [
          "WHAT: On a weekend, text the owner the last thing that errored. On a weekday it does nothing at all.",
          "WHEN_TO_USE: the same job comes up again. Call this instead of doing the steps by hand; it composes into other flows, schedules and every projection like any row.",
          "ARGS: $1 = the argument the first step takes.",
          "EX: [WEEKEND_ERROR_DIGEST]your input[/WEEKEND_ERROR_DIGEST]",
          "TESTS: one receipt per step under one trace. Gated on WHEN weekend; IF $PREV is not empty — when a gate does not pass the flow ends with {ok:true, stopped:true} and does nothing.",
          "COMPOSED: in /admin/flows, from Directory rows and the logic verbs. No code was added for it."
        ],
        "args": [],
        "ops": null,
        "envVars": [
          "OWNER"
        ],
        "returns": "the final step's output.",
        "example": "[WEEKEND_ERROR_DIGEST]your input[/WEEKEND_ERROR_DIGEST]",
        "tag": "[WEEKEND_ERROR_DIGEST][/WEEKEND_ERROR_DIGEST]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WEEKEND_ERROR_DIGEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WEEKEND_ERROR_DIGEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WEEKEND_ERROR_DIGEST",
        "update": "PUT /api/directory/WEEKEND_ERROR_DIGEST",
        "patch": "PATCH /api/directory/WEEKEND_ERROR_DIGEST",
        "delete": "DELETE /api/directory/WEEKEND_ERROR_DIGEST",
        "invoke": "POST /api/dispatch {\"key\":\"WEEKEND_ERROR_DIGEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WEEKEND_ERROR_DIGEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WEEKEND_ERROR_DIGEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WEEKEND_ERROR_DIGEST"
      },
      "examples": "[\"run it\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WEEKEND_ERROR_DIGEST"
    },
    {
      "key": "WIKIPEDIA_SUMMARY",
      "type": "http",
      "category": "web",
      "doc": "WHAT: Fetch the canonical Wikipedia REST summary for one page title (extract, description, canonical URL, revision id) for use as a citable source in an article. WHEN_TO_USE: sourcing a claim that needs an encyclopedic reference with a stable revision id; pair with the article webhook kind=source. ARGS: $1 = page title, underscores for spaces. EX: [WIKIPEDIA_SUMMARY]Simurgh[/WIKIPEDIA_SUMMARY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WIKIPEDIA_SUMMARY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WIKIPEDIA_SUMMARY",
        "type": "http",
        "what": [
          "WHAT: Fetch the canonical Wikipedia REST summary for one page title (extract, description, canonical URL, revision id) for use as a citable source in an article.",
          "WHEN_TO_USE: sourcing a claim that needs an encyclopedic reference with a stable revision id; pair with the article webhook kind=source.",
          "ARGS: $1 = page title, underscores for spaces.",
          "EX: [WIKIPEDIA_SUMMARY]Simurgh[/WIKIPEDIA_SUMMARY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Simurgh",
            "desc": "page title, underscores for spaces.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WIKIPEDIA_SUMMARY]Simurgh[/WIKIPEDIA_SUMMARY]",
        "tag": "[WIKIPEDIA_SUMMARY]<Simurgh>[/WIKIPEDIA_SUMMARY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WIKIPEDIA_SUMMARY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WIKIPEDIA_SUMMARY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WIKIPEDIA_SUMMARY",
        "update": "PUT /api/directory/WIKIPEDIA_SUMMARY",
        "patch": "PATCH /api/directory/WIKIPEDIA_SUMMARY",
        "delete": "DELETE /api/directory/WIKIPEDIA_SUMMARY",
        "invoke": "POST /api/dispatch {\"key\":\"WIKIPEDIA_SUMMARY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WIKIPEDIA_SUMMARY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WIKIPEDIA_SUMMARY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WIKIPEDIA_SUMMARY"
      },
      "examples": "[{\"body\":\"Simurgh\",\"why\":\"encyclopedic source with a stable revision id for a claim about the Persian Simorgh\"},{\"body\":\"Model_Context_Protocol\",\"why\":\"source a comparison claim against an external protocol\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=WIKIPEDIA_SUMMARY"
    },
    {
      "key": "WIRE_UP_AND_INVOKE",
      "type": "fn",
      "category": "self_mod",
      "doc": "WHAT: Atomic 3-step chain — resolve a short_id, append a wire-up cla  Returns JSON {short_id,name,kind,appended_clause,append_result,invoke_key,invoke_result} WHEN_TO_USE: ROUTER's prompt, and invoke the resolved tool ARGS: short_id|trigger_phrase|invoke_args EX: [WIRE_UP_AND_INVOKE]arg1|arg2|arg3[/WIRE_UP_AND_INVOKE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WIRE_UP_AND_INVOKE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WIRE_UP_AND_INVOKE",
        "type": "fn",
        "what": [
          "WHAT: Atomic 3-step chain — resolve a short_id, append a wire-up cla  Returns JSON {short_id,name,kind,appended_clause,append_result,invoke_key,invoke_result}",
          "WHEN_TO_USE: ROUTER's prompt, and invoke the resolved tool",
          "ARGS: short_id|trigger_phrase|invoke_args",
          "EX: [WIRE_UP_AND_INVOKE]arg1|arg2|arg3[/WIRE_UP_AND_INVOKE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "arg3",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "JSON {short_id,name,kind,appended_clause,append_result,invoke_key,invoke_result}",
        "example": "[WIRE_UP_AND_INVOKE]arg1|arg2|arg3[/WIRE_UP_AND_INVOKE]",
        "tag": "[WIRE_UP_AND_INVOKE]<arg1>|<arg2>|<arg3 …>[/WIRE_UP_AND_INVOKE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WIRE_UP_AND_INVOKE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WIRE_UP_AND_INVOKE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/WIRE_UP_AND_INVOKE",
        "update": "PUT /api/directory/WIRE_UP_AND_INVOKE",
        "patch": "PATCH /api/directory/WIRE_UP_AND_INVOKE",
        "delete": "DELETE /api/directory/WIRE_UP_AND_INVOKE",
        "invoke": "POST /api/dispatch {\"key\":\"WIRE_UP_AND_INVOKE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WIRE_UP_AND_INVOKE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WIRE_UP_AND_INVOKE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WIRE_UP_AND_INVOKE"
      },
      "examples": "[\"D40|add it to your system prompt by name and invoke it once|\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WIRE_UP_AND_INVOKE"
    },
    {
      "key": "WITNESS_MINT",
      "type": "fn",
      "category": "adjudication",
      "doc": "WHAT: Mint a WITNESS token: read-only authority over ONE adjudication, bound to a named audience, revocable, with its own ledger trail. Three parties can each hold one over the same finding; none holds operator authority and none must trust the others. A token forwarded to any party other than its audience fails closed. Every use is recorded. WHEN_TO_USE: any finding more than one party must check independently. Proves independent VERIFICATION, not independent execution. ARGS: $1 = adjudication id (inv_...) · $2 = audience the token is bound to · $3 = ttl seconds (use 604800 for 7 days) EX: [WITNESS_MINT]inv_qgs2y3gt2x|eu-supervisory-authority|604800[/WITNESS_MINT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WITNESS_MINT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WITNESS_MINT",
        "type": "fn",
        "what": [
          "WHAT: Mint a WITNESS token: read-only authority over ONE adjudication, bound to a named audience, revocable, with its own ledger trail. Three parties can each hold one over the same finding; none holds operator authority and none must trust the others. A token forwarded to any party other than its audience fails closed. Every use is recorded.",
          "WHEN_TO_USE: any finding more than one party must check independently. Proves independent VERIFICATION, not independent execution.",
          "ARGS: $1 = adjudication id (inv_...) · $2 = audience the token is bound to · $3 = ttl seconds (use 604800 for 7 days)",
          "EX: [WITNESS_MINT]inv_qgs2y3gt2x|eu-supervisory-authority|604800[/WITNESS_MINT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "inv_qgs2y3gt2x",
            "desc": "adjudication id (inv_...) · $2 = audience the token is bound to · $3 = ttl seconds (use 604800 for 7 days)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "eu-supervisory-authority",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "604800",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WITNESS_MINT]inv_qgs2y3gt2x|eu-supervisory-authority|604800[/WITNESS_MINT]",
        "tag": "[WITNESS_MINT]<inv_qgs2y3gt2x>|<eu-supervisory-authority>|<604800>[/WITNESS_MINT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WITNESS_MINT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WITNESS_MINT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"read\",\"\",\"$3\",\"0\",\"witness:$1\",\"low\",\"0\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/WITNESS_MINT",
        "update": "PUT /api/directory/WITNESS_MINT",
        "patch": "PATCH /api/directory/WITNESS_MINT",
        "delete": "DELETE /api/directory/WITNESS_MINT",
        "invoke": "POST /api/dispatch {\"key\":\"WITNESS_MINT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WITNESS_MINT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WITNESS_MINT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WITNESS_MINT"
      },
      "examples": "[{\"body\": \"inv_qgs2y3gt2x|eu-supervisory-authority|604800\"}]",
      "test": "GET https://miscsubjects.com/api/manual?test=WITNESS_MINT"
    },
    {
      "key": "WORK_APPEND",
      "type": "fn",
      "category": "work",
      "doc": "WHAT: Append one entry to the shared append-only work thread. This is how every model records what it did, proposed, or audited so the next model continues from it (fixes short model memory). WHEN_TO_USE: after you do, propose, or audit anything. Always append. ARGS: $1 = your model/agent name, $2 = kind (note|edit|proposal|audit|question|done), $3 = your entry. Prefix body with 'ref:task:12' or 'ref:lead:49' or 'ref:gh:7' to link it. EX: [WORK_APPEND]grok-web|proposal|ref:task:4032 send 50 outreach emails/day to start, ramp weekly[/WORK_APPEND]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORK_APPEND",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORK_APPEND",
        "type": "fn",
        "what": [
          "WHAT: Append one entry to the shared append-only work thread. This is how every model records what it did, proposed, or audited so the next model continues from it (fixes short model memory).",
          "WHEN_TO_USE: after you do, propose, or audit anything. Always append.",
          "ARGS: $1 = your model/agent name, $2 = kind (note|edit|proposal|audit|question|done), $3 = your entry. Prefix body with 'ref:task:12' or 'ref:lead:49' or 'ref:gh:7' to link it.",
          "EX: [WORK_APPEND]grok-web|proposal|ref:task:4032 send 50 outreach emails/day to start, ramp weekly[/WORK_APPEND]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "grok-web",
            "desc": "your model/agent name, $2 = kind (note|edit|proposal|audit|question|done), $3 = your entry. Prefix body with 'ref:task:12' or 'ref:lead:49' or 'ref:gh:7' to link it.",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "proposal",
            "desc": "",
            "variadic": false
          },
          {
            "pos": 3,
            "name": "ref:task:4032 send 50 outreach emails/day to start, ramp weekly",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORK_APPEND]grok-web|proposal|ref:task:4032 send 50 outreach emails/day to start, ramp weekly[/WORK_APPEND]",
        "tag": "[WORK_APPEND]<grok-web>|<proposal>|<ref:task:4032 send 50 outreach emails/day to start, ramp weekly …>[/WORK_APPEND]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORK_APPEND\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORK_APPEND  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\",\"$3+\"]",
      "edit": {
        "read": "GET /api/directory/WORK_APPEND",
        "update": "PUT /api/directory/WORK_APPEND",
        "patch": "PATCH /api/directory/WORK_APPEND",
        "delete": "DELETE /api/directory/WORK_APPEND",
        "invoke": "POST /api/dispatch {\"key\":\"WORK_APPEND\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORK_APPEND\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORK_APPEND\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORK_APPEND"
      },
      "examples": "[\"claude-code|done|Built the shared work thread: WORK_FEED (read first) + WORK_APPEND (post edits). Aggregates tasks + github + leads + this thread.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORK_APPEND"
    },
    {
      "key": "WORK_FEED",
      "type": "fn",
      "category": "work",
      "doc": "WHAT: The shared work thread. THE FIRST THING ANY MODEL OR TOKEN-HOLDER READS. Aggregates the top priority, open tasks, open GitHub issues, the lead pipeline, and the recent model thread into one ranked view. WHEN_TO_USE: at the start of ANY session, or when asked 'what should I work on', 'what is the state', 'catch me up', 'where are we'. ARGS: $1 = how many recent thread entries (default 15). EX: [WORK_FEED][/WORK_FEED]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORK_FEED",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORK_FEED",
        "type": "fn",
        "what": [
          "WHAT: The shared work thread. THE FIRST THING ANY MODEL OR TOKEN-HOLDER READS. Aggregates the top priority, open tasks, open GitHub issues, the lead pipeline, and the recent model thread into one ranked view.",
          "WHEN_TO_USE: at the start of ANY session, or when asked 'what should I work on', 'what is the state', 'catch me up', 'where are we'.",
          "ARGS: $1 = how many recent thread entries (default 15).",
          "EX: [WORK_FEED][/WORK_FEED]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "how many recent thread entries (default 15).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORK_FEED][/WORK_FEED]",
        "tag": "[WORK_FEED]<arg1>[/WORK_FEED]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORK_FEED\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORK_FEED  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORK_FEED",
        "update": "PUT /api/directory/WORK_FEED",
        "patch": "PATCH /api/directory/WORK_FEED",
        "delete": "DELETE /api/directory/WORK_FEED",
        "invoke": "POST /api/dispatch {\"key\":\"WORK_FEED\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORK_FEED\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORK_FEED\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORK_FEED"
      },
      "examples": "[\"5\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORK_FEED"
    },
    {
      "key": "WORLDTIME",
      "type": "fn",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLDTIME",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLDTIME",
        "type": "fn",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": null,
        "tag": "[WORLDTIME][/WORLDTIME]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLDTIME\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLDTIME  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"GET\",\"https://worldtimeapi.org/api/timezone/Etc/UTC\",\"\",\"\"]",
      "edit": {
        "read": "GET /api/directory/WORLDTIME",
        "update": "PUT /api/directory/WORLDTIME",
        "patch": "PATCH /api/directory/WORLDTIME",
        "delete": "DELETE /api/directory/WORLDTIME",
        "invoke": "POST /api/dispatch {\"key\":\"WORLDTIME\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLDTIME\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLDTIME\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLDTIME"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=WORLDTIME"
    },
    {
      "key": "WORLD_ADSTXT",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: A publisher's IAB ads.txt file — every advertising exchange it has authorised to sell its inventory, with the seller account id and whether the relationship is DIRECT or RESELLER. WHEN_TO_USE: building the programmatic supply graph. Crawl this across a ranked domain list and you have the real ad-tech map, free, with no vendor in the middle. ARGS: $1 = a bare publisher domain, no scheme. Use app-ads.txt for mobile apps. RETURNS: text/plain, one \"exchange_domain, seller_id, DIRECT|RESELLER, cert_id\" per line. PAIR WITH: WORLD_SELLERS_JSON on each exchange domain to close the graph from both ends. FEEDS: world_map.found_on = 'ads.txt-crawl', ontology_node = ADTECH.SUPPLY EX: [WORLD_ADSTXT]forbes.com[/WORLD_ADSTXT]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_ADSTXT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_ADSTXT",
        "type": "http",
        "what": [
          "WHAT: A publisher's IAB ads.txt file — every advertising exchange it has authorised to sell its inventory, with the seller account id and whether the relationship is DIRECT or RESELLER.",
          "WHEN_TO_USE: building the programmatic supply graph. Crawl this across a ranked domain list and you have the real ad-tech map, free, with no vendor in the middle.",
          "ARGS: $1 = a bare publisher domain, no scheme. Use app-ads.txt for mobile apps.",
          "RETURNS: text/plain, one \"exchange_domain, seller_id, DIRECT|RESELLER, cert_id\" per line.",
          "PAIR WITH: WORLD_SELLERS_JSON on each exchange domain to close the graph from both ends.",
          "FEEDS: world_map.found_on = 'ads.txt-crawl', ontology_node = ADTECH.SUPPLY",
          "EX: [WORLD_ADSTXT]forbes.com[/WORLD_ADSTXT]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "forbes.com",
            "desc": "a bare publisher domain, no scheme. Use app-ads.txt for mobile apps.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_ADSTXT]forbes.com[/WORLD_ADSTXT]",
        "tag": "[WORLD_ADSTXT]<forbes.com>[/WORLD_ADSTXT]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_ADSTXT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_ADSTXT  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_ADSTXT",
        "update": "PUT /api/directory/WORLD_ADSTXT",
        "patch": "PATCH /api/directory/WORLD_ADSTXT",
        "delete": "DELETE /api/directory/WORLD_ADSTXT",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_ADSTXT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_ADSTXT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_ADSTXT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_ADSTXT"
      },
      "examples": "[\"forbes.com\", \"healthline.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_ADSTXT"
    },
    {
      "key": "WORLD_APIS_GURU",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: 2,500+ public APIs with a machine-readable OpenAPI spec URL for each. Keyless. WHEN_TO_USE: the shortest path from \"that service exists\" to \"that service is a directory row\" — hand swaggerUrl to DISCOVER_SOURCE, then EXTRACT_CAPABILITIES, then ADD_ROW. ARGS: none. The payload is large; filter client-side. RETURNS: {\"<provider>\": {versions: {\"<v>\": {swaggerUrl, info:{title,description}}}, preferred}} FEEDS: world_map.found_on = 'apis-guru' EX: [WORLD_APIS_GURU][/WORLD_APIS_GURU]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_APIS_GURU",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_APIS_GURU",
        "type": "http",
        "what": [
          "WHAT: 2,500+ public APIs with a machine-readable OpenAPI spec URL for each. Keyless.",
          "WHEN_TO_USE: the shortest path from \"that service exists\" to \"that service is a directory row\" — hand swaggerUrl to DISCOVER_SOURCE, then EXTRACT_CAPABILITIES, then ADD_ROW.",
          "ARGS: none. The payload is large; filter client-side.",
          "RETURNS: {\"<provider>\": {versions: {\"<v>\": {swaggerUrl, info:{title,description}}}, preferred}}",
          "FEEDS: world_map.found_on = 'apis-guru'",
          "EX: [WORLD_APIS_GURU][/WORLD_APIS_GURU]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_APIS_GURU][/WORLD_APIS_GURU]",
        "tag": "[WORLD_APIS_GURU][/WORLD_APIS_GURU]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_APIS_GURU\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_APIS_GURU  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/WORLD_APIS_GURU",
        "update": "PUT /api/directory/WORLD_APIS_GURU",
        "patch": "PATCH /api/directory/WORLD_APIS_GURU",
        "delete": "DELETE /api/directory/WORLD_APIS_GURU",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_APIS_GURU\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_APIS_GURU\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_APIS_GURU\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_APIS_GURU"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_APIS_GURU"
    },
    {
      "key": "WORLD_BREW_INSTALLS",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Homebrew's 30-day install counts for every formula. Keyless. Use /api/analytics/cask-install/30d.json for GUI apps. WHEN_TO_USE: proof that real people run a tool on a real Mac, which is a different and better signal than stars for anything that has to touch a desktop. ARGS: none. RETURNS: items[] with formula/cask, count, percent. FEEDS: world_map.popularity_basis = 'brew_installs_30d' EX: [WORLD_BREW_INSTALLS][/WORLD_BREW_INSTALLS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_BREW_INSTALLS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_BREW_INSTALLS",
        "type": "http",
        "what": [
          "WHAT: Homebrew's 30-day install counts for every formula. Keyless. Use /api/analytics/cask-install/30d.json for GUI apps.",
          "WHEN_TO_USE: proof that real people run a tool on a real Mac, which is a different and better signal than stars for anything that has to touch a desktop.",
          "ARGS: none.",
          "RETURNS: items[] with formula/cask, count, percent.",
          "FEEDS: world_map.popularity_basis = 'brew_installs_30d'",
          "EX: [WORLD_BREW_INSTALLS][/WORLD_BREW_INSTALLS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_BREW_INSTALLS][/WORLD_BREW_INSTALLS]",
        "tag": "[WORLD_BREW_INSTALLS][/WORLD_BREW_INSTALLS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_BREW_INSTALLS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_BREW_INSTALLS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/WORLD_BREW_INSTALLS",
        "update": "PUT /api/directory/WORLD_BREW_INSTALLS",
        "patch": "PATCH /api/directory/WORLD_BREW_INSTALLS",
        "delete": "DELETE /api/directory/WORLD_BREW_INSTALLS",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_BREW_INSTALLS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_BREW_INSTALLS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_BREW_INSTALLS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_BREW_INSTALLS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_BREW_INSTALLS"
    },
    {
      "key": "WORLD_EASYPRIVACY",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: EasyPrivacy — the ad-blocking world's ground truth on which hosts and URL patterns count as tracking. WHEN_TO_USE: deciding whether a third-party request on a page is a tracker, without paying a vendor to tell you. Pair with a Cloudflare Radar URL scan HAR to classify every request a page makes. ARGS: none. Large plaintext. RETURNS: text/plain filter rules, one per line. FEEDS: world_map.ontology_node = ADTECH.TRACK EX: [WORLD_EASYPRIVACY][/WORLD_EASYPRIVACY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_EASYPRIVACY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_EASYPRIVACY",
        "type": "http",
        "what": [
          "WHAT: EasyPrivacy — the ad-blocking world's ground truth on which hosts and URL patterns count as tracking.",
          "WHEN_TO_USE: deciding whether a third-party request on a page is a tracker, without paying a vendor to tell you. Pair with a Cloudflare Radar URL scan HAR to classify every request a page makes.",
          "ARGS: none. Large plaintext.",
          "RETURNS: text/plain filter rules, one per line.",
          "FEEDS: world_map.ontology_node = ADTECH.TRACK",
          "EX: [WORLD_EASYPRIVACY][/WORLD_EASYPRIVACY]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_EASYPRIVACY][/WORLD_EASYPRIVACY]",
        "tag": "[WORLD_EASYPRIVACY][/WORLD_EASYPRIVACY]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_EASYPRIVACY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_EASYPRIVACY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/WORLD_EASYPRIVACY",
        "update": "PUT /api/directory/WORLD_EASYPRIVACY",
        "patch": "PATCH /api/directory/WORLD_EASYPRIVACY",
        "delete": "DELETE /api/directory/WORLD_EASYPRIVACY",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_EASYPRIVACY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_EASYPRIVACY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_EASYPRIVACY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_EASYPRIVACY"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_EASYPRIVACY"
    },
    {
      "key": "WORLD_GITHUB_SEARCH",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Search every public repository by topic and get back the objects with stars, forks, topics, license and last-push date. The primary source of the world map. WHEN_TO_USE: you want to know what already exists for a capability before building it. ARGS: $1 = a GitHub search query. Add \"pushed:>2025-01-01\" to exclude the dead. RETURNS: items[] with full_name, description, topics, stargazers_count, forks_count, pushed_at, license. NOTE: keyless here at 10 req/min. Authenticated (gh CLI on the Mac) it is 30 req/min and returns the same shape. FEEDS: world_map.found_on = 'github-search' EX: [WORLD_GITHUB_SEARCH]computer use agent macos pushed:>2025-01-01[/WORLD_GITHUB_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_GITHUB_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_GITHUB_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search every public repository by topic and get back the objects with stars, forks, topics, license and last-push date. The primary source of the world map.",
          "WHEN_TO_USE: you want to know what already exists for a capability before building it.",
          "ARGS: $1 = a GitHub search query. Add \"pushed:>2025-01-01\" to exclude the dead.",
          "RETURNS: items[] with full_name, description, topics, stargazers_count, forks_count, pushed_at, license.",
          "NOTE: keyless here at 10 req/min. Authenticated (gh CLI on the Mac) it is 30 req/min and returns the same shape.",
          "FEEDS: world_map.found_on = 'github-search'",
          "EX: [WORLD_GITHUB_SEARCH]computer use agent macos pushed:>2025-01-01[/WORLD_GITHUB_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "computer use agent macos pushed:2025-01-01",
            "desc": "a GitHub search query. Add \"pushed:>2025-01-01\" to exclude the dead.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the same shape.",
        "example": "[WORLD_GITHUB_SEARCH]computer use agent macos pushed:>2025-01-01[/WORLD_GITHUB_SEARCH]",
        "tag": "[WORLD_GITHUB_SEARCH]<computer use agent macos pushed:2025-01-01>[/WORLD_GITHUB_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_GITHUB_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_GITHUB_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_GITHUB_SEARCH",
        "update": "PUT /api/directory/WORLD_GITHUB_SEARCH",
        "patch": "PATCH /api/directory/WORLD_GITHUB_SEARCH",
        "delete": "DELETE /api/directory/WORLD_GITHUB_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_GITHUB_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_GITHUB_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_GITHUB_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_GITHUB_SEARCH"
      },
      "examples": "[\"computer use agent macos pushed:>2025-01-01\", \"imessage bridge api\", \"openrtb prebid header bidding\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_GITHUB_SEARCH"
    },
    {
      "key": "WORLD_HF_MODELS",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Hugging Face Hub model search ranked by real downloads. Keyless. WHEN_TO_USE: mapping the model layer of a capability — which open weights people actually pull for a task. ARGS: $1 = search text (blank for the global top 50). RETURNS: [{modelId, downloads, likes, pipeline_tag, tags}] FEEDS: world_map.found_on = 'huggingface' EX: [WORLD_HF_MODELS]gui-agent[/WORLD_HF_MODELS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_HF_MODELS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_HF_MODELS",
        "type": "http",
        "what": [
          "WHAT: Hugging Face Hub model search ranked by real downloads. Keyless.",
          "WHEN_TO_USE: mapping the model layer of a capability — which open weights people actually pull for a task.",
          "ARGS: $1 = search text (blank for the global top 50).",
          "RETURNS: [{modelId, downloads, likes, pipeline_tag, tags}]",
          "FEEDS: world_map.found_on = 'huggingface'",
          "EX: [WORLD_HF_MODELS]gui-agent[/WORLD_HF_MODELS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "gui-agent",
            "desc": "search text (blank for the global top 50).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_HF_MODELS]gui-agent[/WORLD_HF_MODELS]",
        "tag": "[WORLD_HF_MODELS]<gui-agent>[/WORLD_HF_MODELS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_HF_MODELS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_HF_MODELS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_HF_MODELS",
        "update": "PUT /api/directory/WORLD_HF_MODELS",
        "patch": "PATCH /api/directory/WORLD_HF_MODELS",
        "delete": "DELETE /api/directory/WORLD_HF_MODELS",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_HF_MODELS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_HF_MODELS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_HF_MODELS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_HF_MODELS"
      },
      "examples": "[\"gui-agent\", \"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_HF_MODELS"
    },
    {
      "key": "WORLD_HN",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Search Hacker News stories over 60 points. Keyless, no published rate limit. Show HN is where this class of tool is announced before it has stars. WHEN_TO_USE: you want the launch layer — commercial products and brand-new projects that repo search misses. ARGS: $1 = query text. RETURNS: hits[] with title, url, points, num_comments, objectID (the HN thread). FEEDS: world_map.found_on = 'hn' EX: [WORLD_HN]computer use[/WORLD_HN]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_HN",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_HN",
        "type": "http",
        "what": [
          "WHAT: Search Hacker News stories over 60 points. Keyless, no published rate limit. Show HN is where this class of tool is announced before it has stars.",
          "WHEN_TO_USE: you want the launch layer — commercial products and brand-new projects that repo search misses.",
          "ARGS: $1 = query text.",
          "RETURNS: hits[] with title, url, points, num_comments, objectID (the HN thread).",
          "FEEDS: world_map.found_on = 'hn'",
          "EX: [WORLD_HN]computer use[/WORLD_HN]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "computer use",
            "desc": "query text.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_HN]computer use[/WORLD_HN]",
        "tag": "[WORLD_HN]<computer use>[/WORLD_HN]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_HN\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_HN  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_HN",
        "update": "PUT /api/directory/WORLD_HN",
        "patch": "PATCH /api/directory/WORLD_HN",
        "delete": "DELETE /api/directory/WORLD_HN",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_HN\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_HN\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_HN\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_HN"
      },
      "examples": "[\"computer use\", \"self-hosted analytics\", \"attribution\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_HN"
    },
    {
      "key": "WORLD_MAP",
      "type": "fn",
      "category": "meta",
      "doc": "WHAT: the ontological world map of every tool this build has + when to use which. No arg = overview (category counts + when-to-use guide + how-to-call). Arg = drill one category and list its tools. WHEN_TO_USE: a model needs to understand what it has access to before acting. ARGS: $1 = optional category name (e.g. cli, wrangler, google_api, kv, d1, r2). EX: [WORLD_MAP][/WORLD_MAP]  then  [WORLD_MAP]wrangler[/WORLD_MAP]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP",
        "type": "fn",
        "what": [
          "WHAT: the ontological world map of every tool this build has + when to use which. No arg = overview (category counts + when-to-use guide + how-to-call). Arg = drill one category and list its tools.",
          "WHEN_TO_USE: a model needs to understand what it has access to before acting.",
          "ARGS: $1 = optional category name (e.g. cli, wrangler, google_api, kv, d1, r2).",
          "EX: [WORLD_MAP][/WORLD_MAP]  then  [WORLD_MAP]wrangler[/WORLD_MAP]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "optional category name (e.g. cli, wrangler, google_api, kv, d1, r2).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP][/WORLD_MAP]  then  [WORLD_MAP]wrangler[/WORLD_MAP]",
        "tag": "[WORLD_MAP]<arg1>[/WORLD_MAP]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_MAP",
        "update": "PUT /api/directory/WORLD_MAP",
        "patch": "PATCH /api/directory/WORLD_MAP",
        "delete": "DELETE /api/directory/WORLD_MAP",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP"
      },
      "examples": "[\"asset\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP"
    },
    {
      "key": "WORLD_MAP_AXES",
      "type": "fn",
      "category": "world-map",
      "doc": "WHAT: The axis catalogue of the world map. 100 columns on D1 table world_map; every axis below carries the source that fills it and its MEASURED fill rate over 3547 rows. An axis with no source is not an axis, so the sparse ones are named as gaps rather than hidden. WHEN_TO_USE: before writing a world-map query, to know which axis can actually answer the question — and before adding a source, to know which axis it would fill. ARGS: $1 = a SQL SELECT against world_map (same lane as WORLD_MAP_QUERY). Cap at ~250 rows.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_AXES",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_AXES",
        "type": "fn",
        "what": [
          "WHAT: The axis catalogue of the world map. 100 columns on D1 table world_map; every axis below carries the source that fills it and its MEASURED fill rate over 3547 rows. An axis with no source is not an axis, so the sparse ones are named as gaps rather than hidden.",
          "WHEN_TO_USE: before writing a world-map query, to know which axis can actually answer the question — and before adding a source, to know which axis it would fill.",
          "ARGS: $1 = a SQL SELECT against world_map (same lane as WORLD_MAP_QUERY). Cap at ~250 rows."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "a SQL SELECT against world_map (same lane as WORLD_MAP_QUERY). Cap at ~250 rows.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP_AXES]arg1[/WORLD_MAP_AXES]",
        "tag": "[WORLD_MAP_AXES]<arg1 …>[/WORLD_MAP_AXES]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_AXES\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_AXES  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_AXES",
        "update": "PUT /api/directory/WORLD_MAP_AXES",
        "patch": "PATCH /api/directory/WORLD_MAP_AXES",
        "delete": "DELETE /api/directory/WORLD_MAP_AXES",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_AXES\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_AXES\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_AXES\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_AXES"
      },
      "examples": "[\"SELECT ontology_node, COUNT(*) out_there, MAX(node_coverage_mine) mine, MAX(wrapped_by) my_rows FROM world_map WHERE ontology_node <> '' GROUP BY 1 HAVING mine = 0 ORDER BY out_there DESC\",\"SELECT name, fit_score, popularity_value, popularity_basis, url, fit_reason FROM world_map WHERE verdict='absorb' AND times_seen > 1 ORDER BY fit_score DESC LIMIT 30\",\"SELECT name, dependent_repos, url FROM world_map WHERE dependent_repos > 1000 ORDER BY dependent_repos DESC LIMIT 25\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_AXES"
    },
    {
      "key": "WORLD_MAP_FILTERS",
      "type": "fn",
      "category": "world-map",
      "doc": "WHAT: The saved questions worth asking of the world map. Each is a filter you can paste into WORLD_MAP_QUERY, or apply to the World Map sheet with SHEET_ADD_FILTER once world_map is a live view source. WHEN_TO_USE: you want to know what is out there relative to what you already run, and you want the question that finds it rather than a list to scroll.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_FILTERS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_FILTERS",
        "type": "fn",
        "what": [
          "WHAT: The saved questions worth asking of the world map. Each is a filter you can paste into WORLD_MAP_QUERY, or apply to the World Map sheet with SHEET_ADD_FILTER once world_map is a live view source.",
          "WHEN_TO_USE: you want to know what is out there relative to what you already run, and you want the question that finds it rather than a list to scroll."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP_FILTERS]arg1[/WORLD_MAP_FILTERS]",
        "tag": "[WORLD_MAP_FILTERS]<arg1 …>[/WORLD_MAP_FILTERS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_FILTERS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_FILTERS  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_FILTERS",
        "update": "PUT /api/directory/WORLD_MAP_FILTERS",
        "patch": "PATCH /api/directory/WORLD_MAP_FILTERS",
        "delete": "DELETE /api/directory/WORLD_MAP_FILTERS",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_FILTERS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_FILTERS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_FILTERS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_FILTERS"
      },
      "examples": "[\"SELECT name, ontology_node, fit_score, popularity_value, popularity_basis, url FROM world_map WHERE node_coverage_mine = 0 AND times_seen > 1 ORDER BY fit_score DESC LIMIT 40\",\"SELECT name, dependent_repos, dependent_packages, url FROM world_map WHERE dependent_repos > 500 AND node_coverage_mine <= 2 ORDER BY dependent_repos DESC LIMIT 40\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_FILTERS"
    },
    {
      "key": "WORLD_MAP_GAPS",
      "type": "fn",
      "category": "world-map",
      "doc": "WHAT: The gap report. For every ontology_node: how many objects exist out in the world, how many absorb candidates, and how many rows this build already has on it. A node with many objects out there and no row of mine is an unclaimed capability. WHEN_TO_USE: deciding what to build next. This answers it with counts instead of opinion. ARGS: $1 = optional; ignored. The statement below is the canonical one — paste it into WORLD_MAP_QUERY to vary it. CANONICAL: SELECT ontology_node, layer, COUNT(*) out_there, SUM(verdict='absorb') absorb, COUNT(DISTINCT found_on) sources, MAX(fit_score) best_fit FROM world_map WHERE ontology_node IS NOT NULL AND ontology_node <> '' GROUP BY 1,2 ORDER BY out_there DESC EX: [WORLD_MAP_GAPS][/WORLD_MAP_GAPS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_GAPS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_GAPS",
        "type": "fn",
        "what": [
          "WHAT: The gap report. For every ontology_node: how many objects exist out in the world, how many absorb candidates, and how many rows this build already has on it. A node with many objects out there and no row of mine is an unclaimed capability.",
          "WHEN_TO_USE: deciding what to build next. This answers it with counts instead of opinion.",
          "ARGS: $1 = optional; ignored. The statement below is the canonical one — paste it into WORLD_MAP_QUERY to vary it.",
          "CANONICAL: SELECT ontology_node, layer, COUNT(*) out_there, SUM(verdict='absorb') absorb, COUNT(DISTINCT found_on) sources, MAX(fit_score) best_fit FROM world_map WHERE ontology_node IS NOT NULL AND ontology_node <> '' GROUP BY 1,2 ORDER BY out_there DESC",
          "EX: [WORLD_MAP_GAPS][/WORLD_MAP_GAPS]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP_GAPS][/WORLD_MAP_GAPS]",
        "tag": "[WORLD_MAP_GAPS][/WORLD_MAP_GAPS]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_GAPS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_GAPS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"SELECT ontology_node, layer, COUNT(*) out_there, SUM(verdict='absorb') absorb, COUNT(DISTINCT found_on) sources, MAX(fit_score) best_fit FROM world_map WHERE ontology_node IS NOT NULL AND ontology_node <> '' GROUP BY 1,2 ORDER BY out_there DESC\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_GAPS",
        "update": "PUT /api/directory/WORLD_MAP_GAPS",
        "patch": "PATCH /api/directory/WORLD_MAP_GAPS",
        "delete": "DELETE /api/directory/WORLD_MAP_GAPS",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_GAPS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_GAPS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_GAPS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_GAPS"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_GAPS"
    },
    {
      "key": "WORLD_MAP_HARVEST",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Run the world-map harvest end to end on the Mac: query every discovery source, dedupe by url, classify each object onto one ontology_node, replace search scores with real download counts, verify the seeded ontology against GitHub, fold in the providers table, score fit against this build's own directory, load D1 world_map, and repush the six WM_* tabs of the Google sheet. WHEN_TO_USE: on a clock, or whenever you want the map current before deciding what to build. ARGS: $1+ = the command. The canonical one is the single example below; pass a different one only to run a single stage. STAGES: harvest.mjs -> reclass.mjs -> verify_seeds.mjs -> load.mjs -> push_d1.mjs -> sheet.mjs. Each is separately runnable from ~/.miscsubjects/world-map/. IDEMPOTENT: world_map.url is UNIQUE, rows upsert, times_seen accumulates. Re-running never duplicates and never silently drops a row that a source stopped returning. REQUIRES: node, and gh logged in (GitHub search is 30 req/min authenticated, 10 keyless). READS BACK WITH: WORLD_MAP_QUERY, WORLD_MAP_GAPS. EX: [WORLD_MAP_HARVEST]sh ~/.miscsubjects/world-map/run.sh[/WORLD_MAP_HARVEST]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_HARVEST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_HARVEST",
        "type": "http",
        "what": [
          "WHAT: Run the world-map harvest end to end on the Mac: query every discovery source, dedupe by url, classify each object onto one ontology_node, replace search scores with real download counts, verify the seeded ontology against GitHub, fold in the providers table, score fit against this build's own directory, load D1 world_map, and repush the six WM_* tabs of the Google sheet.",
          "WHEN_TO_USE: on a clock, or whenever you want the map current before deciding what to build.",
          "ARGS: $1+ = the command. The canonical one is the single example below; pass a different one only to run a single stage.",
          "STAGES: harvest.mjs -> reclass.mjs -> verify_seeds.mjs -> load.mjs -> push_d1.mjs -> sheet.mjs. Each is separately runnable from ~/.miscsubjects/world-map/.",
          "IDEMPOTENT: world_map.url is UNIQUE, rows upsert, times_seen accumulates. Re-running never duplicates and never silently drops a row that a source stopped returning.",
          "REQUIRES: node, and gh logged in (GitHub search is 30 req/min authenticated, 10 keyless).",
          "READS BACK WITH: WORLD_MAP_QUERY, WORLD_MAP_GAPS.",
          "EX: [WORLD_MAP_HARVEST]sh ~/.miscsubjects/world-map/run.sh[/WORLD_MAP_HARVEST]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "sh ~/.miscsubjects/world-map/run.sh",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_MAP_HARVEST]sh ~/.miscsubjects/world-map/run.sh[/WORLD_MAP_HARVEST]",
        "tag": "[WORLD_MAP_HARVEST]<sh ~/.miscsubjects/world-map/run.sh …>[/WORLD_MAP_HARVEST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_HARVEST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_HARVEST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"cmd\":\"sh\",\"args\":[\"-lc\",\"$1+\"],\"timeout\":900000}",
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_HARVEST",
        "update": "PUT /api/directory/WORLD_MAP_HARVEST",
        "patch": "PATCH /api/directory/WORLD_MAP_HARVEST",
        "delete": "DELETE /api/directory/WORLD_MAP_HARVEST",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_HARVEST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_HARVEST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_HARVEST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_HARVEST"
      },
      "examples": "[\"sh ~/.miscsubjects/world-map/run.sh\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_HARVEST"
    },
    {
      "key": "WORLD_MAP_QUERY",
      "type": "fn",
      "category": "world-map",
      "doc": "WHAT: Read the world map — the D1 table world_map, one row per external object this build has discovered. Columns: id, name, kind, url, docs_url, openapi_url, domain, ontology_node, layer, tags, what_it_does, operates_on, stars, forks, last_commit, downloads_30d, popularity_basis, popularity_value, maturity, license, pricing, same_node_as, found_on, found_query, found_at, source_url, times_seen, seen_on, fit_score, fit_reason, already_have, verdict, absorbed_as, classified_by, evidence. WHEN_TO_USE: before building anything, ask what already owns this ontology_node and whether a row of mine already covers it. ARGS: $1 = a full SQL SELECT against world_map. Cap it at ~250 rows per call; larger payloads are truncated in transit. THE COLUMN THAT MATTERS: ontology_node is the executor class an object owns (MESSAGE.SEND, BROWSER.ACT, ADTECH.TRACK, DEVICE.EXEC, ...). Everything sharing a node is a substitute for everything else sharing it. That is what makes this a map and not a list. POPULARITY: popularity_value is meaningless without popularity_basis. Never compare a star count to a brew install count to a tracker prevalence. VERDICTS: absorb | watch | ignore | duplicate-of-mine | unresolved. 'unresolved' means the name was asserted but the source returned no such object — kept visible, never silently dropped. EX: [WORLD_MAP_QUERY]SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20[/WORLD_MAP_QUERY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_QUERY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_QUERY",
        "type": "fn",
        "what": [
          "WHAT: Read the world map — the D1 table world_map, one row per external object this build has discovered. Columns: id, name, kind, url, docs_url, openapi_url, domain, ontology_node, layer, tags, what_it_does, operates_on, stars, forks, last_commit, downloads_30d, popularity_basis, popularity_value, maturity, license, pricing, same_node_as, found_on, found_query, found_at, source_url, times_seen, seen_on, fit_score, fit_reason, already_have, verdict, absorbed_as, classified_by, evidence.",
          "WHEN_TO_USE: before building anything, ask what already owns this ontology_node and whether a row of mine already covers it.",
          "ARGS: $1 = a full SQL SELECT against world_map. Cap it at ~250 rows per call; larger payloads are truncated in transit.",
          "THE COLUMN THAT MATTERS: ontology_node is the executor class an object owns (MESSAGE.SEND, BROWSER.ACT, ADTECH.TRACK, DEVICE.EXEC, ...). Everything sharing a node is a substitute for everything else sharing it. That is what makes this a map and not a list.",
          "POPULARITY: popularity_value is meaningless without popularity_basis. Never compare a star count to a brew install count to a tracker prevalence.",
          "VERDICTS: absorb | watch | ignore | duplicate-of-mine | unresolved. 'unresolved' means the name was asserted but the source returned no such object — kept visible, never silently dropped.",
          "EX: [WORLD_MAP_QUERY]SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20[/WORLD_MAP_QUERY]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20",
            "desc": "a full SQL SELECT against world_map. Cap it at ~250 rows per call",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP_QUERY]SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20[/WORLD_MAP_QUERY]",
        "tag": "[WORLD_MAP_QUERY]<SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20 …>[/WORLD_MAP_QUERY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_QUERY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_QUERY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_QUERY",
        "update": "PUT /api/directory/WORLD_MAP_QUERY",
        "patch": "PATCH /api/directory/WORLD_MAP_QUERY",
        "delete": "DELETE /api/directory/WORLD_MAP_QUERY",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_QUERY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_QUERY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_QUERY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_QUERY"
      },
      "examples": "[\"SELECT name, fit_score, url FROM world_map WHERE ontology_node = 'BROWSER.ACT' AND verdict = 'absorb' ORDER BY fit_score DESC LIMIT 20\", \"SELECT ontology_node, COUNT(*) n FROM world_map GROUP BY 1 ORDER BY n DESC\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_QUERY"
    },
    {
      "key": "WORLD_MAP_WRITE",
      "type": "fn",
      "category": "world-map",
      "doc": "WHAT: Write to the world map. Insert a newly discovered object, or set a verdict / absorbed_as on one that has been acted on. WHEN_TO_USE: a source surfaced something the harvest missed, or a row was absorbed into the directory and needs to say so. ARGS: $1 = the full INSERT/UPDATE. Inline the values, double any single quotes, no bound parameters. url is UNIQUE — use INSERT OR REPLACE. DISCIPLINE: never invent a popularity_value without setting popularity_basis; never set verdict='absorb' without a fit_reason that names why; when a name cannot be resolved at its source, write verdict='unresolved' and leave fit_score NULL rather than guessing. EX: [WORLD_MAP_WRITE]UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand'[/WORLD_MAP_WRITE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MAP_WRITE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MAP_WRITE",
        "type": "fn",
        "what": [
          "WHAT: Write to the world map. Insert a newly discovered object, or set a verdict / absorbed_as on one that has been acted on.",
          "WHEN_TO_USE: a source surfaced something the harvest missed, or a row was absorbed into the directory and needs to say so.",
          "ARGS: $1 = the full INSERT/UPDATE. Inline the values, double any single quotes, no bound parameters. url is UNIQUE — use INSERT OR REPLACE.",
          "DISCIPLINE: never invent a popularity_value without setting popularity_basis; never set verdict='absorb' without a fit_reason that names why; when a name cannot be resolved at its source, write verdict='unresolved' and leave fit_score NULL rather than guessing.",
          "EX: [WORLD_MAP_WRITE]UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand'[/WORLD_MAP_WRITE]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand'",
            "desc": "the full INSERT/UPDATE. Inline the values, double any single quotes, no bound parameters. url is UNIQUE — use INSERT OR REPLACE.",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WORLD_MAP_WRITE]UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand'[/WORLD_MAP_WRITE]",
        "tag": "[WORLD_MAP_WRITE]<UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand' …>[/WORLD_MAP_WRITE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MAP_WRITE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MAP_WRITE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_MAP_WRITE",
        "update": "PUT /api/directory/WORLD_MAP_WRITE",
        "patch": "PATCH /api/directory/WORLD_MAP_WRITE",
        "delete": "DELETE /api/directory/WORLD_MAP_WRITE",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MAP_WRITE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MAP_WRITE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MAP_WRITE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MAP_WRITE"
      },
      "examples": "[\"UPDATE world_map SET verdict='absorb', absorbed_as='BROWSER_STAGEHAND', updated_at=datetime('now') WHERE name='Stagehand'\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MAP_WRITE"
    },
    {
      "key": "WORLD_MCP_REGISTRY",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: The official Model Context Protocol server registry. Every published MCP server with its description and repository. WHEN_TO_USE: you want to know whether a capability is already exposed as an MCP server before wrapping the underlying API yourself. ARGS: none. RETURNS: servers[] with name, description, repository.url, remotes[]. FEEDS: world_map.found_on = 'mcp-registry' EX: [WORLD_MCP_REGISTRY][/WORLD_MCP_REGISTRY]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_MCP_REGISTRY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_MCP_REGISTRY",
        "type": "http",
        "what": [
          "WHAT: The official Model Context Protocol server registry. Every published MCP server with its description and repository.",
          "WHEN_TO_USE: you want to know whether a capability is already exposed as an MCP server before wrapping the underlying API yourself.",
          "ARGS: none.",
          "RETURNS: servers[] with name, description, repository.url, remotes[].",
          "FEEDS: world_map.found_on = 'mcp-registry'",
          "EX: [WORLD_MCP_REGISTRY][/WORLD_MCP_REGISTRY]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_MCP_REGISTRY][/WORLD_MCP_REGISTRY]",
        "tag": "[WORLD_MCP_REGISTRY][/WORLD_MCP_REGISTRY]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_MCP_REGISTRY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_MCP_REGISTRY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[]",
      "edit": {
        "read": "GET /api/directory/WORLD_MCP_REGISTRY",
        "update": "PUT /api/directory/WORLD_MCP_REGISTRY",
        "patch": "PATCH /api/directory/WORLD_MCP_REGISTRY",
        "delete": "DELETE /api/directory/WORLD_MCP_REGISTRY",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_MCP_REGISTRY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_MCP_REGISTRY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_MCP_REGISTRY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_MCP_REGISTRY"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_MCP_REGISTRY"
    },
    {
      "key": "WORLD_NPM_DOWNLOADS",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Real last-month download count for one npm package. Keyless. WHEN_TO_USE: the honest popularity number for a library. Stars measure attention; downloads measure use. ARGS: $1 = package name (URL-encode a scoped name: %40scope%2Fpkg). RETURNS: {downloads, start, end, package} FEEDS: world_map.popularity_basis = 'npm_downloads_30d' EX: [WORLD_NPM_DOWNLOADS]playwright[/WORLD_NPM_DOWNLOADS]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_NPM_DOWNLOADS",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_NPM_DOWNLOADS",
        "type": "http",
        "what": [
          "WHAT: Real last-month download count for one npm package. Keyless.",
          "WHEN_TO_USE: the honest popularity number for a library. Stars measure attention; downloads measure use.",
          "ARGS: $1 = package name (URL-encode a scoped name: %40scope%2Fpkg).",
          "RETURNS: {downloads, start, end, package}",
          "FEEDS: world_map.popularity_basis = 'npm_downloads_30d'",
          "EX: [WORLD_NPM_DOWNLOADS]playwright[/WORLD_NPM_DOWNLOADS]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "playwright",
            "desc": "package name (URL-encode a scoped name: %40scope%2Fpkg).",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_NPM_DOWNLOADS]playwright[/WORLD_NPM_DOWNLOADS]",
        "tag": "[WORLD_NPM_DOWNLOADS]<playwright>[/WORLD_NPM_DOWNLOADS]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_NPM_DOWNLOADS\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_NPM_DOWNLOADS  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_NPM_DOWNLOADS",
        "update": "PUT /api/directory/WORLD_NPM_DOWNLOADS",
        "patch": "PATCH /api/directory/WORLD_NPM_DOWNLOADS",
        "delete": "DELETE /api/directory/WORLD_NPM_DOWNLOADS",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_NPM_DOWNLOADS\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_NPM_DOWNLOADS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_NPM_DOWNLOADS\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_NPM_DOWNLOADS"
      },
      "examples": "[\"playwright\", \"%40anthropic-ai%2Fsdk\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_NPM_DOWNLOADS"
    },
    {
      "key": "WORLD_NPM_SEARCH",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: Search the npm registry by text. Keyless. WHEN_TO_USE: finding the library layer — the SDKs and adapters people actually install, which repo search under-weights. ARGS: $1 = query text. RETURNS: objects[].package with name, description, keywords, links.repository. IMPORTANT: the search score is NOT a popularity measure. Always follow up with WORLD_NPM_DOWNLOADS for the real number. FEEDS: world_map.found_on = 'npm' EX: [WORLD_NPM_SEARCH]imessage[/WORLD_NPM_SEARCH]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_NPM_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_NPM_SEARCH",
        "type": "http",
        "what": [
          "WHAT: Search the npm registry by text. Keyless.",
          "WHEN_TO_USE: finding the library layer — the SDKs and adapters people actually install, which repo search under-weights.",
          "ARGS: $1 = query text.",
          "RETURNS: objects[].package with name, description, keywords, links.repository.",
          "IMPORTANT: the search score is NOT a popularity measure. Always follow up with WORLD_NPM_DOWNLOADS for the real number.",
          "FEEDS: world_map.found_on = 'npm'",
          "EX: [WORLD_NPM_SEARCH]imessage[/WORLD_NPM_SEARCH]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "imessage",
            "desc": "query text.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_NPM_SEARCH]imessage[/WORLD_NPM_SEARCH]",
        "tag": "[WORLD_NPM_SEARCH]<imessage>[/WORLD_NPM_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_NPM_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_NPM_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_NPM_SEARCH",
        "update": "PUT /api/directory/WORLD_NPM_SEARCH",
        "patch": "PATCH /api/directory/WORLD_NPM_SEARCH",
        "delete": "DELETE /api/directory/WORLD_NPM_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_NPM_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_NPM_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_NPM_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_NPM_SEARCH"
      },
      "examples": "[\"imessage\", \"browser automation\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_NPM_SEARCH"
    },
    {
      "key": "WORLD_SELLERS_JSON",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: An exchange's IAB sellers.json — every publisher and intermediary it sells on behalf of, with names and domains. WHEN_TO_USE: the other half of the supply graph. ads.txt is what a publisher declares; sellers.json is what the exchange declares. Where they disagree is where the money leaks. ARGS: $1 = a bare exchange domain, no scheme. RETURNS: {sellers:[{seller_id, name, domain, seller_type}], contact_email, version} FEEDS: world_map.found_on = 'sellers.json', ontology_node = ADTECH.SUPPLY EX: [WORLD_SELLERS_JSON]pubmatic.com[/WORLD_SELLERS_JSON]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_SELLERS_JSON",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_SELLERS_JSON",
        "type": "http",
        "what": [
          "WHAT: An exchange's IAB sellers.json — every publisher and intermediary it sells on behalf of, with names and domains.",
          "WHEN_TO_USE: the other half of the supply graph. ads.txt is what a publisher declares; sellers.json is what the exchange declares. Where they disagree is where the money leaks.",
          "ARGS: $1 = a bare exchange domain, no scheme.",
          "RETURNS: {sellers:[{seller_id, name, domain, seller_type}], contact_email, version}",
          "FEEDS: world_map.found_on = 'sellers.json', ontology_node = ADTECH.SUPPLY",
          "EX: [WORLD_SELLERS_JSON]pubmatic.com[/WORLD_SELLERS_JSON]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "pubmatic.com",
            "desc": "a bare exchange domain, no scheme.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_SELLERS_JSON]pubmatic.com[/WORLD_SELLERS_JSON]",
        "tag": "[WORLD_SELLERS_JSON]<pubmatic.com>[/WORLD_SELLERS_JSON]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_SELLERS_JSON\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_SELLERS_JSON  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_SELLERS_JSON",
        "update": "PUT /api/directory/WORLD_SELLERS_JSON",
        "patch": "PATCH /api/directory/WORLD_SELLERS_JSON",
        "delete": "DELETE /api/directory/WORLD_SELLERS_JSON",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_SELLERS_JSON\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_SELLERS_JSON\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_SELLERS_JSON\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_SELLERS_JSON"
      },
      "examples": "[\"pubmatic.com\", \"rubiconproject.com\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_SELLERS_JSON"
    },
    {
      "key": "WORLD_TRACKER_RADAR",
      "type": "http",
      "category": "world-map",
      "doc": "WHAT: DuckDuckGo Tracker Radar — for one tracking company: every domain it owns, its measured prevalence across the crawled web, its fingerprinting behaviour and its cookie behaviour. 1,000 entities, free, no vendor in the middle. WHEN_TO_USE: mapping the advertising and tracking layer. This is the free equivalent of asking BuiltWith who is watching whom. ARGS: $1 = the entity name exactly as the file is named, spaces and punctuation included, NOT pre-encoded — the worker encodes it. \"Google LLC\", \"Meta Platforms, Inc.\". RETURNS: {displayName, domains[], properties[], prevalence, categories[]} LIST THEM ALL: GET https://api.github.com/repos/duckduckgo/tracker-radar/contents/entities  (1,000 files) PAIR WITH: WORLD_EASYPRIVACY for the filter-list view, and a Cloudflare Radar URL-scan HAR to classify every third-party request one page actually makes. FEEDS: world_map.found_on = 'ddg-tracker-radar', ontology_node = ADTECH.TRACK, popularity_basis = 'web_prevalence_pct' EX: [WORLD_TRACKER_RADAR]Google LLC[/WORLD_TRACKER_RADAR]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WORLD_TRACKER_RADAR",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WORLD_TRACKER_RADAR",
        "type": "http",
        "what": [
          "WHAT: DuckDuckGo Tracker Radar — for one tracking company: every domain it owns, its measured prevalence across the crawled web, its fingerprinting behaviour and its cookie behaviour. 1,000 entities, free, no vendor in the middle.",
          "WHEN_TO_USE: mapping the advertising and tracking layer. This is the free equivalent of asking BuiltWith who is watching whom.",
          "ARGS: $1 = the entity name exactly as the file is named, spaces and punctuation included, NOT pre-encoded — the worker encodes it. \"Google LLC\", \"Meta Platforms, Inc.\".",
          "RETURNS: {displayName, domains[], properties[], prevalence, categories[]}",
          "LIST THEM ALL: GET https://api.github.com/repos/duckduckgo/tracker-radar/contents/entities  (1,000 files)",
          "PAIR WITH: WORLD_EASYPRIVACY for the filter-list view, and a Cloudflare Radar URL-scan HAR to classify every third-party request one page actually makes.",
          "FEEDS: world_map.found_on = 'ddg-tracker-radar', ontology_node = ADTECH.TRACK, popularity_basis = 'web_prevalence_pct'",
          "EX: [WORLD_TRACKER_RADAR]Google LLC[/WORLD_TRACKER_RADAR]"
        ],
        "args": [
          {
            "pos": 1,
            "name": "Google LLC",
            "desc": "the entity name exactly as the file is named, spaces and punctuation included, NOT pre-encoded — the worker encodes it. \"Google LLC\", \"Meta Platforms, Inc.\".",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[WORLD_TRACKER_RADAR]Google LLC[/WORLD_TRACKER_RADAR]",
        "tag": "[WORLD_TRACKER_RADAR]<Google LLC>[/WORLD_TRACKER_RADAR]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WORLD_TRACKER_RADAR\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WORLD_TRACKER_RADAR  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/WORLD_TRACKER_RADAR",
        "update": "PUT /api/directory/WORLD_TRACKER_RADAR",
        "patch": "PATCH /api/directory/WORLD_TRACKER_RADAR",
        "delete": "DELETE /api/directory/WORLD_TRACKER_RADAR",
        "invoke": "POST /api/dispatch {\"key\":\"WORLD_TRACKER_RADAR\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WORLD_TRACKER_RADAR\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WORLD_TRACKER_RADAR\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WORLD_TRACKER_RADAR"
      },
      "examples": "[\"Google LLC\",\"Meta Platforms, Inc.\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WORLD_TRACKER_RADAR"
    },
    {
      "key": "WRITER",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WRITER",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WRITER",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[WRITER][/WRITER]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WRITER\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WRITER  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WRITER",
        "update": "PUT /api/directory/WRITER",
        "patch": "PATCH /api/directory/WRITER",
        "delete": "DELETE /api/directory/WRITER",
        "invoke": "POST /api/dispatch {\"key\":\"WRITER\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WRITER\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WRITER\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WRITER"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WRITER"
    },
    {
      "key": "WRITER_AGENT",
      "type": "agent",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WRITER_AGENT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WRITER_AGENT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[WRITER_AGENT][/WRITER_AGENT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WRITER_AGENT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WRITER_AGENT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WRITER_AGENT",
        "update": "PUT /api/directory/WRITER_AGENT",
        "patch": "PATCH /api/directory/WRITER_AGENT",
        "delete": "DELETE /api/directory/WRITER_AGENT",
        "invoke": "POST /api/dispatch {\"key\":\"WRITER_AGENT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WRITER_AGENT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WRITER_AGENT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WRITER_AGENT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WRITER_AGENT"
    },
    {
      "key": "WRITE_ARTICLE",
      "type": "fn",
      "category": "content-ops",
      "doc": "Grok writes + publishes an article. ARGS: topic",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WRITE_ARTICLE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WRITE_ARTICLE",
        "type": "fn",
        "what": [
          "Grok writes + publishes an article. ARGS: topic"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[WRITE_ARTICLE]arg1[/WRITE_ARTICLE]",
        "tag": "[WRITE_ARTICLE]<arg1 …>[/WRITE_ARTICLE]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WRITE_ARTICLE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WRITE_ARTICLE  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1+\"]",
      "edit": {
        "read": "GET /api/directory/WRITE_ARTICLE",
        "update": "PUT /api/directory/WRITE_ARTICLE",
        "patch": "PATCH /api/directory/WRITE_ARTICLE",
        "delete": "DELETE /api/directory/WRITE_ARTICLE",
        "invoke": "POST /api/dispatch {\"key\":\"WRITE_ARTICLE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WRITE_ARTICLE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WRITE_ARTICLE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WRITE_ARTICLE"
      },
      "examples": "[\"BPC-157\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WRITE_ARTICLE"
    },
    {
      "key": "WRITING_LAW",
      "type": "http",
      "category": "writing",
      "doc": "WHAT: Discover the canonical Laws of Writing Knowledge-Action Object — opaque, decorative, ambiguous language is hostility toward the reader.\\n# WHEN_TO_USE: any writing, rewriting, editing, replying, header, summary, argument, concession, or challenge decision on any surface.\\n# ARGS: none for the contract; follow representations.invoke with text and task to apply it.\\n# EX: [WRITING_LAW][/WRITING_LAW]\\n# CANONICAL: https://miscsubjects.com/api/articles/writing-law\\n# NOTE: this row is the discovery facet; meaning, instructions, failures, tests, versions, graph, and representations live in the canonical object and are not duplicated here.",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WRITING_LAW",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WRITING_LAW",
        "type": "http",
        "what": [
          "WHAT: Discover the canonical Laws of Writing Knowledge-Action Object — opaque, decorative, ambiguous language is hostility toward the reader.\\n# WHEN_TO_USE: any writing, rewriting, editing, replying, header, summary, argument, concession, or challenge decision on any surface.\\n# ARGS: none for the contract; follow representations.invoke with text and task to apply it.\\n# EX: [WRITING_LAW][/WRITING_LAW]\\n# CANONICAL: https://miscsubjects.com/api/articles/writing-law\\n# NOTE: this row is the discovery facet; meaning, instructions, failures, tests, versions, graph, and representations live in the canonical object and are not duplicated here."
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[WRITING_LAW][/WRITING_LAW]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WRITING_LAW\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WRITING_LAW  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WRITING_LAW",
        "update": "PUT /api/directory/WRITING_LAW",
        "patch": "PATCH /api/directory/WRITING_LAW",
        "delete": "DELETE /api/directory/WRITING_LAW",
        "invoke": "POST /api/dispatch {\"key\":\"WRITING_LAW\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WRITING_LAW\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WRITING_LAW\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WRITING_LAW"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WRITING_LAW"
    },
    {
      "key": "WT0090_OUTBOUND_AUDIT_V1",
      "type": "agent",
      "category": "audit",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WT0090_OUTBOUND_AUDIT_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WT0090_OUTBOUND_AUDIT_V1",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[WT0090_OUTBOUND_AUDIT_V1][/WT0090_OUTBOUND_AUDIT_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WT0090_OUTBOUND_AUDIT_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WT0090_OUTBOUND_AUDIT_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WT0090_OUTBOUND_AUDIT_V1",
        "update": "PUT /api/directory/WT0090_OUTBOUND_AUDIT_V1",
        "patch": "PATCH /api/directory/WT0090_OUTBOUND_AUDIT_V1",
        "delete": "DELETE /api/directory/WT0090_OUTBOUND_AUDIT_V1",
        "invoke": "POST /api/dispatch {\"key\":\"WT0090_OUTBOUND_AUDIT_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WT0090_OUTBOUND_AUDIT_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WT0090_OUTBOUND_AUDIT_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WT0090_OUTBOUND_AUDIT_V1"
      },
      "examples": "[{\"input\":{\"case_facts\":{\"canonical_firms\":1007},\"drafts\":[]},\"output\":{\"verdict\":\"PASS\",\"reviewed\":0,\"keep_count\":0,\"change_count\":0,\"delete_count\":0,\"corpus_findings\":[],\"changes\":[],\"strongest_letter\":\"\",\"weakest_letter\":\"\"}}]",
      "test": "GET https://miscsubjects.com/api/manual?test=WT0090_OUTBOUND_AUDIT_V1"
    },
    {
      "key": "WT0090_OUTBOUND_POLISH_V1",
      "type": "agent",
      "category": "outreach",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "WT0090_OUTBOUND_POLISH_V1",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "WT0090_OUTBOUND_POLISH_V1",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[WT0090_OUTBOUND_POLISH_V1][/WT0090_OUTBOUND_POLISH_V1]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"WT0090_OUTBOUND_POLISH_V1\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/WT0090_OUTBOUND_POLISH_V1  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/WT0090_OUTBOUND_POLISH_V1",
        "update": "PUT /api/directory/WT0090_OUTBOUND_POLISH_V1",
        "patch": "PATCH /api/directory/WT0090_OUTBOUND_POLISH_V1",
        "delete": "DELETE /api/directory/WT0090_OUTBOUND_POLISH_V1",
        "invoke": "POST /api/dispatch {\"key\":\"WT0090_OUTBOUND_POLISH_V1\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"WT0090_OUTBOUND_POLISH_V1\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"WT0090_OUTBOUND_POLISH_V1\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/WT0090_OUTBOUND_POLISH_V1"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=WT0090_OUTBOUND_POLISH_V1"
    },
    {
      "key": "XAI_CHAT",
      "type": "agent",
      "category": "agent",
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "XAI_CHAT",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "XAI_CHAT",
        "type": "agent",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": null,
        "example": null,
        "tag": "[XAI_CHAT][/XAI_CHAT]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"XAI_CHAT\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/XAI_CHAT  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/XAI_CHAT",
        "update": "PUT /api/directory/XAI_CHAT",
        "patch": "PATCH /api/directory/XAI_CHAT",
        "delete": "DELETE /api/directory/XAI_CHAT",
        "invoke": "POST /api/dispatch {\"key\":\"XAI_CHAT\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"XAI_CHAT\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"XAI_CHAT\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/XAI_CHAT"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=XAI_CHAT"
    },
    {
      "key": "X_DELETE",
      "type": "fn",
      "category": "x",
      "doc": "WHAT: Delete ONE tweet the account published (DELETE /2/tweets/:id, same OAuth1 creds as X_POST). WHEN_TO_USE: the owner directs a post to be removed, or a post that violated the format law must be retracted. Owner-directed only — never autonomous timeline pruning. ARGS: $1 = tweet id or full status URL RETURNS: {ok,deleted_id,response} EX: [X_DELETE]2080749124673302742[/X_DELETE]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "X_DELETE",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "X_DELETE",
        "type": "fn",
        "what": [
          "WHAT: Delete ONE tweet the account published (DELETE /2/tweets/:id, same OAuth1 creds as X_POST).",
          "WHEN_TO_USE: the owner directs a post to be removed, or a post that violated the format law must be retracted. Owner-directed only — never autonomous timeline pruning.",
          "ARGS: $1 = tweet id or full status URL",
          "RETURNS: {ok,deleted_id,response}",
          "EX: [X_DELETE]2080749124673302742[/X_DELETE]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "[X_DELETE]2080749124673302742[/X_DELETE]",
        "tag": "[X_DELETE][/X_DELETE]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"X_DELETE\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/X_DELETE  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/X_DELETE",
        "update": "PUT /api/directory/X_DELETE",
        "patch": "PATCH /api/directory/X_DELETE",
        "delete": "DELETE /api/directory/X_DELETE",
        "invoke": "POST /api/dispatch {\"key\":\"X_DELETE\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"X_DELETE\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"X_DELETE\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/X_DELETE"
      },
      "examples": "[\"2081573260890927414\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=X_DELETE"
    },
    {
      "key": "X_POST",
      "type": "fn",
      "category": null,
      "doc": "WHAT: Publish one exact plain-text post to X as @CannibalCapital through OAuth user context. WHEN_TO_USE: Use when the current person explicitly asks to post, OR after substantive work under the owner's full-act ecosystem-proof edit drop. That drop itself authorizes one work-then-publish close; do not ask for confirmation again. Never narrow the ecosystem-proof drop to NOW,RELAY_POST_APPEND,X_POST. ARGS: $1 = exact plain post text, maximum 280 characters. Browser lane: body=URL_ENCODED_EXACT_POST_TEXT once. Never pass {\"text\":\"...\"} and never pass an already encoded JSON wrapper. For an ecosystem-proof-work-then-publish capability, the first line is exactly [EXECUTION SURFACE · EXACT MODEL NAME · YYYY-MM-DD HH:MM UTC]. The remaining body is third-person: no I/me/my/mine/we/us/our/ours. It leads with a concrete observed result, failure, boundary, mutation, provider response, receipt, or hash—not generic hype. VOICE: Bar stock phrases including one door, rival models, game-changer, the future is here, this is wild, verify don't trust, every action leaves a receipt, and generic ran OIP end-to-end copy. Incognito is written in the execution-surface label, for example ChatGPT Web (incognito); it never removes the model name or UTC timestamp. COMPLETION: Posted means the result contains ok:true, provider status 200/201, non-empty id, and https://x.com/i/web/status/ID. Return that direct X URL first, then the inv_ receipt and relay append. A receipt, proof.ok, attempted call, relay URL, or unsupported claim of deduplication is not the post URL. DEDUPE: Say deduplicated only when the server literally returns deduped:true. Read the referenced original receipt and extract its X provider URL; if no provider URL exists, report NOT POSTED. TESTS: Reject empty or over-280 normalized text. A tap-go-social-proof invocation rejects missing attribution, first person, generic hype, or missing incognito label. A provider 2xx without id/url fails. Echoed/requested text contains no encoded JSON wrapper, URL corruption, or credential material. EX: X_POST body begins [Codex CLI · GPT-5.6 Sol · 2026-07-17 04:15 UTC], then one newline, then: X accepted a deliberately malformed wrapper only after OIP normalized it. Receipt: https://miscsubjects.com/receipt/inv_ID",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "X_POST",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "X_POST",
        "type": "fn",
        "what": [
          "WHAT: Publish one exact plain-text post to X as @CannibalCapital through OAuth user context.",
          "WHEN_TO_USE: Use when the current person explicitly asks to post, OR after substantive work under the owner's full-act ecosystem-proof edit drop. That drop itself authorizes one work-then-publish close; do not ask for confirmation again. Never narrow the ecosystem-proof drop to NOW,RELAY_POST_APPEND,X_POST.",
          "ARGS: $1 = exact plain post text, maximum 280 characters. Browser lane: body=URL_ENCODED_EXACT_POST_TEXT once. Never pass {\"text\":\"...\"} and never pass an already encoded JSON wrapper. For an ecosystem-proof-work-then-publish capability, the first line is exactly [EXECUTION SURFACE · EXACT MODEL NAME · YYYY-MM-DD HH:MM UTC]. The remaining body is third-person: no I/me/my/mine/we/us/our/ours. It leads with a concrete observed result, failure, boundary, mutation, provider response, receipt, or hash—not generic hype.",
          "VOICE: Bar stock phrases including one door, rival models, game-changer, the future is here, this is wild, verify don't trust, every action leaves a receipt, and generic ran OIP end-to-end copy. Incognito is written in the execution-surface label, for example ChatGPT Web (incognito); it never removes the model name or UTC timestamp.",
          "COMPLETION: Posted means the result contains ok:true, provider status 200/201, non-empty id, and https://x.com/i/web/status/ID. Return that direct X URL first, then the inv_ receipt and relay append. A receipt, proof.ok, attempted call, relay URL, or unsupported claim of deduplication is not the post URL.",
          "DEDUPE: Say deduplicated only when the server literally returns deduped:true. Read the referenced original receipt and extract its X provider URL; if no provider URL exists, report NOT POSTED.",
          "TESTS: Reject empty or over-280 normalized text. A tap-go-social-proof invocation rejects missing attribution, first person, generic hype, or missing incognito label. A provider 2xx without id/url fails. Echoed/requested text contains no encoded JSON wrapper, URL corruption, or credential material.",
          "EX: X_POST body begins [Codex CLI · GPT-5.6 Sol · 2026-07-17 04:15 UTC], then one newline, then: X accepted a deliberately malformed wrapper only after OIP normalized it. Receipt: https://miscsubjects.com/receipt/inv_ID"
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "exact plain post text, maximum 280 characters. Browser lane: body=URL_ENCODED_EXACT_POST_TEXT once. Never pass {\"text\":\"...\"} and never pass an already encoded JSON wrapper. For an ecosystem-proof-work-then-publish capability, the first line is exactly [EXECUTION SURFACE · EXACT MODEL NAME · YYYY-MM-DD HH:MM UTC]. The remaining body is third-person: no I/me/my/mine/we/us/our/ours. It leads with a concrete observed result, failure, boundary, mutation, provider response, receipt, or hash—not generic hype.",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "that direct X URL first, then the inv_ receipt and relay append. A receipt, proof.ok, attempted call, relay URL, or unsupported claim of deduplication is not the post URL.",
        "example": "X_POST body begins [Codex CLI · GPT-5.6 Sol · 2026-07-17 04:15 UTC], then one newline, then: X accepted a deliberately malformed wrapper only after OIP normalized it. Receipt: https://miscsubjects.com/receipt/inv_ID",
        "tag": "[X_POST]<arg1>[/X_POST]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"X_POST\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/X_POST  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\"]",
      "edit": {
        "read": "GET /api/directory/X_POST",
        "update": "PUT /api/directory/X_POST",
        "patch": "PATCH /api/directory/X_POST",
        "delete": "DELETE /api/directory/X_POST",
        "invoke": "POST /api/dispatch {\"key\":\"X_POST\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"X_POST\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"X_POST\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/X_POST"
      },
      "examples": "[\"URL_ENCODED_EXACT_POST_TEXT\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=X_POST"
    },
    {
      "key": "X_REPLY",
      "type": "fn",
      "category": "x",
      "doc": "WHAT: Post ONE reply to a specific tweet as the account (same OAuth1 creds as X_POST). WHEN_TO_USE: only when the owner directs a reply to a specific tweet, under the owner rules. Single-target; not autonomous mass-replying. ARGS: $1=in_reply_to tweet id or status URL | $2=reply text (<=280) RETURNS: {ok,id,url,in_reply_to,text} EX: X_REPLY 1899999999999999999|Sourced our take here: https://miscsubjects.com/a/...",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "X_REPLY",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "X_REPLY",
        "type": "fn",
        "what": [
          "WHAT: Post ONE reply to a specific tweet as the account (same OAuth1 creds as X_POST).",
          "WHEN_TO_USE: only when the owner directs a reply to a specific tweet, under the owner rules. Single-target; not autonomous mass-replying.",
          "ARGS: $1=in_reply_to tweet id or status URL | $2=reply text (<=280)",
          "RETURNS: {ok,id,url,in_reply_to,text}",
          "EX: X_REPLY 1899999999999999999|Sourced our take here: https://miscsubjects.com/a/..."
        ],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "in_reply_to tweet id or status URL | $2=reply text (<=280)",
            "variadic": false
          },
          {
            "pos": 2,
            "name": "arg2",
            "desc": "",
            "variadic": false
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "the function's result (JSON or text), or ERR:... on failure.",
        "example": "X_REPLY 1899999999999999999|Sourced our take here: https://miscsubjects.com/a/...",
        "tag": "[X_REPLY]<arg1>|<arg2>[/X_REPLY]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"X_REPLY\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/X_REPLY  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "[\"$1\",\"$2\"]",
      "edit": {
        "read": "GET /api/directory/X_REPLY",
        "update": "PUT /api/directory/X_REPLY",
        "patch": "PATCH /api/directory/X_REPLY",
        "delete": "DELETE /api/directory/X_REPLY",
        "invoke": "POST /api/dispatch {\"key\":\"X_REPLY\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"X_REPLY\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"X_REPLY\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/X_REPLY"
      },
      "examples": "[\"X_REPLY 1899999999999999999|Sourced our take here: https://miscsubjects.com/a/...\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=X_REPLY"
    },
    {
      "key": "X_SEARCH",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "X_SEARCH",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "X_SEARCH",
        "type": "http",
        "what": [],
        "args": [
          {
            "pos": 1,
            "name": "arg1",
            "desc": "",
            "variadic": true
          }
        ],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": "[X_SEARCH]arg1[/X_SEARCH]",
        "tag": "[X_SEARCH]<arg1 …>[/X_SEARCH]",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"X_SEARCH\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/X_SEARCH  {\"body\":\"<the | -joined args below>\"}"
      },
      "args_template": "{\"model\":\"grok-4.3\",\"instructions\":\"Search X (formerly Twitter) for the user query. Return concise results with URLs and brief summaries.\",\"input\":\"$1+\",\"tools\":[{\"type\":\"x_search\"}]}",
      "edit": {
        "read": "GET /api/directory/X_SEARCH",
        "update": "PUT /api/directory/X_SEARCH",
        "patch": "PATCH /api/directory/X_SEARCH",
        "delete": "DELETE /api/directory/X_SEARCH",
        "invoke": "POST /api/dispatch {\"key\":\"X_SEARCH\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"X_SEARCH\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"X_SEARCH\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/X_SEARCH"
      },
      "examples": "[\"AI developments\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=X_SEARCH"
    },
    {
      "key": "X_WHOAMI",
      "type": "fn",
      "category": "x",
      "doc": "WHAT: Report which X credentials are present and what X says about them (GET /2/users/me). WHEN_TO_USE: X_POST or X_DELETE returns 401/403 and you need the real cause instead of a bare \"Unauthorized\". ARGS: none RETURNS: {ok,status,creds_present:{...},response} EX: [X_WHOAMI][/X_WHOAMI]",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "X_WHOAMI",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "X_WHOAMI",
        "type": "fn",
        "what": [
          "WHAT: Report which X credentials are present and what X says about them (GET /2/users/me).",
          "WHEN_TO_USE: X_POST or X_DELETE returns 401/403 and you need the real cause instead of a bare \"Unauthorized\".",
          "ARGS: none",
          "RETURNS: {ok,status,creds_present:{...},response}",
          "EX: [X_WHOAMI][/X_WHOAMI]"
        ],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "401/403 and you need the real cause instead of a bare \"Unauthorized\".",
        "example": "[X_WHOAMI][/X_WHOAMI]",
        "tag": "[X_WHOAMI][/X_WHOAMI]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"X_WHOAMI\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/X_WHOAMI  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/X_WHOAMI",
        "update": "PUT /api/directory/X_WHOAMI",
        "patch": "PATCH /api/directory/X_WHOAMI",
        "delete": "DELETE /api/directory/X_WHOAMI",
        "invoke": "POST /api/dispatch {\"key\":\"X_WHOAMI\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"X_WHOAMI\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"X_WHOAMI\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/X_WHOAMI"
      },
      "examples": "[\"\"]",
      "test": "GET https://miscsubjects.com/api/manual?test=X_WHOAMI"
    },
    {
      "key": "__bad_test_key__",
      "type": "http",
      "category": null,
      "doc": "",
      "invoke": {
        "method": "POST",
        "url": "https://miscsubjects.com/api/dispatch",
        "body": {
          "key": "__bad_test_key__",
          "body": "<args>"
        }
      },
      "invoke_spec": {
        "key": "__bad_test_key__",
        "type": "http",
        "what": [],
        "args": [],
        "ops": null,
        "envVars": [],
        "returns": "HTTP <status>: <response body>.",
        "example": null,
        "tag": "[__bad_test_key__][/__bad_test_key__]  (no caller args)",
        "rest": "POST https://miscsubjects.com/api/dispatch  {\"key\":\"__bad_test_key__\",\"body\":\"<the | -joined args below>\"}",
        "slug": "POST https://miscsubjects.com/s/__bad_test_key__  {\"body\":\"<the | -joined args below>\"}"
      },
      "edit": {
        "read": "GET /api/directory/__bad_test_key__",
        "update": "PUT /api/directory/__bad_test_key__",
        "patch": "PATCH /api/directory/__bad_test_key__",
        "delete": "DELETE /api/directory/__bad_test_key__",
        "invoke": "POST /api/dispatch {\"key\":\"__bad_test_key__\",\"body\":\"<args>\"}",
        "model_call": "POST /api/invoke {\"key\":\"__bad_test_key__\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"__bad_test_key__\",\"inputs\":[\"a\",\"b\",\"c\"]}",
        "lab": "/admin/prompts/__bad_test_key__"
      },
      "test": "GET https://miscsubjects.com/api/manual?test=__bad_test_key__"
    }
  ]
}