chromeflow 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { execSync } from "child_process";
6
6
  function registerBrowserTools(server, bridge) {
7
7
  server.tool(
8
8
  "open_page",
9
- "Navigate to a URL. By default reuses the active tab. Set new_tab=true to open alongside the current tab without losing it.",
9
+ "Navigate to a URL. By default reuses the active tab. Set new_tab=true to open alongside the current tab without losing it. After navigating, call get_page_text to read the page \u2014 do NOT take a screenshot.",
10
10
  {
11
11
  url: z.string().url().describe("The URL to navigate to"),
12
12
  new_tab: z.boolean().optional().describe("Open in a new tab instead of replacing the current one (default false)")
@@ -50,7 +50,7 @@ ${lines.join("\n")}` }]
50
50
  );
51
51
  server.tool(
52
52
  "take_screenshot",
53
- "Capture a screenshot and return it to Claude only \u2014 no file is saved, nothing goes to the clipboard. Use ONLY when you need to visually inspect the page layout or get pixel coordinates for highlight_region. DO NOT use to check page state or confirm actions \u2014 use get_page_text for that. To also save or copy the image, use take_and_copy_screenshot instead.",
53
+ "Capture a screenshot of the current page. IMPORTANT: Do NOT use this to read page content or check what is on the page \u2014 call get_page_text instead, which is faster and returns searchable text. Screenshots are ONLY for locating a specific element's pixel coordinates when get_elements has already failed. Never take a screenshot immediately after open_page, scroll_page, or click_element \u2014 always use get_page_text after those actions. Never take more than 1-2 screenshots in a row. To also save or copy the image, use take_and_copy_screenshot instead.",
54
54
  {},
55
55
  async () => {
56
56
  const response = await bridge.request({ type: "screenshot" });
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  function registerFlowTools(server, bridge) {
3
3
  server.tool(
4
4
  "scroll_page",
5
- "Scroll the page or the focused panel up or down. Use this when the target location is unknown. If you know which field or element you need, use scroll_to_element instead \u2014 it scrolls precisely without guessing. After scrolling, retry click_element or fill_input.",
5
+ "Scroll the page or the focused panel up or down. Use this when the target location is unknown. If you know which field or element you need, use scroll_to_element instead \u2014 it scrolls precisely without guessing. After scrolling, call get_page_text to read the new content \u2014 NEVER call take_screenshot after scrolling.",
6
6
  {
7
7
  direction: z.enum(["down", "up"]).describe("Scroll direction"),
8
8
  amount: z.number().optional().describe("Pixels to scroll (default 400)")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chromeflow",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Browser guidance MCP server for Claude Code — highlights, clicks, fills, and captures from the web so you don't have to.",
5
5
  "type": "module",
6
6
  "bin": {