All docs
Context·
property
StepContext.step_id
the running step's id, for keying emitted events
Python
step_id: str | None
Returns str | None — the step's id (tool.fn), or None if unset
Example#
Python
ctx.emit("viewer/status/set", step=ctx.step_id, text="done")
Notes#
Read-only, and None when no id is set. Use it only to key emitted events and logs — never to
read back project or engine state, which would produce outputs the resume-cache key cannot see.
See also#
API: entity_id · emit · StepContext
Guides: Parameters vs ports
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown