Released 2026-06-28. Streams can now drive your workflows and agents from code, with in-editor help.
Added
- Call workflows & agents from stream code. A stream's Tools tab now has Workflows and Agents sections — add the workflows and streaming agents (from the same app) your stream code may invoke. Code runs them with
ctx.workflows.run(id, input)(returns{ run_id }) andctx.agents.run(id, input)(returns{ job_id }). Only the ones you list can be invoked — anything else is rejected, so a stream can't run up costs on assets you didn't allow. - Stream code cheat sheet. The Code tab has a new Cheat sheet button documenting the whole
ctxAPI — the handler shape,ctx.streams.publish,ctx.ai.call,ctx.sheets,ctx.workflows/agents.run, andctx.http. - Copyable Tools snippets. The Tools tab shows ready-to-paste code for whatever you've configured —
ctx.ai.callonce a model is picked,ctx.sheetsonce a database is linked, andctx.workflows.run/ctx.agents.runfor each workflow or agent you add.