poker_updateTransform
Update transformation operations for existing tasks by modifying rotation and translation parameters to adjust task positioning and orientation.
Instructions
既存変換の操作を更新します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 更新する変換名 | |
| operations | No | 新しい変換操作の配列 |
Implementation Reference
- Handler function that executes the poker_updateTransform tool. Validates input, calls taskManager.updateTransform, handles specific errors, and returns success or error response.async updateTransform(args) { try { if (!args.name) throw new ValidationError('変換名は必須です', 'name', args.name); const { name, ...updates } = args; const result = await taskManager.updateTransform(name, updates); return { success: true, message: result }; } catch (error) { logger.error('updateTransformハンドラーエラー', { args, error: error.message }); // マニフェスト仕様のupdate専用エラーコード処理 if (error.code === -32075) { return { success: false, error: error.message, details: { errorCode: error.code, suggestion: 'proposeTransformメソッドを使用してください', missingObject: args.name, objectType: '変換' } }; } throw error; } },
- Input schema and metadata for the poker_updateTransform tool, defining parameters like name and operations.{ name: 'poker_updateTransform', description: '既存変換の操作を更新します', inputSchema: { type: 'object', properties: { name: { type: 'string', description: '更新する変換名' }, operations: { type: 'array', description: '新しい変換操作の配列', items: { type: 'object', properties: { rotate_around_x: { type: 'number' }, rotate_around_y: { type: 'number' }, rotate_around_z: { type: 'number' }, translate: { type: 'string' } } } } }, required: ['name'] } },
- src/mcp/server.js:43-57 (registration)MCP server request handler for tool calls. Maps tool name 'poker_updateTransform' to 'updateTransform' handler by removing 'poker_' prefix and executes it.this.server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; logger.info(`MCP Tool実行: ${name}`, { args }); // ハンドラー名をツール名から生成(プレフィックス除去) const handlerName = name.replace('poker_', ''); const handler = this.handlers[handlerName]; if (!handler) { throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`); } return await safeExecute(async () => handler(args), { tool: name })(); });