List Histories
list_historiesRetrieve timestamps of document revisions to track changes and access version history.
Instructions
List doc histories (timestamps) for a doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | ||
| guid | Yes | ||
| take | No | ||
| before | No |
Implementation Reference
- src/util/mcp.ts:8-24 (helper)The `text()` helper function used by the handler to format the response as MCP text content.
export function text(data: unknown) { if (typeof data === "string") { return { content: [{ type: "text" as const, text: data }] }; } if (data !== null && typeof data === "object" && !Array.isArray(data)) { const structuredContent = cloneJsonValue(data); return { content: [{ type: "text" as const, text: JSON.stringify(structuredContent) }], structuredContent, }; } return { content: [{ type: "text" as const, text: JSON.stringify(data) }], }; }