Microsoft Outlook CLI for Coding Agents
Use the Microsoft Outlook CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write Manual OAuth token auth
Microsoft Outlook CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Microsoft Outlook CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Microsoft Outlook CLI for Coding Agents
kosmokrator integrations:configure microsoft-outlook --set access_token="$MICROSOFT_OUTLOOK_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call microsoft-outlook.outlook_list_messages '{"top":1,"filter":"example_filter","orderby":"example_orderby","select":"example_select","skip":1}' --json Discovery Before Execution
Agents and scripts can inspect Microsoft Outlook docs and schemas before choosing a function.
kosmo integrations:docs microsoft-outlook --json
kosmo integrations:docs microsoft-outlook.outlook_list_messages --json
kosmo integrations:schema microsoft-outlook.outlook_list_messages --json
kosmo integrations:search "Microsoft Outlook" --json
kosmo integrations:list --json Useful Microsoft Outlook CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
microsoft-outlook.outlook_list_messages | Read | top, filter, orderby, select, skip | List email messages in the signed-in user's Outlook mailbox. Supports filtering by subject, sender, date range, and read status. Returns a paginated list of messages with subject, sender, date, and preview. |
microsoft-outlook.outlook_get_message | Read | message_id, select | Retrieve a single email message by its id. Returns the full message including body, sender, recipients, subject, and attachments metadata. |
microsoft-outlook.outlook_send_message | Write | to, subject, body, content_type, cc, bcc, reply_to | Send an email message via Outlook. Specify recipients, subject, and body. Supports HTML and plain-text bodies, CC, BCC, and reply-to addresses. |
microsoft-outlook.outlook_list_calendars | Read | top, select | List all calendars in the signed-in user's Outlook mailbox. Returns calendar names, ids, and default calendar indicator. |
microsoft-outlook.outlook_list_events | Read | top, filter, orderby, select, start_date_time, end_date_time | List upcoming calendar events from the default Outlook calendar. Supports filtering by date range, subject, and more via OData query parameters. |
microsoft-outlook.outlook_create_event | Write | subject, start, end, time_zone, body, body_type, location, attendees, is_all_day | Create a new event on the default Outlook calendar. Specify subject, start/end time, body, and optionally attendees and location. |
microsoft-outlook.outlook_get_current_user | Read | select | Get the signed-in user's profile information including display name, email address, and job title. Useful for identifying which account is connected. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.