For AI agents: a documentation index is available at /llms.txt
Skip to main content

Fill and submit a form

Automate form interactions: typing into fields, selecting options, solving CAPTCHAs, and clicking submit.

Prerequisites

Steps​

Use the Browserless MCP server to fill and submit a form from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

One prompt that installs the Browserless MCP server and runs this example. Paste it into your AI agent.

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Fill and submit a form

Use browserless_agent. The task requires interaction: filling fields and clicking submit.

Use the browserless_agent tool to go to https://example.com/contact,
fill in the name field with "Jane Doe", the email field with
"jane@example.com", the message with "Hello!", and submit the form

Next steps​

Was this page helpful?