mcpx
v1.2.1A reusable and CLI-accessible Model Context Protocol (MCP) server for mcpX.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
screenshot
Capture an explicit tab viewport or full page as native PNG/JPEG image content.
| Parameter | Type | Description |
|---|---|---|
format | string | |
fullPage | boolean | |
maxBytes | integer | |
maxPixels | integer | |
quality | integer | |
tabId | integer | |
timeoutMs | integer |
tab-scroll
Scroll the window, a semantic-locator container, or a target into view and report before/after positions.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
distance | number | |
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
wait
Wait for bounded time, element state, or navigation with cancellation support.
| Parameter | Type | Description |
|---|---|---|
durationMs | integer | |
exact | boolean | |
fromUrl | string | |
name | string | |
nth | integer | |
pollIntervalMs | integer | |
ref | string | |
role | string | |
selector | string | |
state | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer | |
type | string | |
url | string | |
value |
tabs-list
List open browser tabs across all windows. Optionally filter by windowId or currentWindow.
| Parameter | Type | Description |
|---|---|---|
currentWindow | boolean | |
windowId | integer |
tab-current
Return the active tab from the last focused Chrome window or a specified window.
| Parameter | Type | Description |
|---|---|---|
windowId | integer |
tab-activate
Activate a tab and optionally focus its containing Chrome window.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | |
focusWindow | boolean |
open-tab
Open a new browser tab to the given URL. Pass active=true to focus it.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
active | boolean | |
windowId | integer |
close-tab
Close a specific browser tab by its tab ID. The tab will be immediately closed and any unsaved data may be lost. Use with caution.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | The ID of the tab to close. Must be a positive integer. |
tab-back
Go back in the active tab's history. Optionally pass tabId.
| Parameter | Type | Description |
|---|---|---|
tabId | integer |
tab-forward
Go forward in the active tab's history. Optionally pass tabId.
| Parameter | Type | Description |
|---|---|---|
tabId | integer |
press-key
Press a page-level key or modifier combination on a resolved or focused element.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
alt | boolean | |
ctrl | boolean | |
exact | boolean | |
meta | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
shift | boolean | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
snapshot
Return a concise semantic page snapshot with stable element references.
| Parameter | Type | Description |
|---|---|---|
includeHidden | boolean | |
maxElements | integer | |
maxTextLength | integer | |
tabId | integer |
resolve-element
Resolve one page element by snapshot reference, test ID, CSS selector, role/name, or text. Ambiguous matches require nth.
| Parameter | Type | Description |
|---|---|---|
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string |
tab-click
Click exactly once using a snapshot reference, test ID, CSS, role/name, or text locator.
| Parameter | Type | Description |
|---|---|---|
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
double-click
Double-click exactly once using a snapshot reference or semantic locator.
| Parameter | Type | Description |
|---|---|---|
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
hover
Move the pointer over an element using a snapshot reference or semantic locator.
| Parameter | Type | Description |
|---|---|---|
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
type-text
Type into an input, textarea, or contenteditable target using replace, append, clear, or selection-insert mode.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
delay | integer | |
exact | boolean | |
locatorText | string | |
mode | string | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
timeoutMs | integer |
select-option
Select native select options by value using a snapshot reference or semantic locator. Dispatches input and change events so application state updates.
| Parameter | Type | Description |
|---|---|---|
values * | array | |
exact | boolean | |
name | string | |
nth | integer | |
ref | string | |
role | string | |
selector | string | |
tabId | integer | |
testId | string | |
text | string | |
timeoutMs | integer |
console-start
Start explicit console monitoring for a tab. Only events emitted after this tool succeeds can be collected; earlier console history cannot be recovered.
| Parameter | Type | Description |
|---|---|---|
maxEntries | integer | |
tabId | integer |
console-logs
Read events captured after console-start. Filter console calls, browser logs, runtime exceptions, and unhandled promise rejections by level, source, time, or text.
| Parameter | Type | Description |
|---|---|---|
levels | array | |
limit | integer | |
since | number | |
sources | array | |
tabId | integer | |
text | string |
console-clear
Clear the events currently stored for an active console monitor without detaching it.
| Parameter | Type | Description |
|---|---|---|
tabId | integer |
console-stop
Stop console monitoring for a tab and release the Chrome debugger attachment.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | |
tabId | integer |