validate_access_token
Check Instagram API access token validity and verify required permissions for secure API interactions.
Instructions
Validate the Instagram API access token and check permissions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:403-413 (handler)The handler implementation for validating the access token in the Instagram API client.
async validateAccessToken(): Promise<boolean> { try { await this.request("GET", "me", { params: { fields: "id" }, useCache: false, }); return true; } catch { return false; } } - src/index.ts:402-405 (handler)The tool handler switch case in index.ts that calls the client's validateAccessToken method.
case "validate_access_token": { const valid = await c.validateAccessToken(); return JSON.stringify({ valid }, null, 2); } - src/index.ts:172-175 (registration)Tool registration for validate_access_token.
name: "validate_access_token", description: "Validate the Instagram API access token and check permissions", inputSchema: { type: "object" as const, properties: {} }, },