Connector documentation

Connect an AI assistant to Segue

Segue saves working context under a short handle so a user can continue in another connected assistant. Tools can also read and update structured briefs, and make explicitly authorized shares and contributions. Save only content the user asks to store; do not collect conversation histories automatically.

Hosted MCP endpoint: https://segue.ai/mcp

This page describes the deployed MCP server. Availability in an assistant's connector directory depends on that platform's approval.

Connect and authorize

  1. Create a Segue account and verify its email address.
  2. Configure a remote MCP client with the HTTPS endpoint above. The transport is Streamable HTTP.
  3. Discover the authorization server, register the client, and use the authorization code flow with PKCE S256.
  4. Sign in at Segue and approve the requested permissions, or choose Connect read only when offered.

Dynamic Client Registration is supported. Public clients use token_endpoint_auth_method=none; confidential clients may use client_secret_post or client_secret_basic. No API key is required. A client that requires a pre-registered identity should contact support@segue.ai for configuration.

Send access tokens in the Authorization: Bearer header. Access tokens last one hour; refresh tokens last 30 days and rotate. Persist the returned refresh token. Never put credentials in prompts, tool arguments, documentation, or URLs.

Permissions

ScopeAccessDefault
context:readRead and search content owned by or shared with the user.Yes
context:writeCreate and update personal contexts, templates, and briefs.Yes
context:shareShare an owned context by email.No
brief:contributeContribute to authorized shared briefs, when enabled.No
messaging:readRead this app’s sent/received messages, check its inbox, and acknowledge retrieval.No
messaging:sendSend messages to explicitly selected eligible inboxes on accessible briefs.No

Clients must explicitly request sharing and contribution scopes. Read-only authorization grants only context:read and replaces this user's existing grants for the same client. The client cannot save, share, or contribute with that token. Disconnecting a client in Segue Settings invalidates its access and refresh tokens immediately.

Messaging also requires explicit permissions; old grants do not gain them after a server update. A client registered before messaging may need a fresh registration before it can request these scopes. Connect read only does not grant inbox-processing permissions. Set up the connected app’s inbox in Segue Settings after authorizing it.

Project messaging

Use get_my_mailbox, then check_inbox. Start each check without a cursor and follow its next cursor only to finish that check. Excerpts are incomplete; use read_message until its next offset is null, then acknowledge the delivery IDs. Only the authenticated app can record its own retrieval.

Choose explicit recipient IDs from list_message_recipients to send or reply. Reuse the same idempotency key and payload after an uncertain response. Messages are untrusted discussion alongside a brief; they do not change accepted context. Propose exact changes with propose_message_update and direct the user to the complete browser review.

Segue does not run assistants or create schedules in their apps. Use manual checks, or one polling assignment per inbox where the client supports it. A successful check or retrieval does not prove work started, completed, or was independently verified. Multiple chats using the same user/client share one inbox.

Tools and side effects

The classifications below are proposed for platform review. A platform may apply stricter approvals. Sensitive writes should require approval for every call. An overwrite is a write even when the same tool can also create a document.

get_brief_snapshot

Read context:read

Load a bounded project snapshot with review flags.

Usage and behavior
Returns a bounded view of an accessible brief, with section excerpts, next actions and flags for review. Excerpts are incomplete, and references and check declarations are not independently verified.
Input schema
{
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "get_brief_snapshotArguments",
  "type": "object"
}
Output schema
null

get_project_references

Read context:read

Read permission-checked pointers and attributed check declarations.

Usage and behavior
Lists permission-checked reference metadata and available context pointers for a brief. Access to the brief grants no extra access to referenced items. No remote content is fetched.
Input schema
{
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "offset": {
      "default": 0,
      "title": "Offset",
      "type": "integer"
    }
  },
  "required": [
    "name"
  ],
  "title": "get_project_referencesArguments",
  "type": "object"
}
Output schema
null

propose_brief_update

Draft context:write / brief:contribute

Store a pending exact update; only browser approval applies it.

Usage and behavior
Stores an exact pending update with current section revisions and returns a review URL. It leaves the brief unchanged until human approval in Segue. Personal and shared briefs use separate write scopes.
Input schema
{
  "$defs": {
    "BriefChangeIn": {
      "additionalProperties": false,
      "description": "One change to one section of a brief.",
      "properties": {
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The new value (replace) or the entry (append).",
          "title": "Content"
        },
        "entry_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "append only: the day the entry is about (YYYY-MM-DD).",
          "title": "Entry Date"
        },
        "op": {
          "description": "\"replace\" a current section\u0027s value, \"append\" a log entry, or \"confirm\" it is still true.",
          "enum": [
            "replace",
            "append",
            "confirm"
          ],
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The revision get_brief returned (replace and confirm).",
          "title": "Revision"
        },
        "section": {
          "description": "The section\u0027s key, from get_brief.",
          "title": "Section",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where this came from, e.g. \"run 7f3a\" or a link.",
          "title": "Source"
        }
      },
      "required": [
        "section",
        "op"
      ],
      "title": "BriefChangeIn",
      "type": "object"
    }
  },
  "properties": {
    "brief": {
      "title": "Brief",
      "type": "string"
    },
    "changes": {
      "items": {
        "$ref": "#/$defs/BriefChangeIn"
      },
      "title": "Changes",
      "type": "array"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Note"
    }
  },
  "required": [
    "brief",
    "changes"
  ],
  "title": "propose_brief_updateArguments",
  "type": "object"
}
Output schema
null

get_brief_history

Read context:read

Inspect recorded section history; shared links do not grant historical access.

Usage and behavior
Returns a recorded before-and-after change and its revisions for an accessible brief section. Offset selects one bounded record, newest first. Read-only share links exclude section history.
Input schema
{
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "offset": {
      "default": 0,
      "title": "Offset",
      "type": "integer"
    },
    "section": {
      "title": "Section",
      "type": "string"
    }
  },
  "required": [
    "name",
    "section"
  ],
  "title": "get_brief_historyArguments",
  "type": "object"
}
Output schema
null

get_brief_section

Read context:read

Read one section of an authorized brief.

Usage and behavior
Reads an accessible brief section with its current revision and at most 4,000 content characters. Offset pages content, and entry offset selects an inline Log entry newest first.
Input schema
{
  "properties": {
    "entry_offset": {
      "default": 0,
      "title": "Entry Offset",
      "type": "integer"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "offset": {
      "default": 0,
      "title": "Offset",
      "type": "integer"
    },
    "section": {
      "title": "Section",
      "type": "string"
    }
  },
  "required": [
    "name",
    "section"
  ],
  "title": "get_brief_sectionArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "get_brief_sectionDictOutput",
  "type": "object"
}

search_brief_section

Read context:read

Search or page one On demand Log for bounded candidate passages. Query text reaches the embedding processor only where semantic search is enabled on that field.

Usage and behavior
Searches an authorized On demand Log or lists its recent entries. Search mode requires a query. Inclusive date filters and bounded excerpts are supported. Semantic search can send the query to the embedding processor only if enabled on this Log.
Input schema
{
  "properties": {
    "date_from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Date From"
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Date To"
    },
    "limit": {
      "default": 3,
      "title": "Limit",
      "type": "integer"
    },
    "mode": {
      "default": "search",
      "enum": [
        "search",
        "recent"
      ],
      "title": "Mode",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "offset": {
      "default": 0,
      "title": "Offset",
      "type": "integer"
    },
    "query": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Query"
    },
    "section": {
      "title": "Section",
      "type": "string"
    }
  },
  "required": [
    "name",
    "section"
  ],
  "title": "search_brief_sectionArguments",
  "type": "object"
}
Output schema
null

get_brief_log_entry

Read context:read

Read the saved Markdown of one authorized On demand Log entry.

Usage and behavior
Reads the original saved Markdown and revision of one authorized On demand Log entry by entry ID.
Input schema
{
  "properties": {
    "entry_id": {
      "title": "Entry Id",
      "type": "integer"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "section": {
      "title": "Section",
      "type": "string"
    }
  },
  "required": [
    "name",
    "section",
    "entry_id"
  ],
  "title": "get_brief_log_entryArguments",
  "type": "object"
}
Output schema
null

save_context

Sensitive write context:write

Create a context or template, or replace its entire content. Ordinary contexts have no undo history; templates retain versions.

Usage and behavior
Stores user-selected Markdown as a context or template, with an optional title and project. With a handle, replaces the entire owned context or updates the template in place. Without a handle, creates a new item and returns its handle. This tool cannot overwrite a brief.
Input schema
{
  "properties": {
    "content": {
      "title": "Content",
      "type": "string"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Handle"
    },
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Kind"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Project"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Title"
    }
  },
  "required": [
    "content"
  ],
  "title": "save_contextArguments",
  "type": "object"
}
Output schema
{
  "$defs": {
    "TemplateSectionOut": {
      "additionalProperties": false,
      "description": "One section of a template, as parsed when it was saved.",
      "properties": {
        "key": {
          "description": "Stable key that briefs and save_brief refer to this section by.",
          "title": "Key",
          "type": "string"
        },
        "mode": {
          "description": "\"current\" (one value, replaced) or \"log\" (dated entries, appended).",
          "title": "Mode",
          "type": "string"
        },
        "title": {
          "description": "Section title.",
          "title": "Title",
          "type": "string"
        }
      },
      "required": [
        "key",
        "title",
        "mode"
      ],
      "title": "TemplateSectionOut",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "description": "``save_context`` with templates: adds the version and sections a template save produced.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "handle",
        "title",
        "project",
        "url",
        "message"
      ]
    }
  ],
  "properties": {
    "change_summary": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What changed in this version, when the save created one.",
      "title": "Change Summary"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Stable handle for loading or updating the context.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "\"template\" when a template was saved.",
      "title": "Kind"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Human-readable confirmation of the save or update.",
      "title": "Message"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Containing project name, or null when unfiled.",
      "title": "Project"
    },
    "sections": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/TemplateSectionOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The sections the template has.",
      "title": "Sections"
    },
    "template_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The template\u0027s current version number.",
      "title": "Template Version"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Context title, or null when untitled.",
      "title": "Title"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Segue page for viewing or editing the context.",
      "title": "Url"
    },
    "warnings": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Settings that were ignored or look wrong.",
      "title": "Warnings"
    }
  },
  "title": "SaveContextKindsOutput",
  "type": "object"
}

load_context

Read context:read

Load an authorized document as Markdown.

Usage and behavior
Loads an authorized saved context, template or brief by handle as Markdown. Materialized briefs include section dates and stale markers. Their On demand Logs are omitted from the ordinary full document.
Input schema
{
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "load_contextArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": false,
  "description": "``load_context`` with shared briefs.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "handle",
        "title",
        "project",
        "content",
        "created_at",
        "updated_at"
      ]
    }
  ],
  "properties": {
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Saved Markdown content.",
      "title": "Content"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO-8601 UTC creation timestamp.",
      "title": "Created At"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Stable context handle.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "\"template\" or \"brief\" when the handle is one.",
      "title": "Kind"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Guidance for working with a shared read-only context.",
      "title": "Message"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Containing project name, or null when unfiled.",
      "title": "Project"
    },
    "read_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True when the loaded context belongs to another user.",
      "title": "Read Only"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Shared brief only: the user\u0027s part in it \u2014 \"owner\", \"maintainer\", \"contributor\" or \"reader\".",
      "title": "Role"
    },
    "shared_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Owner email or workspace name when this context is shared with the user.",
      "title": "Shared By"
    },
    "stale_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "For a brief: sections past their confirm window.",
      "title": "Stale Count"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Context title, or null when untitled.",
      "title": "Title"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO-8601 UTC last-update timestamp.",
      "title": "Updated At"
    }
  },
  "title": "LoadContextSharedOutput",
  "type": "object"
}

share_context

Sensitive write context:share

Create or replace a share grant and send an email. A new recipient first requires browser confirmation.

Usage and behavior
Creates a read-only, revocable share of an owned context for an explicitly authorized email address. A first send to a new recipient requires browser confirmation before mail is sent. A trusted recipient can receive mail immediately. The email contains a link and title, not the context body.
Input schema
{
  "properties": {
    "email": {
      "title": "Email",
      "type": "string"
    },
    "expires_in_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Expires In Days"
    },
    "handle": {
      "title": "Handle",
      "type": "string"
    },
    "require_signin": {
      "default": false,
      "title": "Require Signin",
      "type": "boolean"
    }
  },
  "required": [
    "handle",
    "email"
  ],
  "title": "share_contextArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": false,
  "description": "Structured result from ``share_context``.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "properties": {
        "state": {
          "const": "pending_confirmation"
        }
      },
      "required": [
        "state",
        "confirm_url",
        "expires_at",
        "message"
      ]
    },
    {
      "properties": {
        "state": {
          "const": "sent"
        }
      },
      "required": [
        "state",
        "handle",
        "title",
        "recipient",
        "recipient_has_account",
        "expires_at",
        "manage_url",
        "message"
      ]
    }
  ],
  "properties": {
    "confirm_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "User-openable confirmation URL for a first-time recipient.",
      "title": "Confirm Url"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO-8601 UTC expiry for the confirmation or share.",
      "title": "Expires At"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Handle of the shared context after sending.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "manage_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Segue page where the sent share can be revoked.",
      "title": "Manage Url"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Human-readable status and required next step.",
      "title": "Message"
    },
    "recipient": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Normalized recipient email after sending.",
      "title": "Recipient"
    },
    "recipient_has_account": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whether the recipient already has a Segue account.",
      "title": "Recipient Has Account"
    },
    "state": {
      "anyOf": [
        {
          "enum": [
            "sent",
            "pending_confirmation"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whether the share was sent or needs the user\u0027s confirmation.",
      "title": "State"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Shared context title, or null when untitled.",
      "title": "Title"
    }
  },
  "title": "ShareContextOutput",
  "type": "object"
}

list_contexts

Read context:read

Find authorized contexts, templates, and briefs.

Usage and behavior
Lists or searches accessible contexts, templates and briefs. Supports filters for ownership, kind and the user's projects, quoted search phrases and exclusions, and bounded results. A template search can list built-in templates. An omitted query returns recently updated items.
Input schema
{
  "properties": {
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Kind"
    },
    "limit": {
      "default": 10,
      "title": "Limit",
      "type": "integer"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Project"
    },
    "query": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Query"
    },
    "scope": {
      "default": "all",
      "title": "Scope",
      "type": "string"
    }
  },
  "title": "list_contextsArguments",
  "type": "object"
}
Output schema
{
  "$defs": {
    "ContextListSharedItem": {
      "additionalProperties": false,
      "properties": {
        "builtin": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "True for a template that ships with Segue.",
          "title": "Builtin"
        },
        "handle": {
          "description": "Stable handle accepted by load_context.",
          "title": "Handle",
          "type": "string"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "\"template\" or \"brief\" when the context is one.",
          "title": "Kind"
        },
        "project": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Containing project name, or null when unfiled.",
          "title": "Project"
        },
        "role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Shared brief only: the user\u0027s part in it \u2014 \"owner\", \"maintainer\", \"contributor\" or \"reader\".",
          "title": "Role"
        },
        "shared_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Owner email or workspace name when this context is shared with the user.",
          "title": "Shared By"
        },
        "snippet": {
          "description": "Short preview with matching search terms emphasized.",
          "title": "Snippet",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Context title, or null when untitled.",
          "title": "Title"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "ISO-8601 UTC last-update timestamp.",
          "title": "Updated At"
        }
      },
      "required": [
        "handle",
        "title",
        "project",
        "updated_at",
        "snippet"
      ],
      "title": "ContextListSharedItem",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "results",
        "count",
        "has_more",
        "message"
      ]
    }
  ],
  "properties": {
    "count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Number of results returned.",
      "title": "Count"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "has_more": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whether more matching contexts exist.",
      "title": "Has More"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Guidance for loading a result or broadening a search.",
      "title": "Message"
    },
    "results": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ContextListSharedItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Context pointers matching the request.",
      "title": "Results"
    }
  },
  "title": "ListContextsSharedOutput",
  "type": "object"
}

get_brief

Read context:read

Read structured sections, revisions, and freshness.

Usage and behavior
Reads an accessible brief or reusable template by handle, including built-in templates. Returns section keys, modes and instructions, plus current content, revisions, recent inline Log entries and freshness for a brief.
Input schema
{
  "properties": {
    "log_entries": {
      "default": 10,
      "title": "Log Entries",
      "type": "integer"
    },
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "get_briefArguments",
  "type": "object"
}
Output schema
{
  "$defs": {
    "BriefSectionOut": {
      "additionalProperties": false,
      "description": "One section of a template or brief, as ``get_brief`` returns it.",
      "properties": {
        "confirm_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Days a current section stays fresh after an update or confirm.",
          "title": "Confirm Days"
        },
        "confirmed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: ISO-8601 UTC time of the last confirm.",
          "title": "Confirmed At"
        },
        "dependency_changed": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: which of depends_on changed after this section was last written or confirmed. Non-empty means check whether it still holds: replace it, or confirm it if it does.",
          "title": "Dependency Changed"
        },
        "depends_on": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Keys of the current sections this one\u0027s value depends on, when it has any.",
          "title": "Depends On"
        },
        "entries": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/LogEntryOut"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: recent log entries, newest first.",
          "title": "Entries"
        },
        "entry_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: total entries in a log section.",
          "title": "Entry Count"
        },
        "instructions": {
          "description": "What the section should contain \u2014 fill it from this.",
          "title": "Instructions",
          "type": "string"
        },
        "instructions_changed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: written under instructions that have since changed.",
          "title": "Instructions Changed"
        },
        "key": {
          "description": "Stable key; use it as `section` in save_brief.",
          "title": "Key",
          "type": "string"
        },
        "missing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: required and empty.",
          "title": "Missing"
        },
        "mode": {
          "description": "\"current\" (one value, replaced) or \"log\" (dated entries, appended).",
          "title": "Mode",
          "type": "string"
        },
        "required": {
          "description": "Whether the section should always be filled.",
          "title": "Required",
          "type": "boolean"
        },
        "revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: send back with replace or confirm.",
          "title": "Revision"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: where the current value came from.",
          "title": "Source"
        },
        "stale": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: past its confirm window.",
          "title": "Stale"
        },
        "title": {
          "description": "Section title.",
          "title": "Title",
          "type": "string"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: ISO-8601 UTC time of the last update.",
          "title": "Updated At"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief only: a current section\u0027s value, or null.",
          "title": "Value"
        }
      },
      "required": [
        "key",
        "title",
        "mode",
        "required",
        "confirm_days",
        "instructions"
      ],
      "title": "BriefSectionOut",
      "type": "object"
    },
    "LogEntryOut": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "description": "The entry.",
          "title": "Body",
          "type": "string"
        },
        "date": {
          "description": "The day the entry is about (YYYY-MM-DD).",
          "title": "Date",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where the entry came from, if recorded.",
          "title": "Source"
        }
      },
      "required": [
        "date",
        "body"
      ],
      "title": "LogEntryOut",
      "type": "object"
    },
    "TemplateInfoOut": {
      "additionalProperties": false,
      "description": "The template a brief was built from.",
      "properties": {
        "deleted": {
          "description": "Whether the template has since been deleted.",
          "title": "Deleted",
          "type": "boolean"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The template\u0027s title, or null if it has been deleted.",
          "title": "Title"
        },
        "version": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "The template version the brief is based on.",
          "title": "Version"
        }
      },
      "required": [
        "title",
        "version",
        "deleted"
      ],
      "title": "TemplateInfoOut",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "description": "``get_brief`` with shared briefs.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "kind",
        "handle",
        "title",
        "sections",
        "guidance",
        "message"
      ]
    }
  ],
  "properties": {
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "guidance": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "How to fill or update it \u2014 follow this.",
      "title": "Guidance"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The template\u0027s or brief\u0027s handle.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "kind": {
      "anyOf": [
        {
          "enum": [
            "template",
            "brief"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What the handle is.",
      "title": "Kind"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What to do next.",
      "title": "Message"
    },
    "missing_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brief only: required sections that are empty.",
      "title": "Missing Count"
    },
    "newer_template_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brief only, for its owner: the template\u0027s latest version, when it is newer than the brief\u0027s.",
      "title": "Newer Template Version"
    },
    "read_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True when it belongs to another user.",
      "title": "Read Only"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Shared brief only: the user\u0027s part in it \u2014 \"owner\", \"maintainer\", \"contributor\" or \"reader\".",
      "title": "Role"
    },
    "sections": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/BriefSectionOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The sections, in order.",
      "title": "Sections"
    },
    "shared_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Owner email or workspace name when this is shared with the user.",
      "title": "Shared By"
    },
    "stale_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brief only: sections past their confirm window.",
      "title": "Stale Count"
    },
    "template": {
      "anyOf": [
        {
          "$ref": "#/$defs/TemplateInfoOut"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brief only: the template it was built from."
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Title, or null when untitled.",
      "title": "Title"
    },
    "version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Template only: its current version.",
      "title": "Version"
    }
  },
  "title": "GetBriefSharedOutput",
  "type": "object"
}

save_brief

Sensitive write context:write

Create a personal brief or update its sections. Replacements and confirmations require current revisions; personal replacements have no undo history.

Usage and behavior
Creates a user-approved personal brief from a template or applies user-approved changes to an owned brief. A user can preview the complete proposed changes before a write. Current section replacements and confirmations require matching revisions. Log updates append new entries. Writes are atomic.
Input schema
{
  "$defs": {
    "BriefChangeIn": {
      "additionalProperties": false,
      "description": "One change to one section of a brief.",
      "properties": {
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The new value (replace) or the entry (append).",
          "title": "Content"
        },
        "entry_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "append only: the day the entry is about (YYYY-MM-DD).",
          "title": "Entry Date"
        },
        "op": {
          "description": "\"replace\" a current section\u0027s value, \"append\" a log entry, or \"confirm\" it is still true.",
          "enum": [
            "replace",
            "append",
            "confirm"
          ],
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The revision get_brief returned (replace and confirm).",
          "title": "Revision"
        },
        "section": {
          "description": "The section\u0027s key, from get_brief.",
          "title": "Section",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where this came from, e.g. \"run 7f3a\" or a link.",
          "title": "Source"
        }
      },
      "required": [
        "section",
        "op"
      ],
      "title": "BriefChangeIn",
      "type": "object"
    }
  },
  "properties": {
    "brief": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Brief"
    },
    "changes": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/BriefChangeIn"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Changes"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Project"
    },
    "template": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Template"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Title"
    }
  },
  "title": "save_briefArguments",
  "type": "object"
}
Output schema
{
  "$defs": {
    "AppliedChangeOut": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "description": "What was applied (a replace of unchanged text is applied as a confirm).",
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "description": "The section\u0027s revision after the save.",
          "title": "Revision",
          "type": "integer"
        },
        "section": {
          "description": "Section key.",
          "title": "Section",
          "type": "string"
        }
      },
      "required": [
        "section",
        "op",
        "revision"
      ],
      "title": "AppliedChangeOut",
      "type": "object"
    },
    "ConflictOut": {
      "additionalProperties": false,
      "properties": {
        "current_revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "The revision it is at now.",
          "title": "Current Revision"
        },
        "expected_revision": {
          "description": "The revision that was sent.",
          "title": "Expected Revision",
          "type": "integer"
        },
        "section": {
          "description": "Section key that changed since it was read.",
          "title": "Section",
          "type": "string"
        }
      },
      "required": [
        "section",
        "expected_revision",
        "current_revision"
      ],
      "title": "ConflictOut",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "description": "Structured result from ``save_brief``.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "handle",
        "title",
        "project",
        "url",
        "applied",
        "missing_required",
        "stale",
        "message"
      ]
    }
  ],
  "properties": {
    "applied": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AppliedChangeOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The changes that were saved.",
      "title": "Applied"
    },
    "conflicts": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ConflictOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sections that changed since they were read; nothing was saved.",
      "title": "Conflicts"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The brief\u0027s handle.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Human-readable confirmation.",
      "title": "Message"
    },
    "missing_required": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Required sections still empty.",
      "title": "Missing Required"
    },
    "problems": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Every reason the changes couldn\u0027t be saved.",
      "title": "Problems"
    },
    "project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Containing project name, or null when unfiled.",
      "title": "Project"
    },
    "stale": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sections past their confirm window.",
      "title": "Stale"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The brief\u0027s title, or null when untitled.",
      "title": "Title"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Segue page for the brief.",
      "title": "Url"
    }
  },
  "title": "SaveBriefOutput",
  "type": "object"
}

contribute_to_brief

Sensitive write brief:contribute

Send updates visible to other brief members. Depending on role and operation, changes apply or await review.

Usage and behavior
Submits user-approved section changes to an accessible shared brief, with current revisions for replacements and confirmations. Maintainer changes and contributor confirmations apply directly. Contributor replacements and appends become proposals for review. Readers cannot write. Brief members can see applied changes.
Input schema
{
  "$defs": {
    "BriefChangeIn": {
      "additionalProperties": false,
      "description": "One change to one section of a brief.",
      "properties": {
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The new value (replace) or the entry (append).",
          "title": "Content"
        },
        "entry_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "append only: the day the entry is about (YYYY-MM-DD).",
          "title": "Entry Date"
        },
        "op": {
          "description": "\"replace\" a current section\u0027s value, \"append\" a log entry, or \"confirm\" it is still true.",
          "enum": [
            "replace",
            "append",
            "confirm"
          ],
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The revision get_brief returned (replace and confirm).",
          "title": "Revision"
        },
        "section": {
          "description": "The section\u0027s key, from get_brief.",
          "title": "Section",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where this came from, e.g. \"run 7f3a\" or a link.",
          "title": "Source"
        }
      },
      "required": [
        "section",
        "op"
      ],
      "title": "BriefChangeIn",
      "type": "object"
    }
  },
  "properties": {
    "brief": {
      "title": "Brief",
      "type": "string"
    },
    "changes": {
      "items": {
        "$ref": "#/$defs/BriefChangeIn"
      },
      "title": "Changes",
      "type": "array"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Note"
    }
  },
  "required": [
    "brief",
    "changes"
  ],
  "title": "contribute_to_briefArguments",
  "type": "object"
}
Output schema
{
  "$defs": {
    "AppliedChangeOut": {
      "additionalProperties": false,
      "properties": {
        "op": {
          "description": "What was applied (a replace of unchanged text is applied as a confirm).",
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "description": "The section\u0027s revision after the save.",
          "title": "Revision",
          "type": "integer"
        },
        "section": {
          "description": "Section key.",
          "title": "Section",
          "type": "string"
        }
      },
      "required": [
        "section",
        "op",
        "revision"
      ],
      "title": "AppliedChangeOut",
      "type": "object"
    },
    "ConflictOut": {
      "additionalProperties": false,
      "properties": {
        "current_revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "The revision it is at now.",
          "title": "Current Revision"
        },
        "expected_revision": {
          "description": "The revision that was sent.",
          "title": "Expected Revision",
          "type": "integer"
        },
        "section": {
          "description": "Section key that changed since it was read.",
          "title": "Section",
          "type": "string"
        }
      },
      "required": [
        "section",
        "expected_revision",
        "current_revision"
      ],
      "title": "ConflictOut",
      "type": "object"
    },
    "ProposedChangeOut": {
      "additionalProperties": false,
      "properties": {
        "moved": {
          "description": "The section changed since it was read; the reviewer will see both versions.",
          "title": "Moved",
          "type": "boolean"
        },
        "op": {
          "description": "\"replace\" or \"append\".",
          "title": "Op",
          "type": "string"
        },
        "section": {
          "description": "Section key.",
          "title": "Section",
          "type": "string"
        }
      },
      "required": [
        "section",
        "op",
        "moved"
      ],
      "title": "ProposedChangeOut",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "description": "Structured result from ``contribute_to_brief``.",
  "oneOf": [
    {
      "required": [
        "error"
      ]
    },
    {
      "required": [
        "handle",
        "title",
        "status",
        "role",
        "applied",
        "proposed",
        "message"
      ]
    }
  ],
  "properties": {
    "applied": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AppliedChangeOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Changes applied at once.",
      "title": "Applied"
    },
    "conflicts": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ConflictOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sections that changed since they were read; nothing was saved.",
      "title": "Conflicts"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A recoverable error the assistant can relay to the user.",
      "title": "Error"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Suggested action that can resolve the error.",
      "title": "Fix"
    },
    "handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The brief\u0027s handle.",
      "title": "Handle"
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Additional guidance for handling the error.",
      "title": "Hint"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What happened, to tell the user.",
      "title": "Message"
    },
    "missing_required": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Required sections still empty.",
      "title": "Missing Required"
    },
    "problems": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Every reason the changes couldn\u0027t be sent.",
      "title": "Problems"
    },
    "proposed": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ProposedChangeOut"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Changes filed for review.",
      "title": "Proposed"
    },
    "review_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Where a maintainer reviews the proposal.",
      "title": "Review Url"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The user\u0027s role on the brief.",
      "title": "Role"
    },
    "stale": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sections past their confirm window.",
      "title": "Stale"
    },
    "status": {
      "anyOf": [
        {
          "enum": [
            "applied",
            "proposed",
            "applied_and_proposed"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whether the changes were applied, filed for a maintainer\u0027s review, or both.",
      "title": "Status"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The brief\u0027s title, or null when untitled.",
      "title": "Title"
    }
  },
  "title": "ContributeToBriefOutput",
  "type": "object"
}

get_my_mailbox

Read messaging:read

Identify this app's user-bound inbox and setup state.

Usage and behavior
Identifies the inbox attached to the current authenticated user and client connection. Returns activation state and the setup URL when needed. Chats using the same connection share this inbox.
Input schema
{
  "properties": {},
  "title": "get_my_mailboxArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "get_my_mailboxDictOutput",
  "type": "object"
}

list_message_recipients

Read messaging:read

List eligible inboxes on an accessible brief, or the user's own inboxes (brief null), with bounded pages.

Usage and behavior
Lists eligible recipient inboxes for an accessible brief. With a null brief, results contain only the user's own inboxes. The can_review field identifies eligible human reviewers. Results can be paged by offset.
Input schema
{
  "properties": {
    "brief": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brief"
    },
    "limit": {
      "default": 20,
      "maximum": 20,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "minimum": 0,
      "title": "Offset",
      "type": "integer"
    }
  },
  "required": [
    "brief"
  ],
  "title": "list_message_recipientsArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "list_message_recipientsDictOutput",
  "type": "object"
}

check_inbox

Receipt metadata messaging:read

List this app's waiting deliveries and record its successful check. Does not acknowledge retrieval.

Usage and behavior
Returns waiting deliveries for this authenticated app and records the check time. A null cursor starts a new check, and a returned cursor pages its bounded excerpts. Checking leaves retrieval acknowledgments unchanged and starts no external work.
Input schema
{
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "maxLength": 1024,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Cursor"
    },
    "limit": {
      "default": 20,
      "maximum": 20,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    }
  },
  "title": "check_inboxArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "check_inboxDictOutput",
  "type": "object"
}

read_conversation_messages

Read messaging:read

Read only this app's sent and received conversation excerpts.

Usage and behavior
Pages excerpts from the authenticated app's sent and received messages in an accessible conversation. Other deliveries stay private and the call records no retrieval acknowledgment.
Input schema
{
  "properties": {
    "conversation": {
      "title": "Conversation",
      "type": "string"
    },
    "cursor": {
      "anyOf": [
        {
          "maxLength": 1024,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Cursor"
    },
    "limit": {
      "default": 20,
      "maximum": 20,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "conversation"
  ],
  "title": "read_conversation_messagesArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "read_conversation_messagesDictOutput",
  "type": "object"
}

read_message

Read messaging:read

Read an authorized message in explicit body pages, rechecking linked context access.

Usage and behavior
Returns an authorized sent or received message with lossless body pagination by character offset. Linked context permissions are checked at read time. Reading records no retrieval acknowledgment.
Input schema
{
  "properties": {
    "message": {
      "title": "Message",
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "minimum": 0,
      "title": "Offset",
      "type": "integer"
    }
  },
  "required": [
    "message"
  ],
  "title": "read_messageArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "read_messageDictOutput",
  "type": "object"
}

send_message

Message write messaging:send

Send to explicitly selected eligible inboxes. Brief members may read the discussion; with no brief, only the user's own inboxes take part. No brief content is changed.

Usage and behavior
Sends a user-authorized message as the authenticated app to explicit eligible inboxes. A null brief limits a personal conversation to the user's own inboxes. Brief members can read brief discussions. A new conversation needs a subject, and retries with the same idempotency key and payload are deduplicated. Sending does not change the brief or run an assistant.
Input schema
{
  "$defs": {
    "MessageLinkIn": {
      "additionalProperties": false,
      "properties": {
        "context": {
          "description": "Existing context handle; never a URL or copied body.",
          "maxLength": 120,
          "minLength": 1,
          "title": "Context",
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional recorded section revision, not an artifact verification.",
          "title": "Revision"
        },
        "section": {
          "anyOf": [
            {
              "maxLength": 120,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Section"
        }
      },
      "required": [
        "context"
      ],
      "title": "MessageLinkIn",
      "type": "object"
    }
  },
  "properties": {
    "body": {
      "maxLength": 8000,
      "minLength": 1,
      "title": "Body",
      "type": "string"
    },
    "brief": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brief"
    },
    "conversation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Conversation"
    },
    "idempotency_key": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Idempotency Key",
      "type": "string"
    },
    "links": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MessageLinkIn"
          },
          "maxItems": 10,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Links"
    },
    "recipients": {
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "title": "Recipients",
      "type": "array"
    },
    "reply_to": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reply To"
    },
    "subject": {
      "anyOf": [
        {
          "maxLength": 140,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Subject"
    }
  },
  "required": [
    "brief",
    "recipients",
    "body",
    "idempotency_key"
  ],
  "title": "send_messageArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "send_messageDictOutput",
  "type": "object"
}

acknowledge_messages

Receipt metadata messaging:read

Record retrieval only for this authenticated app. Does not complete work or approve changes.

Usage and behavior
Idempotently records retrieval by this authenticated app for its own delivery IDs. Changes retrieval metadata only, with no effect on work completion or brief approval.
Input schema
{
  "properties": {
    "delivery_ids": {
      "items": {
        "type": "integer"
      },
      "maxItems": 20,
      "minItems": 1,
      "title": "Delivery Ids",
      "type": "array"
    }
  },
  "required": [
    "delivery_ids"
  ],
  "title": "acknowledge_messagesArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "acknowledge_messagesDictOutput",
  "type": "object"
}

propose_message_update

Proposal write messaging:read + messaging:send; context:write (personal) or brief:contribute (shared)

Atomically create an exact draft, typed message origin and explicit human reviewer notice. Approval remains in the complete browser review.

Usage and behavior
Stores an exact pending change to the brief linked to an accessible message. Current section revisions, explicit eligible human reviewers and a stable idempotency key are required for applicable operations. The draft, source attribution and reviewer notice are stored together. Returns a browser review URL.
Input schema
{
  "$defs": {
    "BriefChangeIn": {
      "additionalProperties": false,
      "description": "One change to one section of a brief.",
      "properties": {
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The new value (replace) or the entry (append).",
          "title": "Content"
        },
        "entry_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "append only: the day the entry is about (YYYY-MM-DD).",
          "title": "Entry Date"
        },
        "op": {
          "description": "\"replace\" a current section\u0027s value, \"append\" a log entry, or \"confirm\" it is still true.",
          "enum": [
            "replace",
            "append",
            "confirm"
          ],
          "title": "Op",
          "type": "string"
        },
        "revision": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The revision get_brief returned (replace and confirm).",
          "title": "Revision"
        },
        "section": {
          "description": "The section\u0027s key, from get_brief.",
          "title": "Section",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where this came from, e.g. \"run 7f3a\" or a link.",
          "title": "Source"
        }
      },
      "required": [
        "section",
        "op"
      ],
      "title": "BriefChangeIn",
      "type": "object"
    }
  },
  "properties": {
    "changes": {
      "items": {
        "$ref": "#/$defs/BriefChangeIn"
      },
      "title": "Changes",
      "type": "array"
    },
    "idempotency_key": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Idempotency Key",
      "type": "string"
    },
    "message": {
      "title": "Message",
      "type": "integer"
    },
    "note": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Note"
    },
    "reviewers": {
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "title": "Reviewers",
      "type": "array"
    }
  },
  "required": [
    "message",
    "changes",
    "reviewers",
    "idempotency_key"
  ],
  "title": "propose_message_updateArguments",
  "type": "object"
}
Output schema
{
  "additionalProperties": true,
  "title": "propose_message_updateDictOutput",
  "type": "object"
}

Results and errors

Tools return structured results. Report success only when the result confirms it. A tool result containing error is a failure, even if the HTTP request succeeded; relay its fix when present. A missing or inaccessible handle does not authorize searching another account.

Brief writes can return conflicts without saving changes. Re-read current section revisions and obtain approval for any revised change. Shared contributions distinguish applied changes from proposals awaiting review; do not call a pending proposal applied.

A share returning pending_confirmation has sent no email. A human must open its confirmation URL to approve a new recipient. Confirmed recipients may receive email immediately on a later call, so the assistant must obtain approval for every send. Replacing an existing share can change its access and expiration.

Do not blindly repeat a write after an uncertain network outcome. Search or load the saved document before retrying. Appended log entries and share emails can otherwise be duplicated.

Missing or expired credentials cause HTTP 401. OAuth errors use their protocol response. Per-IP limits are 5 registrations, 30 token requests, and 20 consent requests per minute. HTTP 429 includes Retry-After. Sharing and account quotas also apply; tool errors explain those limits.

Accounts and data

A verified account is required to connect. Free accounts can store 20 contexts and 25 templates and connect two AI clients. Personal briefs are available when enabled. Sending private email shares requires a paid entitlement; workspace and shared-brief permissions depend on membership and collaboration status. Reading, searching, exporting, and disconnecting remain available without upgrading. Current pricing and eligibility are on the pricing page. Segue requires users to be at least 16.

Saved contexts remain in the user's Segue account until deleted. Disconnecting an assistant stops that client's access without deleting the user's stored writing. Content the user explicitly shares or contributes can be read by its authorized recipients. See the privacy policy for processors, retention, deletion, and international transfers, and the product terms.

Support and security reports: support@segue.ai.