utils_get_colors
Retrieve available color options for customizing Todoist projects, labels, and filters to organize tasks visually.
Instructions
Get available colors for projects, labels, filters in Todoist
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/utils.ts:7-22 (handler)Handler function that returns a formatted string list of available Todoist colors including ID, name, and hex code.async () => { const colors = [ { id: 30, name: 'berry_red', hex: '#B8255F' }, { id: 31, name: 'red', hex: '#DC4C3E' }, { id: 32, name: 'orange', hex: '#C77100' }, { id: 33, name: 'yellow', hex: '#B29104' }, { id: 34, name: 'olive_green', hex: '#949C31' }, { id: 35, name: 'lime_green', hex: '#65A33A' }, { id: 36, name: 'green', hex: '#369307' }, { id: 37, name: 'mint_green', hex: '#42A393' }, { id: 38, name: 'teal', hex: '#148FAD' }, { id: 39, name: 'sky_blue', hex: '#319DC0' }, ]; return colors.map(color => `ID: ${color.id}, ${color.name}, (${color.hex})`).join('. '); }
- src/tools/utils.ts:3-23 (registration)Registration of the utils_get_colors tool using createHandler from '../utils/handlers.js', with empty input schema.createHandler( 'utils_get_colors', 'Get available colors for projects, labels, filters in Todoist', {}, async () => { const colors = [ { id: 30, name: 'berry_red', hex: '#B8255F' }, { id: 31, name: 'red', hex: '#DC4C3E' }, { id: 32, name: 'orange', hex: '#C77100' }, { id: 33, name: 'yellow', hex: '#B29104' }, { id: 34, name: 'olive_green', hex: '#949C31' }, { id: 35, name: 'lime_green', hex: '#65A33A' }, { id: 36, name: 'green', hex: '#369307' }, { id: 37, name: 'mint_green', hex: '#42A393' }, { id: 38, name: 'teal', hex: '#148FAD' }, { id: 39, name: 'sky_blue', hex: '#319DC0' }, ]; return colors.map(color => `ID: ${color.id}, ${color.name}, (${color.hex})`).join('. '); } );
- src/tools/utils.ts:6-6 (schema)Empty input schema for the utils_get_colors tool.{},