add-template
Create reusable Todoist templates from a project, CSV, or blank draft; preview and edit the draft before saving.
Instructions
Create a reusable template in the user's Todoist: from a project, like the app's "Save as template"; from CSV content; or from scratch, starting from a blank draft. By default it only returns the draft. Show it to the user and ask whether to change anything, even when they described the whole template, unless they asked to save as is. Then save with preview: false, and content if it was edited. Each save creates a new template, which cannot be deleted here.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name of the template. Required to save. | |
| color | No | Color for the entity. Accepts a color key (e.g. "berry_red") or display name (e.g. "Berry Red"). Valid colors: berry_red, red, orange, yellow, olive_green, lime_green, green, mint_green, teal, sky_blue, light_blue, blue, grape, violet, lavender, magenta, salmon, charcoal, grey, taupe. Unrecognized colors are omitted. Defaults to the project's color, or charcoal. | |
| content | No | The draft to save with preview: false, all of it: a draft with your edits, or one written from scratch. Anything left out isn't saved. With projectId, it replaces the project's content. | |
| preview | No | Defaults to true: return the draft without saving (blank, or from the project or CSV), to show the user and edit it first. Pass false only once the user has seen the draft, or asked to save as is. | |
| projectId | No | Start from this project, like the app's "Save as template". It is copied, not changed. | |
| workspace | No | Workspace name or ID to save the template to, instead of the user's personal templates. Assignees are kept only when saving a project to its own workspace. | |
| description | No | Required to save. If the user gave none, write a one-sentence summary of the content. | |
| csvFileContent | No | Start from this CSV, e.g. from export-project or a file the user shared. Not with projectId. | |
| sharedWithWorkspaceMembers | No | Share a workspace template with the workspace's members. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| content | No | The draft. Edit it and send it back as `content` to save it. | |
| templateId | No | Absent for a draft. | |
| workspaceId | No | Absent for personal templates. | |
| workspaceError | No | Set when the template was created but moving or sharing it failed. |