KosmoKrator

productivity

Microsoft To Do CLI for AI Agents

Use the Microsoft To Do CLI from KosmoKrator to call Microsoft To Do tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 5 read 2 write Manual OAuth token auth

Microsoft To Do CLI Setup

Microsoft To Do can be configured headlessly with `kosmokrator integrations:configure microsoft_todo`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure microsoft_todo --set access_token="$MICROSOFT_TODO_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor microsoft_todo --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token MICROSOFT_TODO_ACCESS_TOKEN Secret secret yes Access Token
url MICROSOFT_TODO_URL URL url no Microsoft Graph URL

Call Microsoft To Do Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call microsoft_todo.todo_list_lists '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:microsoft_todo todo_list_lists '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs microsoft_todo --json
kosmo integrations:docs microsoft_todo.todo_list_lists --json
kosmo integrations:schema microsoft_todo.todo_list_lists --json
kosmo integrations:search "Microsoft To Do" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Microsoft To Do.

microsoft_todo.todo_list_lists

Read read

List all Microsoft To Do task lists for the authenticated user. Returns the list ID, display name, and well-known name for each list.

Parameters
none

Generic CLI call

kosmo integrations:call microsoft_todo.todo_list_lists '{}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_list_lists '{}' --json

microsoft_todo.todo_get_list

Read read

Get a specific Microsoft To Do task list by its ID. Returns the list details including display name and well-known name.

Parameters
id

Generic CLI call

kosmo integrations:call microsoft_todo.todo_get_list '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_get_list '{"id":"example_id"}' --json

microsoft_todo.todo_create_list

Write write

Create a new Microsoft To Do task list. Provide a display name for the list.

Parameters
displayName

Generic CLI call

kosmo integrations:call microsoft_todo.todo_create_list '{"displayName":"example_displayName"}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_create_list '{"displayName":"example_displayName"}' --json

microsoft_todo.todo_list_tasks

Read read

List all tasks in a Microsoft To Do task list. Returns task titles, statuses, body content, and due dates.

Parameters
list_id

Generic CLI call

kosmo integrations:call microsoft_todo.todo_list_tasks '{"list_id":"example_list_id"}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_list_tasks '{"list_id":"example_list_id"}' --json

microsoft_todo.todo_get_task

Read read

Get a specific task from a Microsoft To Do task list by its ID. Returns full task details including title, body, status, due date, and importance.

Parameters
list_id, id

Generic CLI call

kosmo integrations:call microsoft_todo.todo_get_task '{"list_id":"example_list_id","id":"example_id"}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_get_task '{"list_id":"example_list_id","id":"example_id"}' --json

microsoft_todo.todo_create_task

Write write

Create a new task in a Microsoft To Do task list. Provide a title, and optionally a body and due date.

Parameters
list_id, title, body, due_date, due_timezone

Generic CLI call

kosmo integrations:call microsoft_todo.todo_create_task '{"list_id":"example_list_id","title":"example_title","body":"example_body","due_date":"example_due_date","due_timezone":"example_due_timezone"}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_create_task '{"list_id":"example_list_id","title":"example_title","body":"example_body","due_date":"example_due_date","due_timezone":"example_due_timezone"}' --json

microsoft_todo.todo_get_current_user

Read read

Get the authenticated Microsoft user profile. Returns display name, email, and other account details. Useful for verifying which account is connected.

Parameters
none

Generic CLI call

kosmo integrations:call microsoft_todo.todo_get_current_user '{}' --json

Provider shortcut

kosmo integrations:microsoft_todo todo_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

microsoft_todo.todo_list_lists

List all Microsoft To Do task lists for the authenticated user. Returns the list ID, display name, and well-known name for each list.

Operation
Read read
Schema command
kosmo integrations:schema microsoft_todo.todo_list_lists --json
ParameterTypeRequiredDescription
No parameters.

microsoft_todo.todo_get_list

Get a specific Microsoft To Do task list by its ID. Returns the list details including display name and well-known name.

Operation
Read read
Schema command
kosmo integrations:schema microsoft_todo.todo_get_list --json
ParameterTypeRequiredDescription
id string yes The unique identifier of the todo task list.

microsoft_todo.todo_create_list

Create a new Microsoft To Do task list. Provide a display name for the list.

Operation
Write write
Schema command
kosmo integrations:schema microsoft_todo.todo_create_list --json
ParameterTypeRequiredDescription
displayName string yes The name of the new task list (e.g., "Shopping List", "Work Tasks").

microsoft_todo.todo_list_tasks

List all tasks in a Microsoft To Do task list. Returns task titles, statuses, body content, and due dates.

Operation
Read read
Schema command
kosmo integrations:schema microsoft_todo.todo_list_tasks --json
ParameterTypeRequiredDescription
list_id string yes The unique identifier of the todo task list.

microsoft_todo.todo_get_task

Get a specific task from a Microsoft To Do task list by its ID. Returns full task details including title, body, status, due date, and importance.

Operation
Read read
Schema command
kosmo integrations:schema microsoft_todo.todo_get_task --json
ParameterTypeRequiredDescription
list_id string yes The unique identifier of the todo task list.
id string yes The unique identifier of the task.

microsoft_todo.todo_create_task

Create a new task in a Microsoft To Do task list. Provide a title, and optionally a body and due date.

Operation
Write write
Schema command
kosmo integrations:schema microsoft_todo.todo_create_task --json
ParameterTypeRequiredDescription
list_id string yes The unique identifier of the todo task list to add the task to.
title string yes The title of the task (e.g., "Buy groceries").
body string no Optional body/content text for the task.
due_date string no Optional due date in ISO 8601 format (e.g., "2026-04-30T00:00:00").
due_timezone string no Timezone for the due date (e.g., "UTC", "Europe/Amsterdam"). Defaults to "UTC".

microsoft_todo.todo_get_current_user

Get the authenticated Microsoft user profile. Returns display name, email, and other account details. Useful for verifying which account is connected.

Operation
Read read
Schema command
kosmo integrations:schema microsoft_todo.todo_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.