# extract

`station__vigilbrowser__extract` · external (needs EXECUTION_BACKEND_URL configured) · domain `vigilbrowser` · pv-relevance `non-pv`

Structured scrape from the session's current page. Modes: text | list | html | attribute | table. Example: extract({"session_id": "...", "selector": "table.results", "mode": "table"}).

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `session_id` *string* (required) — Session id
- `selector` *string* (required) — CSS selector scoping the extraction
- `mode` *string* (required) — text | list | html | attribute | table
- `attribute` *string* — Attribute name (only when mode=attribute)

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__vigilbrowser__extract",
    "arguments": {
      "session_id": "",
      "selector": "",
      "mode": ""
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/vigilbrowser__extract](/tools/vigilbrowser__extract) — HTML page
- [/tools/vigilbrowser__extract/json](/tools/vigilbrowser__extract/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
