buddypress_update_activity
Modify existing activity content in a BuddyPress community by specifying the activity ID and new content. This tool helps maintain accurate and current community interactions through the BuddyPress REST API.
Instructions
Update an existing activity item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Activity ID | |
| content | No | New activity content |
Implementation Reference
- src/index.ts:562-565 (handler)Handler logic for the buddypress_update_activity tool. It extracts the activity ID and the rest of the arguments as body, then sends a PUT request to the BuddyPress REST API endpoint `/activity/{id}` to update the activity.else if (name === 'buddypress_update_activity') { const { id, ...body } = args as any; result = await buddypressRequest(`/activity/${id}`, 'PUT', body); }
- src/index.ts:97-104 (schema)Input schema definition for the tool, specifying required 'id' parameter and optional 'content'.inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Activity ID', required: true }, content: { type: 'string', description: 'New activity content' }, }, required: ['id'], },
- src/index.ts:94-105 (registration)Tool registration in the tools array, which is returned by the ListTools handler. Includes name, description, and input schema.{ name: 'buddypress_update_activity', description: 'Update an existing activity item', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Activity ID', required: true }, content: { type: 'string', description: 'New activity content' }, }, required: ['id'], }, },