buddypress_list_xprofile_groups
Retrieve BuddyPress extended profile field groups to organize and manage user profile sections, with optional field inclusion for comprehensive profile structure overview.
Instructions
List XProfile field groups
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch_fields | No | Include fields in response |
Implementation Reference
- src/index.ts:641-644 (handler)Handler implementation that checks the tool name and performs a GET request to `/xprofile/groups` endpoint with optional `fetch_fields` query parameter.else if (name === 'buddypress_list_xprofile_groups') { const params = new URLSearchParams(); if (args.fetch_fields !== undefined) params.append('fetch_fields', String(args.fetch_fields)); result = await buddypressRequest(`/xprofile/groups?${params}`);
- src/index.ts:293-302 (registration)Tool registration in the `tools` array used for tool discovery via ListTools request. Includes name, description, and input schema.{ name: 'buddypress_list_xprofile_groups', description: 'List XProfile field groups', inputSchema: { type: 'object', properties: { fetch_fields: { type: 'boolean', description: 'Include fields in response' }, }, }, },
- src/index.ts:296-301 (schema)Input schema defining the optional `fetch_fields` boolean parameter for the tool.inputSchema: { type: 'object', properties: { fetch_fields: { type: 'boolean', description: 'Include fields in response' }, }, },