add-task
Enables adding tasks to a Todo.txt file with structured details like priority, contexts, and projects using a specified input format.
Instructions
Add a new task to the todo list. Description must be plain text. Priority must be a single uppercase letter (A-Z). Contexts must start with @, projects with +.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contexts | No | ||
| description | Yes | ||
| extensions | No | ||
| priority | No | ||
| projects | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"contexts": {
"items": {
"pattern": "^@\\w+$",
"type": "string"
},
"type": "array"
},
"description": {
"maxLength": 200,
"minLength": 1,
"pattern": "^[^\\n\\r]+$",
"type": "string"
},
"extensions": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"priority": {
"pattern": "^[A-Z]$",
"type": "string"
},
"projects": {
"items": {
"pattern": "^\\+\\w+$",
"type": "string"
},
"type": "array"
}
},
"required": [
"description"
],
"type": "object"
}