Fill a web form by mapping field-name → value, with optional template lookup from browser-templates for known forms
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-browser-form-fill-f19c7ebd4a6a ,按照其中的说明把「browser-form-fill」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Fill a form using a structured field map ({"first_name": "Ada", "company": "..."}). When a browser-templates entry exists for the host, use it to resolve field names → CSS selectors automatically; otherwise resolve via the page accessibility snapshot.
browser-record.--template <name>): pull {field_name → selector} from browser-templates.browser_snapshot, walk the accessibility tree, match each input's accessible name / label to the field map keys.aidefence_has_pii before any keystroke; record pii_in_form: true in the session manifest. Do not record the values themselves in the trajectory; record only the field names + a redacted placeholder.browser_fill / browser_type / browser_select / browser_check per input type.--submit: locate the submit button via the snapshot, browser_click, then browser_wait for navigation.npx -y @claude-flow/cli@latest memory store --namespace browser-templates \
--key "<host>:<form-name>" \
--value "{field_map:{...}, submit_selector:..., post_submit_url_pattern:...}"
_assert key.browser_type (simulates keystrokes) rather than browser_fill (sets value programmatically). Record which one was used in the trajectory step.browser-form-fill invocations; chain them via the same session id.