# Context.entity
URL: https://lsd.tools/docs/api-context-entity
Updated: 2026-07-17

## 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](/docs/api-context-project) · [selection](/docs/api-context-selection) · [Context](/docs/api-context)

**Guides:** [Commands & actions](/docs/tools-commands-actions)
