@gaiventures/pilotfish-mcp 0.1.50 → 0.1.52

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 +5 -2
  2. package/cli.js +107 -105
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -46,7 +46,7 @@ paid service: pilotfish runs the whole task in its cloud browser and hands your
46
46
  | Browser | Chrome on your computer, your IP | pilotfish's cloud browser, on even when your computer is off |
47
47
  | Sign-ins | You sign in each time; nothing is kept | Saved logins and sessions (several accounts a site), two-factor codes, phone sign-in by code |
48
48
  | Tasks for your product's users | No | Identities: each user's logins, sessions, IP and device kept apart, and the cost per user |
49
- | Sites that block bots | You clear each check yourself | Residential IPs, stealth browsing and CAPTCHA solving, with you as the last resort |
49
+ | Sites that block bots | You clear each check yourself | Bot checks handled in the cloud, CAPTCHA solving included, with you as the last resort |
50
50
  | Watching and history | The browser window | Live view, take control, replays, per-task cost |
51
51
  | Price | Free | Pay as you go, from $5 of credit |
52
52
 
@@ -138,7 +138,7 @@ other address.
138
138
  | `browser_press` `{key}` | Press a key or shortcut (`Enter`, `Escape`, `Control+a`). |
139
139
  | `browser_scroll` `{direction}` | Scroll about one screen and return it. |
140
140
  | `browser_actions` `{actions}` | 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. |
141
- | `browser_query` `{expression}` | 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. |
141
+ | `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. |
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. |
@@ -202,6 +202,9 @@ pilotfish servers, no model providers.
202
202
  `node --version` is 22 or newer.
203
203
  - **A call times out while you sign in:** raise your client's tool timeout above 300 seconds (Codex:
204
204
  `tool_timeout_sec`), since `browser_resume` waits up to 300 s for you.
205
+ - **`ERROR schema_mismatch` from `browser_query`:** the expression's result does not fit the `schema` the agent
206
+ sent; each line gives where (`/0/price`) and what is wrong. The agent fixes the expression and runs it again.
207
+ `ERROR invalid_schema` means the schema itself is not a valid JSON Schema (draft-07).
205
208
  - **A site keeps blocking the browser:** this package uses your own IP and a plain Chrome, and never solves CAPTCHAs.
206
209
  Clear the check in the browser window yourself, or use
207
210
  [pilotfish managed](https://www.npmjs.com/package/@gaiventures/pilotfish-mcp-managed).