All docs
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#
Guides: Commands & actions
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown