add_wiki
Create a new wiki page in Backlog projects by specifying project ID, page name, and content, with optional email notifications.
Instructions
Creates a new wiki page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID | |
| name | Yes | Name of the wiki page | |
| content | Yes | Content of the wiki page | |
| mailNotify | No | Whether to send notification emails (default: false) |
Implementation Reference
- src/tools/addWiki.ts:37-43 (handler)The core handler function that implements the add_wiki tool logic by calling the Backlog API's postWiki method with projectId, name, content, and optional mailNotify.handler: async ({ projectId, name, content, mailNotify }) => backlog.postWiki({ projectId, name, content, mailNotify, }),
- src/tools/addWiki.ts:7-22 (schema)Input schema definition for the add_wiki tool using Zod, including projectId, name, content, and optional mailNotify.const addWikiSchema = buildToolSchema((t) => ({ projectId: z.number().describe(t('TOOL_ADD_WIKI_PROJECT_ID', 'Project ID')), name: z.string().describe(t('TOOL_ADD_WIKI_NAME', 'Name of the wiki page')), content: z .string() .describe(t('TOOL_ADD_WIKI_CONTENT', 'Content of the wiki page')), mailNotify: z .boolean() .optional() .describe( t( 'TOOL_ADD_WIKI_MAIL_NOTIFY', 'Whether to send notification emails (default: false)' ) ), }));
- src/tools/tools.ts:122-129 (registration)Registration of the add_wiki tool within the 'wiki' toolset group in the allTools export.tools: [ getWikiPagesTool(backlog, helper), getWikisCountTool(backlog, helper), getWikiTool(backlog, helper), addWikiTool(backlog, helper), updateWikiTool(backlog, helper), ], },