@gaiventures/pilotfish-mcp 0.1.37 → 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 +6 -2
  2. package/cli.js +127 -98
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -48,6 +48,10 @@ a paid service on your pilotfish account.
48
48
  Use local when you are at your desk and want your agent to drive. Use managed when you want a task done, need
49
49
  to stay signed in to sites between runs, or keep running into bot checks.
50
50
 
51
+ **Tasks that name no site.** Let your agent search the web first (its own search tool) to pick the site, or to answer
52
+ outright when that is enough; open the site with `browser_navigate` when the task needs one (a price for dates, a
53
+ form, an account).
54
+
51
55
  **Tasks over several sites.** With this package your agent is the planner: it works site by site, finishes
52
56
  what it needs on one site and keeps the values (a price, an order number, a link) before opening the next, and
53
57
  hands you each sign-in the result marks `NEEDS A PERSON`. With managed, send the whole task in one
@@ -127,7 +131,7 @@ other address.
127
131
  | Tool | What it does |
128
132
  | --- | --- |
129
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. |
130
- | `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 `|`. |
131
135
  | `browser_click` `{ref}` | Click an element. Refused if it is covered, stale or not visible. |
132
136
  | `browser_type` `{ref, text, submit?}` | Replace a field's text. `{{name}}` types a configured secret. |
133
137
  | `browser_select` `{ref, values}` | Pick `<select>` options by label or value. |
@@ -138,7 +142,7 @@ other address.
138
142
  | `browser_find` `{query}` | Find elements anywhere on the page by their words, best match first. Separate several targets with commas. |
139
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). |
140
144
  | `browser_screenshot` `{}` | A JPEG of the viewport. Off when secrets are configured, since the image could show them. |
141
- | `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. |
142
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. |
143
147
  | `browser_tabs` `{switch_to?}` | List open tabs, or switch with `switch_to: "t2"`. |
144
148
  | `browser_close` `{}` | Close the browser; the next call opens a fresh one. Not needed at the end: it closes when the client disconnects. |