surface

Estimate and run workflows.

Inspect credit estimates, choose a scratch, headless or attached run, and retain the original execution receipt for safe retries.

Written for
People running and recovering MCP workflows.

An explicit run request authorizes normal provider, community and platform charges under the account's billing limits. confirm_cost is a deprecated compatibility argument. Kaitoi does not add a separate cost-confirmation step. Your AI client's own tool-approval settings still apply.

Inspect the next-run estimate

estimate_run is read-only: it never runs a node, uploads input files or reserves credits. Use node_type and inputs for a scratch-node estimate, or target_nodes for the current graph's selection and required upstream work. Omitting targets estimates the graph. An attached Studio call reads the authorized tab's current inputs and variables, including its team context. Use the opaque studio_session handle to select an attachment explicitly.

The result labels its unit as credits and also supplies integer microcredits (1 credit = 1,000,000 microcredits). It includes per-node kinds and components, a known subtotal, unpriced work, pricing version and exclusions. Exact estimates, request-based estimates, typical history ranges, bounded maximums, own-key charges and unknown work are distinct. Unknown is never zero; a maximum is not a prediction. Assistant turns and own-key provider charges are excluded. Final charges follow actual usage.

Large responses can omit node detail; nodes_omitted counts it while the subtotal and execution scope still describe the complete estimate. If a Studio snapshot is pending, repeat estimate_run with its snapshot_id and the same session/revision arguments. A lost or expired attachment does not silently switch the request to a headless graph.

Choose a run path

Path Tools and intent
Transient single node run_node_by_type or run_node_by_search with explicit inputs
Persistent headless graph start_node_run or start_graph_run for the working graph
Attached Studio graph Listed start/run tools with the session and current revision

Scratch tools do not read Studio widgets, add persistent nodes or save their transient graph. A missing required input returns guidance. Search resolves catalog operations; ambiguous matches must be selected explicitly.

Keep retries attached to the requested work

Use a stable idempotency_key for potentially charged runs. Attached Studio runs require it even for free utilities. Run-tool costPreview carries advisory credit estimates for the actual input snapshot. Neither an estimate nor a quote token is a spending cap or permission for unrelated work.

Attached tools prepare and commit the same snapshot. Pending replies include an action or preparation ID and instructions for resuming that preparation. Keep the same targets, revision and idempotency key. An expired or changed snapshot must be prepared again. There are no separate public prepare_graph_run or commit_graph_run tools.

Keep action IDs, execution IDs and idempotency keys distinct. After an uncertain response, inspect the original action or execution before another attempt. A reused key follows that tool's current contract; changed work is a new request. See Results and cancellation.

Last reviewed against Kaitoi on 31 October 2026. View this page as Markdown

Type at least two characters.