{"id":24973025,"url":"https://github.com/uk0/chrome_plugin_agent","last_synced_at":"2025-03-29T06:11:10.248Z","repository":{"id":272425747,"uuid":"916545470","full_name":"uk0/chrome_plugin_agent","owner":"uk0","description":"chrome  plugin   ai agent ","archived":false,"fork":false,"pushed_at":"2025-01-14T10:12:38.000Z","size":1085,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:06:15.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uk0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-14T10:03:21.000Z","updated_at":"2025-01-14T10:12:46.000Z","dependencies_parsed_at":"2025-01-14T11:30:23.395Z","dependency_job_id":"50311f77-c74e-4074-a486-037e3a6a0684","html_url":"https://github.com/uk0/chrome_plugin_agent","commit_stats":null,"previous_names":["uk0/chrome_plugin_agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uk0%2Fchrome_plugin_agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uk0%2Fchrome_plugin_agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uk0%2Fchrome_plugin_agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uk0%2Fchrome_plugin_agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uk0","download_url":"https://codeload.github.com/uk0/chrome_plugin_agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145079,"owners_count":20730495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T18:11:29.864Z","updated_at":"2025-03-29T06:11:10.228Z","avatar_url":"https://github.com/uk0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Chrome Plugin AI AutoMan(Agent)\n\n\n![img.png](chrome_plugin/img.png)\n\n\n### TODO \n\n\n* [✅] 支持多窗口\n* [✅] 支持多Tab切换\n* [✅] 支持页面刷新\n* [✅] 支持页面滚动\n* [✅] 支持页面点击\n* [✅] 支持页面输入\n* [✅] 支持页面元素获取\n* [❎] 优化代码\n* [❎] 支持Langchain\n\n\n\n### examples \n\n\n```bash\n\n{\"action\":\"open_tab\",\"payload\":{\"url\":\"https://qwq.chat\"}}\n{\"action\":\"get_curr_tab\"} #获取当前tab详情\n{\"action\":\"get_curr_tab_page_load\"} #获取当前激活的tab页面的内容\n{\"action\":\"close_tab\",\"payload\":{\"tabId\":1418708484}} # 关闭某一个tab\n{\"action\":\"switch_tab\",\"payload\":{\"tabId\":1418708414}} #切换到某一个tab\n{\"action\":\"list_tabs\"} # 获取所有tab列表\n{\"action\":\"get_page_content\"} #获取激活页面的Text（注意是text）\n{\"action\":\"get_element_text\",\"payload\":{\"xpath\":\"\",\"selector\":\"#default_base\"}} #获取某一个元素的text\n#点击操作\n{\"action\":\"click_element\",\"payload\":{\"xpath\":\"\",\"selector\":\"#layoutMain \u003e div \u003e div.ant-page-header.tz-header.header-content.has-breadcrumb.ant-page-header-ghost \u003e div \u003e span \u003e div \u003e div \u003e div \u003e button.ant-btn.ant-btn-default.tz-button.ml16\"}}\n{\"action\":\"click_element\",\"payload\":{\"selector\":\"\",\"xpath\":\"//*[@id=\\\"layoutMain\\\"]/div/div[1]/div/span/div/div/div/button[2]\"}}\n#输入操作\n{\"action\":\"input_text\",\"payload\":{\"selector\":\"#layoutMainContent \u003e div \u003e span \u003e span \u003e input\",\"text\":\"Hello World\"}}\n#获取某一个element 的原始内容（会自动等待加载完成）\n{\"action\":\"get_element_html\",\"payload\":{\"selector\":\"\",\"xpath\":\"//*[@id=\\\"gd427jr2_titleDetail\\\"]\"}}\n# 被激活页面向上移动 px\n{\"action\":\"scroll_down\",\"payload\":{\"px\":-300}}\n# 被激活页面向下移动px\n{\"action\":\"scroll_down\",\"payload\":{\"px\":300}}\n\n#刷新激活的tab\n{\"action\":\"refresh_active_page\"} \n\n#获取window 列表\n{\"action\":\"list_windows\"} \n\n#切换到指定window\n{\"action\":\"switch_window\",\"payload\":{\"windowId\":1418707623,\"asTop\":true}}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuk0%2Fchrome_plugin_agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuk0%2Fchrome_plugin_agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuk0%2Fchrome_plugin_agent/lists"}