Fill Safari Forms with AI on Mac
Let your AI assistant type into any Safari form field on your Mac. safari_type sets input and textarea values by CSS selector and fires input/change events. Free, local.
The safari_type tool lets your AI assistant fill in form fields inside Safari on your Mac. It sets the value of an input or textarea matching a CSS selector, then fires the real input and change events so the page reacts exactly as if you had typed by hand — validation, autosave, and reactive frameworks all respond correctly. A natural example prompt: "In Safari, type my email [email protected] into the field with selector input#email and put 'Looking forward to it' into textarea#message."
This is part of LMCP, a free, native macOS MCP server with 150+ tools that connect AI assistants to your real Mac apps — no API keys, no cloud, nothing stored on a server.
Which AI agents work?
Desktop clients auto-configure through local stdio — no manual setup beyond installing LMCP:
- Claude Desktop
- Cursor
- VS Code (GitHub Copilot)
- Windsurf
- Zed
Web-based AIs connect through the LMCP Cloud Relay connector:
- ChatGPT
- Claude.ai (web)
- Grok
- Perplexity
Automation
safari_type shines when chained with other Safari tools. A typical flow: open a page, locate the fields, type values, then submit. Your AI might navigate to a booking page, use a query tool to read the DOM and find the right selectors, call safari_type for each field, then click the submit button — all without you touching the keyboard. Because it fires native input and change events, single-page apps built with React, Vue, or Svelte register the changes correctly instead of silently ignoring a programmatic value assignment. Combine it with calendar, contacts, or email tools and the AI can pull the data it needs from your Mac, then drop it straight into the web form.
Context
The real advantage is that the AI works with your actual Mac data. It can read a contact's address from Contacts, a date from Calendar, or an order number from a Mail message, and type that exact value into the Safari form. There is no copy-paste, no re-typing, and no risk of transposing digits. The assistant operates on the same logged-in Safari session you already use, so authenticated pages and saved sessions just work.
Productivity
Repetitive form filling is where this pays off. Expense portals, CRM entry screens, shipping forms, multi-field signups — tasks that take several minutes of careful typing become a single sentence to your assistant. Filling a 10-field form drops from a couple of minutes of manual entry to a few seconds, and the AI never mistypes a selector-matched value. For anyone who lives in browser-based tools all day, that adds up to real time recovered every week.
Privacy & GDPR
Everything runs locally on your Mac. The text you ask the AI to type, the pages it touches, and the form data never leave your machine for an LMCP server — there is no cloud copy and nothing is stored remotely. This makes LMCP GDPR-compliant by architecture: data residency stays on your device by default. Download LMCP and connect your AI client to get started.