files.get
Retrieve a specific file using its unique identifier from the Ryft MCP server for financial resource management.
Instructions
Get a file by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| accountId | No |
Implementation Reference
- src/tools/files.ts:41-49 (handler)The handler implementation for the 'files.get' tool, which uses the Ryft client to fetch a file by its ID.
registerTool( 'files.get', 'Get a file by id.', getFileSchema.shape, async (args) => { const { id, accountId } = getFileSchema.parse(args); return client.get(`/files/${id}`, accountId ? { accountId } : undefined); }, ); - src/tools/files.ts:12-15 (schema)The Zod schema definition for input validation for the 'files.get' tool.
const getFileSchema = z.object({ id: z.string().min(1), accountId: z.string().optional(), });