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
Context· property

Context.entity

the entity in scope for this call, if any

Python
entity: Entity

Returns Entity — the entity in scope, or None

Example#

Python
@tool.action("entity/csv_import/settings", label="Change settings…")
def change_settings(ctx: Context):
    values = ctx.ui.show(settings, data=ctx.entity.params)

Notes#

Populated with the entity the handler was invoked on — for example the node behind an @tool.action. A lazily populated slot — None when the call has no entity context.

See also#

API: project · selection · Context

Guides: Commands & actions

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