task_create
Create and save a new OKF Todo task from a title and stable task type code, with optional deadline, owner, tags, and priority. Returns the saved task.
Instructions
Create an OKF Todo task and return the saved task. Lookup inputs use stable codes, not display names.
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": {
"title": "<title>",
"taskTypeCode": "<taskTypeCode>"
},
"name": "task_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional HTML task body. | |
| tags | No | Optional plain-string tags. | |
| owner | No | Optional task owner. | |
| title | Yes | Task title. | |
| deadline | No | Optional deadline in ISO 8601 form. | |
| sourceUrl | No | Optional source URL. | |
| taskListId | No | Optional explicit task-list ID. When omitted, OKF Todo applies its documented list-resolution rule. | |
| responsible | No | Optional person responsible for the task. | |
| taskTypeCode | Yes | Stable task type code, for example REQUEST or ERROR. | |
| contextTaskId | No | Optional existing/source/related/parent task ID used to infer list ownership when taskListId is omitted. | |
| bodyFormatCode | No | Stable body format code. Defaults to HTML. | HTML |
| taskSourceCode | No | Optional stable source code. | |
| sourceReference | No | Optional source reference. | |
| taskPriorityCode | No | Optional stable priority code. | |
| activeWaitingForLabel | No | Optional waiting-for label. Supplying it places the task in waiting state. |