Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Protocol method · cmd

cmd.apply

Run a batch of commands as one atomic, reviewable transaction; dryRun returns the diff.

  • Scope: read
  • Service: core
  • MCP: ara_apply

Params

ParamRequiredDescription
commandsyesCalls, run in order as one atomic transaction.
docDocument to edit: a path (levels/outpost.scene, or just outpost), asset ID or @path#id. Default: the one document holding every entity the commands address, else the project's main scene.
sessionyesSession handle from session.begin.
whyWhy, in a sentence; shown in review next to the change. Required for agent sessions (except dry runs).
dryRunValidate and return the diff without applying anything.
baseRevision the batch was planned against; fails if later edits touched the same fields.
idempotencyKeyRetrying with the same key returns the first result instead of applying twice.
branchBranch session (br_… from branch.open) to apply in instead of the live documents: nobody sees it until branch.submit merges it. Claims do not block edits inside your own branch.