Create a function draft
create_function_draftCreate a new, empty function draft with a name and a description of what it should do. It has no code and does nothing until its code is written (generate_function_code, or by the owner in the site's settings) and it is deployed. Its address slug comes from the name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, e.g. "Quote calculator" | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| description | Yes | What the function should do |