verbs property

  1. @override
List<AtomVerb> get verbs
override

Verbs exposed to JS. The bridge installs one JS function per verb on host.<key>. Empty list = no methods (the atom registers but JS calls always fail).

Implementation

@override
List<AtomVerb> get verbs => const [
      AtomVerb(
        'callTool',
        description:
            'Invoke a registered host MCP tool. (toolName, args) → '
            '{isError, body}.',
      ),
      AtomVerb(
        'listTools',
        description: 'List registered host MCP tool ids.',
      ),
    ];