SDK Reference
Files SDK
File management methods
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
File management methods
await client.files.write({
sessionId: string;
path: string;
content: string;
});
const content = await client.files.read({
sessionId: string;
path: string;
});
const files = await client.files.list({
sessionId: string;
path?: string;
});
// Write
await client.files.write({
sessionId: 'ses_abc123',
path: 'data.json',
content: JSON.stringify({ hello: 'world' })
});
// Read
const content = await client.files.read({
sessionId: 'ses_abc123',
path: 'data.json'
});
// List
const files = await client.files.list({
sessionId: 'ses_abc123'
});