How to write and run a script against the Bowmark library
Explains the get_library -> write script -> run loop, the sandbox's language rules, its ambient globals, and what each run status means — a static…
Explains the get_library -> write script -> run loop, the sandbox's language rules, its ambient globals, and what each run status means — a static reference, not a site wrapper.
Also known as: run a script, run, execute a script, execute code, run a script against a site, run arbitrary script code against capabilities, script execution, how do I run a script
Call it
bowmark.script_execution.guide(): Promise<ScriptExecutionGuide>Functions
| Function | What it does |
|---|---|
guide | Returns the loop for doing a task (get_library, then a script, then run), the sandbox's language rules and ambient globals, and what each run envelope status (ok/partial/error/needs_user)… |
Types
interface ScriptExecutionGuide {
loop: string[]
language: string[]
globals: string[]
statuses: Record<string, string>
warnings: string[]
}Examples
// Asked "how do I run a script" or "execute code against capabilities" with
// no task or site in mind yet — get the loop before writing one.
const guide = await bowmark.script_execution.guide();
return { loop: guide.loop, language: guide.language };Providers behind it
None — this capability needs no site. It computes the answer, or reads a public API that publishes it.