Skip to Content
Sevnly Docs

MCP server

Authentication, limits, undo, and the tools registered by the running server.

Transports

RemoteLocal (stdio)
Endpointhttps://api.sevnly.com/mcpnpx @sevnly/mcp
ProtocolStreamable HTTPstdio, calls the REST API
AuthOAuth 2.1 (sign in in the browser)API key (sk_...)
Good forClaude, ChatGPT, Cursor, VS Code: paste the URLClients without remote support, scripts, self-hosted instances

Both use the same tool definitions from packages/mcp-tools, so they behave the same.

Remote (URL + OAuth)

Paste https://api.sevnly.com/mcp into your client. It discovers the OAuth server through /.well-known/oauth-authorization-server, registers itself (dynamic client registration), and opens a browser window where you sign in to Sevnly and approve it.

Connected agents are listed in Settings → Integrations → MCP, where you can revoke any of them.

Self-hosting? Use your own API host: https://<your-api-domain>/mcp.

Local (stdio)

SEVNLY_API_KEY=sk_... npx @sevnly/mcp
# or, the same with flags:
npx @sevnly/mcp --key sk_... --api https://api.sevnly.com

A thin client that calls the REST API with an API key.

Env varFlagRequiredDefault
SEVNLY_API_KEY--keyYes—
SEVNLY_API_URL--apiNohttps://api.sevnly.com

Set SEVNLY_API_URL (or --api) to use it with a self-hosted Sevnly.

Create the key in Settings → Integrations → API keys: give it a name, scopes, the calendars it may touch, and an expiry. The key is shown once. Creating a key asks you to re-confirm your identity.

Limits and undo

Bulk calls handle up to 100 tasks. Changes affecting more than 10 tasks ask for confirmation. Review and undo writes in Settings → Integrations → Agent activity. A key's scopes and planner allow-list restrict access.

Resources

  • sevnly://week/{date} — A week
  • sevnly://task/{calendar}/{id} — A task
  • sevnly://calendars — Your planners

Prompts

  • plan-my-week — Look at the coming week, carry over what's unfinished, set goals and spread the work out.
  • weekly-review — What got done this week, what slipped, and what to do with it.
  • brain-dump — Paste everything on your mind; it becomes tasks on the right days or in Someday.
  • daily-standup — Yesterday, today, and anything in the way.
  • triage-someday — Go through Someday: schedule, keep, or drop.
  • review-contributions — Pending suggestions on your shared planners.

list_calendars

Your planners (calendars) with your role on each. Tasks live in planners.

{
  "type": "object",
  "properties": {}
}

get_week

The whole week across your planners: tasks per day (with times, done state, subtasks), the lists below, weekly goals and day notes. Start here.

{
  "type": "object",
  "properties": {
    "date": {
      "description": "Any day in the week; default today",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "calendar": {
      "description": "Only this planner (id or name); default all",
      "type": "string"
    },
    "week_starts_on": {
      "description": "Default monday",
      "type": "string",
      "enum": [
        "monday",
        "sunday"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_tasks

Tasks in a date range (up to 92 days) or in one list, optionally only open or done ones.

{
  "type": "object",
  "properties": {
    "from": {
      "description": "Default today",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "to": {
      "description": "Default from + 6 days",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "calendar": {
      "description": "Planner id or name; default all",
      "type": "string"
    },
    "list": {
      "description": "A list's name or id instead of days",
      "type": "string"
    },
    "status": {
      "description": "Default all",
      "type": "string",
      "enum": [
        "open",
        "done",
        "all"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

search_tasks

Search titles, notes and subtasks, with the app's filters: is:open, is:done, is:important, has:time, has:notes, repeats, list:"Groceries", color:red, due:<2026-12-31, day:this-week, … Words match prefixes.

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "calendar": {
      "type": "string"
    },
    "limit": {
      "description": "Default 25",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_task

One task with its notes (as text), subtasks, reminders and recent history.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task id from another tool, \"<planner>/<task>\""
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_lists

The lists under the week (Someday, Groceries, …) with how many open tasks each has.

{
  "type": "object",
  "properties": {
    "calendar": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_free_days

Per day: open task count and planned minutes (timed tasks). Use it to find room before scheduling.

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date, YYYY-MM-DD"
    },
    "to": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date, YYYY-MM-DD"
    },
    "calendar": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

history

What agents did recently in your planners, newest first, with ids you can pass to undo.

{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_webhooks

Your webhooks: name, URL, events, format, which planners, and whether they're on. Never shows secrets.

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_webhook

Sends Sevnly events to a URL (Zapier, n8n, Home Assistant, Slack, Discord, ntfy…). Asks the user to confirm. Returns the signing secret once: show it to the user, don't store it.

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "https:// URL that receives the events"
    },
    "events": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "task.created",
          "task.updated",
          "task.completed",
          "task.uncompleted",
          "task.moved",
          "task.deleted",
          "reminder.due",
          "list.created",
          "list.renamed",
          "list.deleted",
          "calendar.member_added",
          "calendar.member_removed",
          "calendar.role_changed",
          "attachment.added",
          "attachment.deleted",
          "day.summary",
          "suggestion.created",
          "suggestion.accepted",
          "suggestion.declined",
          "comment.created"
        ]
      },
      "description": "e.g. task.created, task.completed, reminder.due, day.summary"
    },
    "calendars": {
      "description": "Planner ids or names; leave out for all your planners",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "format": {
      "description": "Default json",
      "type": "string",
      "enum": [
        "json",
        "slack",
        "discord",
        "ntfy"
      ]
    },
    "detail": {
      "description": "minimal = ids only",
      "type": "string",
      "enum": [
        "full",
        "minimal"
      ]
    },
    "only_mine": {
      "type": "boolean"
    },
    "include_agents": {
      "type": "boolean"
    },
    "summary_at": {
      "description": "For day.summary: when to send today's tasks",
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "url",
    "events"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

update_webhook

Updates a webhook's name, URL, events, planners, or active state.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "task.created",
          "task.updated",
          "task.completed",
          "task.uncompleted",
          "task.moved",
          "task.deleted",
          "reminder.due",
          "list.created",
          "list.renamed",
          "list.deleted",
          "calendar.member_added",
          "calendar.member_removed",
          "calendar.role_changed",
          "attachment.added",
          "attachment.deleted",
          "day.summary",
          "suggestion.created",
          "suggestion.accepted",
          "suggestion.declined",
          "comment.created"
        ]
      }
    },
    "calendars": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "active": {
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

delete_webhook

Deletes a webhook permanently. Asks the user to confirm.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

share_calendar

Creates an invite link or emails an invite to share a planner with someone. Asks the user to confirm.

{
  "type": "object",
  "properties": {
    "calendar": {
      "type": "string",
      "description": "Planner id or name"
    },
    "role": {
      "default": "editor",
      "type": "string",
      "enum": [
        "editor",
        "contributor",
        "viewer"
      ]
    },
    "email": {
      "description": "Email address to invite (omit for a link)",
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "max_uses": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "expires_in_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "calendar"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

get_progress

Your planning and daily streaks (current and best) and your five newest stamps, so you can mention them. Read-only; streaks forgive rest days and holidays, so never warn about losing one.

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_task

Adds one task on a day, in a list, or (neither) in Someday. Everything an agent does can be undone.

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "day": {
      "description": "Day to plan it on. Leave out (and list too) for Someday",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "list": {
      "description": "List name or id instead of a day",
      "type": "string"
    },
    "time": {
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
      "description": "24-hour local time, HH:mm"
    },
    "duration": {
      "description": "Minutes",
      "type": "integer",
      "minimum": 5,
      "maximum": 1440
    },
    "deadline": {
      "description": "Due date, separate from the planned day",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "note": {
      "description": "Notes; lines starting '- [ ] ', '- ', '# ' become checklist, bullets, headings",
      "type": "string",
      "maxLength": 20000
    },
    "color": {
      "type": "string",
      "pattern": "^(p:([0-9]|1[0-5])|#[0-9A-Fa-f]{6})$",
      "description": "Palette slot \"p:0\"…\"p:15\" (0 red, 1 orange, 2 yellow, 3 green, …) or \"#RRGGBB\""
    },
    "important": {
      "type": "boolean"
    },
    "repeat": {
      "description": "RRULE body, e.g. \"FREQ=WEEKLY;BYDAY=MO,WE,FR\" (needs a day)",
      "type": "string"
    },
    "subtasks": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      }
    },
    "reminders": {
      "maxItems": 3,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "before"
              },
              "minutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 20160
              }
            },
            "required": [
              "kind",
              "minutes"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "at"
              },
              "time": {
                "type": "string",
                "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                "description": "24-hour local time, HH:mm"
              },
              "dayOffset": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 0
                  },
                  {
                    "type": "number",
                    "const": -1
                  }
                ]
              }
            },
            "required": [
              "kind",
              "time",
              "dayOffset"
            ]
          }
        ]
      }
    },
    "calendar": {
      "description": "Planner id or name (see list_calendars). Default: your first planner you can edit",
      "type": "string"
    }
  },
  "required": [
    "title"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_tasks

Adds up to 100 tasks in one step (e.g. a brain dump you've already split up). One undo step. More than 10 asks the user first.

{
  "type": "object",
  "properties": {
    "tasks": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "day": {
            "description": "Day to plan it on. Leave out (and list too) for Someday",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "list": {
            "description": "List name or id instead of a day",
            "type": "string"
          },
          "time": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "24-hour local time, HH:mm"
          },
          "duration": {
            "description": "Minutes",
            "type": "integer",
            "minimum": 5,
            "maximum": 1440
          },
          "deadline": {
            "description": "Due date, separate from the planned day",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "note": {
            "description": "Notes; lines starting '- [ ] ', '- ', '# ' become checklist, bullets, headings",
            "type": "string",
            "maxLength": 20000
          },
          "color": {
            "type": "string",
            "pattern": "^(p:([0-9]|1[0-5])|#[0-9A-Fa-f]{6})$",
            "description": "Palette slot \"p:0\"…\"p:15\" (0 red, 1 orange, 2 yellow, 3 green, …) or \"#RRGGBB\""
          },
          "important": {
            "type": "boolean"
          },
          "repeat": {
            "description": "RRULE body, e.g. \"FREQ=WEEKLY;BYDAY=MO,WE,FR\" (needs a day)",
            "type": "string"
          },
          "subtasks": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "reminders": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "before"
                    },
                    "minutes": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 20160
                    }
                  },
                  "required": [
                    "kind",
                    "minutes"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "at"
                    },
                    "time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour local time, HH:mm"
                    },
                    "dayOffset": {
                      "anyOf": [
                        {
                          "type": "number",
                          "const": 0
                        },
                        {
                          "type": "number",
                          "const": -1
                        }
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "time",
                    "dayOffset"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "title"
        ]
      }
    },
    "calendar": {
      "description": "Planner id or name (see list_calendars). Default: your first planner you can edit",
      "type": "string"
    },
    "confirm": {
      "description": "Only after the user agreed, for more than 10 tasks",
      "type": "boolean"
    }
  },
  "required": [
    "tasks"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

update_task

Changes a task's title, time, duration, deadline, color, importance, repeat or reminders, or appends to its notes. null clears a field.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "time": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
          "description": "24-hour local time, HH:mm"
        },
        {
          "type": "null"
        }
      ]
    },
    "duration": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 5,
          "maximum": 1440
        },
        {
          "type": "null"
        }
      ]
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Local date, YYYY-MM-DD"
        },
        {
          "type": "null"
        }
      ]
    },
    "color": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(p:([0-9]|1[0-5])|#[0-9A-Fa-f]{6})$",
          "description": "Palette slot \"p:0\"…\"p:15\" (0 red, 1 orange, 2 yellow, 3 green, …) or \"#RRGGBB\""
        },
        {
          "type": "null"
        }
      ]
    },
    "important": {
      "type": "boolean"
    },
    "repeat": {
      "description": "RRULE body; null stops repeating",
      "type": [
        "string",
        "null"
      ]
    },
    "append_note": {
      "type": "string",
      "maxLength": 20000
    },
    "add_subtasks": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      }
    },
    "reminders": {
      "description": "Replaces your reminders on it",
      "maxItems": 3,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "before"
              },
              "minutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 20160
              }
            },
            "required": [
              "kind",
              "minutes"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "at"
              },
              "time": {
                "type": "string",
                "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                "description": "24-hour local time, HH:mm"
              },
              "dayOffset": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 0
                  },
                  {
                    "type": "number",
                    "const": -1
                  }
                ]
              }
            },
            "required": [
              "kind",
              "time",
              "dayOffset"
            ]
          }
        ]
      }
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

complete_task

Marks a task (or one occurrence of a repeating task, by its occurrence id) done, or not done with done: false.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "done": {
      "description": "Default true",
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

move_tasks

Moves up to 100 tasks to a day or a list (within their planner). More than 10 asks the user first.

{
  "type": "object",
  "properties": {
    "ids": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "to_day": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date, YYYY-MM-DD"
    },
    "to_list": {
      "description": "List name or id",
      "type": "string"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "ids"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

rollover

Moves unfinished tasks from the last 30 days to today (keeps order, marks where they came from). Repeating tasks stay put.

{
  "type": "object",
  "properties": {
    "calendar": {
      "description": "Default: every planner you can edit",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

delete_task

Deletes a task (a whole repeating series if given the series). Always asks the user first. Can be undone.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

create_list

Adds a list under the week (e.g. Groceries, Reading).

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "calendar": {
      "description": "Planner id or name (see list_calendars). Default: your first planner you can edit",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

rename_list

undefined

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "List id from list_lists"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    }
  },
  "required": [
    "id",
    "name"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

suggest_task

On a shared planner where you're a contributor: suggest adding, changing or deleting a task. An editor reviews it (trusted contributors' suggestions go straight in). On planners you can edit, change tasks directly instead.

{
  "type": "object",
  "properties": {
    "calendar": {
      "type": "string",
      "description": "Planner id or name"
    },
    "kind": {
      "type": "string",
      "enum": [
        "create",
        "update",
        "delete"
      ]
    },
    "task_id": {
      "description": "For update/delete: the task id",
      "type": "string"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "day": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date, YYYY-MM-DD"
    },
    "list": {
      "description": "List id (from list_lists, the part after '/')",
      "type": "string"
    },
    "time": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
          "description": "24-hour local time, HH:mm"
        },
        {
          "type": "null"
        }
      ]
    },
    "color": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(p:([0-9]|1[0-5])|#[0-9A-Fa-f]{6})$",
          "description": "Palette slot \"p:0\"…\"p:15\" (0 red, 1 orange, 2 yellow, 3 green, …) or \"#RRGGBB\""
        },
        {
          "type": "null"
        }
      ]
    },
    "done": {
      "type": "boolean"
    }
  },
  "required": [
    "calendar",
    "kind"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

review_suggestions

Suggestions waiting for review on planners you edit (or your own pending ones where you contribute).

{
  "type": "object",
  "properties": {
    "calendar": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

resolve_suggestion

Accept (optionally with edited fields) or decline (with an optional note to the author) a pending suggestion.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Suggestion id from review_suggestions"
    },
    "accept": {
      "type": "boolean"
    },
    "note": {
      "description": "When declining",
      "type": "string",
      "maxLength": 500
    },
    "edits": {
      "description": "When accepting: fields to change first",
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        },
        "day": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Local date, YYYY-MM-DD"
        },
        "list": {
          "description": "List id (from list_lists, the part after '/')",
          "type": "string"
        },
        "time": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
              "description": "24-hour local time, HH:mm"
            },
            {
              "type": "null"
            }
          ]
        },
        "color": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(p:([0-9]|1[0-5])|#[0-9A-Fa-f]{6})$",
              "description": "Palette slot \"p:0\"…\"p:15\" (0 red, 1 orange, 2 yellow, 3 green, …) or \"#RRGGBB\""
            },
            {
              "type": "null"
            }
          ]
        },
        "done": {
          "type": "boolean"
        }
      }
    }
  },
  "required": [
    "id",
    "accept"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

undo

Undoes the last agent action (or the one with action_id). Later edits by people are kept.

{
  "type": "object",
  "properties": {
    "action_id": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

list_attachments

Lists a task's attachments (metadata and links; files aren't downloaded here).

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task id, \"<planner>/<task>\""
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Attaches a web link to a task.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task id, \"<planner>/<task>\""
    },
    "url": {
      "type": "string",
      "maxLength": 2000,
      "pattern": "^https?:\\/\\/"
    },
    "title": {
      "type": "string",
      "maxLength": 200
    }
  },
  "required": [
    "id",
    "url"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

delete_attachment

Removes an attachment from a task. Asks the user to confirm.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task id, \"<planner>/<task>\""
    },
    "attachment_id": {
      "type": "string"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "attachment_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

move_to_planner

Moves a task (and its repeating series, if any) from one planner to another.

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Task id, \"<planner>/<task>\""
    },
    "to_calendar": {
      "type": "string",
      "description": "Destination planner id or name"
    }
  },
  "required": [
    "id",
    "to_calendar"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

On this page