nworks_board_posts
Retrieve and display posts from LINE WORKS boards. Use this tool to view announcements, discussions, or content lists after obtaining board ID and user authentication.
Instructions
게시판의 글 목록을 조회합니다. '게시판 글 보여줘', '공지사항 확인' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board.read scope)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | 게시판 ID (nworks_board_list로 조회 가능) | |
| count | No | 페이지당 항목 수 (기본: 20, 최대: 40) | |
| cursor | No | 페이지네이션 커서 |
Implementation Reference
- src/mcp/tools.ts:819-839 (handler)The handler implementation for the nworks_board_posts tool, which calls boardApi.listPosts to retrieve board posts.
async ({ boardId, count, cursor }) => { try { const result = await boardApi.listPosts(boardId, count ?? 20, cursor); const posts = result.posts.map((p) => ({ postId: p.postId, title: p.title, userName: p.userName ?? "", readCount: p.readCount ?? 0, commentCount: p.commentCount ?? 0, createdTime: p.createdTime ?? "", })); return { content: [{ type: "text" as const, text: JSON.stringify({ posts, count: posts.length, hasMore: !!result.responseMetaData?.nextCursor, nextCursor: result.responseMetaData?.nextCursor ?? null }) }], }; } catch (err) { return { content: [{ type: "text" as const, text: mcpErrorHint(err, "board.posts") }], isError: true, }; } } - src/mcp/tools.ts:811-840 (registration)Registration of the nworks_board_posts tool including its description and schema definition.
server.tool( "nworks_board_posts", "게시판의 글 목록을 조회합니다. '게시판 글 보여줘', '공지사항 확인' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board.read scope)", { boardId: z.string().describe("게시판 ID (nworks_board_list로 조회 가능)"), count: z.number().optional().describe("페이지당 항목 수 (기본: 20, 최대: 40)"), cursor: z.string().optional().describe("페이지네이션 커서"), }, async ({ boardId, count, cursor }) => { try { const result = await boardApi.listPosts(boardId, count ?? 20, cursor); const posts = result.posts.map((p) => ({ postId: p.postId, title: p.title, userName: p.userName ?? "", readCount: p.readCount ?? 0, commentCount: p.commentCount ?? 0, createdTime: p.createdTime ?? "", })); return { content: [{ type: "text" as const, text: JSON.stringify({ posts, count: posts.length, hasMore: !!result.responseMetaData?.nextCursor, nextCursor: result.responseMetaData?.nextCursor ?? null }) }], }; } catch (err) { return { content: [{ type: "text" as const, text: mcpErrorHint(err, "board.posts") }], isError: true, }; } } );