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

## Example

```python
@tool.command("demo/rerun")
def rerun(ctx: Context):
    result = ctx.engine.run("report")
```

## Notes

A lazily populated slot — `None` when no project/engine is available (for example in a headless run).
See [`Engine`](/docs/api-engine) for `run`, `save`, and the `RunResult` it returns.

## See also

**API:** [project](/docs/api-context-project) · [Engine](/docs/api-engine) · [Context](/docs/api-context)

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