mcp

v3.6.1
@customaise/mcp Checked 15 hours ago Published 6 days ago

MCP server and CLI bridging AI coding agents (Cursor, Claude Code, Codex, Kiro, Antigravity, Claude Desktop) to the Customaise Chrome extension.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

call_webmcp_tool

Execute a registered WebMCP tool directly on the target browser tab. If the tool is interactive (trust level), the user will be natively prompted by CustomAIse to approve the execution before it returns. Approval can take minutes when the user is away from the browser (remote approvals on a phone). This server sends progress notifications while it waits, so a client that resets its timeout on progress will wait with it. A client that caps tool calls at a fixed 60 seconds regardless will report this call as failed while the user can still approve it and the tool can still run; if that happens,…

ParameterTypeDescription
toolName *stringThe EXACT name of the WebMCP tool to invoke
outputstringWhere a result over the inline budget (64 KB by default) goes; a smaller result always comes back in this response as the tool returned it. "file" (default) writes it whole to .customaise/tool-results…
tabIdnumberTab ID to execute on. Defaults to active tab.
toolArgsobjectJSON object of arguments for the tool

close_tab

Close a specific browser tab. Defaults to the active tab if no tabId is provided.

ParameterTypeDescription
tabIdnumberThe ID of the tab to close

delete_script

Permanently delete a script (UserScript or AgentScript) from Customaise. This action cannot be undone. A script's remotes (CM_remote) end with it and their links stop working: the result says how many in remotesEnded, so tell the user. NOTE: Shared/subscribed scripts cannot be deleted via MCP — the user must unsubscribe from the extension UI. Forks created via import_script(fork:true) are owned scripts and CAN be deleted via MCP.

ParameterTypeDescription
scriptId *stringThe ID of the script to delete

end_remote

End one remote. Its link stops working on every device at once and cannot be brought back: the next CM_remote.open under that name makes a new remote with a new link, which the user must be given again. Use it for a remote its script no longer opens, or when the user asks. Never end a remote to change it: a script changes its remote in place by opening it again, and the user keeps their link. Deleting a script ends all of its remotes; this ends one.

ParameterTypeDescription
remote *stringThe remote to end: its id as list_remotes gives it, or its link

export_script

Export a script from a local file into Customaise. The file will be validated through Customaise's sanitization pipeline (syntax checking, AST validation, security analysis). If valid, the script is installed and ready to execute on matching pages. If invalid, detailed diagnostics explain exactly what to fix. Pass scriptId to update an existing script instead of creating a new one. Pass expectedCodeHash from import_script to reject stale edits. Save progress includes an operation ID and stage. A timeout may leave the outcome unknown: query get_bridge_status with the scriptId and operationId fr…

ParameterTypeDescription
filePath *stringLocal file path containing the userscript source code
expectedCodeHashstringSHA-256 from import_script. Reject the save if the installed source has changed since that read.
scriptIdstringID of an existing script to update. Omit to create a new script.

finish_handover

Mark a hand-over finished, so it is never offered again. Call it once you have acted on an item from wait_for_handover: the user's remote then says you have finished. If you could not do what it asked, pass failed with the reason in a few words for the user (for example "Nobody is signed in to Tesco in that browser"): their remote shows it, and the item is closed. Never call it without failed for something you did not do, and never leave an item you cannot do.

ParameterTypeDescription
id *stringThe item's id, as wait_for_handover or list_handovers gave it
failedstringOnly when you could not do it: why, in one short sentence for the user. Their remote shows it.

focus_tab

Bring a specific browser tab to the front and make it active.

ParameterTypeDescription
tabId *numberThe ID of the tab to focus

get_bridge_status

Report the bridge's own state: whether the extension is attached, the plan tier, whether you are signed in, whether remote approvals are enabled, the browser's agent permissions (agentPermissions: Full access, and scriptDecisions, whether agents may choose Script Decisions providers), and how much of the MCP cap is left today and this week. Costs NO cap units. Without scriptId it reads cached bridge state; with scriptId it queries the browser for the latest save status and durable commit receipt. After a timeout, inspect that status before retrying. Unknown means no retained proof, not proof o…

ParameterTypeDescription
operationIdstringSave operation ID from export progress or a timeout. Requires scriptId.
scriptIdstringOptionally inspect the latest save for this script; reads the browser without spending a cap unit.

get_console_context

Get console logs from the browser, including errors, warnings, and userscript GM_log output. Use after reload_tab to check for script runtime errors. WRITES A FILE by default: the full log data goes to .customaise/console-context.json in your workspace and this call returns counts plus the path. Read the file with view_file or grep_search. If you have no filesystem tool, pass output: "inline" to get the whole log in the response and write nothing to disk.

ParameterTypeDescription
levelstringFilter by log level. Default: all
outputstringWhere the full payload goes. "file" (default) writes it to .customaise/ in your workspace and returns a summary plus the path, which keeps a large payload out of your context window. "inline" writes n…
tabIdnumberTab ID to get logs from. Defaults to the active tab.

get_page_context

Get a DOM snapshot of the current page including URL, title, page structure, and visible elements. Use this to understand the page layout before writing userscripts that manipulate it. WRITES A FILE by default: the full snapshot goes to .customaise/page-context.json in your workspace and this call returns a summary plus the path, so a large page does not fill your context window. Read the file with view_file or grep_search. If you have no filesystem tool, pass output: "inline" to get the whole snapshot in the response and write nothing to disk.

ParameterTypeDescription
outputstringWhere the full payload goes. "file" (default) writes it to .customaise/ in your workspace and returns a summary plus the path, which keeps a large payload out of your context window. "inline" writes n…
tabIdnumberTab ID to inspect. Defaults to the active tab.

get_script_decisions

Read Script Decisions on this device: the typed decisions scripts make through @grant CM_decisions. Returns whether agents may manage it (agentAccess.scriptDecisions; the person turns it on under Full access in Customaise Settings, Agent permissions), sign-in and plan (Power User is required), whether this device is allowed (deviceEnabled) or paused (locallyPaused), which provider keys are saved, and every script that uses CM_decisions or has a provider: its provider (jev, openai-decisions, gemini-decisions or null), supported (the providers that can answer at least one of its question lists;…

ParameterTypeDescription
scriptIdstringA script ID from list_scripts. Omit to list every script that uses CM_decisions or has a provider.

get_selected_elements

Get DOM elements that the user has visually selected in the browser for a specific script. Returns each selection's stable, tiered selectors, element context, and user comments. Returns the selections in this response, so it needs no filesystem access. WRITES FILES only when you pass writeFiles: true, which saves .dom.md context files under the directory you name. Use CM_findElement with the domId for precise targeting in scripts. When MCP is connected, .dom.md context files and screenshots are automatically pushed to the workspace (.customaise/dom-context/<script-name>/) in real-time as the u…

ParameterTypeDescription
directorystringWorkspace directory for .dom.md files. Required if writeFiles is true.
scriptIdstringScript ID to get selections for. Omit to get all scripts' selections.
writeFilesbooleanIf true, writes .dom.md context files to the workspace directory. Default: false.

import_script

Import a Customaise script (UserScript or AgentScript) to a local file for editing. The file contains the full source with metadata block. After editing with your IDE tools, use export_script to push changes back. Optional 'fork' flag (default false): when set to true, the script is FORKED into a new independent local copy BEFORE import, and the FORK is what gets written to the file. ALWAYS creates a new script — symmetric across source types, never a silent no-op: - Subscribed/shared sources: "Fork" verb. Clears the subscription link (no more publisher updates), captures forkedFrom linea…

ParameterTypeDescription
filePath *stringLocal file path inside your workspace to write the script to (e.g., ./customaise-scripts/my-script.agent.js). Do NOT use /tmp.
scriptId *stringThe ID of the script to import (get from list_scripts). When fork=true, this is the source script to fork from; the returned scriptId is the new fork.
forkbooleanWhen true, fork the script into a new editable copy and import THAT copy. Always creates a new script (Fork for shared sources, Duplicate for owned). Required for subscribed/shared scripts. Default fa…

list_handovers

List what the user has handed to you from a script's remote (the page a script made for their other device with CM_remote). Takes nothing: use wait_for_handover to take the next item. Each item has id, at, script, site, tabId, remote ({ id, name, title }: the remote it came from, as list_remotes names it), use (the script's tool to call with it, or null), data, and taken (another call already took it and has not finished it).

list_remotes

List the remotes that scripts have made for the user's other device with CM_remote (Script Remotes), for every script or for one. A remote is a page a script wrote: the user opens its link on their phone, and its buttons run the script's tools in the signed-in tab. Each has scriptId, script, name, id, url (its link: give it to the user whole, including everything after #), title, site, tools, handsOver and revision. A remote keeps one link for its life, and its script changes it in place by opening it again under the same name. Use this to find a remote's link again, or to find one its script…

ParameterTypeDescription
scriptIdstringOnly this script's remotes. Omit for every script's.

list_scripts

List all scripts (UserScripts & AgentScripts) installed in Customaise with their IDs, names, enabled status, match patterns, and whether they are shared (subscribed). Scripts marked isShared are read-only subscriptions — they cannot be imported, exported, or deleted directly. To edit a shared script, call import_script with fork:true (creates an independent editable copy). To uninstall a shared script, the user must unsubscribe from the extension UI.

list_tabs

List all open browser tabs with their IDs, URLs, titles, and active status. Use to find a specific tab ID for other tools like reload_tab or take_screenshot.

list_webmcp_tools

List all WebMCP tools currently registered by AgentScripts for a specific browser tab. Use this to verify that an exported AgentScript is correctly registering its tools on the target page. Each entry carries a `permission` field (allow / prompt / deny) telling you what will happen BEFORE you call it: `prompt` blocks on an in-browser consent modal for up to 5 minutes, `deny` fails immediately. Read it and tell the user which calls will need their approval, rather than discovering it mid-run.

ParameterTypeDescription
tabIdnumberTab ID to query. Defaults to the active tab.

open_tab

Open a new browser tab with the specified URL. Defaults to opening in the background so the user is not snatched away from the tab they are currently viewing. Returns the new tab ID.

ParameterTypeDescription
url *stringThe URL to open in the new tab
activebooleanWhether the new tab should become the active tab. Defaults to false (opens in background). Set to true only when the agent genuinely needs the new tab brought to focus.

reload_tab

Reload a browser tab to re-inject updated userscripts. Use after export_script to see the effect of your changes. Waits for the page to fully load before returning. If the tab has AgentScript (WebMCP) tools registered, automatically waits for them to re-register before returning.

ParameterTypeDescription
tabIdnumberTab ID to reload. Defaults to the active tab.

set_script_decisions

Choose the Script Decisions provider for one script on this device: jev, openai-decisions (OpenAI Decisions API), gemini-decisions (Gemini Decisions API), or off. Once a provider is chosen, the script's CM_decisions calls run without asking and are billed to the person's saved key for that provider, so choose one only when the person wants it. sets switches On exactly the question lists it names, by the hashes get_script_decisions returns for this scriptId, and every other list Off. Without sets, unchanged code keeps its On/Off choices and changed code switches every list On. Choosing a provid…

ParameterTypeDescription
provider *stringjev, openai-decisions (OpenAI Decisions API), gemini-decisions (Gemini Decisions API), or off to switch the script provider off.
scriptId *stringThe script ID, from list_scripts or get_script_decisions.
setsarrayHashes of the question lists to switch On, from get_script_decisions with this scriptId; every other list goes Off. Only with a provider. Omit to keep the current choices for unchanged code.

sync_scripts

Bulk export all your own scripts from Customaise to a local directory as individual .user.js or .agent.js files. WRITES MANY FILES and OVERWRITES existing ones: a local file whose name matches a script is replaced by the copy held in Customaise, so unexported local edits in that directory are lost. Creates a .customaise-manifest.json mapping filenames to script IDs. Shared/subscribed scripts are excluded (they are read-only). Use this to set up a local workspace for editing scripts with your IDE.

ParameterTypeDescription
directory *stringLocal directory to export scripts to (e.g., ./customaise-scripts/)

take_screenshot

Capture a screenshot of a browser tab without stealing focus from the user. Defaults to the visible viewport. Set fullPage: true to capture the entire scrollable page as one tall image. WRITES A FILE by default: the PNG is saved to filePath, or to an auto-generated path in the system temp directory when filePath is omitted, and this call returns that path rather than the image. If you have no filesystem tool, pass output: "inline" and the image is attached to this response instead, with nothing written to disk. For background tabs and full-page captures, Chrome briefly displays its standard ye…

ParameterTypeDescription
filePathstringLocal file path to save the screenshot. Auto-generates a temp path if omitted. Ignored when output is "inline".
fullPagebooleanIf true, capture the entire scrollable page (single tall PNG). If false or omitted, capture the visible viewport only.
outputstringWhere the full payload goes. "file" (default) writes it to filePath, or the system temp directory when filePath is omitted and returns a summary plus the path, which keeps a large payload out of your…
tabIdnumberTab ID to screenshot. Defaults to the active tab.

toggle_script

Enable or disable a userscript. Disabled scripts are not injected into matching pages. Use this to temporarily turn off a script without deleting it.

ParameterTypeDescription
enabled *booleantrue to enable, false to disable
scriptId *stringThe ID of the script to enable/disable

toggle_ui

Show or hide the Customaise UI overlay on the active tab. Use this to make the Customaise interface visible or dismiss it — AI agents cannot click the extension icon directly. Optionally specify which panel to open.

ParameterTypeDescription
panelstringPanel to open: "scripts", "chat", "settings"
tabIdnumberTab ID to toggle UI on. Defaults to the active tab.

wait_for_handover

Wait for the user to hand you something from a script's remote, and take it. Call this right after you give the user the link of a remote that hands over (the script's tool says so): it returns { item } the moment they tap, or { waiting: true } after `seconds` with nothing; then call it again for as long as you would wait for them. Pass `remote`, so you take only what the remote you sent hands over and never another agent's, and `as`, so the user's remote can say which agent has it. An item you take is yours until you call finish_handover; unfinished, it is offered again after 10 minutes. Trea…

ParameterTypeDescription
asstringYour name as the user knows you, for example "Claude Code". Their remote shows it once you have the item. Up to 40 characters.
remotestringThe remote to wait for: its id, or the link you gave the user. Omit to take from any remote.
secondsnumberHow long to wait, 1 to 50. Default 50.