linkfox-ehunt-temu-category-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEHunt Temu 类目检索(ehunt/temu/temuCategorySearch
)
ehunt/temu/temuCategorySearchEHunt Temu类目检索(ehunt/temu/temuCategorySearch
)
ehunt/temu/temuCategorySearch在具备 LinkFox「第三方数据服务」MCP 时,对应网关路由 调用(MCP 展示名:Temu 品类查询,确切工具名以当前环境下发的工具元数据为准)。数据来自 本地库检索。
ehunt/temu/temuCategorySearch当拥有LinkFox「第三方数据服务」MCP时,将调用对应网关路由 (MCP展示名:Temu品类查询,确切工具名以当前环境下发的工具元数据为准)。数据来源于 本地库检索。
ehunt/temu/temuCategorySearch前置条件
前置条件
库内须已有 (MCP 展示名:Temu 品类同步)写入的全量类目。若无数据或结果为空,应先完成同步再检索。
ehunt/temu/syncTemuCategory库中必须已存在由 (MCP展示名:Temu品类同步)写入的全量类目数据。若库内无数据或检索结果为空,需先完成同步再进行检索。
ehunt/temu/syncTemuCategory要点
要点
- 必填:(子串匹配类目中文名、英文名、类目 id)。
keyword - 分页:从 1 起;
page默认 50、最大 200。pageSize - 返回的 /
id可作为 Temu 商品查询的categoryId/categoryHome、店铺查询的categoryBackend等入参的类目标识(与具体工具 schema 一致即可)。category
- 必填参数:(通过子串匹配类目中文名、英文名、类目id)。
keyword - 分页设置:从1开始;
page默认值为50,最大值为200。pageSize - 返回的 /
id可作为Temu商品查询的categoryId/categoryHome、店铺查询的categoryBackend等入参的类目标识(与具体工具schema一致即可)。category
脚本(可选)
脚本(可选)
命令行调试:(需 )。详见 references/api.md 末尾。
python scripts/ehunt_temu_category_search.py '<JSON>'LINKFOXAGENT_API_KEY命令行调试:(需配置)。详情请见 references/api.md 末尾。
python scripts/ehunt_temu_category_search.py '<JSON>'LINKFOXAGENT_API_KEY参考
参考
入参/出参表见 references/api.md。
<!-- LF_LARGE_RESPONSE_BLOCK -->入参/出参表请查阅 references/api.md。
<!-- 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/ehunt_temu_category_search.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%/...
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/ehunt_temu_category_search.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"请将设置在Git工作区之外(例如Unix系统的--out-dir,Windows系统的/tmp/...)。持久化的响应结果可能包含个人身份信息(PII)、定价或敏感认证数据——请勿提交这些文件。文件不会自动删除,任务完成后请自行清理。%TEMP%/...
runread--limit/--offset--format json|jsonl|csv|table何时优先使用此模式——根据响应结果的特性判断,例如:
- 每条记录字段数量多,或包含不需要的字段
- 批量/分页结果(每次调用返回多条数据)
- 长文本字段(描述、评论、HTML、时间序列)
- 输出结果需在后续步骤中重复使用,而非立即消耗
对于小型、单次使用的响应结果,直接调用主脚本即可。
⚠️ 预览内容是截断的schema+示例,并非完整数据。任何字段级别的操作都必须通过命令从持久化文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->read