Supabase
Select rows with safely quoted structured filters, insert/upsert/update and RPC (agents opt-in), file list/download/upload, deletes and signed URLs node only
Beta v0.1.0 Node.js Wasm 16 actions
About
A Graphrt plugin for one Supabase project: table rows through the Data API (PostgREST) and files through Supabase Storage. Filters are structured and safely encoded, so values can never inject PostgREST operators or extra conditions. It is built with the declarative REST layer (definition.mjs).
What it can do
- Rows: select_rows (filters, columns incl. related tables, order, limit/cursor paging), insert_rows, upsert_rows (merge or ignore duplicates, on_conflict), update_rows and delete_rows (node only), both requiring at least one filter
- Functions: call_function (RPC POST /rest/v1/rpc/<name> with named arguments)
- Per-user mode for chatbots: SUPABASE_TOOL_MODE=user_rpc makes call_function the only agent tool and sends each call as the end user (their JWT from the agent's tool_context), so one plugin process serves many users (Multi-user chatbots)
- Schema: get_api_schema (OpenAPI of the exposed tables and functions, needs a secret or service_role key since Supabase removed anon access in February 2026)
- Storage: list_buckets, get_bucket, list_objects, get_object_info, download_object (into SUPABASE_DOWNLOAD_DIR), upload_object, delete_objects (node only), create_signed_url (node only)
- api_request: any other project endpoint (agents: GET only, /rest/v1 and Storage reads only)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Get Data API schema
supabase.get_api_schema - Select rows
supabase.select_rows - Insert rows
supabase.insert_rows - Upsert rows
supabase.upsert_rows - Update rows
supabase.update_rows - Delete rows
supabase.delete_rows - Call database function
supabase.call_function - List buckets
supabase.list_buckets - Get bucket
supabase.get_bucket - List objects
supabase.list_objects
Show all 16 actions
- Get object info
supabase.get_object_info - Download object
supabase.download_object - Upload object
supabase.upload_object - Delete objects
supabase.delete_objects - Create signed URL
supabase.create_signed_url - Supabase project API (Data API /rest/v1, Storage /storage/v1) request
supabase.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
SUPABASE_URLRequiredProject URL: https://<project-ref>.supabase.co, a custom https domain, or http://127.0.0.1:54321 locally. Origin only (no /rest/v1). -
SUPABASE_KEYRequiredAPI key, sent as apikey: a publishable key (sb_publishable_...) or secret key (sb_secret_...), legacy anon/service_role JWTs also work (they are sent as Bearer too). -
SUPABASE_USER_JWTOptionalA signed-in user's access token, sent as Authorization: Bearer, so row level security sees that user -
SUPABASE_TOOL_ALLOW_WRITESOptional1 lets agent tools insert, upsert, update, upload and call functions -
SUPABASE_DOWNLOAD_DIRFor downloadsAbsolute directory for download_object -
SUPABASE_UPLOAD_DIRFor local uploadsDirectory that local upload_object files must be inside (https URLs work without it) -
SUPABASE_TOOL_API_EXTRA_PATHSOptionalMore read paths for agent api_request, comma-separated, * = one segment -
SUPABASE_TOOL_MODEOptionaldefault, or user_rpc for multi-user chatbots -
SUPABASE_TOOL_RPC_ALLOWLISTIn user_rpcFunctions the call_function tool may call, comma-separated (e.g. get_balance,list_orders), others are refused. Unset: any function in the default mode, none in user_rpc -
SUPABASE_TOOL_TIMEOUT_MSOptionalDeadline of one call_function tool call, 1000-120000 (default 30000) -
SUPABASE_TOOL_MAX_ROWSOptionalArray results of the call_function tool are cut to this many rows, with a note to the model, 1-1000 (default 100)
How to use it
In Graphrt Desktop
- Open Plugins and search for Supabase.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install supabase workflow.yaml
- id: open_todos
type: supabase.select_rows
table: todos
columns: id,title,owner:profiles(name)
filters: [{ column: status, operator: eq, value: open }]
order: created_at.desc
limit: 20
- id: close
type: supabase.update_rows
table: todos
values: { status: done }
filters: [{ column: id, operator: eq, value: "{{#open_todos.data.0.id#}}" }]