get_account_pages
Retrieve Facebook pages linked to an account and their associated Instagram business profiles for cross-platform management.
Instructions
Get Facebook pages connected to the account and their Instagram business accounts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:388-391 (handler)The tool handler in the switch-case block that invokes the client method getAccountPages.
case "get_account_pages": { const pages = await c.getAccountPages(); return JSON.stringify({ pages, count: pages.length }, null, 2); } - src/client.ts:379-385 (helper)The client implementation that performs the actual network request to fetch account pages.
async getAccountPages(): Promise<IGPage[]> { const data = await this.request("GET", "me/accounts", { params: { fields: "id,name,instagram_business_account" }, }); return data.data ?? []; } - src/index.ts:148-152 (registration)The MCP tool registration definition for get_account_pages.
{ name: "get_account_pages", description: "Get Facebook pages connected to the account and their Instagram business accounts", inputSchema: { type: "object" as const, properties: {} },