Zhihu
v0.5.0Zhihu CLI for AI agents: search, read, download, and publish from the terminal.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
zhihu_agora_ai
Use AI to automatically vote on agora discussions (AI 自动投票). CLI: zhihu agora ai [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
api_base | ||
api_key | ||
discussion_id | ||
json | boolean | |
model | ||
no_image | boolean |
zhihu_agora_detail
Show the reported comment detail for an agora discussion. CLI: zhihu agora detail [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
discussion_id * | string | |
json | boolean |
zhihu_agora_me
Show your agora (众裁) juror status and statistics. CLI: zhihu agora me [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_agora_next
Get the next agora discussion to judge (众裁案例). CLI: zhihu agora next [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
discussion_id | ||
json | boolean |
zhihu_agora_reviews
List review cases in an agora discussion. CLI: zhihu agora reviews [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
discussion_id * | string | |
json | boolean | |
max |
zhihu_agora_vote
Cast a vote on an agora discussion (众裁投票). CLI: zhihu agora vote [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
discussion_id * | string | |
vote * | string | Vote choice |
json | boolean |
zhihu_ai_chat
Send a message to Zhihu Direct Answer and stream the response. CLI: zhihu ai chat [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
message * | string | |
json | boolean | |
knowledge | string | |
mode | string | |
model | string | |
no_stream | boolean | |
session | string |
zhihu_ai_list
List your Zhihu Direct Answer session history. CLI: zhihu ai list [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_ai_view
View a Zhihu Direct Answer conversation by session ID. CLI: zhihu ai view [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
json | boolean |
zhihu_auth_captcha
Check and resolve Zhihu risk-control / captcha challenges. CLI: zhihu auth captcha [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
open_browser | boolean | |
url |
zhihu_auth_clear
Remove cached headers. CLI: zhihu auth clear [ARGS] [OPTIONS]
zhihu_auth_import
Import the Zhihu session from a local browser's cookie store. CLI: zhihu auth import [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
browser | ||
no_verify | boolean | |
profile |
zhihu_auth_login
Login to Zhihu via QR code. CLI: zhihu auth login [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
profile |
zhihu_auth_logout
Log out — switch to an unauthenticated session (hidden profile). CLI: zhihu auth logout [ARGS] [OPTIONS]
zhihu_auth_paste
Paste credentials to cache headers. CLI: zhihu auth paste [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
profile |
zhihu_auth_status
Show authentication status and active profile. CLI: zhihu auth status [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_browse_annotation
Show segment comments (句子评论) for an answer. CLI: zhihu browse annotation [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_browse_answer
View a single Zhihu answer in the terminal. CLI: zhihu browse answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
reading_mode | boolean |
zhihu_browse_article
Read a Zhihu article in the terminal. CLI: zhihu browse article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
reading_mode | boolean |
zhihu_browse_comments
Print the comment tree for any Zhihu item. CLI: zhihu browse comments [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_browse_feed
Stream Zhihu recommend or follow feed. CLI: zhihu browse feed [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
markdown | boolean | |
max | integer | |
output | string | |
sort | string | |
type | string |
zhihu_browse_following_collections
List the collections (favorites) a Zhihu user follows. CLI: zhihu browse following collections [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_following_columns
List the columns (zhuanlan) a Zhihu user follows. CLI: zhihu browse following columns [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_following_followers
List a Zhihu user's followers (people who follow them). CLI: zhihu browse following followers [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_following_questions
List the questions a Zhihu user follows. CLI: zhihu browse following questions [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_following_topics
List the topics a Zhihu user follows. CLI: zhihu browse following topics [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_following_users
List the users a Zhihu user follows. CLI: zhihu browse following users [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string | |
url_token |
zhihu_browse_history
View your Zhihu read history. CLI: zhihu browse history [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | integer | |
output | string | |
sort | string |
zhihu_browse_hot
View the Zhihu real-time hot list. CLI: zhihu browse hot [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
sort | string |
zhihu_browse_log
View the edit history (log) of a Zhihu question. CLI: zhihu browse log [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
diff | string | |
json | boolean | |
sort | string |
zhihu_browse_notifications
View your Zhihu notifications. CLI: zhihu browse notifications [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | integer | |
output | string | |
sort | string |
zhihu_browse_pin
View a single Zhihu pin (想法) in the terminal. CLI: zhihu browse pin [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
reading_mode | boolean |
zhihu_browse_question
Browse a Zhihu question and all its answers. CLI: zhihu browse question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
collapsed | boolean | |
json | boolean | |
max | ||
reading_mode | boolean | |
sort | string |
zhihu_browse_upvoters
List users who upvoted an answer or article. CLI: zhihu browse upvoters [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_browse_yanxuan
Read Zhihu Yanxuan (盐选) premium content in the terminal. CLI: zhihu browse yanxuan [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_or_id * | string | |
json | boolean | |
max | ||
max_pages | ||
offset | integer | |
output | string | |
reading_mode | boolean | |
server_decode | boolean |
zhihu_browse_zvideo
View a single Zhihu zvideo in the terminal. CLI: zhihu browse zvideo [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
reading_mode | boolean |
zhihu_chat_clear
Mark all unread inbox threads as read. CLI: zhihu chat clear [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | |
json | boolean |
zhihu_chat_export
Export chat history to a markdown file with images downloaded locally. CLI: zhihu chat export [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | |
json | boolean | |
max | ||
output_dir |
zhihu_chat_history
Read messages from a chat conversation. CLI: zhihu chat history [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | |
json | boolean | |
max | ||
rich_images | boolean | |
show_id | boolean |
zhihu_chat_inbox
List recent conversations (paginated — walks all pages by default). CLI: zhihu chat inbox [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
unread | boolean |
zhihu_chat_send
Send a text message to a user. CLI: zhihu chat send [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
content * | string | |
user_id * | string |
zhihu_chat_send_image
Upload and send an image to a user via chat. CLI: zhihu chat send-image [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
user_id * | string | |
json | boolean |
zhihu_chat_unsend
Recall (unsend) a previously sent chat message. CLI: zhihu chat unsend [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
json | boolean |
zhihu_config_app_version_clear
Reset x-app-version to default. CLI: zhihu config app-version clear [ARGS] [OPTIONS]
zhihu_config_app_version_set
Set the x-app-version. CLI: zhihu config app-version set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
value * | string |
zhihu_config_app_version_show
Show the current x-app-version. CLI: zhihu config app-version show [ARGS] [OPTIONS]
zhihu_config_app_za_clear
Reset x-app-za to default. CLI: zhihu config app-za clear [ARGS] [OPTIONS]
zhihu_config_app_za_set
Set the x-app-za. CLI: zhihu config app-za set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
value * | string |
zhihu_config_app_za_show
Show the current x-app-za. CLI: zhihu config app-za show [ARGS] [OPTIONS]
zhihu_config_llm_clear
Remove the cached LLM configuration. CLI: zhihu config llm clear [ARGS] [OPTIONS]
zhihu_config_llm_set
Cache LLM credentials for the crank archiver. CLI: zhihu config llm set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
api_base | ||
api_key | ||
max_image_side | ||
model | ||
vision |
zhihu_config_llm_show
Show the currently cached LLM configuration. CLI: zhihu config llm show [ARGS] [OPTIONS]
zhihu_config_plot_dpi_clear
Reset plot dpi to default. CLI: zhihu config plot-dpi clear [ARGS] [OPTIONS]
zhihu_config_plot_dpi_set
Set the plot dpi. CLI: zhihu config plot-dpi set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
dpi * | integer |
zhihu_config_plot_dpi_show
Show the current plot dpi. CLI: zhihu config plot-dpi show [ARGS] [OPTIONS]
zhihu_config_qps_clear
Reset global request rate limit to default. CLI: zhihu config qps clear [ARGS] [OPTIONS]
zhihu_config_qps_set
Set the global request rate limit. CLI: zhihu config qps set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
qps * | number |
zhihu_config_qps_show
Show the current global request rate limit. CLI: zhihu config qps show [ARGS] [OPTIONS]
zhihu_config_smoothing_clear
Reset chart smoothing method to default. CLI: zhihu config smoothing clear [ARGS] [OPTIONS]
zhihu_config_smoothing_set
Set the chart smoothing method. CLI: zhihu config smoothing set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
method * | string |
zhihu_config_smoothing_show
Show the current chart smoothing method. CLI: zhihu config smoothing show [ARGS] [OPTIONS]
zhihu_config_start_date_clear
Reset default start date to default. CLI: zhihu config start-date clear [ARGS] [OPTIONS]
zhihu_config_start_date_set
Set the default start date. CLI: zhihu config start-date set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
date_str * | string |
zhihu_config_start_date_show
Show the current default start date. CLI: zhihu config start-date show [ARGS] [OPTIONS]
zhihu_config_suppress_incomplete_warning_clear
Reset incomplete-stream warning suppression to default. CLI: zhihu config suppress-incomplete-warning clear [ARGS] [OPTIONS]
zhihu_config_suppress_incomplete_warning_set
Set the incomplete-stream warning suppression. CLI: zhihu config suppress-incomplete-warning set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
value * | boolean |
zhihu_config_suppress_incomplete_warning_show
Show the current incomplete-stream warning suppression. CLI: zhihu config suppress-incomplete-warning show [ARGS] [OPTIONS]
zhihu_config_user_agent_clear
Reset user-agent to default. CLI: zhihu config user-agent clear [ARGS] [OPTIONS]
zhihu_config_user_agent_set
Set the user-agent. CLI: zhihu config user-agent set [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
value * | string |
zhihu_config_user_agent_show
Show the current user-agent. CLI: zhihu config user-agent show [ARGS] [OPTIONS]
zhihu_consult_answer
Answer a paid-consultation question. CLI: zhihu consult answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
content * | string | |
url_or_id * | string | |
image | ||
image_height | integer | |
image_width | integer | |
json | boolean |
zhihu_consult_answering
List in-progress paid-consultation questions, optionally showing answers. CLI: zhihu consult answering [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
show_answers | boolean |
zhihu_consult_closed
List closed / resolved paid-consultation questions. CLI: zhihu consult closed [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_consult_other
List other paid-consultation questions (non-standard status). CLI: zhihu consult other [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_consult_show
Show full detail of a consultation conversation. CLI: zhihu consult show [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_or_id * | string | |
json | boolean |
zhihu_consult_unanswered
List unanswered paid-consultation questions. CLI: zhihu consult unanswered [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_crank_alias_add
Add an alias token (alt account) to an author. CLI: zhihu crank alias add [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
author * | string | Author display name |
token * | string |
zhihu_crank_alias_list
List alias tokens for authors in the registry. CLI: zhihu crank alias list [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
author |
zhihu_crank_alias_remove
Remove an alias token from an author. CLI: zhihu crank alias remove [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
author * | string | Author display name |
token * | string |
zhihu_crank_archive
One-shot: fetch ALL articles from a Zhihu user, LLM-name the series, and archive. CLI: zhihu crank archive [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user_token * | string | Zhihu user URL token (e.g. chen-bao-qun) |
api_base | ||
api_key | ||
dry_run | boolean | |
model | ||
output_dir | string | |
sample_count | integer | |
since |
zhihu_crank_bootstrap
Scan serial papers directories and generate initial authors_registry.json. CLI: zhihu crank bootstrap [ARGS] [OPTIONS]
zhihu_crank_check
Check for new articles from watched authors (report only). CLI: zhihu crank check [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
author |
zhihu_crank_classify_discover
Search Zhihu and identify potential new crank authors. CLI: zhihu crank classify discover [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
keywords | ||
max_per_keyword | integer | |
min_ratio | number | |
show_articles | integer | |
threshold | number |
zhihu_crank_classify_predict
Classify a single Zhihu article URL as crank or normal. CLI: zhihu crank classify predict [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
threshold | number |
zhihu_crank_classify_stats
Show classifier model statistics and training data summary. CLI: zhihu crank classify stats [ARGS] [OPTIONS]
zhihu_crank_classify_train
Train the crank classifier on HoF papers + scraped negative data. CLI: zhihu crank classify train [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
batch_size | ||
epochs | ||
hof_dir | ||
lr |
zhihu_crank_fetch
Download new articles from watched authors. CLI: zhihu crank fetch [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
api_base | ||
api_key | ||
author | ||
classify | boolean | |
dry_run | boolean | |
model |
zhihu_crank_list
List all authors in the monitor registry. CLI: zhihu crank list [ARGS] [OPTIONS]
zhihu_crank_register
Interactively register a new crank author to the monitor registry. CLI: zhihu crank register [ARGS] [OPTIONS]
zhihu_crank_remove
Remove an author from the monitor registry. CLI: zhihu crank remove [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
author * | string | Author name to remove from registry |
zhihu_daemon_restart
Stop and restart the daemon. CLI: zhihu daemon restart [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
idle_timeout | integer |
zhihu_daemon_start
Start the background daemon. CLI: zhihu daemon start [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
foreground | boolean | |
idle_timeout | integer |
zhihu_daemon_status
Show daemon status and statistics. CLI: zhihu daemon status [ARGS] [OPTIONS]
zhihu_daemon_stop
Stop the daemon gracefully. CLI: zhihu daemon stop [ARGS] [OPTIONS]
zhihu_daily_before
Show the issue published before DATE (the API returns the previous day's issue). CLI: zhihu daily before [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
date * | string | |
json | boolean |
zhihu_daily_latest
Show the latest Zhihu Daily issue. CLI: zhihu daily latest [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_daily_story
Show or save one Zhihu Daily story as Markdown. CLI: zhihu daily story [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
story_id * | integer | |
json | boolean | |
no_images | boolean | |
output_dir | string | |
reading_mode | boolean | |
save | boolean |
zhihu_download_article
Download a single Zhihu article as Markdown. CLI: zhihu download article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_batch_answers
Batch download all answers listed in an asset/scrape JSON file. CLI: zhihu download batch-answers [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
concurrency | integer | |
delay | number | |
force | boolean | |
input | string | |
json | boolean | |
no_cache_headers | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_batch_articles
Batch download all articles listed in an asset/scrape JSON file. CLI: zhihu download batch-articles [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
concurrency | integer | |
delay | number | |
force | boolean | |
input | string | |
json | boolean | |
no_cache_headers | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_batch_pins
Batch download all pins listed in an asset/scrape JSON file. CLI: zhihu download batch-pins [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
concurrency | integer | |
delay | number | |
force | boolean | |
input | string | |
json | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_collection
Download all answers, articles, and pins in a Zhihu collection. CLI: zhihu download collection [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
concurrency | integer | |
delay | number | |
force | boolean | |
json | boolean | |
max | ||
output_dir | ||
with_media | boolean |
zhihu_download_pin
Download a single Zhihu pin as Markdown. CLI: zhihu download pin [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_question
Download a Zhihu question and all its answers as Markdown. CLI: zhihu download question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
output_dir | string | |
with_media | boolean |
zhihu_download_user
Download all answers, articles, and pins from a Zhihu user. CLI: zhihu download user [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user * | string | |
concurrency | integer | |
delay | number | |
force | boolean | |
json | boolean | |
max | ||
output_dir | ||
since | ||
type | string | |
with_media | boolean |
zhihu_download_video
Download a Zhihu zvideo and its metadata. CLI: zhihu download video [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
no_download_video | boolean | |
output_dir | string |
zhihu_draft_history
List draft history for a Zhihu URL. CLI: zhihu draft history [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
max |
zhihu_draft_list_answer
List all answer drafts. CLI: zhihu draft list answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_draft_list_article
List all article drafts. CLI: zhihu draft list article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_draft_list_pin
List all pin drafts. CLI: zhihu draft list pin [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max |
zhihu_draft_upload
Upload a draft to Zhihu. CLI: zhihu draft upload [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
id * | string | |
type * | string | |
file |
zhihu_draft_view
View a draft of a Zhihu question/answer/article as Markdown. CLI: zhihu draft view [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
index | integer | |
output |
zhihu_interact_block_add
Block a user. CLI: zhihu interact block add [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
json | boolean |
zhihu_interact_block_remove
Unblock a user. CLI: zhihu interact block remove [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
json | boolean |
zhihu_interact_collect_add
Add an item to the default or specified collection. CLI: zhihu interact collect add [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
collection | ||
json | boolean |
zhihu_interact_collect_create
Create a new collection. CLI: zhihu interact collect create [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
title * | string | |
description | string | |
json | boolean | |
public | boolean |
zhihu_interact_collect_delete
Delete a collection. CLI: zhihu interact collect delete [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | |
json | boolean |
zhihu_interact_collect_list
List your collections. CLI: zhihu interact collect list [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
url_token |
zhihu_interact_collect_remove
Remove an item from a collection. CLI: zhihu interact collect remove [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
collection * | string | Target collection ID |
url * | string | |
json | boolean |
zhihu_interact_collect_view
View contents of a collection by ID or URL. CLI: zhihu interact collect view [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
collection_id_or_url * | string | |
json | boolean | |
max | ||
output | string |
zhihu_interact_comment_delete
Delete a comment by ID. CLI: zhihu interact comment delete [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
json | boolean |
zhihu_interact_comment_dislike
Dislike a comment. CLI: zhihu interact comment dislike [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
json | boolean |
zhihu_interact_comment_like
Like a comment. CLI: zhihu interact comment like [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
json | boolean |
zhihu_interact_comment_post
Post a comment on an item. CLI: zhihu interact comment post [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
content * | string | |
url * | string | |
json | boolean |
zhihu_interact_comment_reply
Reply to an existing comment on an item. CLI: zhihu interact comment reply [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
content * | string | |
url * | string | |
json | boolean |
zhihu_interact_comment_undislike
Cancel a previous dislike on a comment. CLI: zhihu interact comment undislike [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
json | boolean |
zhihu_interact_comment_unlike
Cancel a previous like on a comment. CLI: zhihu interact comment unlike [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | |
json | boolean |
zhihu_interact_delete_answer
Delete one of your own answers (删除自己的回答). CLI: zhihu interact delete answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
answer_id * | string | |
json | boolean | |
yes | boolean |
zhihu_interact_delete_article
Delete one of your own articles (删除自己发布的文章). CLI: zhihu interact delete article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
article_id * | string | |
json | boolean | |
yes | boolean |
zhihu_interact_delete_pin
Delete one of your own pins (删除自己发布的想法). CLI: zhihu interact delete pin [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
pin_id * | string | |
json | boolean | |
yes | boolean |
zhihu_interact_delete_question
Delete one of your own questions (删除自己发布的提问). CLI: zhihu interact delete question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
question_id * | string | |
json | boolean | |
yes | boolean |
zhihu_interact_follow_question
Follow a question. CLI: zhihu interact follow question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
question_id * | string | |
json | boolean |
zhihu_interact_follow_user
Follow a user by URL token or ID. CLI: zhihu interact follow user [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
json | boolean |
zhihu_interact_report_reasons
List available report reasons for an object type. CLI: zhihu interact report reasons [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
object_type | string |
zhihu_interact_report_submit
Report one or more Zhihu items (举报). CLI: zhihu interact report submit [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
custom_reason | string | |
delay | number | |
file | ||
json | boolean | |
reason | ||
urls | ||
yes | boolean |
zhihu_interact_thank_add
Thank an answer. CLI: zhihu interact thank add [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
answer_id * | string | |
json | boolean |
zhihu_interact_thank_remove
Remove thanks from an answer. CLI: zhihu interact thank remove [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
answer_id * | string | |
json | boolean |
zhihu_interact_unfollow_question
Unfollow a question. CLI: zhihu interact unfollow question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
question_id * | string | |
json | boolean |
zhihu_interact_unfollow_user
Unfollow a user. CLI: zhihu interact unfollow user [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
json | boolean |
zhihu_interact_vote_down
Downvote an answer or question. CLI: zhihu interact vote down [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_or_id * | string | |
json | boolean |
zhihu_interact_vote_neutral
Remove vote from an answer. CLI: zhihu interact vote neutral [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_or_id * | string | |
json | boolean |
zhihu_interact_vote_up
Upvote an answer or question. CLI: zhihu interact vote up [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_or_id * | string | |
json | boolean |
zhihu_people_activities
List a user's recent activities (new answers, articles, pins, etc.). CLI: zhihu people activities [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
creations_only | boolean | |
json | boolean | |
max | ||
sort | string |
zhihu_people_answers
List a user's answers. CLI: zhihu people answers [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_people_articles
List a user's articles. CLI: zhihu people articles [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_people_pins
List a user's pins (想法). CLI: zhihu people pins [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_people_questions
List questions asked by a user. CLI: zhihu people questions [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_people_show
Display a user's profile and recent content across all types. CLI: zhihu people show [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url_token * | string | |
json | boolean | |
max | integer |
zhihu_profile_current
Show the currently active profile. CLI: zhihu profile current [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_profile_delete
Delete a saved profile. CLI: zhihu profile delete [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
name * | string | |
force | boolean |
zhihu_profile_list
List all saved profiles. CLI: zhihu profile list [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_profile_switch
Switch to a different profile. CLI: zhihu profile switch [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
name * | string |
zhihu_publish_answer
Publish a new answer to a question. CLI: zhihu publish answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
question_id * | string | |
file |
zhihu_publish_article
Publish a new article. CLI: zhihu publish article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
title * | string | |
file |
zhihu_publish_draft
Publish the latest draft for a Zhihu URL. CLI: zhihu publish draft [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string |
zhihu_publish_modify_answer
Modify an existing answer. CLI: zhihu publish modify-answer [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
answer_id * | string | |
file |
zhihu_publish_modify_article
Modify an existing article. CLI: zhihu publish modify-article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
article_id * | string | |
title * | string | |
file |
zhihu_publish_pin
Publish a new pin (想法), optionally with images. CLI: zhihu publish pin [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
title * | string | |
file | ||
image |
zhihu_publish_question
Ask a new question (提问), optionally with topics and images. CLI: zhihu publish question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
title * | string | |
detail_file | ||
image | ||
topic |
zhihu_publish_upload_image
Upload an image to Zhihu. CLI: zhihu publish upload-image [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
source | string |
zhihu_scrape_activities
Fetch a user's activity feed -> JSON. CLI: zhihu scrape activities [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
url_token |
zhihu_scrape_answers
Fetch a user's answer list -> JSON. CLI: zhihu scrape answers [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
url_token |
zhihu_scrape_articles
Fetch a user's article list -> JSON. CLI: zhihu scrape articles [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
max | ||
output | string | |
url_token |
zhihu_scrape_creations
Fetch all user creation IDs (answers, articles, pins) -> JSON. CLI: zhihu scrape creations [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
output | string |
zhihu_search_article
Search Zhihu articles by keyword. CLI: zhihu search article [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
query * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_search_question
Search Zhihu questions by keyword. CLI: zhihu search question [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
query * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_search_topic
Search Zhihu topics by keyword. CLI: zhihu search topic [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
query * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_search_user
Search Zhihu users by keyword. CLI: zhihu search user [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
query * | string | |
json | boolean | |
max | ||
sort | string |
zhihu_stats
Show engagement summary (赞同/收藏/评论/喜欢) for a Zhihu post. CLI: zhihu stats [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
json | boolean | |
with_pv | boolean | |
with_share | boolean | |
with_show | boolean |
zhihu_tools_creator_follower_analysis
Fetch follower profile/demographics (关注者画像) from Zhihu API. CLI: zhihu tools creator follower analysis [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_follower_fetch
Fetch follower detail data from Zhihu API (from configured start-date to today). CLI: zhihu tools creator follower fetch [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_follower_plot
Plot follower detail line chart from follower_detail.json. CLI: zhihu tools creator follower plot [ARGS] [OPTIONS]
zhihu_tools_creator_growth
Fetch and display creator growth-level (创作分) data. CLI: zhihu tools creator growth [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_income_fetch
Fetch incremental income data from Zhihu creator API. CLI: zhihu tools creator income fetch [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_income_income
Fetch per-content income detail (单篇内容盐粒) from Zhihu API. CLI: zhihu tools creator income income [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
end_date | ||
json | boolean | |
order_field | string | |
order_sort | string | |
start_date |
zhihu_tools_creator_income_monthly
Print monthly income summary table. CLI: zhihu tools creator income monthly [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
file | string | |
json | boolean |
zhihu_tools_creator_income_plot_advanced
Generate advanced analysis plot (Bollinger + MACD). CLI: zhihu tools creator income plot advanced [ARGS] [OPTIONS]
zhihu_tools_creator_income_plot_basic
Generate basic income plot (bar chart + EMA + trend). CLI: zhihu tools creator income plot basic [ARGS] [OPTIONS]
zhihu_tools_creator_income_plot_derivative
Generate derivative analysis plot (velocity, acceleration, jerk). CLI: zhihu tools creator income plot derivative [ARGS] [OPTIONS]
zhihu_tools_creator_income_weekday
Generate weekday income distribution plot. CLI: zhihu tools creator income weekday [ARGS] [OPTIONS]
zhihu_tools_creator_metrics
Fetch per-content daily metrics from Zhihu API. CLI: zhihu tools creator metrics [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
aggr | boolean | |
json | boolean |
zhihu_tools_creator_plot
Plot content metrics charts from content_metrics/*.json data. CLI: zhihu tools creator plot [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
no_pv | boolean | |
no_show | boolean |
zhihu_tools_creator_salt
Fetch and display Zhihu salt value (盐值) data. CLI: zhihu tools creator salt [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_score
Fetch incremental creator score detail (创作分明细) from Zhihu API. CLI: zhihu tools creator score [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean |
zhihu_tools_creator_stats
Compute descriptive statistics from all content_metrics/*.json files. CLI: zhihu tools creator stats [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
json | boolean | |
only | string |
zhihu_tools_markdown
Convert raw HTML files to Markdown. CLI: zhihu tools markdown [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
path * | string | |
override | boolean |
zhihu_tools_nlp_cluster
KMeans cluster visualization of downloaded content. CLI: zhihu tools nlp cluster [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
evaluate_k | boolean | |
mode | string | |
n_clusters | integer | |
n_terms | integer | |
output | string | |
source_dir | string |
zhihu_tools_nlp_conetwork
Word co-occurrence network visualization of downloaded content. CLI: zhihu tools nlp conetwork [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
min_edge_weight | integer | |
output | string | |
source_dir | string | |
topk | integer | |
window_size | integer |
zhihu_tools_nlp_count
Count characters in downloaded Markdown files. CLI: zhihu tools nlp count [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
folder | string | |
json | boolean | |
log | boolean | |
no_code | boolean | |
no_frontmatter | boolean | |
no_latex | boolean | |
plot_cdf | boolean |
zhihu_tools_nlp_graph
Social graph visualization of following/follower relationships. CLI: zhihu tools nlp graph [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
depth | integer | |
json | boolean | |
layout | string | |
max_expand | integer | |
max_followees | integer | |
max_followers | integer | |
max_per_node | integer | |
no_viz | boolean | |
output | string | |
url_token |
zhihu_tools_nlp_wordcloud
Generate a word cloud from downloaded content. CLI: zhihu tools nlp wordcloud [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
only_print | boolean | |
source_dir | string | |
topk | integer |
zhihu_tools_request
Send an HTTP request or generate an equivalent curl command. CLI: zhihu tools request [ARGS] [OPTIONS]
| Parameter | Type | Description |
|---|---|---|
url * | string | |
curl | boolean | |
data | ||
header | ||
include | boolean | |
method | string | |
output |
zhihu_help
Show the zhihu CLI command tree or a command's options. Call with no argument to list the top-level command groups, then drill in. :param path: space-separated command path, e.g. ``"search"`` or ``"search question"``. Empty for the top level. :returns: the CLI's help text. :raises ToolError: if the command exits non-zero. Only ``ToolError`` carries its message to the client: the SDK turns any other exception into a generic ``UnexpectedToolError`` and discards the text.
| Parameter | Type | Description |
|---|---|---|
path | string |
zhihu_run
Run a zhihu CLI command and return its output. Always add ``--json`` when the subcommand supports it — most read commands do, and the output is then directly parseable. Example: ``zhihu_run('search question "rust 异步" --json')``. Commands that print styled text instead of JSON (publish, config) are still usable; their output is returned as-is. :param args: the command line to run, without the leading ``zhihu``. Quote arguments that contain spaces. :returns: the command's stdout. :raises ToolError: if no command is given, if the command is one that can never finish over MCP (a f…
| Parameter | Type | Description |
|---|---|---|
args * | string |