vk_wall_create_comment
Add comments to VKontakte wall posts using the VK API. Specify owner ID, post ID, and comment text to engage with social content.
Instructions
Add a comment to a wall post
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner_id | Yes | Wall owner ID | |
| post_id | Yes | Post ID | |
| message | Yes | Comment text |
Implementation Reference
- src/index.js:254-260 (handler)Tool handler for vk_wall_create_comment - processes the request by calling vk.wallCreateComment with owner_id, post_id, and message parameters
case 'vk_wall_create_comment': result = await vk.wallCreateComment({ owner_id: args.owner_id, post_id: args.post_id, message: args.message, }); break; - src/index.js:133-144 (schema)Tool schema definition for vk_wall_create_comment - defines input parameters (owner_id, post_id, message) with required fields and descriptions
name: 'vk_wall_create_comment', description: 'Add a comment to a wall post', inputSchema: { type: 'object', properties: { owner_id: { type: 'number', description: 'Wall owner ID' }, post_id: { type: 'number', description: 'Post ID' }, message: { type: 'string', description: 'Comment text' }, }, required: ['owner_id', 'post_id', 'message'], }, }, - src/index.js:57-57 (helper)VKClient method wallCreateComment that makes the actual VK API call to wall.createComment endpoint
wallCreateComment(params) { return this.call('wall.createComment', params); } - src/index.js:330-330 (registration)Tool registration - all tools including vk_wall_create_comment are registered with the MCP server via the tools array
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));