get_wikis_count
Retrieve the total count of wiki pages in a Backlog project by providing the project ID or key, enabling efficient tracking and management of project documentation.
Instructions
Returns count of wiki pages in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectIdOrKey | Yes | Project ID or project key |
Implementation Reference
- src/tools/getWikisCount.ts:44-54 (handler)The asynchronous handler function that resolves the project ID or key using resolveIdOrKey and calls the Backlog client's getWikisCount method to retrieve the wiki count.handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getWikisCount(result.value); },
- src/tools/getWikisCount.ts:8-27 (schema)Input schema definition for the get_wikis_count tool, accepting optional projectId (number) or projectKey (string) with descriptions.const getWikisCountSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_GET_WIKIS_COUNT_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_GET_WIKIS_COUNT_PROJECT_KEY', "The key of the project (e.g., 'PROJECT')" ) ), }));
- Output schema definition for the wiki count response, consisting of a single 'count' number field.export const WikiCountSchema = z.object({ count: z.number(), });
- src/tools/tools.ts:38-38 (registration)Import statement for the getWikisCountTool factory function.import { getWikisCountTool } from './getWikisCount.js';
- src/tools/tools.ts:115-115 (registration)Registration of the get_wikis_count tool by invoking the factory within the 'wiki' toolset group.getWikisCountTool(backlog, helper),