flowcheck_exchange_plaid_token
Exchange a Plaid public token for permanent API access after completing the Plaid Link authentication flow.
Instructions
Exchange a Plaid public token (from Link) for permanent access. Call this after the user completes Plaid Link in the browser.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public_token | Yes | Plaid public token from the Link flow |
Implementation Reference
- src/tools/connect.ts:74-92 (handler)The implementation of the 'flowcheck_exchange_plaid_token' tool handler within registerConnectTools. It accepts a 'public_token' and makes a POST request to '/connect/plaid/exchange' using the FlowCheckClient.
server.registerTool( "flowcheck_exchange_plaid_token", { title: "Exchange Plaid Token", description: "Exchange a Plaid public token (from Link) for permanent access. " + "Call this after the user completes Plaid Link in the browser.", inputSchema: z.object({ public_token: z .string() .describe("Plaid public token from the Link flow"), }), }, async ({ public_token }) => { const result = await client.request("POST", "/connect/plaid/exchange", { body: { public_token }, }); return { content: [{ type: "text" as const, text: result }] }; },