Midscene is an automation assistance SDK with a key feature of action stability — ensuring the same actions are performed in each run. To maintain this stability, we encourage you to provide detailed instructions to help the AI understand each step of your task.
If you require a 'goal-to-task' AI planning tool, you can develop one based on Midscene.
Related Docs:
There are some limitations with Midscene. We are still working on them.
Midscene needs a multimodal Large Language Model (LLM) to understand the UI. Currently, we find that OpenAI's GPT-4o performs much better than others.
You can customize model vendor if needed.
Image resolution and element numbers (i.e., a UI context size created by Midscene) will affect the token bill.
Here are some typical data with GPT-4o.
Task | Resolution | Prompt Tokens / Price | Completion Tokens / Price |
---|---|---|---|
Plan the steps to search on eBay homepage | 1280x800 | 6,975 / $0.034875 | 150 / $0.00225 |
Locate the search box on the eBay homepage | 1280x800 | 8,004 / $0.04002 | 92 / $0.00138 |
Query the information about the item in the search results | 1280x800 | 13,403 / $0.067015 | 95 / $0.001425 |
The price data was calculated in August 2024.
Currently, the contents are:
Since Midscene.js invokes AI for each planning and querying operation, the running time may increase by a factor of 3 to 10 compared to traditional Playwright scripts, for instance from 5 seconds to 20 seconds. This is currently inevitable but may improve with advancements in LLMs.
Despite the increased time and cost, Midscene stands out in practical applications due to its unique development experience and easy-to-maintain codebase. We are confident that incorporating automation scripts powered by Midscene will significantly enhance your project’s efficiency, cover many more situations, and boost overall productivity.
In short, it is worth the time and cost.