fields
(array): Fields to fill in
How to use it
fields is exposed by the Playwright MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the fields tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Playwright MCP
claude mcp add playwright npx @playwright/mcp@latestOther tools in Playwright MCP (39)
(boolean): Whether to accept the dialog.
(boolean, optional): Return all console messages since the beginning of the session, not just since the last navigation. Defaults to false.
(string, optional): Button to click, defaults to left
(object, optional): Data to drop, as a map of MIME type to string value (e.g. {"text/plain": "hello", "text/uri-list": "https://example.com"}).
(boolean, optional): Whether to perform a double click instead of a single click
(string, optional): Human-readable element description used to obtain permission to interact with the element
(string, optional): Human-readable target element description used to obtain the permission to interact with the element
(string): Exact target element reference from the page snapshot, or a unique element selector
(string, optional): Filename to save the console messages to. If not provided, messages are returned as text.
(string, optional): Only return requests whose URL matches this regexp (e.g. "/api/.user").
(string): () => { / code / } or (element) => { / code / } when element is provided
(integer): 1-based index of the request, as printed by browsernetworkrequests.
(string): Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
(array, optional): Modifier keys to press
(string, optional): Return only this part of the request. Omit to return full details.
(array, optional): Absolute paths to files to drop onto the element.
(string, optional): The text of the prompt in case of a prompt dialog.
(string, optional): Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in slashes to add flags, e.g. "/error/i" for case-insensitive. Provide either text or regex, not both.
(string, optional): Human-readable source element description used to obtain the permission to interact with the element
(string): Exact target element reference from the page snapshot, or a unique element selector
(boolean): Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
(string): Exact target element reference from the page snapshot, or a unique element selector
(string, optional): Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both.
(string): The URL to navigate to