remove_cue_from_list
Remove a specific cue by its ID from a cue list on the LacyLights MCP Server, ensuring precise control over theatrical lighting design and scene management.
Instructions
Remove a cue from a cue list
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cueId | Yes | ID of the cue to remove |
Input Schema (JSON Schema)
{
"properties": {
"cueId": {
"description": "ID of the cue to remove",
"type": "string"
}
},
"required": [
"cueId"
],
"type": "object"
}
Implementation Reference
- src/tools/cue-tools.ts:923-937 (handler)The main handler function for the 'remove_cue_from_list' tool. It takes a cueId, calls the GraphQL client to delete the cue, and returns success status with a message.async removeCueFromList(args: { cueId: string }) { const { cueId } = args; try { const success = await this.graphqlClient.deleteCue(cueId); return { cueId, success, message: success ? "Cue removed successfully" : "Failed to remove cue", }; } catch (error) { throw new Error(`Failed to remove cue: ${error}`); } }
- src/index.ts:1387-1399 (schema)The input schema definition for the 'remove_cue_from_list' tool, specifying that it requires a 'cueId' string parameter.{ name: "remove_cue_from_list", description: "Remove a cue from a cue list", inputSchema: { type: "object", properties: { cueId: { type: "string", description: "ID of the cue to remove", }, }, required: ["cueId"], },
- src/index.ts:2339-2351 (registration)The dispatch handler in the MCP server's CallToolRequestSchema that routes 'remove_cue_from_list' calls to cueTools.removeCueFromList.case "remove_cue_from_list": return { content: [ { type: "text", text: JSON.stringify( await this.cueTools.removeCueFromList(args as any), null, 2, ), }, ], };