获取讨论帖详情
nowcoder_get_discussionRetrieves full content of a Nowcoder discussion or feed post, including title, author, time, body, tags and link.
Instructions
获取牛客网讨论帖或动态的完整内容。
Args:
url (string): 帖子的完整URL、discuss ID 或 feed UUID 例如: "https://www.nowcoder.com/discuss/353154004265934848" "353154004265934848" "https://www.nowcoder.com/feed/main/detail/xxxx"
response_format ("markdown" | "json"): 返回格式,默认 "markdown"
Returns: 帖子内容,包含标题、作者、时间、正文、标签、链接
Examples:
获取帖子详情 (markdown): { "url": "353154004265934848" }
获取帖子详情 (json): { "url": "353154004265934848", "response_format": "json" }
Error Handling:
页面加载超时时返回超时错误提示
网络连接失败时返回网络错误提示
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 讨论帖的完整URL或ID。支持格式: 完整URL(https://www.nowcoder.com/discuss/123), discuss ID(123), feed UUID | |
| response_format | No | 输出格式: 'markdown' 人类可读, 'json' 机器可解析 | markdown |