mcp-server
v1.1.0Actspan local MCP server for the browser extension Bridge
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
actspan_status Actspan bridge status
Check whether the local Actspan browser extension Bridge is connected.
actspan_feishu_push Push Feishu or DingTalk notification
Send a notification through enabled Feishu/Lark or DingTalk bot webhooks configured in the extension. Optional webhookName must match exactly; omit it to send to all enabled Feishu and DingTalk webhooks. No browser tab or confirmation prompt is required.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
title * | string | |
webhookName | string | Exact configured webhook name; omit to target all enabled Feishu and DingTalk webhooks. |
actspan_tabs_list List browser tabs
List browser tabs visible to the current Actspan task.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | |
taskId | string |
actspan_tab_open Open tab
Open a browser tab for the current task. The tab opens in the background by default, so the user's current tab keeps the foreground and every other tool still works on it. Set focus:true only when the user asked to see the page: it brings the tab to the foreground and interrupts whatever the user is doing.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
focus | boolean | Leave false (default) to open behind the user's current tab. true is the explicit foreground escape hatch: the tab is brought to the front and the user is interrupted. |
label | string | |
sessionId | string | |
taskId | string |
actspan_tabs_select Select active tab
Select a task-owned tab as the active browser tab.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | |
sessionId | string | |
taskId | string |
actspan_tab_close Close tab
Close a tab owned by the current task.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | |
sessionId | string | |
taskId | string |
actspan_page_snapshot Snapshot page elements
Return a deterministic semantic snapshot of a task-owned tab: interactive elements with refs. Elements inside open shadow roots are included. Elements inside child frames (including cross-origin iframes) are included with a frame-qualified ref ending in @fN; pass that ref back verbatim with the returned snapshotId to act or read inside that exact frame.
| Parameter | Type | Description |
|---|---|---|
include_frames | boolean | Include child frames (refs end in @fN). Raises the policy level to sensitive because cross-frame reads may touch other origins. |
include_hidden | boolean | |
include_non_interactive | boolean | |
limit | integer | |
only_viewport | boolean | |
query | string | |
scope_selector | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_read Read page
Read text or HTML from a task-owned tab; when tabId is omitted, read the active tab. Pass selector, ref+snapshotId, or find to read one element instead of the whole page.
| Parameter | Type | Description |
|---|---|---|
attr | string | |
expect | string | number | boolean | |
find | object | Locate by accessible role and/or name without a snapshot. Exact name match wins; multiple matches error instead of guessing, so pass nth (0-based) or use a selector. |
format | string | |
maxChars | integer | |
ref | string | |
selector | string | |
sessionId | string | |
snapshotId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_click Click page element
Click a DOM element in a tab owned by the current task. Locate it by exactly one of selector, ref+snapshotId (from a snapshot), or find {role, name, nth}. Synthetic DOM events are used first; when they produce no observable effect the click is automatically replayed as real CDP input events. Submit/payment/delete targets never auto-escalate; pass real:true to force real events (recorded in the audit trail).
| Parameter | Type | Description |
|---|---|---|
find | object | Locate by accessible role and/or name without a snapshot. Exact name match wins; multiple matches error instead of guessing, so pass nth (0-based) or use a selector. |
real | boolean | Force real CDP input events instead of synthetic DOM events. Use when the synthetic click or type produced no observable effect; sensitive submit/payment/delete targets never auto-escalate and require… |
ref | string | |
selector | string | |
sessionId | string | |
snapshotId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_type Type into page
Type into a DOM input in a tab owned by the current task. Locate it by exactly one of selector, ref+snapshotId (from a snapshot), or find {role, name, nth}. Synthetic DOM events are used first; when they produce no observable effect the input is automatically replayed as real CDP input events. Submit/payment/delete targets never auto-escalate; pass real:true to force real events (recorded in the audit trail).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
find | object | Locate by accessible role and/or name without a snapshot. Exact name match wins; multiple matches error instead of guessing, so pass nth (0-based) or use a selector. |
real | boolean | Force real CDP input events instead of synthetic DOM events. Use when the synthetic click or type produced no observable effect; sensitive submit/payment/delete targets never auto-escalate and require… |
ref | string | |
selector | string | |
sessionId | string | |
snapshotId | string | |
submit | boolean | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_eval Evaluate page expression
Evaluate a page expression. The expression must be provably side-effect free: mutating JS is rejected even after approval, and DOM property reads such as input.value may be rejected by the V8 side-effect check. Use page_read with attr "value"/"text"/"checked" or page_snapshot to observe page state.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_screenshot Capture screenshot
Capture a screenshot from a task-owned tab; when tabId is omitted, capture the active tab. Defaults to the visible area; pass full_page for the entire scrollable page, clip for a viewport region, or element_id+snapshot_id (from page_snapshot) to capture one element.
| Parameter | Type | Description |
|---|---|---|
clip | object | Viewport coordinates region. |
element_id | string | |
format | string | |
full_page | boolean | |
quality | integer | jpeg only, default 80. |
sessionId | string | |
snapshot_id | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
wait_ms | integer | Page load timeout, default 15000. |
actspan_skills_list List skills and workflows
Read the current Actspan registry revision and skill summaries.
actspan_skill_detail Get skill detail
Read a complete skill and its structured workflow contracts.
| Parameter | Type | Description |
|---|---|---|
name * | string |
actspan_workflow_run Run workflow
Start a structured workflow and return an asynchronous task handle.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
input | object | |
mode | string | |
sessionId | string | |
taskId | string |
actspan_agent_submit Submit agent task
Start an open-ended browser task and return an asynchronous task handle.
| Parameter | Type | Description |
|---|---|---|
input | object | |
query | string | |
sessionId | string | |
taskId | string |
actspan_agent_status Get agent task status
Read an agent task state by taskId.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | |
taskId | string |
actspan_agent_result Get agent task result
Read the retained result of an agent task by taskId.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | |
taskId | string |
actspan_agent_cancel Cancel agent task
Cancel an agent task by taskId.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | |
taskId | string |
actspan_act ActSpan compound action
Your DEFAULT way to act — batch every step you can predict. Every call you merge saves a full model turn. Steps run sequentially with an effect check per step, stop at the first failure, and one final snapshot returns at the end. Only steps located by find {role, name} are eligible for draft capture; selector-only steps still run but are never promoted into a reusable draft.
| Parameter | Type | Description |
|---|---|---|
steps * | array | Ordered predicted action steps. The budget counts expanded atomic steps: repeat/if count as the steps they actually run, and the whole script may run at most 20. |
allowSensitive | boolean | Explicitly allow sensitive submit/payment/delete actions; extension approval still applies. |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_adopt Adopt ActSpan draft
Adopt a successful ActSpan draft into the saved workflow registry.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_select Select native option
Select a value or exact option label on a native select, without debugger or tab activation.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
value * | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_upload Upload file
Create a File from base64 and set a native file input via DataTransfer, or dispatch drag/drop to dropSelector. No system file dialog.
| Parameter | Type | Description |
|---|---|---|
base64 * | string | |
filename * | string | |
dropSelector | ||
mimeType | string | |
selector | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_key Press key sequence
Press keys in order with optional repeat (up to 50); Tab moves focus and Enter activates ordinary controls. Never activates payment targets.
| Parameter | Type | Description |
|---|---|---|
keys * | array | |
ref | ||
repeat | integer | |
selector | string | |
sessionId | string | |
snapshotId | ||
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_page_wait Wait for condition
Wait for selector, page text, or a stable idle DOM (no mutation for 500ms). Does not mutate the page.
| Parameter | Type | Description |
|---|---|---|
for * | string | |
selector | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
text | string | |
timeoutMs | integer |
actspan_page_scroll Scroll page
Scroll the task-leased tab by pixel offsets, optionally within a selector. Does not activate or focus the tab.
| Parameter | Type | Description |
|---|---|---|
deltaX | number | |
deltaY | number | |
selector | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_network_list List captured browser requests
START HERE when you need DATA rather than an action. Never guess an endpoint name from memory — list first, pick by response size (Content-Length when the server reports it; otherwise size is unknown). A: try fetch with changed pagination parameters first. B: if replay fails, returns 406, or requires page-generated x-s/x-t signatures, drive the site UI and read the resulting network response instead; do not fight the signature. C: before persisting with a failing entry point, inspect another site data entry for the same content. Capture starts on first use and cannot recover earlier requests…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
reload | boolean | Explicitly reload the task-owned tab after starting capture to observe first-load requests. This navigates the tab and requires a write lease. |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
urlFilter | string | Substring from a previously listed URL; matches across cursor variants. Never guess endpoints. |
actspan_network_detail Inspect captured browser request
START HERE when you need DATA rather than an action. Never guess an endpoint name from memory — list first, pick by response size (Content-Length when the server reports it; otherwise size is unknown). A: try fetch with changed pagination parameters first. B: if replay fails, returns 406, or requires page-generated x-s/x-t signatures, drive the site UI and read the resulting network response instead; do not fight the signature. C: before persisting with a failing entry point, inspect another site data entry for the same content. Capture starts on first use and cannot recover earlier requests…
| Parameter | Type | Description |
|---|---|---|
includeBody | boolean | |
index | integer | Offset backward among matching completed requests; defaults to 0. |
reload | boolean | Explicitly reload the task-owned tab after starting capture to observe first-load requests. This navigates the tab and requires a write lease. |
requestId | string | Exact requestId from list; cannot be combined with reload:true or urlFilter. |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
urlFilter | string | Substring from a previously listed URL; matches across cursor variants. Never guess endpoints. |
actspan_network_query Read captured network response
START HERE when you need DATA rather than an action. Never guess an endpoint name from memory — list first, pick by response size (Content-Length when the server reports it; otherwise size is unknown). A: try fetch with changed pagination parameters first. B: if replay fails, returns 406, or requires page-generated x-s/x-t signatures, drive the site UI and read the resulting network response instead; do not fight the signature. C: before persisting with a failing entry point, inspect another site data entry for the same content. Capture starts on first use and cannot recover earlier requests…
| Parameter | Type | Description |
|---|---|---|
urlFilter * | string | Observed URL substring selecting actual matching requests. |
index | integer | Offset backward among matching completed requests; defaults to 0. |
reload | boolean | Explicitly reload the task-owned tab after starting capture to observe first-load requests. This navigates the tab and requires a write lease. |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_data_fetch Fetch data
Fetch page or binary data through the extension. Binary is extension-side by default for cross-origin resources; via page is only for Referer-sensitive resources. Binary returns a bounded transfer descriptor; use savePath to stream chunks in the MCP server process.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
binary | boolean | |
max_content_length | integer | |
referer | string | |
savePath | string | |
sections | array | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
via | string |
actspan_data_paginate Paginate data
Fetch JSON pages through bounded extension calls without guessing pagination. Provide param or cursorParam. Stop reasons are identical_response, non_2xx, max_pages, normal_end, or credential_page (a credential/token URL is never returned). savePath writes one JSON page per line in the MCP server process and returns only a summary plus first-page preview. A page over 64KiB is rejected as PAGE_TOO_LARGE rather than truncated.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
cursorParam | string | |
cursorPath | string | |
maxPages | integer | |
param | string | |
params | object | |
savePath | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string |
actspan_data_download Download file
Download a URL, text, or screenshot through chrome.downloads. Uses saveAs:false to avoid a system save dialog and has no inline size limit.
| Parameter | Type | Description |
|---|---|---|
artifact_id | string | |
content | string | |
filename | string | |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
url | string |
actspan_status_update Update task status
One short sentence telling the user what you are about to do (not what you are doing). Call before a multi-step task and whenever the plan changes. Instant, never blocks. Use the user's language. ≤80 chars. Requires a tab leased to this task: call tab_open first, otherwise the update is rejected.
| Parameter | Type | Description |
|---|---|---|
text * | string | One short sentence in the user's language. |
language | string | Optional language tag, preserved as supplied. |
sessionId | string | |
tabId | integer | Optional tab id. Mutating operations must use a tab leased to the current task. |
taskId | string | |
userInputs | array | Optional declared user inputs to mask out of the status copy. |