fileforge_scrape_action
Extract structured content from pages, tabs, or sites—text, links, tables, metadata, assets, and design tokens—to store, query, or compare results for analysis.
Instructions
Extract structured content from pages, tabs or a whole site: text, links, tables, metadata, assets and design tokens. Prefer query_scrape; the others are older single-purpose actions. It can't click or submit; use fileforge_page_interaction for that. crawl_site opens real tabs in your signed-in session, up to 50 pages by default. Query stored links and tables with fileforge_sql_action. Needs the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL. Omit to use the active tab where the action allows it. | |
| urls | No | URLs to process. | |
| query | No | Sections to return and their options. Takes priority over preset. Sections: page, metadata, headings, sections, links, images, assets, tables, jsonLd, article, contacts, pricing, products, contentQuality, warnings, summary, snapshot. | |
| store | No | Save the result in ~/.fileforge and return a ref. | |
| tabId | No | Tab ID, or "active" for the active tab. | active |
| action | Yes | What to do. Required parameters are in brackets. query_scrape: GraphQL-style projection over page content (presets + custom queries). compare_scrape_snapshots (beforeSnapshotId, afterSnapshotId): Diff two stored scrape snapshots by ID. scrape_page: Scrape sections of a single page. extract_assets: Extract assets (images, videos, files) from a page. extract_tables: Extract tables from the active or specified page. extract_contacts: Extract email/phone/address contact data. extract_metadata: Extract page metadata (title, OG, JSON-LD). extract_design_tokens: Extract colors, fonts, and design tokens. extract_all_debug: Extract everything (debug only — large payload). scrape_tabs (tabIds): Scrape multiple tabs. scrape_urls (urls): Open and scrape a list of URLs. crawl_site (url): Crawl a site up to maxPages. research_site (url): Research a site (multi-step crawl + extract). analyze_site (url): Analyze a site. extract_resource (url): Fetch a specific page resource. | |
| preset | No | Named set of query modules. | |
| source | No | What to scrape: { url } or { tabId }. Defaults to the active tab. | |
| tabIds | No | Tab IDs to act on. | |
| project | No | Project name that groups stored results. | default |
| maxPages | No | Maximum pages to visit. | |
| sections | No | Page sections to scrape. Defaults to all of them. | |
| afterSnapshotId | No | ID of the later snapshot. | |
| beforeSnapshotId | No | ID of the earlier snapshot. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | False if the action failed or a check did not pass. | |
| ref | No | Stored result ID, for fileforge_result_action. | |
| data | No | The result. Its shape depends on the action. | |
| meta | No | Tool, action and context. | |
| error | No | Failure code and message. | |
| warnings | No | Notes about a call that still ran. |