add_subtask
Add a new task (node) to a Nodeon project. Use this when work is discovered while building — for example, implementing auth reveals a needed password reset flow. The new node starts as 'todo'; connect it to existing nodes (via depends_on) so it appears in the build sequence. Pass type 'custom' with custom_type_label to create a node with your own type name (e.g. 'API', 'Model', 'Infra'). Returns the created node and how many dependency edges were wired.
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": {
"project_id": "<project_id>",
"title": "<title>",
"type": "<type>"
},
"name": "add_subtask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The node type: 'screen' for pages/views, 'feature' for capabilities, 'logic' for rules and flow, 'data' for models and schemas — or 'custom' for your own type, paired with custom_type_label. | |
| title | Yes | A short, descriptive title for the task. | |
| depends_on | No | Node IDs this new task depends on. The new task won't be available until these are complete. | |
| project_id | Yes | The project ID. | |
| description | No | A longer description of what this node should do. Be specific — this becomes the spec your agent builds from. | |
| custom_type_color | No | Optional when type is 'custom': the type's colour as a 6-digit hex string like '#df9ef5'. Defaults to a violet-pink; ignored for preset types. | |
| custom_type_label | No | Required when type is 'custom': the name of your custom type, e.g. 'API', 'Model', 'Infra' (max 32 characters). Ignored for preset types. |