Skip to main content
Human guide: work with your agent →
Start one supported Play and preserve the identity needed to observe that same execution.
Use the caller that already owns the work. A run started from outside Deepline returns a durable run ID. persist it if the caller needs to resume observation.

CLI

Use a local file while you are authoring it. Check it first, then run it.
Use a named reference for a saved or Prebuilt Play:

TypeScript service or script

Persist job.id before you wait. A local timeout does not cancel the remote run. Production Play integration explains how to resume the same run and write its result once.

Inside another Play

Use ctx.runPlay(...) for a statically resolvable scalar child Play. Use ctx.tools.execute(...) only for one provider-backed operation.
See Prebuilt Plays for the child-play boundary.

Inspect and export an existing run

Use the saved run ID to inspect existing work. Do not start another Play merely to recover a result after your caller stops waiting.
Replace company-prospecting with your published Play’s name. Select the intended run from the list, then use its ID. Read the returned status and available dataset paths before exporting rows:
result.rows is an example path. Replace it with the path returned by your run. Export reads retained rows. It does not execute the Play again. Use Run logs and events for filtered execution evidence. Use Production integration to resume application-owned observation and reconcile destination writes.

Raw HTTP

Use HTTP for a non-TypeScript service, a notebook, or a scheduler that invokes an already-saved or Prebuilt Play:
For raw HTTP, the response’s run.id is the run ID. The TypeScript SDK normalizes that value to job.id (and its lower-level workflowId field). HTTP and Python owns the polling example. Runtime API reference owns the generated endpoint contract.

Verify this task

Persist the returned run identity before waiting. Inspect or export that run rather than starting another to recover its result. Ask your agent to explain a failed check before repeating work or expanding the scope.