Skip to content

.invoke ​

Liatir.invoke() calls a low-level bridge command directly.

Use it only when:

  • the API has no typed wrapper for what you need;
  • you know the command name and payload contract;
  • you can handle app-version changes.

Prefer typed namespaces for public plugin code.

Signature ​

Example ​

Notes ​

Typed namespaces are more stable and easier to understand and should be preferred. Treat invoke() as an escape hatch for advanced integrations.

Only commands exposed by the Plugin IPC server are callable; this is not access to every internal desktop command. For example, the dependency payload uses binary (one tool) or binaries (several), regardless of the caller's language. The SDK handles connection authentication and development-session identity. Native permission and runtime preparation remain desktop-only actions.

Use the bridge language conventions for error handling and Native Rust imports. WASM has no invoke method.