AACFlow

Supabase

Use Supabase database

Usage Instructions

Integrate Supabase into the workflow. Supports database operations (query, insert, update, delete, upsert), full-text search, RPC functions, row counting, vector search, and complete storage management (upload, download, list, move, copy, delete files and buckets).

Tools

supabase_query

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to query from (default: public). Use this to access tables in other schemas.
selectstringNoNo description
filterstringNoPostgREST filter (e.g., "id=eq.123")
orderBystringNoNo description
limitnumberNoNo description
offsetnumberNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of records returned from the query

supabase_insert

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to insert into (default: public). Use this to access tables in other schemas.
dataarrayYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of inserted records

supabase_get_row

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to query from (default: public). Use this to access tables in other schemas.
selectstringNoNo description
filterstringYesPostgREST filter to find the specific row (e.g., "id=eq.123")
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray containing the row data if found, empty array if not found

supabase_update

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to update in (default: public). Use this to access tables in other schemas.
filterstringYesPostgREST filter to identify rows to update (e.g., "id=eq.123")
dataobjectYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of updated records

supabase_delete

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to delete from (default: public). Use this to access tables in other schemas.
filterstringYesPostgREST filter to identify rows to delete (e.g., "id=eq.123")
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of deleted records

supabase_upsert

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to upsert into (default: public). Use this to access tables in other schemas.
dataarrayYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of upserted records

supabase_count

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to count from (default: public). Use this to access tables in other schemas.
filterstringNoPostgREST filter (e.g., "status=eq.active")
countTypestringNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
countnumberNumber of rows matching the filter

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
tablestringYesNo description
schemastringNoDatabase schema to search in (default: public). Use this to access tables in other schemas.
columnstringYesNo description
querystringYesNo description
searchTypestringNoNo description
languagestringNoNo description
limitnumberNoNo description
offsetnumberNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of records matching the search query

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
functionNamestringYesThe name of the PostgreSQL function that performs vector search (e.g., match_documents)
queryEmbeddingarrayYesNo description
matchThresholdnumberNoNo description
matchCountnumberNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of records with similarity scores from the vector search. Each record includes a similarity field (0-1) indicating how similar it is to the query vector.

supabase_rpc

Input

ParameterTypeRequiredDescription
projectIdstringYesYour Supabase project ID (e.g., jdrkgepadsdopsntdlom)
functionNamestringYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsjsonResult returned from the function

supabase_introspect

Introspect Supabase database schema to get table structures, columns, and relationships

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
schemastringNoDatabase schema to introspect (defaults to all user schemas, commonly "public")
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
tablesarrayArray of table schemas with columns, keys, and indexes
namestringTable name
schemastringDatabase schema name
columnsarrayArray of column definitions
namestringColumn name
typestringColumn data type
nullablebooleanWhether the column allows null values
defaultstringDefault value for the column
isPrimaryKeybooleanWhether the column is a primary key
isForeignKeybooleanWhether the column is a foreign key
referencesobjectForeign key reference details
tablestringReferenced table name
columnstringReferenced column name
primaryKeyarrayArray of primary key column names
foreignKeysarrayArray of foreign key relationships
columnstringLocal column name
referencesTablestringReferenced table name
referencesColumnstringReferenced column name
indexesarrayArray of index definitions
namestringIndex name
columnsarrayColumns included in the index
uniquebooleanWhether the index enforces uniqueness
schemasarrayList of schemas found in the database

supabase_storage_upload

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
fileNamestringYesThe name of the file (e.g., "document.pdf", "image.jpg")
pathstringNoOptional folder path (e.g., "folder/subfolder/")
fileDatajsonYesFile to upload - UserFile object (basic mode) or string content (advanced mode: base64 or plain text). Supports data URLs.
contentTypestringNoMIME type of the file (e.g., "image/jpeg", "text/plain")
upsertbooleanNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsobjectUpload result including file path, bucket, and public URL
idstringUnique identifier for the uploaded file
pathstringPath to the uploaded file within the bucket
fullPathstringFull path including bucket name

supabase_storage_download

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
pathstringYesThe path to the file to download (e.g., "folder/file.jpg")
fileNamestringNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files

supabase_storage_list

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
pathstringNoNo description
limitnumberNoNo description
offsetnumberNoNo description
sortBystringNoNo description
sortOrderstringNoNo description
searchstringNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of file objects with metadata
idstringUnique file identifier
namestringFile name
bucket_idstringBucket identifier the file belongs to
ownerstringOwner identifier
created_atstringFile creation timestamp
updated_atstringLast update timestamp
last_accessed_atstringLast access timestamp
metadataobjectFile metadata including size and MIME type
sizenumberFile size in bytes
mimetypestringMIME type of the file
cacheControlstringCache control header value
lastModifiedstringLast modified timestamp
eTagstringEntity tag for caching

supabase_storage_delete

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
pathsarrayYesArray of file paths to delete (e.g., ["folder/file1.jpg", "folder/file2.jpg"])
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of deleted file objects
namestringName of the deleted file
bucket_idstringBucket identifier
ownerstringOwner identifier
idstringUnique file identifier
updated_atstringLast update timestamp
created_atstringFile creation timestamp
last_accessed_atstringLast access timestamp

supabase_storage_move

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
fromPathstringYesThe current path of the file (e.g., "folder/old.jpg")
toPathstringYesThe new path for the file (e.g., "newfolder/new.jpg")
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsobjectMove operation result
messagestringOperation status message

supabase_storage_copy

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
fromPathstringYesThe path of the source file (e.g., "folder/source.jpg")
toPathstringYesThe path for the copied file (e.g., "folder/copy.jpg")
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsobjectCopy operation result
messagestringOperation status message

supabase_storage_create_bucket

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
isPublicbooleanNoNo description
fileSizeLimitnumberNoNo description
allowedMimeTypesarrayNoArray of allowed MIME types (e.g., ["image/png", "image/jpeg"])
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsobjectCreated bucket information
namestringCreated bucket name

supabase_storage_list_buckets

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsarrayArray of bucket objects
idstringUnique bucket identifier
namestringBucket name
ownerstringOwner identifier
publicbooleanWhether the bucket is publicly accessible
created_atstringBucket creation timestamp
updated_atstringLast update timestamp
file_size_limitnumberMaximum file size allowed in bytes
allowed_mime_typesarrayList of allowed MIME types for uploads

supabase_storage_delete_bucket

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
resultsobjectDelete operation result
messagestringOperation status message

supabase_storage_get_public_url

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
pathstringYesThe path to the file (e.g., "folder/file.jpg")
downloadbooleanNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
publicUrlstringThe public URL to access the file

supabase_storage_create_signed_url

Input

ParameterTypeRequiredDescription
projectIdstringYesNo description
bucketstringYesNo description
pathstringYesThe path to the file (e.g., "folder/file.jpg")
expiresInnumberYesNo description
downloadbooleanNoNo description
apiKeystringYesNo description

Output

ParameterTypeDescription
messagestringOperation status message
signedUrlstringThe temporary signed URL to access the file

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started