Deploy an edge function
functions.deployCreate or replace an edge function (Deno, TypeScript). Pass source for a single file, or files (path -> source) with an entrypoint. It is served at /functions/v1/. Scope: functions:write.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "functions.deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name: letters, digits, - and _ | |
| files | No | Multi-file deploy: {"path": "source"} | |
| branch | No | Branch (environment) id. Optional: defaults to `production`. | |
| source | No | The entrypoint module's source (index.ts) | |
| entrypoint | No | Entrypoint inside files, default index.ts | |
| import_map | No | Inline import map | |
| project_id | No | Project id. Optional: defaults to the project created or used last in this session, or the only one. | |
| verify_jwt | No | Require a valid JWT to call it (default true) | |
| organization_id | No | Organization id. Optional: defaults to the token's organization, or the only one you belong to. |