Skip to content

TypeScript API / @laikacms/server/ai / DocumentContext

Interface: DocumentContext ​

Document context passed to tools

Properties ​

collection? ​

ts
optional collection?: string;

Document collection name


data ​

ts
data: Record<string, unknown>;

Current document data


schema? ​

ts
optional schema?: Record<string, unknown>;

Document schema (field definitions)


slug ​

ts
slug: string;

Document slug/path

Released under the MIT License.