Forge
Let the model draft the pieces of your project you would otherwise write by hand — UI prompts from screenshots or a recording, custom tools from a description, and tests from recordings and specs.
Forge is the family of features that lets the model draft parts of your project for you, instead of you writing them by hand. Every Forge follows the same loop: you describe what you want, the model verifies it understands and asks about anything missing, and only when you accept does it write a file into your project. Nothing is written before you accept, and what it writes is a draft to read and refine — not a finished product.
There are three Forges:
- PromptForge drafts your
UI information (
ui.md) from screenshots of the app under test, from a recording in which you show and explain it, or from a description alone. - ToolForge drafts a
custom tool (a
.csfile) from a plain-language description, which a recording can show. - TestForge turns a narrated screencast, a written spec (PDF or CSV) or a plain description into a test.
All of them run on the same Forge Model (below).
The Verify loop
Each Forge page works the same way:
- Fill in the inputs and click Verify. The model checks them and echoes back its understanding. One Cost so far line above the buttons keeps the inference cost of the whole page: every Verify and every generation adds to it.
- If something is missing, it lists its questions under Please add. Answer them in the reply box and click Verify again. Each round continues the same conversation, so your original inputs stay exactly as you entered them.
- Once the model reports it is ready, an Accept button appears. Accepting writes the file; the cost of generating it joins the total.
Leaving a Forge page mid-way asks for confirmation, since an unaccepted draft is not saved anywhere.
PromptForge — UI prompts from screenshots
ui.md tells the agent what your app looks like and how it behaves — see
UI information. Instead of
writing it, open a ui.md in the Tests editor and click Forge from
screenshots.
- Write a short bullet-point description of the screens (at least 160 characters). Verify stays disabled until the description is long enough, unless you add a narrated video.
- Optionally upload screenshots of the app (PNG or JPEG, up to 30). They are not required, but they improve the result: the model takes labels and layout from them. A large screenshot is scaled down to the size your model takes before it is sent.
- Or add a narrated video instead of, or next to, the screenshots: record yourself
walking through the app and explaining it (one
.mp4, up to 200 MB). With a video the description is optional, because your voiceover carries it. PromptForge shows the transcript before the first question. A video needs an AskUI account and ffmpeg, exactly as in TestForge. - Run the Verify loop above.
- Click Accept & Update ui.md to write the section, or Add another UI section to describe another screen first — the finished sections wait until you accept them all together.
All sections are appended to the ui.md you opened Forge from (a fresh, still
empty scaffold is replaced), and the editor reopens on that file. Read the result
and refine it: ui.md steers every run.
ToolForge — custom tools from a description
A custom tool is a C# file the agent can call during a run. If you would rather not write the C# yourself, click Forge a tool on Extending → Custom Tools.
-
Write a structured description: what the tool does, which input fields it takes (name and type), what it returns, and which device it needs (desktop, web, Android, iOS, or none).
-
Optionally point it at an Example source folder — working code that already does what the tool should do. ToolForge reads those files and ports them: the commands, settings, timings and checks of your code carry over as they are. It then asks only about the tool's contract and configuration, not about logic the code already shows. A single source file can be attached instead (see below).
-
If the tool needs credentials, add them first under Extending → Secrets. ToolForge sees the names and descriptions of your secrets, never their values, and wires the tool to read them at run time.
-
Optionally attach files the tool should know:
- Images of the device or app: PNG, JPEG, GIF, WebP or BMP, up to 15 MB each and 20 MB across all of them. ToolForge scales a large image down to the size your model takes before it sends it.
- Text files such as a sample config, an API response or a data file: JSON, YAML, YML, CSV, TXT, MD, XML, TOML, INI or LOG, up to 200 KB each and 500 KB across all of them.
- Source files to port, for example a
.py,.cs,.tsor.ps1file. ToolForge treats one exactly like a file in the example source folder. The text limits apply to it too. - A narrated video (
.mp4, up to 200 MB) in which you show and explain what the tool must do. ToolForge takes the steps, names and values from what you did and said, and shows the transcript before the first question. One video at a time; a second one replaces the first. It needs an AskUI account and ffmpeg, exactly as in TestForge. - Up to 30 files in total.
Each attachment shows as a chip with its name and size; the × removes it, and a file with the same name replaces the earlier one, so you can fix a config and attach it again. The model takes formats, field names and values from them instead of asking you. The files stay in memory for this page only — nothing is written to your project. Anything else (a PDF, an executable) is refused with a message naming the file.
What you attach goes into the prompt as it is, and what the model writes from it becomes a tool that runs on your machines. Attach files you would vouch for. Accept writes the tool at once and then shows its source: read it before your next run uses the tool.
-
Run the Verify loop above. When you attached code, Verify lists what it carries over — commands, connection settings, the order of steps and the waits — so you can spot a gap before the tool is written. If your code calls another file you did not attach, or the tool talks to a device and the exact commands are missing, ToolForge asks for them instead of guessing.
-
Once you have answered the model's first questions, the description, the example source and the attachments are locked — they are what the conversation is about. To change them, start a new ToolForge.
-
Click Accept & Forge Tool. The
.csfile is written intoutils/custom_tools/once it compiles and a run would load it, and it joins the agent's toolbox on the next run.
ToolForge writes against the exact device API this version of AskUI Desktop ships. If you ask for something the device can't do from a tool, it says so during Verify and suggests what is possible.
UI work is the agent's job, not a tool's. Logging in, navigating, clicking, filling a form and reading the screen are what the agent does itself. ToolForge declines such a request even though a tool could do it. A tool would hide the steps from the report and break without warning when the screen changes. Instead it shows draft steps to copy into your test, written as a procedure when several tests need them. A tool is right for work below the screen: an API call, a protocol, files or data, a computed value, or processing a screenshot (comparing it with a reference image, decoding a barcode). If a step needs a secret, turn on Agent may use this secret for it so the agent can type it. If your request mixes both, describe only that part in Narrow the request and verify again.
If the generated tools miss the mark, check the Forge Model — a stronger model helps most.
Migrate a tool from the Python SDK
A custom tool you wrote for the AskUI Python SDK does not run in AskUI Desktop as it is: Desktop runs C# tools. ToolForge converts it for you.
- Click Forge a tool on Extending → Custom Tools.
- In the description, say which tool you are migrating and what it is for.
- Attach the tool's
.pyfile. If it imports helpers from other files of yours, attach those too, or point Example source at the folder that holds them all. - Verify, check the list of what ToolForge carries over, and click Accept & Forge Tool.
ToolForge keeps the tool's name, inputs and behaviour. An exception your Python tool raised becomes a failed tool call, as before. ToolForge compiles the new tool but does not run it, because a trial run would act on your real setup. Run one test that uses the tool before you rely on it.
Tools that ship with AskUI Desktop, such as reading files or saving a screenshot, don't need to be migrated: see the Tool Store.
Edit a custom tool
To change a tool you already have — forged or written by hand — click the pen icon next to it on Extending → Custom Tools. ToolForge opens on that file: it shows which file you are editing and already has the tool's current code, so you don't paste anything.
- Describe only the change, for example "also accept base64 input" or "the
login field is called
user_name". - Run the Verify loop above. Everything you don't ask to change stays as it is, including the tool's name.
- Click Accept & Update Tool. The new version replaces the same file in
utils/custom_tools/, under the same name, once it compiles and a run would load it. No second file is created.
The same rules apply as for a new tool: a change that turns the tool into UI work is declined in favour of test steps, and a change that never compiles writes nothing. If you also have the file open in your IDE, save your work there first — accepting overwrites the file.
Review before you rely on it
A generated tool is a starting point — read it, and validate it like any other custom tool before trusting it in a run. See the developer-territory note on custom tools.
Not everything is a tool. A custom tool is code the agent calls during a run. It can't install software on the machine, change system or network settings, or duplicate a built-in tool from the Tool Store. If your request falls outside those boundaries, generation is rejected and you're pointed to an AskUI solution engineer (if a built-in tool already covers it, you're told which one). The same happens if the generated code doesn't compile after a few attempts, or the model returns no code at all. Nothing is written, and the page shows what went wrong on the last try. Either way your description and answers are preserved and copyable, so you can send them to support@askui.com without retyping them.
TestForge — tests from recordings and specs
TestForge turns material you already have into tests. Record yourself walking through a flow and explaining it, or take a written spec as PDF or CSV. TestForge drafts one test per file. Without any file, it drafts one test from your description alone. Videos need an AskUI account, because their voiceover is transcribed on the AskUI API. With your own model, TestForge turns PDF and CSV files and descriptions into tests and lists a video as skipped, with the reason.
Open the Tests page with no test open and click Forge a test.
-
Add the sources, or skip this step and only write a description (step 2). Choose files or a
.zip, or pick a folder:- Videos (
.mp4, up to 200 MB) with a spoken explanation. The voiceover is transcribed automatically; English and German are supported. - PDF (up to 25 MB) and CSV files.
- Up to 50 files per batch. A zip or a folder keeps its sub-folders:
login/happy.mp4becomestests/login/happy.md. Each source shows the test path it will get.
Anything TestForge won't turn into a test — another file type, a file that is too large, a file beyond the 50 — is listed as skipped before any model call, with the reason. Nothing is dropped silently.
- Videos (
-
Write a Description.
- With sources, it adds context to each of them: what the app is, what the sources cover, which conventions to follow.
- Without sources, it is the source. Describe the flow and what must be true at the end. TestForge then drafts one test, and the button reads Start forging 1 test.
-
Click Start forging. TestForge works through the sources one at a time, each with the Verify loop (the button is called Continue here). For a video it first shows the length, how many still frames it took and how much of the voiceover it transcribed, so you can tell when part of a long recording is missing.
-
Click Accept & write test. The test is written under
tests/. A test from a description alone is named after its title:# Log in with a valid accountbecomeslog_in_with_a_valid_account.md. If the name is taken, TestForge appends_1,_2, … and never overwrites a test. Then Edit the result in place, or go on with Next test.
Skip this source moves past a source that the model rejected or that could not be read, so one bad file never blocks the rest of a batch.
TestForge writes tests that fit your project. The model sees your
procedures, your enabled tools, the ui.md at the
root of your tests, and the setup steps
that already run before the test, so it does not repeat them.
A test that reaches the model's output limit is not written, because its end would be missing. Split a long recording into shorter ones, or choose a stronger Forge Model.
ffmpeg for videos
Every Forge needs ffmpeg to split a video into still frames and audio. Screenshots, text files, PDF and CSV sources never need it. When you add a video and ffmpeg is not found, the page shows a setup card with the command that installs it:
- Windows:
winget install --id Gyan.FFmpeg -e - macOS:
brew install ffmpeg
Run it in a terminal, then click Check again. You do not need to restart the app.
Your package manager installs ffmpeg under its own license; AskUI downloads nothing.
If ffmpeg lives somewhere unusual, set the ASKUI_FFMPEG_DIR environment variable to
the folder that holds ffmpeg and ffprobe.
Where your recording goes
The video is split into frames and audio on your machine. The audio is transcribed on a model hosted by AskUI, and the frames and the transcript go to your Forge Model. The video file itself is never uploaded.
The Forge Model
Every Forge runs on the model under Settings → AI Settings → Forge Model.
- Use the global model: on by default. Forge then runs on the Global Model of the same page.
- Clear it to pick another model. Signed in to AskUI, pick a hosted model, or Best: Forge runs only occasionally, so the stronger model is often worth it. With a license, set up a provider of your own, see Your own model.
TestForge is the exception: it transcribes a voiceover on a model hosted by AskUI, so it needs you signed in to a workspace.
The Cost so far line adds up every Verify and every generation on the page
as an estimated cost and token count; with your own model the token cost is
omitted unless you have entered its rates (with a dot as decimal separator,
e.g. 1.25).