linear_unarchiveInitiative
Restore archived initiatives in Linear to make them active and visible again in project management workflows.
Instructions
Unarchive an initiative
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initiativeId | Yes | The ID of the initiative to unarchive |
Implementation Reference
- Handler function for linear_unarchiveInitiative tool. Validates input using isArchiveInitiativeInput type guard and calls linearService.unarchiveInitiative(initiativeId).export function unarchiveInitiativeHandler(linearService: LinearService) { return async (args: unknown) => { if (!isArchiveInitiativeInput(args)) { throw new Error('Invalid input for unarchiveInitiative'); } console.log(`[unarchiveInitiative] Unarchiving initiative: ${args.initiativeId}`); const result = await linearService.unarchiveInitiative(args.initiativeId); console.log(`[unarchiveInitiative] Initiative unarchived successfully`); return result; }; }
- src/tools/handlers/index.ts:96-96 (registration)Registration of the linear_unarchiveInitiative handler in the registerToolHandlers function.linear_unarchiveInitiative: unarchiveInitiativeHandler(linearService),
- Tool schema definition including input (initiativeId) and output (success boolean).{ name: 'linear_unarchiveInitiative', description: 'Unarchive an initiative', input_schema: { type: 'object', properties: { initiativeId: { type: 'string', description: 'The ID of the initiative to unarchive', }, }, required: ['initiativeId'], }, output_schema: { type: 'object', properties: { success: { type: 'boolean' }, }, }, },
- src/tools/type-guards.ts:574-583 (helper)Type guard for validating linear_unarchiveInitiative input arguments (though handler uses isArchiveInitiativeInput).export function isUnarchiveInitiativeArgs(args: unknown): args is { id: string; } { return ( typeof args === 'object' && args !== null && 'id' in args && typeof (args as { id: string }).id === 'string' ); }