Claim Run
swarm_acquire_runClaim one agent-executed Run as this connection. No Core enrollment or Cloud fallback. Start with its lease ID before executing.
Documentation index: llms.txt. Read this chapter as Markdown.
Only an active host should claim work. Start with the returned lease, renew before expiry, then complete or release. Stop local execution when lease ownership or access is lost. Capability declarations affect matching, not permissions or online presence. Read the Runs guide for the workflow.
swarm_acquire_runClaim one agent-executed Run as this connection. No Core enrollment or Cloud fallback. Start with its lease ID before executing.
swarm_claim_next_runClaim eligible queued work. Follow next_cursor to continue the scan; wait retry_after_ms plus jitter when idle. Use a fresh key per scan.
swarm_start_runStart work with this connection's current execution lease. Execution happens in the connected agent, not Swarm Cloud.
swarm_renew_run_leaseExtend this connection's active lease within the Run's runtime limit. Expired or stopped work cannot be renewed.
swarm_release_run_leaseEnd this connection's execution lease; it cannot be resumed. Unfinished work requeues; a stop-requested Run is canceled. Stop local work before release.
swarm_complete_runFinish this connection's leased Run. Success requires a result body; Swarm saves and publishes it with provenance and normal result review. Never approves a human decision.
swarm_declare_executor_capabilitiesReplace this connection's Entity-wide capability declaration. Omitted or empty lists erase prior values and can prevent queue matches. Does not grant access or prove availability.