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

Tool.mount

registers the tool's commands, views, and app-actions into a host

Python
mount(host=None, *, package=None) -> list

Returns list — the contribution objects registered with the host

Parameters#

name type default description
host Any None the desktop / CLI host to contribute into (also stored for later action dispatch)
package str None the attribution id used so remove_package(...) can cleanly unmount (defaults to self.name)

Example#

Python
tool.mount(desktop)                       # the loader normally does this for you
tool.mount(desktop, package="lsd-mim")    # attribute contributions to a package id

Notes#

The package loader calls mount for you with the manifest's package id — call it yourself only when embedding a tool by hand. It surfaces commands, templates, views, viewer states, and app/<verb> actions as contributions, each attributed to package so unmounting is clean. Steps and entities are already registered at decoration time, so they are not (re)registered here.

See also#

API: dispatch · contribute · PackageManager

Guides: The Tool object · A complete package

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