Exchange Plaid Token
flowcheck_exchange_plaid_tokenExchange 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"public_token": "<public_token>"
},
"name": "flowcheck_exchange_plaid_token"
}
}Input 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 }] }; },