@gaiventures/pilotfish-mcp 0.1.64 → 0.1.66

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 +13 -11
  2. package/cli.js +140 -126
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -24,8 +24,10 @@ with your saved logins, see "Local or managed?" below.
24
24
  - **It clicks what it means to.** Tools act on refs from the page (`browser_click {ref: "e12"}`). If the element
25
25
  is covered, gone or off screen, the click is refused instead of landing on the wrong thing, and every action
26
26
  reports what changed.
27
- - **It reads pages cheaply.** The agent sees a compact outline of the visible screen. After the first look it
28
- gets only the lines that changed, and `browser_query` pulls out just the values it needs.
27
+ - **It reads pages cheaply.** The agent sees a compact outline of the visible screen, across as well as down: what
28
+ sits off to the side in a sideways calendar or carousel is counted, not printed, and a tracker's empty frame prints
29
+ nothing. After the first look it gets only the lines that changed, and `browser_query` pulls out just the values it
30
+ needs.
29
31
  - **You stay in charge.** Sign-ins, one-time codes and CAPTCHAs are handed to you in the browser window. Payments,
30
32
  orders, messages and deletions wait for your yes.
31
33
  - **Your passwords stay out of the model.** Secrets you configure are typed as `{{name}}` placeholders; a field
@@ -139,17 +141,17 @@ other address.
139
141
 
140
142
  | Tool | What it does |
141
143
  | --- | --- |
142
- | `browser_navigate` `{url, snapshot?, expect?, escalate?}` | Open an http(s) URL and return what happened plus the visible screen, with counts of what is above and below. `snapshot: false` leaves the screen out (still returning the evidence: where it landed, the title, what was added or removed, and the new tabs its list of new elements leaves out; loading notes and anything that needs a person): for a page you will only read with `browser_query` or `browser_get_text`, or leave for another URL; keep the default for a page you will click, type or choose on. For cheapest, latest, highest-rated and the like it asks for the site's own sort or tab to be opened (a label naming its best value is not the list), the answer to say which sort, tab and filters it came from, and ties broken only by what the task asks; when that order does not rank by the task's measure over everything inside its bounds, the answer says how much was read and calls its pick the best of those read, not the best. Search, sort and filter addresses may be built from the task's words or by changing a parameter the site has shown (`browser_query` gives a link's full href), its page number included; before their results are used, the page must show what was meant applied (heading, breadcrumb, selected sort or filter, the results themselves; never the address or a search box, which can repeat a value the site ignored), else the site's own form is used or the answer says what could not be applied. Sign-in, session, account, identity and tracking values are never written, only kept as the site gave them or left out. |
143
- | `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 `|`. A tag marked `@` is an element the page gave that ARIA role (`<@button>` is a div or span with `role="button"`, not a native `<button>`); the same notation is used in every tool's screen, evidence and find lines. |
144
- | `browser_click` `{ref, snapshot?, expect?, escalate?}` | Click an element. Refused if it is covered, stale or not visible. |
145
- | `browser_type` `{ref, text, submit?, snapshot?, expect?, escalate?}` | Replace a field's text. A text field is clicked first (or focused when the click cannot reach it), so a click on it just before is usually not needed; a native date, time, month, week, color or range input gets its value set directly, with no click. `{{name}}` types a configured secret. |
144
+ | `browser_navigate` `{url, snapshot?, expect?, escalate?}` | Open an http(s) URL and return what happened plus the visible screen, with counts of what is above and below. `snapshot: false` leaves the screen out (still returning the evidence: where it landed, the title, what was added or removed, and the new tabs its list of new elements leaves out; loading notes and anything that needs a person): for a page you will only read with `browser_query` or `browser_get_text`, or leave for another URL; keep the default for a page you will click, type or choose on. For cheapest, latest, highest-rated and the like it asks for the site's own sort or tab to be opened (a label naming its best value is not the list), the answer to say which sort, tab and filters it came from, and ties broken only by what the task asks; when that order does not rank by the task's measure over everything inside its bounds, the answer says how much was read and calls its pick the best of those read, not the best. Search, sort and filter addresses may be built from the task's words or by changing a parameter the site has shown (`browser_query` gives a link's full href), its page number included; a search the site's form takes several steps for (a place, dates, guests, a sort, filters) is usually one call as such an address. Before their results are used, the page must show what was meant applied (heading, breadcrumb, selected sort or filter, the results themselves; never the address or a search box, which can repeat a value the site ignored), else the site's own form is used or the answer says what could not be applied. Sign-in, session, account, identity and tracking values are never written, only kept as the site gave them or left out. |
145
+ | `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 `|`. A tag marked `@` is an element the page gave that ARIA role (`<@button>` is a div or span with `role="button"`, not a native `<button>`); the same notation is used in every tool's screen, evidence and find lines. Under a list of suggestions in which two options share a name, a line says they are different places. |
146
+ | `browser_click` `{ref, snapshot?, expect?, escalate?}` | Click an element. Refused if it is covered, stale or not visible. A tab or menu item not already selected waits up to 6 seconds for the lists on screen to change, and the reply says so when they did not (a list may still show the earlier order). In a list of suggestions, an option listed below another of the same name is not clicked the first time: the reply names the one above, and clicking it again goes through. |
147
+ | `browser_type` `{ref, text, submit?, snapshot?, expect?, escalate?}` | Replace a field's text. A text field is clicked first (or focused when the click cannot reach it), so a click on it just before is usually not needed; a native date, time, month, week, color or range input gets its value set directly, with no click. `{{name}}` types a configured secret. A field a popup covers gets the popup closed and is typed once more. |
146
148
  | `browser_select` `{ref, values, snapshot?, expect?, escalate?}` | Pick `<select>` options by label or value. |
147
149
  | `browser_press` `{key, snapshot?, expect?, escalate?}` | Press a key or shortcut (`Enter`, `Escape`, `Control+a`). |
148
150
  | `browser_scroll` `{direction, snapshot?}` | Scroll about one screen and return it. |
149
- | `browser_actions` `{actions, snapshot?}` | Up to 10 steps in one call, such as a form's fields and its submit button. Each step is `{action, …}`: `click`, `type`, `select`, `press`, `scroll` or `wait`, with the same fields as its own tool. A malformed step stops the batch before anything runs; otherwise it stops at the first step that fails or moves to another page, and after a step that raised a dialog, opened a new tab, had a server write refused or unanswered, left the page still loading, or left a check or sign-in on the page. Each earlier step's line keeps what it did that must not be lost (dialogs, new tab, refused writes, invalid fields, choices, field read-back). |
150
- | `browser_query` `{expression, schema?}` | Read values with a JavaScript expression that returns JSON (up to 4,000 characters): a list of results, prices, counts. It cannot click, type, submit or send data. The cheapest way to read a page. With `schema` (a JSON Schema), the result is checked against it: a match also comes back as `structuredContent: {value}`, a mismatch as an error starting `ERROR schema_mismatch` with up to 5 `path: message` lines. |
151
+ | `browser_actions` `{actions, snapshot?}` | Up to 10 steps in one call, such as a form's fields and its submit button. Each step is `{action, …}`: `click`, `type`, `select`, `press`, `scroll` or `wait`, with the same fields as its own tool. A malformed step stops the batch before anything runs; otherwise it stops at the first step that fails or moves to another page, and after a step that raised a dialog, opened a new tab, had a server write refused or unanswered, left the page still loading, or left a check or sign-in on the page. Each earlier step's line keeps what it did that must not be lost (dialogs, new tab, refused writes, invalid fields, choices, field read-back). When an earlier step changed the page, the page is printed even if the last step changed nothing. |
152
+ | `browser_query` `{expression, schema?}` | Read values with a JavaScript expression that returns JSON (up to 4,000 characters): a list of results, prices, counts. It cannot click, type, submit or send data. The cheapest way to read a page. An object written as the whole expression (`{a: 1}`) is read as if in parentheses. With `schema` (a JSON Schema), the result is checked against it: a match also comes back as `structuredContent: {value}`, a mismatch as an error starting `ERROR schema_mismatch` with up to 5 `path: message` lines. |
151
153
  | `browser_find` `{query}` | Find elements anywhere on the page by their words, best match first. Separate several targets with commas. |
152
- | `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). |
154
+ | `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). A `selector` that matches nothing returns the page's whole text, saying so. |
153
155
  | `browser_screenshot` `{}` | A JPEG of the viewport. Off when secrets are configured, since the image could show them, and withheld (`UNSAFE_OUTPUT`) once a password was typed into a password field in this browser, whose pixels cannot be checked for it. |
154
156
  | `browser_wait` `{seconds, until?, gone?, in?, snapshot?}` | 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. |
155
157
  | `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. |
@@ -243,9 +245,9 @@ pilotfish servers, no model providers.
243
245
 
244
246
  ## Source and issues
245
247
 
246
- - Source: [gAI-ventures/pilotfish-mcp](https://github.com/gAI-ventures/pilotfish-mcp/tree/main/packages/mcp) on GitHub.
248
+ - Source: [gAI-ventures/pilotfish-ai](https://github.com/gAI-ventures/pilotfish-ai/tree/main/packages/mcp) on GitHub.
247
249
  This package is published from there, with npm provenance.
248
- - Issues: [github.com/gAI-ventures/pilotfish-mcp/issues](https://github.com/gAI-ventures/pilotfish-mcp/issues).
250
+ - Issues: [github.com/gAI-ventures/pilotfish-ai/issues](https://github.com/gAI-ventures/pilotfish-ai/issues).
249
251
 
250
252
  ## License
251
253