open-agents-ai 0.184.80 → 0.184.81
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/dist/index.js +23 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16206,7 +16206,7 @@ var init_desktop_click = __esm({
|
|
|
16206
16206
|
DesktopClickTool = class {
|
|
16207
16207
|
workingDir;
|
|
16208
16208
|
name = "desktop_click";
|
|
16209
|
-
description = "Click on a UI element identified by natural language description. Takes a screenshot, uses vision to find the
|
|
16209
|
+
description = "Click on a UI element identified by natural language description. Takes a screenshot, uses Moondream vision to find the element's coordinates, then clicks at that location. Supports single click, double click, and right click.\n Single click: desktop_click({ target: 'the Save button' })\n Double click: desktop_click({ target: 'document.pdf', click_type: 'double' })\n Right click: desktop_click({ target: 'file icon', button: 'right' })\nChain multiple calls for complex interactions (e.g. right-click \u2192 select menu item).";
|
|
16210
16210
|
/** Active Ollama model name — used as vision fallback if it has vision capability */
|
|
16211
16211
|
_activeModel = "";
|
|
16212
16212
|
/** Whether the active model has vision capability */
|
|
@@ -64480,26 +64480,28 @@ ${lines.join("\n")}
|
|
|
64480
64480
|
dynamicContext += `
|
|
64481
64481
|
|
|
64482
64482
|
<vision-capabilities>
|
|
64483
|
-
You have vision capabilities available.
|
|
64484
|
-
|
|
64485
|
-
|
|
64486
|
-
|
|
64487
|
-
|
|
64488
|
-
|
|
64489
|
-
|
|
64490
|
-
|
|
64491
|
-
|
|
64492
|
-
|
|
64493
|
-
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
|
|
64499
|
-
|
|
64500
|
-
|
|
64501
|
-
|
|
64502
|
-
|
|
64483
|
+
You have vision capabilities available.
|
|
64484
|
+
|
|
64485
|
+
IMAGE ANALYSIS:
|
|
64486
|
+
image_read(image="path") \u2014 View/read an image file directly
|
|
64487
|
+
vision(image="path", action="caption") \u2014 Describe image contents
|
|
64488
|
+
vision(image="path", action="query", prompt="question") \u2014 Visual QA
|
|
64489
|
+
vision(image="path", action="detect", prompt="object") \u2014 Find objects (bounding boxes)
|
|
64490
|
+
vision(image="path", action="point", prompt="element") \u2014 Find element center (for clicking)
|
|
64491
|
+
|
|
64492
|
+
DESKTOP INTERACTION PIPELINE:
|
|
64493
|
+
1. desktop_describe() \u2014 Screenshot + describe what's on screen
|
|
64494
|
+
2. desktop_click({ target: "element" }) \u2014 Find + click an element
|
|
64495
|
+
3. desktop_click({ target: "file.pdf", click_type: "double" }) \u2014 Double click to open
|
|
64496
|
+
4. desktop_click({ target: "icon", button: "right" }) \u2014 Right click for context menu
|
|
64497
|
+
Chain calls iteratively: describe \u2192 click \u2192 wait \u2192 describe \u2192 click next item
|
|
64498
|
+
|
|
64499
|
+
RULES:
|
|
64500
|
+
- Do NOT say you cannot see images \u2014 you can.
|
|
64501
|
+
- Use desktop_describe first to survey the screen, then desktop_click to interact.
|
|
64502
|
+
- After clicking, call desktop_describe again to verify the result.
|
|
64503
|
+
- For file operations: double-click to open, right-click for context menus.
|
|
64504
|
+
- Use delay_ms parameter if UI needs time to transition between clicks.
|
|
64503
64505
|
</vision-capabilities>`;
|
|
64504
64506
|
}
|
|
64505
64507
|
let localFirstOverride = false;
|
package/package.json
CHANGED