fileforge_sql_action
Query FileForge stored results with SELECT-only SQL: list tables, inspect schemas, read rows, and export query output to CSV, JSON, or Markdown.
Instructions
Query FileForge's stored results with SELECT-only SQL. Use list_tables and describe_table to see the schema, query to read rows, and export_query to write rows to a file. Covers saved results and scraped pages, links and tables, not the live browser. Use fileforge_result_action to fetch a single known ref. Works without the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional result ref to scope the query | |
| limit | No | Maximum items to return. | |
| query | No | SQL SELECT statement | |
| table | No | SQL table name. | |
| action | Yes | What to do. Required parameters are in brackets. list_tables: List all available SQL tables. describe_table (table): Describe the columns and schema of a table. query (query): Run a SQL SELECT query against stored data. export_query (query): Run a SQL query and export the results to a file. | |
| format | No | Output format. | csv |
| offset | No | Items to skip, for paging. | |
| filename | No | Output filename. |
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. |