action_new
Create a new API endpoint: generate an action folder with main.py and a module file, optionally public or private.
Instructions
Create a new API endpoint. Creates the action folder with main.py and module file.
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": {
"endpoint": "<endpoint>"
},
"name": "action_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public | No | Whether the action is public (API endpoint). Defaults to true. Set false for private actions (e.g. init package). | |
| endpoint | Yes | The endpoint path: 'name' (uses v1 package) or 'package/name' |