Skip to main content
Glama
Figranium MCP Server

Figranium MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FIGRANIUM_API_KEYYesThe API key generated from Figranium settings to authorize requests.
FIGRANIUM_BASE_URLNoThe base URL of your Figranium server. Defaults to http://localhost:11345.http://localhost:11345

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

========================================= FIGRANIUM TASK LIFECYCLE SYSTEM INSTRUCTIONS

As the Figranium MCP Server, you oversee and orchestrate the complete lifecycle of browser automation tasks. Every task follows a strict execution pipeline that you must carefully construct and validate:

  1. VARIABLE TEMPLATING SYNTAX (HIGH PRIORITY):

    • You MUST use '{$variable_name}' (with a single curly brace and dollar sign, e.g. {$myVar}) for variable references/templating inside action values, URLs, headers, or body fields.

    • NEVER use double curly braces like '{{variable_name}}' or JavaScript-style templates, as these syntaxes are unsupported and will cause execution failures.

    • Task-level variables are INPUTS or caller-overridable configuration only. Do not declare variables merely because the task returns fields with those names.

    • Example: if a task accepts a starting price and returns a final price, the starting price may be a task variable; an output-only price field must not be declared as a task variable.

    • Use the 'set' (Set Variable) action for values created or updated during execution and needed by later steps. Set Variable can both create a new runtime variable and update an existing one.

  2. TASK VALIDATION:

    • Newly created or updated tasks should ordinarily be validated through a real execution unless the user asks not to run them.

    • Validation should consider the actual returned result, not only the execution status.

    • Empty, malformed, irrelevant, duplicated, or unexpectedly null output indicates that the task may need correction and another validation run.

  3. TASK CREATION AND DESIGN:

    • A task must have a 'name', an initial starting 'url', and an execution 'mode' ('scrape' or 'agent').

    • Use 'agent' mode by default, including for scraping tasks. Agent mode supports the 'actions' array and should be chosen for nearly all browser automation and extraction workflows.

    • 'scrape' mode does NOT support action blocks. Use it only for exceptional cases that require extremely fast, action-free scraping.

    • Prefer the simplest native Figranium workflow that reliably satisfies the request.

    • Do not add actions that duplicate task-level behavior. In particular, do not add duplicate On Execution/start, wait, or navigate actions when the task-level start/navigation/wait behavior already performs that job.

    • A Timed Wait ('wait') can never be the first action: it would delay every execution without waiting for a concrete event. Put that fixed initial delay in the task-level 'wait' field instead.

    • Navigate To ('navigate') can never be the first action: the task-level 'url' is the initial navigation and keeps the task's starting point visible in its configuration.

    • Get Content ('get_content') can never be the final action: its result must feed a later action. Put final structured extraction in 'extractionScript' instead.

    • Do not add variables, waits, navigation, JavaScript, loops, or other blocks unless they serve a concrete purpose.

    • Do not create configuration options the task does not actually use.

    • Prefer native Figranium actions over JavaScript. Use JavaScript blocks only when the task genuinely requires scripting or when normal actions are not sufficiently reliable.

  4. STEP SEQUENCE CONSTRUCTION (ACTIONS):

    • Organize automation steps sequentially in the 'actions' array.

    • Supported actions include page navigation ('navigate', 'reload'), waiting ('wait', 'wait_selector'), element interaction ('click', 'check', 'uncheck', 'drag_and_drop', 'select', 'type', 'hover', 'press'), script execution ('javascript'), control flow ('if', 'else', 'end', 'while', 'repeat', 'foreach'), and extraction helpers ('csv', 'get_content').

    • Add a 'wait_selector' before click/type only when readiness is not already guaranteed and the wait serves a concrete reliability purpose.

    • Always close opened block structures (e.g. 'if', 'while', 'repeat', 'foreach') with a corresponding 'end' action step.

  5. SOURCE AND EXTRACTION:

    • When the user does not specify a source, choose one that directly represents the requested data rather than fetching a broad unrelated dataset and filtering it afterward.

    • Prefer structured first-party/public APIs when they provide the required information reliably.

    • Final task outputs belong in the task's 'extractionScript' field. Do not model final output fields as task variables.

    • Final result table parsing and final structured extraction must be implemented in 'extractionScript'; JavaScript action blocks are not a substitute for the final extraction script.

    • When extracting lists, return consistently structured records and remove obvious duplicates when appropriate.

  6. DYNAMIC VALUES:

    • Values that depend on execution time, such as 'today', 'last 7 days', or 'past 90 days', must remain dynamic.

    • Do not hard-code the date observed while creating the task unless the user explicitly requests a fixed date.

  7. TARGET SELECTOR RESOLUTION (FOLATE):

    • Always use Folate when finding selectors instead of guessing or fabricating CSS/XPath selectors from memory.

    • When you have page HTML (e.g. from an execution with 'includeHtml: true' or 'get_content'), call 'folate_resolve' (POST /api/folate/resolve) to ground a natural-language element description into ranked CSS/XPath selectors; use 'folate_status' (GET /api/folate/status) to verify Folate availability.

    • When page HTML is not yet available, pass a natural-language element description (or explicit 'folate:' / 'ai:' prefix) in the action's 'selector' (or 'targetSelector') field so Figranium resolves it via Folate at runtime.

    • Explicit CSS selectors, XPath, ARIA roles, Playwright selectors, or coordinates ('x,y') are also supported when exact selectors are already known or returned by 'folate_resolve'.

    • For nested elements, check whether they reside inside Shadow DOMs and set 'includeShadowDom' appropriately.

  8. USER INTENT:

    • Preserve intentional ambiguity when it represents a reasonable implementation choice.

    • Do not invent unnecessary requirements, but make sensible implementation decisions when needed to complete the task.

  9. EXECUTION HANDLING & MONITORING:

    • Execute tasks via 'task_execute', passing only genuine input variable overrides.

    • Runtime/transient state that is created mid-task should normally be created or updated with Set Variable rather than predeclared as a task input.

    • Track executions using 'execution_list' or stream results. If an execution or its result is wrong, inspect the task, fix the relevant source/action/selector/extraction logic, and retry. =========================================

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
template_searchC

Search the Figranium v0.20 template catalog with pagination.

template_getB

Retrieve the full template workflow and README by UUID.

create_taskA

Create a complete, fully-configured Figranium automation task including sequential action steps, state variables, anti-bot stealth mechanisms, and optional scheduling.

!!! IMPORTANT GUIDELINES FOR LLM AGENTS !!!

  1. VARIABLE TEMPLATING SYNTAX: You MUST use {$variable_name} (with a single curly brace and dollar sign, e.g. {$myVar}) for variable references/templating inside action values, URLs, headers, or body fields. NEVER use double curly braces like {{variable_name}} or JavaScript-style templates like ${variable_name}, as these syntaxes are unsupported and will cause execution failures.

  2. TASK VALIDATION: Newly created or updated tasks are ordinarily intended to be validated against a real execution result so configuration, selectors, and extracted output can be checked.

  3. MODE SELECTION: Use agent mode by default, including for scraping tasks. scrape mode does not support action blocks and should be used only when extremely fast, action-free scraping is required.

  4. WORKFLOW BOUNDARIES: Timed Wait and Navigate To cannot be the first action. A fixed initial delay belongs in task-level wait, and the initial destination belongs in task-level url. Get Content cannot be the final action because its value needs a consuming action; use extractionScript for final structured output.

1. Purpose

Use this tool when you need to automate any recurring or complex web-based workflows, including data extraction (scraping), automated form-filling, dashboard testing, or dynamic visual monitoring. Tasks are stored permanently in Figranium and can be executed ad-hoc, triggered via API, or scheduled.

2. Execution Model

Figranium tasks run as a linear sequence of steps defined in the 'actions' array. Actions are processed in order from top to bottom. Control flow steps (such as 'if', 'while', 'repeat') allow loops and branching, while 'on_error' steps define fallback behaviors. Variables represent the state and can be updated dynamically during execution. Ensure all opened block structures (such as 'if', 'while', 'repeat', 'foreach') are closed with an 'end' action step.

3. Comprehensive Step Types

  • 'navigate': Redirect browser to a new URL specified in the 'value' field.

  • 'wait': Pause execution for N seconds specified in the 'value' field.

  • 'wait_selector': Pause until the DOM element matching 'selector' is rendered.

  • 'click': Simulate a single, double, or right click on the element matching 'selector'; set 'clickType' to 'double' or 'right' when needed.

  • 'check' / 'uncheck': Idempotently set the checked state of a checkbox or radio control matching 'selector'.

  • 'drag_and_drop': Drag from 'selector' to the required 'targetSelector'.

  • 'reload': Reload the current page and wait for DOM content to load.

  • 'select': Choose an option from a native select using 'selector' and its option 'value'.

  • 'type': Type the 'value' into the 'selector' input element. Use 'typeMode' to clear/replace or append.

  • 'hover': Move mouse pointer to the element matching 'selector'.

  • 'press': Press a specific keyboard key (e.g., 'Enter') specified in the 'key' field.

  • 'scroll': Scroll the page or target element to a specific coordinate or direction.

  • 'javascript': Execute custom JavaScript on the page. Stored in 'value', outputs can be saved to 'varName'.

  • 'screenshot': Capture and save a screenshot.

  • 'http_request': Perform direct API requests.

  • 'if', 'else', 'end': Conditional blocks based on variables.

  • 'while', 'repeat', 'foreach': Looping blocks.

  • 'stop': Halt task execution.

  • 'set': Set or update a task variable.

  • 'solve_captcha': Attempt to automatically solve a detected CAPTCHA challenge.

  • 'wait_captcha': Pause until a CAPTCHA challenge is initialized/ready without solving it.

  • 'upload': Attach the newest unuploaded file, ZIP, or folder from a Cabinet (see 'cabinetId') to a file input, chooser, or drop target matching 'selector'.

  • 'finalize_uploads': Mark all Cabinet items attached during the execution as uploaded.

4. Selector Strategy & Folate Resolution

When finding selectors for a task, use Folate instead of guessing brittle CSS/XPath selectors:

  1. Call 'folate_resolve' with the page HTML (for example, from an execution with 'includeHtml: true' or 'get_content') to resolve a natural-language query into ranked CSS/XPath selectors.

  2. Or pass a natural-language description (e.g., 'click Sign In button', or prefixed with 'folate:' / 'ai:') directly in 'selector' / 'targetSelector' for automatic runtime resolution via Folate.

  3. When exact selectors are already known or returned by 'folate_resolve', unique IDs/data attributes ('#submit-button', '[data-testid="login"]'), ARIA roles ('[aria-label="Search"]'), CSS classes, XPath, or coordinates ('x,y') are also supported. Fallback: If an element might be missing or slow to load, wrap the interaction inside an 'if' block evaluating a variable or use 'on_error' to catch failure.

5. Edge Cases & Retry Logic

  • Timeouts: Wait-selectors have a default timeout. Ensure critical steps use 'wait_selector' first to avoid clicking non-existent elements.

  • Stealth: Turning on options like 'naturalTyping', 'cursorGlide', and 'allowTypos' simulates authentic human speed and rhythm to prevent anti-bot blocking on protected sites.

  • Browser state: Set 'cookieStateId' to a preexisting named state ID to reuse cookies, to null for a fresh state, or omit it for the instance default. 'statelessExecution' is a deprecated legacy flag.

6. Complex Real-World Multi-Step JSON Example:

{
  "name": "HackerNews Custom Scraper",
  "url": "https://news.ycombinator.com",
  "mode": "agent",
  "wait": 3,
  "rotateUserAgents": true,
  "stealth": {
    "allowTypos": true,
    "cursorGlide": true,
    "naturalTyping": true
  },
  "actions": [
    {
      "type": "wait_selector",
      "selector": ".hnname"
    },
    {
      "type": "click",
      "selector": "a.hnmore"
    },
    {
      "type": "wait",
      "value": "2"
    },
    {
      "type": "javascript",
      "value": "return Array.from(document.querySelectorAll('.athing')).map(tr => ({ id: tr.id, title: tr.querySelector('.titleline > a')?.innerText, href: tr.querySelector('.titleline > a')?.href }));",
      "varName": "hn_stories"
    },
    {
      "type": "navigate",
      "value": "https://httpbin.org/post"
    },
    {
      "type": "wait_selector",
      "selector": "pre"
    },
    {
      "type": "javascript",
      "value": "console.log('Finished scraping and navigated successfully.');"
    }
  ],
  "variables": {},
  "extractionFormat": "json"
}
task_updateA

Update one or more fields on an existing, saved Figranium browser-automation task.

When to use

Use this after task_list identifies the task to modify—for example, to correct its name or URL, replace its action sequence, change input variables, adjust stealth settings, or revise its extraction script or schedule. The task remains stored under the same taskId and is not executed by this operation.

Required request shape

  • taskId is required and must be the ID of an existing task.

  • Include at least one additional field. An ID-only request is rejected because it would make no change.

  • Every other field is optional: omitted fields are left unchanged.

  • Repeating the same request is safe and produces the same stored configuration.

Important update behavior

  • For compound fields—actions, variables, stealth, translation, and schedule—send complete values, not nested fragments. When changing either actions or variables, ALWAYS supply BOTH complete fields together. An incomplete pair is rejected before saving to prevent accidentally clearing the existing workflow.

  • actions are an ordered replacement sequence. Use agent mode for actions; scrape mode does not support them. Close every if, while, repeat, or foreach block with an end action.

  • A replacement sequence cannot start with Timed Wait or Navigate To: use task-level wait or url to establish the starting state. It also cannot end with Get Content: feed that value into a later action, or use extractionScript for final output.

  • Use {$variable_name} for task-variable references in URLs, headers, bodies, and action values. Do not use {{variable_name}} or ${variable_name}.

  • This tool changes saved configuration but does not run or delete a task. Use task_execute to validate an updated workflow and task_delete only when permanent removal is intended.

Examples

Rename a task: { "taskId": "task_101", "name": "Daily lead extractor" }.

Replace its workflow and output extraction: { "taskId": "task_101", "actions": [{ "type": "wait_selector", "selector": "[data-testid='results']" }], "extractionScript": "return document.title" }.

task_deleteA

Permanently delete a Figranium task by taskId.

task_listA

List all task IDs, names, and descriptions from Figranium.

task_executeA

Execute a saved automation task by ID and return its real run result. This is also useful for validating newly created or updated tasks against actual browser behavior and output.

execution_listA

List a summary of all past execution records.

schedule_listA

List all tasks that have schedules configured (enabled or not).

schedule_get_all_statusA

Get overall scheduler status and metadata for all schedules.

schedule_get_statusA

Get the detailed schedule status, cron configuration, and next run time for a specific task.

schedule_setB

Create or update a schedule for a specific task.

schedule_deleteB

Disable and remove the schedule configuration from a specific task.

schedule_describeA

Validate and preview/describe a schedule configuration without saving it.

list_cabinetsA

List all Cabinets (durable download queues) configured on the Figranium server, including their IDs, names, and item counts. Use this to find a Cabinet ID to reference in a Task's 'downloadCabinetId' field or an 'upload' action.

create_cabinetA

Create a new Cabinet (durable download queue) on the Figranium server.

folate_resolveA

Resolve a natural-language element description against page HTML into ranked CSS/XPath selectors using Figranium's Folate endpoint (POST /api/folate/resolve). Use this instead of guessing brittle selectors or launching a headful browser session.

folate_statusA

Check whether the Folate neural DOM element ranker is available on the Figranium server (GET /api/folate/status).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Figranium Task JSON Schema v1Exposes the full annotated JSON Schema of a Figranium task so agents can inspect the full specification directly.
Figranium Agent SpecificationExposes the complete Figranium Agent Specification (AGENT_SPEC.md) containing task schema, action types, variable templating, and control flow guides for AI agents.

TDQS

A3.6/5.0

Scored across 18 tools

Disambiguation4/5

Most tools map to distinct resource+action pairs (task, schedule, template, folate, cabinet, execution). A few pairs could be confused—such as schedule_list vs. schedule_get_all_status, both of which return information about all scheduled tasks—but descriptions mostly clarify the boundaries.

Naming Consistency3/5

The majority of tools use a noun_verb pattern (task_execute, template_search, schedule_list), but create_task, create_cabinet, and list_cabinets use verb_noun, mixing conventions across the same resource domains. All names are readable and use snake_case, but the pattern is not uniform.

Tool Count4/5

With 18 tools spanning tasks, schedules, templates, folate resolution, cabinets, and executions, the count is slightly heavy but each group covers a real subdomain. It is reasonably scoped for a full browser-automation server.

Completeness3/5

Task lifecycle is mostly covered (create, update, delete, list, execute), and schedules are well served. However, there is no task_get to retrieve a full existing task configuration, no execution detail retrieval beyond a summary list, and cabinets lack get/delete operations—notable gaps that could hinder safe updates and inspection.

Maintenance

ActivityNo data
ResponsivenessOutdated data