create-function
Create edge functions for Deno runtime by writing code to files for version control, enabling serverless execution in production cloud infrastructure.
Instructions
Create a new edge function that runs in Deno runtime. The code must be written to a file first for version control
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>",
"codeFile": "<codeFile>"
},
"name": "create-function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | No | ||
| description | No | ||
| status | No | active | |
| codeFile | Yes | Path to JavaScript file containing the function code. Must export: module.exports = async function(request) { return new Response(...) } |