tb-marionette-mcp
v0.2.2MCP server for Thunderbird UI automation via Marionette
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
thunderbird_launch
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
marionette_port | integer | |
ready_timeout | number | |
wait_ready | boolean |
thunderbird_terminate
| Parameter | Type | Description |
|---|---|---|
pid |
thunderbird_status
extension_install
| Parameter | Type | Description |
|---|---|---|
xpi_path * | string | |
temporary | boolean |
extension_uninstall
| Parameter | Type | Description |
|---|---|---|
addon_id * | string |
extension_reload
| Parameter | Type | Description |
|---|---|---|
addon_id * | string | |
xpi_path * | string |
extension_list
extension_trigger_command
Fire a WebExtension `commands.onCommand` event directly. Works around TB chrome-XUL windows swallowing WebDriver key events before they reach the shortcut manager. Bypasses key dispatch entirely by emitting the internal event that the shortcut manager would emit on a real key press. See issue #1.
| Parameter | Type | Description |
|---|---|---|
addon_id * | string | |
command_name * | string |
find_element
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
strategy * | string | |
context | string | |
timeout | number |
find_elements
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
strategy * | string | |
context | string | |
timeout | number |
click
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
context | string |
type_text
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
text * | string | |
clear | boolean | |
context | string |
get_text
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
context | string |
get_attribute
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
name * | string | |
context | string |
get_property
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
name * | string | |
context | string |
is_displayed
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
context | string |
list_windows
List all TB windows. For chrome-only apps like Thunderbird (messenger.xhtml), the WebDriver `window_handles` API returns `[]` because there are no content browser tabs. Fall back to enumerating `Services.wm` in chrome context, which returns actual XUL windows (messenger, compose, etc.).
switch_to_window
Switch to a window by handle. WebDriver `switch_to_window` accepts only handles from `window_handles`, which is empty for chrome-only apps like TB. `list_windows` falls back to `Services.wm` and returns `docShell.browsingContext.id` as handle. For those, focus the corresponding XUL window via chrome-context JS.
| Parameter | Type | Description |
|---|---|---|
handle * | string |
switch_to_frame
| Parameter | Type | Description |
|---|---|---|
element_id * | string |
switch_to_default
wait_for_element
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
strategy * | string | |
context | string | |
timeout | number | |
visible | boolean |
send_keys
| Parameter | Type | Description |
|---|---|---|
keys * | string | |
element_id |
send_hotkey
| Parameter | Type | Description |
|---|---|---|
chord * | string | |
element_id |
execute_script
| Parameter | Type | Description |
|---|---|---|
script * | string | |
args | ||
async_ | boolean | |
context | string | |
timeout | number |
wait_for_condition
| Parameter | Type | Description |
|---|---|---|
script * | string | |
args | ||
context | string | |
poll_interval | number | |
timeout | number |
screenshot
Take screenshot. WebDriver `client.screenshot()` requires a browsing context (content tab) and fails on chrome-only XUL windows like TB's messenger.xhtml with `NoSuchWindowError: Browsing context has been discarded`. When no `element_id` is given and the top-level XUL window is chrome-only, fall back to a chrome-context canvas snapshot of the active window's `documentElement`.
| Parameter | Type | Description |
|---|---|---|
element_id | ||
format | string | |
full | boolean |
get_page_source
| Parameter | Type | Description |
|---|---|---|
context | string |
get_current_url
get_window_title
get_console_logs
| Parameter | Type | Description |
|---|---|---|
clear | boolean | |
level |