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.host

the package host that mounted the tool

Python
host: Host

Returns Host — the package host that mounted the tool, or None

Example#

Python
@tool.command("demo/info")
def info(ctx: Context):
    host = ctx.host          # the registration surface

Notes#

One of the lazily populated Context slots — it is None when the capability is absent (for example in a headless run). Always guard before use.

See also#

API: engine · project · Context

Guides: Commands & actions

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