nworks_board_read
Retrieve detailed content from LINE WORKS board posts using board ID and post ID. Requires OAuth authentication with board.read scope.
Instructions
게시판 글의 상세 내용을 조회합니다. postId는 nworks_board_posts로 조회 가능. User OAuth 인증 필요 (board.read scope)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | 게시판 ID (nworks_board_list로 조회 가능) | |
| postId | Yes | 글 ID (nworks_board_posts로 조회 가능) |
Implementation Reference
- src/mcp/tools.ts:843-865 (handler)Tool registration and handler implementation for 'nworks_board_read' in src/mcp/tools.ts, which delegates to boardApi.readPost.
server.tool( "nworks_board_read", "게시판 글의 상세 내용을 조회합니다. postId는 nworks_board_posts로 조회 가능. User OAuth 인증 필요 (board.read scope)", { boardId: z.string().describe("게시판 ID (nworks_board_list로 조회 가능)"), postId: z.string().describe("글 ID (nworks_board_posts로 조회 가능)"), }, async ({ boardId, postId }) => { try { const post = await boardApi.readPost(boardId, postId); return { content: [{ type: "text" as const, text: JSON.stringify({ postId: post.postId, boardId: post.boardId, title: post.title, body: post.body ?? "", userName: post.userName ?? "", readCount: post.readCount ?? 0, commentCount: post.commentCount ?? 0, createdTime: post.createdTime ?? "", updatedTime: post.updatedTime ?? "", }) }], }; - src/api/board.ts:139-159 (handler)The underlying API implementation of the readPost function used by the nworks_board_read tool.
export async function readPost( boardId: string, postId: string, profile = "default" ): Promise<Post> { const url = `${BASE_URL}/boards/${sanitizePathSegment(boardId)}/posts/${sanitizePathSegment(postId)}`; if (process.env["NWORKS_VERBOSE"] === "1") { console.error(`[nworks] GET ${url}`); } const res = await authedFetch(url, { method: "GET" }, profile); if (!res.ok) return handleError(res); const text = await res.text(); if (process.env["NWORKS_VERBOSE"] === "1") { console.error(`[nworks] Response: ${res.status} (${text.length} bytes)`); } return safeParseJson<Post>(text); }