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/ Tool/ dispatch
Tool· method

Tool.dispatch

invokes a registered action by its route

Python
dispatch(route, ctx=None, **values) -> Any

Returns Any — the invoked action's return value

Parameters#

name type default description
route str the route of a registered action, e.g. "app/refresh"
ctx Context None the Context to pass; built from the mounted host when omitted
**values Any the field values forwarded to the action function

Example#

Python
tool.dispatch("app/refresh")
tool.dispatch("entity/drillholes/export", path="out.csv")

Notes#

When ctx is None, a Context is built from the host stored at mount. Raises KeyError if no action is registered for route.

See also#

API: action · mount · Context

Guides: Commands & actions

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