@solarisdk/mcp 0.4.2 → 0.4.4
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/README.md +1 -1
- package/dist/browser-tools/auth.d.ts +2 -0
- package/dist/browser-tools/auth.js +403 -0
- package/dist/browser-tools/capture.d.ts +2 -0
- package/dist/browser-tools/capture.js +67 -0
- package/dist/browser-tools/context.d.ts +79 -0
- package/dist/browser-tools/context.js +74 -0
- package/dist/browser-tools/interaction.d.ts +2 -0
- package/dist/browser-tools/interaction.js +91 -0
- package/dist/browser-tools/navigation.d.ts +2 -0
- package/dist/browser-tools/navigation.js +30 -0
- package/dist/browser-tools/session.d.ts +2 -0
- package/dist/browser-tools/session.js +182 -0
- package/dist/browser.d.ts +4 -49
- package/dist/browser.js +21 -783
- package/dist/server.js +14 -3
- package/dist/solari-mcp-http.bundle.cjs +1465 -1397
- package/dist/solari-mcp.bundle.cjs +1462 -1394
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -256,11 +256,22 @@ export function makeToolset(client, reg) {
|
|
|
256
256
|
},
|
|
257
257
|
},
|
|
258
258
|
solari_click: {
|
|
259
|
-
description: "Click the desktop at (x, y)."
|
|
260
|
-
|
|
259
|
+
description: "Click the desktop at (x, y). Set doubleClick: true for a double click " +
|
|
260
|
+
"(e.g. opening icons/files); button selects left (default), right, or middle.",
|
|
261
|
+
inputSchema: {
|
|
262
|
+
sessionId: z.string(),
|
|
263
|
+
x: z.number(),
|
|
264
|
+
y: z.number(),
|
|
265
|
+
button: z.enum(["left", "right", "middle"]).optional(),
|
|
266
|
+
doubleClick: z.boolean().optional(),
|
|
267
|
+
},
|
|
261
268
|
handler: async (a) => {
|
|
262
269
|
const e = await desktop(a.sessionId);
|
|
263
|
-
|
|
270
|
+
const opts = a.button ? { button: a.button } : {};
|
|
271
|
+
if (a.doubleClick)
|
|
272
|
+
await e.handle.mouse.doubleClick(a.x, a.y, opts);
|
|
273
|
+
else
|
|
274
|
+
await e.handle.mouse.click(a.x, a.y, opts);
|
|
264
275
|
return text({ ok: true });
|
|
265
276
|
},
|
|
266
277
|
},
|