Install
openclaw skills install @linkfox-ai/linkfox-zhihuiya-retrieval-patent-searchopenclaw skills install @linkfox-ai/linkfox-zhihuiya-retrieval-patent-searchThis skill searches the Zhihuiya (PatSnap) patent database using an Analytics query expression (e.g. TACD: virtual reality), returning a list of matching patents with their patent IDs and publication numbers, plus the total hit count.
Expression-based patent search uses Zhihuiya's Analytics query syntax to retrieve patents matching a field-scoped boolean expression. Unlike image-based search, this is a text query against the full patent corpus.
Query expression (queryText) holds an Analytics expression. Common field-scoped syntax:
| Syntax | Scope |
|---|---|
TACD: <term> | Title + Abstract + Claims + Description |
TAC: <term> | Title + Abstract + Claims |
TA: <term> | Title + Abstract |
AND / OR / NOT | Boolean operators (combine terms/fields) |
This skill returns a list of patents (
patentId+pn). To retrieve detailed bibliographic data, full text, legal status, family, or images for a specific patent, feed the returnedpatentId/pninto the correspondinglinkfox-zhihuiya-bibliography/linkfox-zhihuiya-simple-bibliography/linkfox-zhihuiya-legal-status/linkfox-zhihuiya-patent-familyskills.
Each data[] item (one matching patent):
| Field | Description |
|---|---|
| patentId | Zhihuiya internal patent ID |
| pn | Publication (announcement) number |
| title | Patent title |
| apdt | Application date (integer, YYYYMMDD) |
| pbdt | Publication date (integer, YYYYMMDD) |
| apno | Application number |
| authority | Patent office / authority (e.g. US) |
| inventor | Inventor(s), pipe-separated |
| originalAssignee | Original applicant(s), pipe-separated |
| currentAssignee | Current assignee(s), pipe-separated |
Top-level fields:
| Field | Description |
|---|---|
| data | 专利列表(每项含上表 10 个字段) |
| total | Number of records returned in this response |
| allRecordsCount | Total hits matching the query expression |
| costToken | Token cost for this query |
| columns | Render metadata (display hints, not data records) |
| type | Render style (e.g. tableListWorkbenches) |
| errcode | 200 on success |
| errmsg | ok on success |
The top-level
columnsarray is render metadata and may be longer than the realdatalist — do not treat it as data.
POST /zhihuiya/querySearchPatent(完整参数/响应/错误码见 references/api.md)python scripts/zhihuiya_query_search_patent.py '<JSON 参数>' [--inline]输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-zhihuiya-retrieval-patent-search-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)total/costToken、最大列表字段的长度 + 前 3 条样本)--inline 强制全量打印到 stdout(同样落盘)读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。| Parameter | Required | Default | Description |
|---|---|---|---|
| queryText | Yes | - | Analytics 检索式,最大 12000 字符 |
| limit | No | 10 | 返回专利个数,1–1000 |
| offset | No | 0 | 偏移量,0–19999;limit + offset ≤ 20000 |
| sort | No | - | 排序数组,元素 {field, order} |
| stemming | No | 0 | 截词检索:1 开启 / 0 关闭,默认关闭 |
| collapseType | No | ALL | 去重方式:ALL / APNO / DOCDB / INPADOC / EXTEND |
| collapseBy | No | - | 去重排序字段:APD / PBD / AUTHORITY / SCORE |
| collapseOrder | No | - | 去重排序顺序:OLDEST / LATEST |
| collapseOrderAuthority | No | - | 受理局优先级数组(仅 collapseBy=AUTHORITY 时有效),按输入顺序保留对应专利 |
field | Meaning |
|---|---|
| PBDT_YEARMONTHDAY | Publication date |
| APD_YEARMONTHDAY | Application date |
| ISD | Issue / grant date |
| SCORE | Query relevance |
order: DESC or ASC. Example: [{"field":"SCORE","order":"DESC"}].
collapseType | Description |
|---|---|
| ALL | No dedup |
| APNO | By application number |
| DOCDB | By simple family |
| INPADOC | By INPADOC family |
| EXTEND | By PatSnap extended family |
collapseBy selects which representative record to keep (APD/PBD/AUTHORITY/SCORE); collapseOrder picks OLDEST or LATEST.
1. Basic expression search
检索 TACD: virtual reality 的专利,返回 10 条
Action: {"queryText": "TACD: virtual reality", "limit": 10}
2. Sort by relevance
用检索式 TACD: drone AND camera 查专利,按相关性排序
Action: {"queryText": "TACD: drone AND camera", "sort": [{"field": "SCORE", "order": "DESC"}]}
3. Paginate
翻到第 2 页,每页 10 条
Action: {"queryText": "TACD: virtual reality", "offset": 10, "limit": 10}
4. Dedup by DOCDB family
检索 TACD: virtual reality,按简单同族去重,保留最新
Action: {"queryText": "TACD: virtual reality", "collapseType": "DOCDB", "collapseBy": "APD", "collapseOrder": "LATEST"}
pn, title, apdt/pbdt (format as dates), inventor, currentAssignee, authority per item.allRecordsCount (total hits) and the current page range (offset–offset+limit).{"field": "SCORE", "order": "DESC"} so results are relevance-ordered; respect any sort the user explicitly requests.linkfox-zhihuiya-bibliography / linkfox-zhihuiya-simple-bibliography; do not re-query this search skill for details.queryText is required and must be a valid Analytics expression. Missing it returns errcode 400.limit + offset must be ≤ 20000; limit max 1000; offset max 19999.patentId + pn (and basic fields). Full bibliographic/full-text/legal data must be fetched via dedicated linkfox-zhihuiya-* skills.501 "No permission or API package quota" response means the current key lacks the query-search permission/quota. This is a permission/package issue (not merely low balance) and cannot be resolved by recharging alone — do not retry; surface it to the user to open/enable the query-search API package.Applicable — Find patents by query expression:
| User Says | Scenario |
|---|---|
| "检索 TACD: virtual reality 的专利" | Basic expression search |
| "用检索式查虚拟现实相关专利" | Expression search |
| "检索式:TAC AND camera" | Boolean expression |
| "按公开日排序检索" | Sorted search |
| "按简单同族去重" | Deduplicated search |
| "翻到第 2 页" | Pagination |
Not applicable — Needs beyond expression search:
linkfox-zhihuiya-bibliography)linkfox-zhihuiya-patent-image-search)linkfox-zhihuiya-* skills)Boundary judgment: When the user already has a patent ID or publication number and wants its metadata → use the bibliography skill. When the user wants to discover patents matching a query expression → this skill.
按动态规则计费:消耗积分 = 3 × 返回data条数。每条为 1 条检索式检索专利结果
重要:本技能的服务按倍数动态计算,返回条数越多消耗越大,必须提醒用户,由用户决定是否继续。优先用较小的
limit验证检索式命中,确认后再决定是否扩大范围或翻页。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.