get_projects
Retrieve all projects from your Dida365 account to view project details like ID, name, color, and organization settings.
Instructions
Retrieve a list of all projects in the Dida365 account. Returns project details including ID, name, color, view mode and sort order. No parameters required.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:445-456 (handler)The handler for the 'get_projects' tool. It makes a GET request to the Dida365 API '/project' endpoint to retrieve the list of projects and returns the data as a formatted JSON text block.case "get_projects": { const response: AxiosResponse<ProjectListResponse> = await dida365Api.get("/project"); return { content: [ { type: "text", text: `项目列表: ${JSON.stringify(response.data, null, 2)}`, }, ], }; }
- src/index.ts:240-248 (schema)The schema and registration entry for the 'get_projects' tool in the ListTools response, defining its name, description, and empty input schema.{ name: "get_projects", description: "Retrieve a list of all projects in the Dida365 account. Returns project details including ID, name, color, view mode and sort order. No parameters required.", inputSchema: { type: "object", properties: {}, }, required: [], },
- src/index.ts:66-79 (schema)TypeScript interface defining the structure of a Project object, used in the get_projects response.interface Project { id?: string; name?: string; color?: string; sortOrder?: number; viewMode? : string; kind? :string; closed?:boolean; groupId?: string; permission?:string; }
- src/index.ts:86-88 (schema)TypeScript interface for the API response containing the list of projects.interface ProjectListResponse { projects: Project[]; }