taskwindow 0.2.16 → 0.2.17
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/package.json +1 -1
- package/src/tools.js +3 -3
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -158,7 +158,7 @@ const rawDefs = [
|
|
|
158
158
|
description:
|
|
159
159
|
"Screenshot and low-level mouse/keyboard control of a tab via the Chrome DevTools Protocol. " +
|
|
160
160
|
"Actions: screenshot (PNG of the viewport, or full page with fullPage), left_click / right_click / " +
|
|
161
|
-
"middle_click / double_click / triple_click (at x,y
|
|
161
|
+
"middle_click / double_click / triple_click (at x,y read off a screenshot; see ref for models that cannot see screenshots), " +
|
|
162
162
|
"type (text into the focused element), " +
|
|
163
163
|
"key (named key press, e.g. Enter, Tab, Escape, ArrowLeft, Backspace), scroll (by dx/dy pixels), " +
|
|
164
164
|
"mouse_move, wait, idle. Screenshots are in CSS pixels (1 image pixel = 1 coordinate unit, on any display density), so " +
|
|
@@ -183,7 +183,7 @@ const rawDefs = [
|
|
|
183
183
|
.string()
|
|
184
184
|
.optional()
|
|
185
185
|
.describe(
|
|
186
|
-
"
|
|
186
|
+
"Only for a model that cannot see screenshots: such a model reads the page with read_page or find and clicks an element by the ref they give it (e.g. e42), in place of x,y. If you can see screenshots, click at x,y on one as usual and leave this out. Clicks the element's centre, scrolling it into view; refused when something covers it."
|
|
187
187
|
),
|
|
188
188
|
selector: z.string().optional().describe("For clicks and mouse_move: a CSS selector, as a fallback when no ref is available"),
|
|
189
189
|
text: z.string().optional().describe('Text for the "type" action'),
|
|
@@ -243,7 +243,7 @@ const rawDefs = [
|
|
|
243
243
|
name: "read_page",
|
|
244
244
|
description:
|
|
245
245
|
"Structured accessibility-style snapshot of the page: a text tree of interactive elements and content, " +
|
|
246
|
-
"each labelled with a ref (e.g. e42) you can pass to computer clicks,
|
|
246
|
+
"each labelled with a ref (e.g. e42) you can pass to form_input and file_upload (and to computer clicks, for a model that cannot see screenshots). Cheaper and more reliable " +
|
|
247
247
|
"than a screenshot for forms and navigation.",
|
|
248
248
|
inputSchema: { tabId: tabId.optional() },
|
|
249
249
|
timeoutMs: 20_000,
|