get-legal-hold-content-items
Retrieve content items under legal hold for Miro Enterprise organizations to manage compliance and e-discovery cases.
Instructions
Retrieves the list of content items under legal hold (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | The ID of the organization for which you want to retrieve the list of content items under hold | |
| caseId | Yes | The ID of the case for which you want to retrieve the list of content items under hold | |
| legalHoldId | Yes | The ID of the legal hold for which you want to retrieve the list of content items under hold | |
| limit | Yes | The maximum number of items in the result list | |
| cursor | No | Cursor for pagination |
Implementation Reference
- The asynchronous handler function that executes the tool logic by calling MiroClient.getApi().getLegalHoldContentItems with the provided parameters and handling the response or error.fn: async ({ orgId, caseId, legalHoldId, limit, cursor }) => { try { const query: any = {}; if (cursor) query.cursor = cursor; const response = await MiroClient.getApi().getLegalHoldContentItems( orgId, caseId, legalHoldId, limit, query ); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error retrieving legal hold content items: ${error}\n`); return ServerResponse.error(error); } } };
- Zod schema defining the input arguments for the tool: orgId, caseId, legalHoldId, limit, and optional cursor.args: { orgId: z.string().describe("The ID of the organization for which you want to retrieve the list of content items under hold"), caseId: z.string().describe("The ID of the case for which you want to retrieve the list of content items under hold"), legalHoldId: z.string().describe("The ID of the legal hold for which you want to retrieve the list of content items under hold"), limit: z.number().describe("The maximum number of items in the result list"), cursor: z.string().optional().nullish().describe("Cursor for pagination") },
- src/index.ts:206-206 (registration)Registers the getLegalHoldContentItemsTool with the ToolBootstrapper instance..register(getLegalHoldContentItemsTool)
- src/index.ts:105-105 (registration)Imports the tool definition for registration.import getLegalHoldContentItemsTool from './tools/getLegalHoldContentItems.js';