nworks_board_create
Create and publish posts to LINE WORKS boards. Use this tool to write announcements or share content in team workspaces after selecting a board ID.
Instructions
게시판에 글을 작성합니다. '게시판에 글 올려줘', '공지 작성해줘' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board scope)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | 게시판 ID (nworks_board_list로 조회 가능) | |
| title | Yes | 글 제목 | |
| body | No | 글 본문 | |
| enableComment | No | 댓글 허용 (기본: true) | |
| sendNotifications | No | 알림 발송 (기본: false) |
Implementation Reference
- src/mcp/tools.ts:876-905 (handler)The nworks_board_create tool is registered and implemented in src/mcp/tools.ts. It calls the boardApi.createPost function to create a new post in a specified board.
server.tool( "nworks_board_create", "게시판에 글을 작성합니다. '게시판에 글 올려줘', '공지 작성해줘' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board scope)", { boardId: z.string().describe("게시판 ID (nworks_board_list로 조회 가능)"), title: z.string().describe("글 제목"), body: z.string().optional().describe("글 본문"), enableComment: z.boolean().optional().describe("댓글 허용 (기본: true)"), sendNotifications: z.boolean().optional().describe("알림 발송 (기본: false)"), }, async ({ boardId, title, body, enableComment, sendNotifications }) => { try { const post = await boardApi.createPost({ boardId, title, body, enableComment, sendNotifications, }); return { content: [{ type: "text" as const, text: JSON.stringify({ success: true, postId: post.postId, boardId: post.boardId, title: post.title }) }], }; } catch (err) { return { content: [{ type: "text" as const, text: mcpErrorHint(err, "board.create") }], isError: true, }; } } );