Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
Docs/ API Reference/ Context/ output_dir
Context· property

StepContext.output_dir

the step's durable output directory

Python
output_dir: str

Returns str — the step's workspace output directory

Example#

Python
@tool.deliver
def export(t: Table, ctx: StepContext) -> None:
    t.write_parquet(os.path.join(ctx.output_dir, "rows.parquet"))

Notes#

Files written here persist with the project. When no workspace directory is set it falls back to ".". For transient intermediates use scratch_dir instead.

See also#

API: scratch_dir · StepContext

Guides: Parameters vs ports

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown