@gaiventures/pilotfish-mcp 0.1.38 → 0.1.39

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/cli.js +127 -98
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -131,7 +131,7 @@ other address.
131
131
  | Tool | What it does |
132
132
  | --- | --- |
133
133
  | `browser_navigate` `{url, snapshot?}` | Open an http(s) URL and return what happened plus the visible screen, with counts of what is above and below. `snapshot: false` returns only what happened and the counts, for a page you will read with `browser_query` and not act on. |
134
- | `browser_snapshot` `{whole_page?}` | The page as a compact outline with refs (`[e12]<button>Search`): about three screens around the viewport, or all of it with `whole_page`. Every word and ref is kept; repeated text, closing tags and generated ids are left out. |
134
+ | `browser_snapshot` `{whole_page?}` | The page as a compact outline with refs (`[e12]<button>Search`): about three screens around the viewport, or all of it with `whole_page`. Every word and ref is kept; repeated text, closing tags and generated ids are left out. A plain table row is one line, its cells between `|`. |
135
135
  | `browser_click` `{ref}` | Click an element. Refused if it is covered, stale or not visible. |
136
136
  | `browser_type` `{ref, text, submit?}` | Replace a field's text. `{{name}}` types a configured secret. |
137
137
  | `browser_select` `{ref, values}` | Pick `<select>` options by label or value. |
@@ -142,7 +142,7 @@ other address.
142
142
  | `browser_find` `{query}` | Find elements anywhere on the page by their words, best match first. Separate several targets with commas. |
143
143
  | `browser_get_text` `{max_chars?, selector?}` | The readable text of the page (PDFs too), or of one element (`main`, `#results`), with secrets masked. Up to `max_chars` (default 20,000). |
144
144
  | `browser_screenshot` `{}` | A JPEG of the viewport. Off when secrets are configured, since the image could show them. |
145
- | `browser_wait` `{seconds}` | Wait 0.5 to 10 seconds, then return what changed. Actions already wait for the requests they start. |
145
+ | `browser_wait` `{seconds, until?, gone?}` | Wait up to 0.5 to 10 seconds, then return what changed. With `until` or `gone` it returns the moment that text appears on the page or goes (a result's label, the site's "Calculating…"). Actions already wait for the requests they start, for answers a page gets over its own WebSocket, and for a loading line or countdown the site shows. |
146
146
  | `browser_resume` `{timeout_s?}` | After a result said `NEEDS A PERSON`: wait (default 300 s) until you have dealt with the page, then return it. |
147
147
  | `browser_tabs` `{switch_to?}` | List open tabs, or switch with `switch_to: "t2"`. |
148
148
  | `browser_close` `{}` | Close the browser; the next call opens a fresh one. Not needed at the end: it closes when the client disconnects. |