Skip to main content
Tools for the script’s backend: list, create from templates, deploy and test functions.

list_functions

List functions. The script’s backend functions.
Read only: changes nothing. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)

What it calls in the API

Por baixo, a ferramenta usa GET /scripts/{script_id}/functions da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

create_function

Create function from template. Writes supabase/functions/<name>.js from a template (hello, save, ai, access). Then use deploy_functions.
Writes or changes script data. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)
string
required
Name (a-z, 0-9, - and _)
string
required
Template Values: hello, save, ai, access.
string
required
head_sha of main

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/repo/commits da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

deploy_functions

Deploy functions. Deploys the backend from the main branch.
Writes or changes script data. Destructive action: review in your AI client before confirming. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/deploy da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

test_function

Test function. Calls the function as you; body becomes request.body.
Writes or changes script data. Destructive action: review in your AI client before confirming. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)
string
required
Name
object
—

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/functions/{name} da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example