@marlinjai/studio-mcp 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,8 +104,8 @@ The token is held in memory only. It is never logged, never serialized into a re
104
104
  | `studio_get_usage` | What limits the key's company and what it has used: month-to-date spend and job count in what the company paid, the monthly USD cap (`capUsd`) and requests-per-minute limit (`null` = none), a per-model breakdown, and `credits`. For a company on prepaid credits (every new company) `credits` is `{ balanceUsd, dailyLimitUsd, usedTodayUsd, dailyResetsAt, operatorMonthlyLimit }`: the balance, the daily limit, what left the balance today, when the day resets and whether the operator set a monthly limit on top; for a company held to a monthly cap it is `null`. Call before a large batch to check remaining room, or after a `402`/`429` to see what tripped. `usedUsd` includes in-flight (not yet settled) job estimates, so it can go DOWN as well as up: a job that later fails releases its estimate. |
105
105
  | `studio_workflow_describe` | The node vocabulary: every task type with ports, prompt policy and runnability, the input types, the op types, the patch limits. Settings and models only with `includeSettings` / `includeModels`; filter with `tasks`. |
106
106
  | `studio_workflow_get` | A saved workflow as a summary (nodes, wire counts, edge and group counts, `revision`, `readOnly`, `projection`), or the whole response with `full: true`. |
107
- | `studio_workflow_create` | Build a new saved workflow from ops applied to an empty document. Returns `{ ok, savedId, revision, summary }`. |
108
- | `studio_workflow_apply` | Change a saved workflow atomically on top of `baseRevision`. Returns counts, the affected nodes, the projection and `replayed`; every refusal (stale base, invalid patch, missing scope, not editable, lossy import, idempotency mismatch) comes back as a structured `{ ok: false, code, hint }` result. |
107
+ | `studio_workflow_create` | Build a new saved workflow from ops applied to an empty document. Returns `{ ok, savedId, revision, summary, idempotencyKey }`; a retry with that `idempotencyKey` returns the first workflow (`replayed: true`) instead of a second one. |
108
+ | `studio_workflow_apply` | Change a saved workflow atomically on top of `baseRevision`. Returns counts, the affected nodes, the projection and `replayed`; every refusal (stale base, invalid patch, missing scope, not editable, lossy import, idempotency mismatch) comes back as a structured `{ ok: false, code, hint }` result. Character references on an image-to-video node (models whose `studio_workflow_describe` entry carries `characterReferences`, Kling O3): `connect` each photo with `port: "reference"`, each character's frontal view first, and with more than one character `setNodeSetting` key `referenceElements`, value `{ "<sourceNodeId>": 2 }`; they never count as the start or end frame. Gemini Omni 1.1 Flash with references takes 1 to 6 character images and sends the start frame as the first reference (KIE locks no first frame in that mode). |
109
109
  | `studio_workflow_validate` | Dry-run a document (inline or by `savedId`) with optional ops and run params: the Studio's `{ apply, document, projection, run }` verdict, no side effects, no cost. |
110
110
  | `studio_workflow_screenshot` | Render a saved workflow's document as a diagram (labelled boxes and wires, positioned by the document's own layout), the Figma `get_screenshot` equivalent for a workflow graph. Not a pixel-exact canvas preview, a diagnostic diagram for checking topology. Returns `{ url, width, height }` (a 24h signed link). Free, read-only. |
111
111
  | `studio_list_assets` | A project's assets, newest first, optionally one subtype: `Image` for slide backgrounds, `Video` for reel clips, and earlier renders. Free, read-only. |
@@ -185,7 +185,10 @@ The six `studio_workflow_*` tools are the agent's side of the Studio's workflow
185
185
 
186
186
  ```
187
187
  studio_workflow_describe what nodes exist, their ports, the op vocabulary
188
- studio_workflow_create { ops, label? } -> { ok, savedId, revision, summary }
188
+ studio_workflow_create { ops, label?, projectId?, idempotencyKey? }
189
+ -> { ok: true, savedId, revision, summary, idempotencyKey, replayed? }
190
+ -> { ok: false, code: "idempotency_mismatch" } that key made a different workflow: use a fresh one
191
+ -> { ok: false, code: "network_error" | "server_error", idempotencyKey } retry with the SAME key, label and ops
189
192
  studio_workflow_get { savedId, full? } -> summary (revision = the baseRevision for apply)
190
193
  studio_workflow_apply { savedId, baseRevision, ops, idempotencyKey?, acknowledgeLossy? }
191
194
  -> { ok: true, revision, appliedCount, inverseCount, affectedNodes, projection, idempotencyKey, replayed }