Skip to content
PD
Browser Automation Studio

The Tools Module in BAS: Log, Result, JS and Random

The Tools module in Browser Automation Studio — logging, returning a result, running JavaScript inside a scenario, parsing strings and generating random numbers.

Every toolkit needs a drawer of small, sharp utilities. In BAS that drawer is the Tools module — the bits you use to see what your bot is doing, hand back a result, and drop into raw code when the visual blocks run out.

What the Tools module is for

The module displays useful information in the log, outputs the script’s results, runs JavaScript inside a scenario, parses a string and generates random numbers. Small actions, but you’ll reach for them constantly.

The actions

Log. Prints a value or checkpoint to the log while the bot runs. This is your primary debugging tool — drop logs at key steps and the log becomes a live trace of what happened and where it broke.

Clear log. Wipes the log back to empty, so a long run or a fresh iteration starts clean.

Result. Outputs the script’s result — the value the run is meant to produce, surfaced where you can read or collect it.

Execute code. Runs JavaScript inside the scenario. This is the escape hatch: anything the visual blocks don’t cover directly, you can do in a few lines of JS — custom string manipulation, math, reading page variables, building a payload.

Parse string. Pulls a piece out of a string by a simple rule — quick extraction without reaching for a full regular expression.

Random number. Generates a random number, the basis for human-like variation: randomised delays, pauses and counts so your bot doesn’t behave with robotic regularity.

How they fit together

These small tools glue a scenario together. You log to see what’s happening, execute code when a step needs logic the blocks don’t express, random number to keep timing human, and result to deliver the output. None of them is glamorous — and you’ll use every one of them in almost every bot you build.

FAQ

Can I run JavaScript inside a BAS scenario?

Yes. The Tools module includes an Execute code action that runs JavaScript inside the scenario — your escape hatch for anything the visual blocks do not cover directly.

How do I debug a BAS bot?

Use the Log action from the Tools module to print values and checkpoints to the log as the bot runs, and Clear log to reset it. Watching the log is the fastest way to see where a flow goes wrong.

More on this topic

  • #Browser Automation Studio
  • #BAS
  • #Tools
  • #JavaScript
  • #Debugging

Have an idea? Let’s turn it into a working product.

Skip months of uncertainty. Get a clear architecture, a working MVP and a system you can test, sell and scale.