linkfox-amazon-store-feeds
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon 店铺 Feeds
亚马逊店铺Feeds
本 skill 与 等同属 Amazon Store 系列:先 ,再 转发 GET / POST / DELETE。
linkfox-amazon-store-authPOST /spApi/storeTokensPOST /spApi/developerProxy本Skill与 等同属 Amazon Store 系列:先调用 ,再通过 转发 GET / POST / DELETE 请求。
linkfox-amazon-store-authPOST /spApi/storeTokensPOST /spApi/developerProxy官方参考索引
官方参考索引
| 能力 | 文档 |
|---|---|
| createFeedDocument | createFeedDocument |
| getFeedDocument | getFeedDocument |
| createFeed | createFeed |
| getFeed | getFeed |
| getFeeds | getFeeds |
| cancelFeed | cancelFeed |
| 能力 | 文档 |
|---|---|
| createFeedDocument | createFeedDocument |
| getFeedDocument | getFeedDocument |
| createFeed | createFeed |
| getFeed | getFeed |
| getFeeds | getFeeds |
| cancelFeed | cancelFeed |
Prerequisites
前置条件
- 依赖 ;运行
linkfox-amazon-store-auth,exit 42 时需先安装授权 skill。python scripts/check_auth_dependency.py - 应用需具备 Feeds 相关角色;须与上传文件格式匹配(见 Amazon Feed Type Values 文档)。
feedType
- 依赖 ;运行
linkfox-amazon-store-auth,若退出码为 42,需先安装授权Skill。python scripts/check_auth_dependency.py - 应用需具备 Feeds 相关角色;必须与上传文件格式匹配(详见Amazon Feed Type Values文档)。
feedType
典型工作流
典型工作流
- → 得到
create_feed_document.py与feedDocumentId(上传地址)。url - → 对
upload_feed_document.pyPUT 上传 feed 文件(不经 developerProxy)。url - → 传入
create_feed.py、inputFeedDocumentId、feedType。marketplaceIds - /
get_feed.py→ 轮询get_feeds.py(如 IN_QUEUE、IN_PROGRESS、DONE、FATAL)。processingStatus - 处理完成后用 下载 resultFeedDocumentId 对应文档(再按返回 URL 自行下载结果文件)。
get_feed_document.py
- → 获取
create_feed_document.py与feedDocumentId(上传地址)。url - → 向
upload_feed_document.py发送 PUT 请求上传feed文件(不经过developerProxy)。url - → 传入
create_feed.py、inputFeedDocumentId、feedType。marketplaceIds - /
get_feed.py→ 轮询get_feeds.py(例如IN_QUEUE、IN_PROGRESS、DONE、FATAL)。processingStatus - 处理完成后,使用 下载 resultFeedDocumentId 对应的文档(再根据返回URL自行下载结果文件)。
get_feed_document.py
Current Capabilities
当前功能
| 能力 | path | method | 脚本 |
|---|---|---|---|
| createFeedDocument | | POST | |
| getFeedDocument | | GET | |
| createFeed | | POST | |
| getFeed | | GET | |
| getFeeds | | GET | |
| cancelFeed | | DELETE | |
| 上传文档内容 | createFeedDocument 返回的 URL | PUT | |
共享模块:。
_spapi_feeds_common.py| 能力 | 路径 | 请求方法 | 脚本 |
|---|---|---|---|
| createFeedDocument | | POST | |
| getFeedDocument | | GET | |
| createFeed | | POST | |
| getFeed | | GET | |
| getFeeds | | GET | |
| cancelFeed | | DELETE | |
| 上传文档内容 | createFeedDocument返回的URL | PUT | |
共享模块:。
_spapi_feeds_common.pyScripts 示例
脚本示例
bash
export LINKFOXAGENT_API_KEY="<your-key>"
python scripts/create_feed_document.py '{"sellerId":"A1...","region":"NA","contentType":"text/tab-separated-values; charset=UTF-8"}'
python scripts/upload_feed_document.py '{"uploadUrl":"<from createFeedDocument>","contentType":"text/tab-separated-values; charset=UTF-8","filePath":"./inventory.tsv"}'
python scripts/create_feed.py '{"sellerId":"A1...","region":"NA","feedType":"POST_FLAT_FILE_INVLOADER_DATA","marketplaceIds":["ATVPDKIKX0DER"],"inputFeedDocumentId":"<feedDocumentId>"}'bash
export LINKFOXAGENT_API_KEY="<your-key>"
python scripts/create_feed_document.py '{"sellerId":"A1...","region":"NA","contentType":"text/tab-separated-values; charset=UTF-8"}'
python scripts/upload_feed_document.py '{"uploadUrl":"<from createFeedDocument>","contentType":"text/tab-separated-values; charset=UTF-8","filePath":"./inventory.tsv"}'
python scripts/create_feed.py '{"sellerId":"A1...","region":"NA","feedType":"POST_FLAT_FILE_INVLOADER_DATA","marketplaceIds":["ATVPDKIKX0DER"],"inputFeedDocumentId":"<feedDocumentId>"}'Display Rules
显示规则
- 先看 /
developerProxy.errcode;createFeedDocument 常为 201,createFeed 常为 202。httpStatus - getFeeds 分页:仅用上一页 作为下一请求的
nextToken参数名在 Amazon 侧为paginationToken(脚本字段名nextToken)。nextToken - upload 失败与 SP-API 网关无关,检查 是否过期、Content-Type 是否与 createFeedDocument 一致。
uploadUrl - 网关 path 白名单需包含 前缀。
feeds/2021-06-30/
- 优先查看 /
developerProxy.errcode;createFeedDocument的常见状态码为 201,createFeed的常见状态码为 202。httpStatus - getFeeds 分页:仅将上一页的 作为下一次请求的
nextToken(Amazon侧的参数名为paginationToken,脚本字段名为nextToken)。nextToken - 上传 失败与SP-API网关无关,请检查是否过期、Content-Type是否与createFeedDocument设置一致。
uploadUrl - 网关路径白名单需包含 前缀。
feeds/2021-06-30/
Important Limitations
重要限制
- 本 skill 不代替 Amazon 侧 feed 文件 schema 校验;、TSV/XML 格式以官方为准。
feedType - 下载 getFeedDocument 返回的 url 内容需另行 HTTP GET(与 upload 类似,不经 developerProxy)。
- 详见 。
references/api.md
Feedback: :。
skillNamelinkfox-amazon-store-feeds更多跨境 skill:LinkFox Skills
<!-- LF_LARGE_RESPONSE_BLOCK -->- 本Skill 不替代Amazon侧的feed文件schema校验;、TSV/XML格式请以官方要求为准。
feedType - 下载getFeedDocument返回的url内容需另行发送HTTP GET请求(与上传类似,不经过developerProxy)。
- 详情请见 。
references/api.md
反馈: :。
skillNamelinkfox-amazon-store-feeds更多跨境Skill:LinkFox Skills
<!-- LF_LARGE_RESPONSE_BLOCK -->Handling Large Responses
处理大响应结果
To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/cancel_feed.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"Pickoutside any git working tree (e.g.--out-diron Unix,/tmp/...on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.%TEMP%/...
This skill exposes multiple entry scripts:,cancel_feed.py,check_auth_dependency.py,create_feed.py,create_feed_document.py,get_feed.py,get_feed_document.py,get_feeds.py. Passupload_feed_document.pyto choose the one you need.--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|tableWhen to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
- High field count per record, or fields you don't need
- Batch/paginated results (multiple items per call)
- Long-text fields (descriptions, reviews, HTML, time series)
- Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via .
<!-- /LF_LARGE_RESPONSE_BLOCK -->read为避免超出Agent上下文限制,请将响应结果持久化到磁盘,并仅提取所需字段:
python scripts/response_io.py run --script scripts/cancel_feed.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # 或 --path "<JMESPath>"请选择Git工作区外的(例如Unix系统的--out-dir,Windows系统的/tmp/...)。持久化的响应结果可能包含个人身份信息(PII)、定价或敏感授权数据——请勿提交到代码仓库。文件不会自动删除,完成任务后请自行清理。%TEMP%/...
本Skill提供多个入口脚本:、cancel_feed.py、check_auth_dependency.py、create_feed.py、create_feed_document.py、get_feed.py、get_feed_document.py、get_feeds.py。通过传递upload_feed_document.py参数选择所需脚本。--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|table何时优先使用此模式——请根据响应特征判断,例如:
- 每条记录字段数量多,或包含不需要的字段
- 批量/分页结果(单次调用返回多条数据)
- 长文本字段(描述、评论、HTML、时间序列等)
- 输出结果需在后续步骤复用,而非立即使用
对于小型、单次使用的响应结果,直接调用主脚本即可。
⚠️ 预览内容是截断的schema+示例,而非完整数据。任何字段相关的决策都必须通过命令从持久化文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->read