getProjectTaskBoardItemFilesystemFile()
This method reads one file from the task board item filesystem.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function example() { const client = await wachtClient(); const projectId: string = 'projectid-123'; const itemId: string = 'itemid-123'; const path: string = '/'; return client.ai.getProjectTaskBoardItemFilesystemFile(projectId, itemId, path);}Signature
function getProjectTaskBoardItemFilesystemFile( projectId: string, itemId: string, path: string, client?: WachtClient,): Promise<TaskWorkspaceFileContent>Parameters
›projectId: string;
projectId: string;Target actor project id.
›itemId: string;
itemId: string;Target task board item id.
›path: string;
path: string;Filesystem path selector.
Return value
›result?: TaskWorkspaceFileContent | undefined;
result?: TaskWorkspaceFileContent | undefined;Operation result payload.
Examples
AI usage pattern
import { wachtClient } from '@wacht/nextjs/server';export async function createAndInspectBoardItem(projectId: string) { const client = await wachtClient(); const item = await client.ai.createProjectTaskBoardItem(projectId, { title: 'Investigate incident' }); const events = await client.ai.listProjectTaskBoardItemEvents(projectId, item.id); return { item, events };}