NewWacht Bench is live — AI-assisted development for Wacht

listThreadFilesystem()

This method lists files and directories available in a thread workspace.

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 threadId: string = 'threadid-123';  const path: string = '/';  return client.ai.listThreadFilesystem(threadId, path);}

Signature

function listThreadFilesystem(  threadId: string,  path?: string,  client?: WachtClient,): Promise<TaskWorkspaceListing>

Parameters

threadId: string;
Target actor project thread id.
path?: string | undefined;
Filesystem path selector.

Return value

result?: TaskWorkspaceListing | undefined;
Operation result payload.

On this page