chromeflow 0.1.52 → 0.1.53
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/tools/browser.js +2 -1
- package/package.json +1 -1
package/dist/tools/browser.js
CHANGED
|
@@ -266,7 +266,8 @@ To clear existing content before typing, use execute_script("document.execComman
|
|
|
266
266
|
text: z.string().describe("The text to type into the focused element")
|
|
267
267
|
},
|
|
268
268
|
async ({ text }) => {
|
|
269
|
-
const
|
|
269
|
+
const timeoutMs = Math.max(3e4, text.length * 90 + 15e3);
|
|
270
|
+
const response = await bridge.request({ type: "type_text", text }, timeoutMs);
|
|
270
271
|
const r = response;
|
|
271
272
|
return {
|
|
272
273
|
content: [{ type: "text", text: r.message ?? (r.success ? "Text typed successfully" : "Failed to type text") }]
|
package/package.json
CHANGED