getPageState
Get current page state including URL, title, scroll position, and viewport size.
How to use it
getPageState is exposed by the Chrome MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the getPageState tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Chrome MCP
npm install -g bunOther tools in Chrome MCP (9)
Click at specific coordinates.
Click on an element by its index in the page info.
Get semantic information about the page including interactive elements and text nodes.
Get text content of an element using a CSS selector.
Navigate to a specific URL.
(string): Element index (e.g., "0" for the first element)
(string): Text to type
Type text at the current focus.
(string): The URL to navigate to