list_projects
Retrieve all projects in your organization to analyze user sessions, track errors, and understand behavior patterns with OpenReplay analytics.
Instructions
Get list of all projects in the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:314-325 (handler)The main handler function that executes the list_projects tool logic by calling the OpenReplay API to fetch projects and returning the JSON-formatted response.private async listProjects() { const response = await this.api.get(`/api/v1/projects`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:54-62 (registration)Registration of the list_projects tool in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: "list_projects", description: "Get list of all projects in the organization", inputSchema: { type: "object", properties: {}, required: [] } },
- src/index.ts:57-61 (schema)Input schema definition for the list_projects tool, specifying no required properties.inputSchema: { type: "object", properties: {}, required: [] }
- src/index.ts:274-275 (registration)Dispatch case in the CallToolRequestSchema handler that routes calls to list_projects to the listProjects method.case "list_projects": return await this.listProjects();