Global Installation
npx:
Usage
Modes
Start Web Dashboard (Default)
Runningfigranium with no arguments starts the full web dashboard at http://localhost:11345.
Scraper Mode (--scrape)
Runs a fast, one-off page scrape without full agent logic. Ideal for simple text extraction tasks.
--scrape:
Example — Save to file:
Agent Mode (--agent)
Executes the full block-based automation engine for a saved task.
--agent:
What gets printed:
- All step-by-step execution logs
- Final data output as formatted JSON
Headful Mode (--headful)
Launches a visible Chromium browser for manual inspection and debugging.
All Flags Reference
Environment Variables
All CLI modes respect the same environment variables as the server. Set them in your shell or a.env file:
Scripting and Automation
Combine CLI modes with shell scripts for automated pipelines:Exit Codes
Troubleshooting
Task not found:data/tasks.json. Retrieve the correct ID from the web dashboard URL or the REST API (GET /api/tasks).
Playwright browsers not installed:
npx playwright install chromium to download the required browser binaries.