auto-chrome-mcp-shared 1.7.0 → 1.9.0

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.
package/dist/index.js CHANGED
@@ -804,7 +804,7 @@ Tip: If the returned elements do not include the specific element you need, use
804
804
  },
805
805
  {
806
806
  name: TOOL_NAMES.BROWSER.SWITCH_TAB,
807
- description: "Switch to a specific browser tab",
807
+ description: "Bring a tab to the front (activates it and can take OS focus). Use ONLY when the user explicitly asked to switch/show a tab. To retarget automation at another tab without disturbing the user, use chrome_set_work_tab instead - this tool is exempt from the no-interference gate, so it will actually change what the user is looking at.",
808
808
  inputSchema: {
809
809
  type: "object",
810
810
  properties: {
@@ -822,7 +822,7 @@ Tip: If the returned elements do not include the specific element you need, use
822
822
  },
823
823
  {
824
824
  name: TOOL_NAMES.BROWSER.WEB_FETCHER,
825
- description: "Fetch content from a web page",
825
+ description: "Read a page as text (reader view by default: nav/footer/cookie-banner noise stripped) or as cleaned HTML. Repeat reads of an unchanged tab return {unchanged:true} instead of the body. Both modes are length-capped and report fullTextChars/fullHtmlChars vs returnedChars so you can tell what was cut. For a handful of known fields prefer chrome_extract, and for clicking/typing prefer chrome_read_page (it returns element refs); use this when you want the page content itself.",
826
826
  inputSchema: {
827
827
  type: "object",
828
828
  properties: {
@@ -840,7 +840,7 @@ Tip: If the returned elements do not include the specific element you need, use
840
840
  },
841
841
  htmlContent: {
842
842
  type: "boolean",
843
- description: "Get the visible HTML content of the page. If true, textContent will be ignored (default: false)"
843
+ description: "Return cleaned HTML (scripts/styles/SVG stripped) instead of text. Much more expensive than text \u2014 use it only when you need markup/attributes, and pair it with selector. If true, textContent is ignored (default: false)"
844
844
  },
845
845
  textContent: {
846
846
  type: "boolean",
@@ -850,13 +850,17 @@ Tip: If the returned elements do not include the specific element you need, use
850
850
  type: "string",
851
851
  description: "CSS selector to get content from a specific element. If provided, only content from this element will be returned"
852
852
  },
853
+ maxChars: {
854
+ type: "number",
855
+ description: "Cap on returned HTML length (default 100000). Only applies to htmlContent mode; the result reports fullHtmlChars/returnedChars and truncated:true when it was cut."
856
+ },
853
857
  raw: {
854
858
  type: "boolean",
855
859
  description: "Text mode returns reader-view content by default (navigation/footer/cookie-banner noise stripped, main content kept \u2014 fullTextChars vs returnedChars reported). Pass true for the unfiltered full text. Default: false"
856
860
  },
857
861
  diff: {
858
862
  type: "boolean",
859
- description: "When true (default), returns {unchanged:true} instead of the body if identical to your previous read of this tab \u2014 reuse the earlier content. Pass false to force full re-send."
863
+ description: "When true (default), returns {unchanged:true} instead of the body if identical to your previous read of this tab (text and HTML modes are tracked separately) \u2014 reuse the earlier content. Pass false to force full re-send."
860
864
  }
861
865
  },
862
866
  required: []
package/dist/index.mjs CHANGED
@@ -759,7 +759,7 @@ Tip: If the returned elements do not include the specific element you need, use
759
759
  },
760
760
  {
761
761
  name: TOOL_NAMES.BROWSER.SWITCH_TAB,
762
- description: "Switch to a specific browser tab",
762
+ description: "Bring a tab to the front (activates it and can take OS focus). Use ONLY when the user explicitly asked to switch/show a tab. To retarget automation at another tab without disturbing the user, use chrome_set_work_tab instead - this tool is exempt from the no-interference gate, so it will actually change what the user is looking at.",
763
763
  inputSchema: {
764
764
  type: "object",
765
765
  properties: {
@@ -777,7 +777,7 @@ Tip: If the returned elements do not include the specific element you need, use
777
777
  },
778
778
  {
779
779
  name: TOOL_NAMES.BROWSER.WEB_FETCHER,
780
- description: "Fetch content from a web page",
780
+ description: "Read a page as text (reader view by default: nav/footer/cookie-banner noise stripped) or as cleaned HTML. Repeat reads of an unchanged tab return {unchanged:true} instead of the body. Both modes are length-capped and report fullTextChars/fullHtmlChars vs returnedChars so you can tell what was cut. For a handful of known fields prefer chrome_extract, and for clicking/typing prefer chrome_read_page (it returns element refs); use this when you want the page content itself.",
781
781
  inputSchema: {
782
782
  type: "object",
783
783
  properties: {
@@ -795,7 +795,7 @@ Tip: If the returned elements do not include the specific element you need, use
795
795
  },
796
796
  htmlContent: {
797
797
  type: "boolean",
798
- description: "Get the visible HTML content of the page. If true, textContent will be ignored (default: false)"
798
+ description: "Return cleaned HTML (scripts/styles/SVG stripped) instead of text. Much more expensive than text \u2014 use it only when you need markup/attributes, and pair it with selector. If true, textContent is ignored (default: false)"
799
799
  },
800
800
  textContent: {
801
801
  type: "boolean",
@@ -805,13 +805,17 @@ Tip: If the returned elements do not include the specific element you need, use
805
805
  type: "string",
806
806
  description: "CSS selector to get content from a specific element. If provided, only content from this element will be returned"
807
807
  },
808
+ maxChars: {
809
+ type: "number",
810
+ description: "Cap on returned HTML length (default 100000). Only applies to htmlContent mode; the result reports fullHtmlChars/returnedChars and truncated:true when it was cut."
811
+ },
808
812
  raw: {
809
813
  type: "boolean",
810
814
  description: "Text mode returns reader-view content by default (navigation/footer/cookie-banner noise stripped, main content kept \u2014 fullTextChars vs returnedChars reported). Pass true for the unfiltered full text. Default: false"
811
815
  },
812
816
  diff: {
813
817
  type: "boolean",
814
- description: "When true (default), returns {unchanged:true} instead of the body if identical to your previous read of this tab \u2014 reuse the earlier content. Pass false to force full re-send."
818
+ description: "When true (default), returns {unchanged:true} instead of the body if identical to your previous read of this tab (text and HTML modes are tracked separately) \u2014 reuse the earlier content. Pass false to force full re-send."
815
819
  }
816
820
  },
817
821
  required: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-chrome-mcp-shared",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "author": "hangye (upstream), scalemaker-ship-it (auto-chrome-mcp fork)",
5
5
  "repository": {
6
6
  "type": "git",