user_update
Modify Crafty Controller user account details by specifying user ID and fields to update, enabling account management and configuration changes.
Instructions
Update a Crafty Controller user account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User ID or '@me' for the current user | |
| updates | Yes | User fields to update |
Implementation Reference
- src/tools/users.ts:68-84 (handler)The "user_update" tool handler implementation, which uses the client to patch a user's account data.
server.tool( "user_update", "Update a Crafty Controller user account", { user_id: z.string().describe("User ID or '@me' for the current user"), updates: z.record(z.string(), z.unknown()).describe("User fields to update"), }, async ({ user_id, updates }) => { try { const data = await client.patch(`/users/${user_id}`, updates); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } } );