pp-facebook-marketplace
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- GENERATED FILE — DO NOT EDIT.
This file is a verbatim mirror of library/commerce/facebook-marketplace/SKILL.md,
regenerated post-merge by tools/generate-skills/. Hand-edits here are
silently overwritten on the next regen. Edit the library/ source instead.
See AGENTS.md "Generated artifacts: registry.json, cli-skills/". -->
<!-- 生成文件 — 请勿编辑。此文件是library/commerce/facebook-marketplace/SKILL.md的完全镜像,由tools/generate-skills/在合并后重新生成。此处的手动编辑会在下次重新生成时被静默覆盖。请改为编辑library/源文件。请参阅AGENTS.md中的“生成产物:registry.json, cli-skills/”。 -->
Facebook Marketplace — Printing Press CLI
Facebook Marketplace — Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
facebook-marketplace-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press-library install facebook-marketplace --cli-only - Verify:
facebook-marketplace-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
npxbash
go install github.com/mvanhorn/printing-press-library/library/commerce/facebook-marketplace/cmd/facebook-marketplace-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATH此技能驱动二进制文件。在调用此技能的任何命令之前,您必须确认CLI已安装。如果未安装,请先进行安装:
facebook-marketplace-pp-cli- 通过Printing Press安装程序安装:
bash
npx -y @mvanhorn/printing-press-library install facebook-marketplace --cli-only - 验证:
facebook-marketplace-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin中。$PATH
如果安装失败(无Node环境、离线等),请回退到直接通过Go安装(要求Go 1.26.3或更高版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/commerce/facebook-marketplace/cmd/facebook-marketplace-pp-cli@latest如果安装后提示“command not found”,说明安装步骤未将二进制文件添加到中。在验证成功之前,请不要继续执行技能命令。
--version$PATHWhen to Use This CLI
何时使用此CLI
Use this CLI for local, human-paced Facebook Marketplace workflows: searching, watching, triaging matches, drafting listings, and replying to seller inbox threads after explicit approval. Avoid using it for bulk automation or cross-platform scraping.
将此CLI用于本地、人工节奏的Facebook Marketplace工作流:搜索、监控、筛选匹配结果、起草 listings 以及在获得明确批准后回复卖家收件箱对话。避免将其用于批量自动化或跨平台爬取。
Unique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
这些功能是其他同API工具所不具备的。
Seller workflow
卖家工作流
-
— Draft a Marketplace title, description, and price suggestion from photos and notes.
draftUse this when preparing a seller listing before opening a write-gated post flow.bashfacebook-marketplace-pp-cli draft --photos chair-front.jpg,chair-tag.jpg --notes "walnut dining chair, small scratch on back" --json -
— Prepare and send a seller inbox reply only when
replyand doctor gating both pass.--writeUse this only for human-approved sell-side messaging.bashfacebook-marketplace-pp-cli reply --thread 1525836598898750 --message "Yes, it is still available." --write --json
-
— 根据照片和备注生成Marketplace标题、描述和价格建议。
draft在开启受写入权限控制的发布流程前准备卖家listing时使用此命令。bashfacebook-marketplace-pp-cli draft --photos chair-front.jpg,chair-tag.jpg --notes "walnut dining chair, small scratch on back" --json -
— 仅当
reply和权限验证都通过时,才准备并发送卖家收件箱回复。--write仅在人工批准的卖家端消息发送场景中使用此命令。bashfacebook-marketplace-pp-cli reply --thread 1525836598898750 --message "Yes, it is still available." --write --json
Buy-side workflow
买家工作流
-
— Persist a Marketplace search watch with deterministic keyword, price, and distance filters.
watch addUse this when the agent needs to monitor Marketplace without deciding relevance on every raw result.bashfacebook-marketplace-pp-cli watch add --name "eames" --query "eames lounge" --max-price 1500 --radius 60 --must-have-keywords "chair,lounge" --json -
— Show new watch matches after deterministic filtering.
matchesUse this when an agent needs the shortlist worth showing a human buyer.bashfacebook-marketplace-pp-cli matches --new --json
-
— 保存带有确定关键词、价格和距离筛选条件的Marketplace搜索监控。
watch add当Agent需要监控Marketplace但无需对每条原始结果判断相关性时使用此命令。bashfacebook-marketplace-pp-cli watch add --name "eames" --query "eames lounge" --max-price 1500 --radius 60 --must-have-keywords "chair,lounge" --json -
— 显示经过确定性筛选后的新监控匹配结果。
matches当Agent需要为买家展示值得关注的候选列表时使用此命令。bashfacebook-marketplace-pp-cli matches --new --json
Local mirror
本地镜像
-
— Find local seller listings older than seven days with no engagement.
staleUse this when deciding which seller listings need price changes or renewal.bashfacebook-marketplace-pp-cli stale --days 7 --json
-
— 查找发布超过七天且无互动的本地卖家listings。
stale在决定哪些卖家listings需要调整价格或重新发布时使用此命令。bashfacebook-marketplace-pp-cli stale --days 7 --json
HTTP Transport
HTTP传输
This CLI uses Chrome-compatible HTTP transport over HTTP/3 for browser-facing endpoints. It does not require a resident browser process for normal API calls.
此CLI对面向浏览器的端点使用兼容Chrome的HTTP/3传输协议。正常API调用无需常驻浏览器进程。
Command Reference
命令参考
composer — Sell-side composer helper operations.
- — Fetch Marketplace composer price prediction.
facebook-marketplace-pp-cli composer price_prediction - — Fetch Marketplace listing composer metadata.
facebook-marketplace-pp-cli composer root - — Fetch calculated shipping options for a draft listing.
facebook-marketplace-pp-cli composer shipping_options
inbox — Marketplace inbox and messaging operations.
- — Fetch Marketplace inbox overview.
facebook-marketplace-pp-cli inbox list - — Send a Marketplace seller message.
facebook-marketplace-pp-cli inbox message_seller - — Fetch Marketplace seller inbox threads.
facebook-marketplace-pp-cli inbox seller_threads - — Fetch a page of Marketplace seller inbox threads.
facebook-marketplace-pp-cli inbox seller_threads_page
listing — Listing detail and sell-side listing operations.
- — Change a Marketplace listing availability state.
facebook-marketplace-pp-cli listing change_availability - — Create a Marketplace listing from a prepared composer payload; pass
facebook-marketplace-pp-cli listing createto upload local photos first.--photo - — Delete a Marketplace for-sale item.
facebook-marketplace-pp-cli listing delete - — Fetch a Marketplace listing detail page payload.
facebook-marketplace-pp-cli listing get - — Fetch Marketplace listing media payload.
facebook-marketplace-pp-cli listing media - — Upload a local photo and return the Marketplace composer
facebook-marketplace-pp-cli listing upload-photo.photo_id
marketplace — Marketplace browse and location operations.
- — Fetch Marketplace browse feed results.
facebook-marketplace-pp-cli marketplace browse_feed - — Set Marketplace browse radius.
facebook-marketplace-pp-cli marketplace set_browse_radius - — Set Marketplace buying location.
facebook-marketplace-pp-cli marketplace set_buy_location
marketplace_search — Marketplace search operations.
- — Search Marketplace listings.
facebook-marketplace-pp-cli marketplace_search
Hand-written commands
- — AI listing drafter from photos and notes.
facebook-marketplace-pp-cli draft - — Buy-side deterministic watcher commands.
facebook-marketplace-pp-cli watch - — Show watcher matches after deterministic filtering.
facebook-marketplace-pp-cli matches - — Show local listings older than seven days with no engagement.
facebook-marketplace-pp-cli stale - — Write-gated sell-side message reply helper.
facebook-marketplace-pp-cli reply
composer — 卖家端内容创作辅助操作。
- — 获取Marketplace创作工具的价格预测。
facebook-marketplace-pp-cli composer price_prediction - — 获取Marketplace listing创作工具的元数据。
facebook-marketplace-pp-cli composer root - — 获取草稿listing的计算运费选项。
facebook-marketplace-pp-cli composer shipping_options
inbox — Marketplace收件箱和消息操作。
- — 获取Marketplace收件箱概览。
facebook-marketplace-pp-cli inbox list - — 发送Marketplace卖家消息。
facebook-marketplace-pp-cli inbox message_seller - — 获取Marketplace卖家收件箱对话线程。
facebook-marketplace-pp-cli inbox seller_threads - — 获取Marketplace卖家收件箱对话线程的一页内容。
facebook-marketplace-pp-cli inbox seller_threads_page
listing — Listing详情和卖家端listing操作。
- — 修改Marketplace listing的可用状态。
facebook-marketplace-pp-cli listing change_availability - — 从准备好的创作工具负载创建Marketplace listing;传递
facebook-marketplace-pp-cli listing create参数可先上传本地照片。--photo - — 删除Marketplace在售商品。
facebook-marketplace-pp-cli listing delete - — 获取Marketplace listing详情页负载。
facebook-marketplace-pp-cli listing get - — 获取Marketplace listing媒体负载。
facebook-marketplace-pp-cli listing media - — 上传本地照片并返回Marketplace创作工具的
facebook-marketplace-pp-cli listing upload-photo。photo_id
marketplace — Marketplace浏览和位置操作。
- — 获取Marketplace浏览流结果。
facebook-marketplace-pp-cli marketplace browse_feed - — 设置Marketplace浏览半径。
facebook-marketplace-pp-cli marketplace set_browse_radius - — 设置Marketplace购买地点。
facebook-marketplace-pp-cli marketplace set_buy_location
marketplace_search — Marketplace搜索操作。
- — 搜索Marketplace listings。
facebook-marketplace-pp-cli marketplace_search
手动编写的命令
- — 根据照片和notes生成AI版listing文案。
facebook-marketplace-pp-cli draft - — 买家端确定性监控命令。
facebook-marketplace-pp-cli watch - — 显示经过确定性筛选后的监控匹配结果。
facebook-marketplace-pp-cli matches - — 显示发布超过七天且无互动的本地listings。
facebook-marketplace-pp-cli stale - — 受写入权限控制的卖家端消息回复辅助工具。
facebook-marketplace-pp-cli reply
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
facebook-marketplace-pp-cli which "<capability in your own words>"which02--help当您知道要做什么但不知道对应哪个命令时,直接询问CLI:
bash
facebook-marketplace-pp-cli which "<用您自己的话描述功能>"which02--helpRecipes
使用示例
Create a buy-side watch
创建买家端监控
bash
facebook-marketplace-pp-cli watch add --name "eames" --query "eames lounge" --max-price 1500 --radius 60 --jsonStores deterministic filter criteria locally so future runs can compare new listings.
bash
facebook-marketplace-pp-cli watch add --name "eames" --query "eames lounge" --max-price 1500 --radius 60 --json在本地存储确定性筛选条件,以便后续运行时可以比较新的listings。
Draft a seller listing
起草卖家listing
bash
facebook-marketplace-pp-cli draft --photos chair-front.jpg,chair-tag.jpg --notes "walnut dining chair, small scratch" --jsonProduces listing copy before any write-gated Marketplace mutation.
To create with local photos, run first, then pass and one or more flags to . The CLI uploads each local file, appends the returned values to , and then submits the create mutation.
facebook-marketplace-pp-cli doctor--write--photolisting createphoto_idvariables.input.data.common.photo_idsbash
facebook-marketplace-pp-cli draft --photos chair-front.jpg,chair-tag.jpg --notes "walnut dining chair, small scratch" --json在对Marketplace进行受写入权限控制的修改之前生成listing文案。
要使用本地照片创建listing,请先运行,然后在命令中传递和一个或多个参数。CLI会上传每个本地文件,将返回的值附加到中,然后提交创建请求。
facebook-marketplace-pp-cli doctorlisting create--write--photophoto_idvariables.input.data.common.photo_idsAuth Setup
认证设置
Run while logged in to Facebook in Chrome. The captured browser session is the credential; do not store session material in the Dropbox project workspace.
facebook-marketplace-pp-cli auth login --chromeRun to verify setup.
facebook-marketplace-pp-cli doctor在Chrome中登录Facebook后,运行。捕获的浏览器会话即为凭证;请勿将会话材料存储在Dropbox项目工作区中。
facebook-marketplace-pp-cli auth login --chrome运行验证设置是否正确。
facebook-marketplace-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashfacebook-marketplace-pp-cli inbox list --fb-api-req-friendly-name example-resource --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Non-interactive — never prompts, every input is a flag
-
Explicit retries — useonly when an already-existing create should count as success
--idempotent
在任何命令后添加参数。这会等效于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — 标准输出为JSON,错误信息输出到标准错误
-
可筛选 —参数保留字段子集。点路径可深入嵌套结构;数组会遍历每个元素。对于冗长的API,这是保持上下文精简的关键:
--selectbashfacebook-marketplace-pp-cli inbox list --fb-api-req-friendly-name example-resource --agent --select id,name,status -
可预览 —参数显示请求内容但不发送
--dry-run -
非交互式 — 从不提示,所有输入均通过参数传递
-
显式重试 — 仅当已存在的创建操作应被视为成功时,才使用参数
--idempotent
Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
facebook-marketplace-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
facebook-marketplace-pp-cli feedback --stdin < notes.txt
facebook-marketplace-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.facebook-marketplace-pp-cli/feedback.jsonlFACEBOOK_MARKET_FEEDBACK_ENDPOINT--sendFACEBOOK_MARKET_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或Agent)发现此CLI存在问题时,请记录反馈:
facebook-marketplace-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
facebook-marketplace-pp-cli feedback --stdin < notes.txt
facebook-marketplace-pp-cli feedback list --json --limit 10反馈条目存储在本地文件中。除非设置了且传递了参数或设置了,否则反馈不会被POST发送。默认行为仅存储在本地。
~/.facebook-marketplace-pp-cli/feedback.jsonlFACEBOOK_MARKET_FEEDBACK_ENDPOINT--sendFACEBOOK_MARKET_FEEDBACK_AUTO_SEND=true请记录让您感到意外的内容,而不是提交bug报告。简短、具体、单行描述:这才是有价值的部分。
Output Delivery
输出交付
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
每个命令都接受参数。输出会除了(或代替)标准输出外,发送到指定的sink,这样Agent无需手动管道即可路由命令结果。支持三种sink:
--deliver <sink>| Sink | 效果 |
|---|---|
| 默认值;仅写入标准输出 |
| 原子性地将输出写入 |
| 将输出体POST到指定URL(当使用 |
不支持的协议会返回结构化错误,并列出支持的协议集。Webhook失败会返回非零退出码,并在标准错误中记录URL和HTTP状态码。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
facebook-marketplace-pp-cli profile save briefing --json
facebook-marketplace-pp-cli --profile briefing inbox list --fb-api-req-friendly-name example-resource
facebook-marketplace-pp-cli profile list --json
facebook-marketplace-pp-cli profile show briefing
facebook-marketplace-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的参数值,可在多次调用中重复使用。当定时Agent每次运行都使用相同配置调用同一命令时使用此功能 — 即HeyGen的“Beacon”模式。
facebook-marketplace-pp-cli profile save briefing --json
facebook-marketplace-pp-cli --profile briefing inbox list --fb-api-req-friendly-name example-resource
facebook-marketplace-pp-cli profile list --json
facebook-marketplace-pp-cli profile show briefing
facebook-marketplace-pp-cli profile delete briefing --yes显式参数始终优先于配置文件值;配置文件值优先于默认值。会在下列出所有可用配置文件,以便Agent在运行时发现它们。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 4 | 需要认证 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputfacebook-marketplace-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析:
$ARGUMENTS- 为空、或
help→ 显示--help输出facebook-marketplace-pp-cli --help - 以开头 → 以
install结尾 → MCP安装;否则 → 参见上方前提条件mcp - 其他内容 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add facebook-marketplace-pp-mcp -- facebook-marketplace-pp-mcpVerify:
claude mcp list从此CLI已发布的公共库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add facebook-marketplace-pp-mcp -- facebook-marketplace-pp-mcp验证:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which facebook-marketplace-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashfacebook-marketplace-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
facebook-marketplace-pp-cli <command> --help
- 检查是否已安装:如果未找到,提供安装选项(参见顶部的前提条件)。
which facebook-marketplace-pp-cli - 将用户查询与上方独特功能和命令参考中的最佳命令匹配。
- 添加参数执行:
--agentbashfacebook-marketplace-pp-cli <command> [subcommand] [args] --agent - 如果存在歧义,查看子命令帮助:。
facebook-marketplace-pp-cli <command> --help