cody-for-chrome-mcp

v0.1.4
@ainative/cody-for-chrome-mcp Checked 4 days ago Published 20 days ago

MCP server for Cody in Chrome browser integration

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

tabs_context_mcp

Get context from open browser tabs including URL, title, and page content

ParameterTypeDescription
include_contentbooleanInclude page text content
max_tabsnumberMaximum number of tabs to return

tabs_create_mcp

Create a new browser tab with the specified URL

ParameterTypeDescription
url *stringURL to open in the new tab
activebooleanWhether to activate the new tab

tabs_close

Close a browser tab by its ID

ParameterTypeDescription
tab_id *numberID of the tab to close

navigate

Navigate the active tab to a URL

ParameterTypeDescription
url *stringURL to navigate to
wait_forstringWait condition after navigation

click

Click an element on the page using a CSS selector

ParameterTypeDescription
selector *stringCSS selector of the element to click
buttonstringMouse button to use

fill_form

Fill a form field with the specified value

ParameterTypeDescription
selector *stringCSS selector of the input field
value *stringValue to fill in
clear_firstbooleanClear existing value before filling

scroll

Scroll the page or a specific element

ParameterTypeDescription
direction *stringScroll direction
amountnumberScroll amount in pixels
selectorstringOptional CSS selector of element to scroll

screenshot

Capture a screenshot of the current viewport or a specific element, returned as base64

ParameterTypeDescription
formatstringImage format
full_pagebooleanCapture the full scrollable page
selectorstringOptional CSS selector to screenshot a specific element

gif_creator

Record browser interactions as a GIF (start / stop / get)

ParameterTypeDescription
actionstringRecording action
duration_msnumberRecording duration in milliseconds
fpsnumberFrames per second
selectorstringOptional CSS selector to record a specific element

read_console_messages

Read console messages from the browser developer tools

ParameterTypeDescription
clearbooleanClear console after reading
levelstringFilter by log level
limitnumberMaximum number of messages to return

read_network

Read XHR/fetch network requests and responses from the browser

ParameterTypeDescription
include_bodybooleanInclude request/response bodies
limitnumberMaximum number of requests to return
methodstringFilter by HTTP method
url_filterstringFilter requests by URL pattern

javascript_tool

Execute JavaScript code in the browser page context

ParameterTypeDescription
code *stringJavaScript code to execute
await_promisebooleanWhether to await the result if it is a Promise

wait_for_element

Wait for a CSS selector to appear (or reach a specific state) on the page

ParameterTypeDescription
selector *stringCSS selector to wait for
statestringElement state to wait for
timeout_msnumberMaximum time to wait in milliseconds