Skip to main content
skill CX Codex

linkfox-zhihuiya-fulltext-image — Claude Code skill: patent drawings

Pulls links to the drawings, figures and diagrams embedded in patent documents from the Zhihuiya patent database, by publication number or internal patent ID.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add linkfox-ai/linkfox-skills --skill linkfox-zhihuiya-fulltext-image -a claude-code
Open on GitHub

What linkfox-zhihuiya-fulltext-image does

The skill queries Zhihuiya and returns image metadata: the image type, the patent number and a download path. You can look up by publication number such as US20230012345A1 or by internal patentId — at least one of the two is required.

Under the hood sits a Python script, scripts/zhihuiya_fulltext_image.py, which takes JSON parameters and can print to stdout. The full response always lands in <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/, while the context gets either the whole JSON or a short summary when the body exceeds 8 KB. You need LINKFOX_AGENT_API_KEY (or LINKFOXAGENT_API_KEY) in your environment, otherwise the request comes back with 401 or 402.

One call returns at most 100 images; beyond that you page with limit and offset. Every parameter is passed as a string, numbers included. Each request burns 81 compute units, so if you plan to sweep a batch of patents, work out the cost first.

What it helps with

  • pull every drawing out of a patent by publication number
  • check how many figures a document contains
  • download diagrams for a patent using its internal ID
  • page through a patent's images in batches
  • verify the type and path of each image in a patent filing

Example prompts for the agent

  • Show me the drawings for patent US20230012345A1
  • How many images does patent CN115000000A have?
  • Get the first 20 images for patent CN115000000A

How to install linkfox-zhihuiya-fulltext-image

1Skills CLI (Vercel)

npx skills add linkfox-ai/linkfox-skills --skill linkfox-zhihuiya-fulltext-image -a claude-code

2Manually: put the files in place

~/.claude/skills/linkfox-zhihuiya-fulltext-image/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/linkfox-zhihuiya-fulltext-image/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about linkfox-zhihuiya-fulltext-image

How do I install linkfox-zhihuiya-fulltext-image in Claude?

Run npx skills add linkfox-ai/linkfox-skills --skill linkfox-zhihuiya-fulltext-image -a claude-code. The skill lands in ~/.claude/skills/linkfox-zhihuiya-fulltext-image/SKILL.md.

What does linkfox-zhihuiya-fulltext-image do?

Given a publication number or internal patent ID, it returns the list of embedded images with their type, patent number and download path. It reads from the Zhihuiya patent database.

What do I need before using it?

A LINKFOX_AGENT_API_KEY or LINKFOXAGENT_API_KEY environment variable and at least one patent identifier in the request. Without the key you get a 401 or 402 response.

Source text

SKILL.md · MIT
---
name: linkfox-zhihuiya-fulltext-image
description: 通过专利ID或公开号获取专利文件中的全文附图(图纸、示意图、图表)。当用户询问专利图片、专利图纸、专利示意图、专利插图、全文附图、专利图表、专利技术图或想查看、下载专利文件中的嵌入图片、patent fulltext drawings, patent diagrams, technical drawings, patent images, PatSnap时触发此技能。即使用户未明确提及"全文附图",只要其需求涉及获取特定专利中的视觉内容(图纸、示意图、图表),也应触发此技能。
---

# Zhihuiya Patent Fulltext Image

This skill guides you on how to retrieve fulltext images (drawings, figures, diagrams) from patent documents using the Zhihuiya patent data service, helping users access and analyze visual content within patents.

## Core Concepts

Patent fulltext images are the figures, drawings, and diagrams embedded in patent documents. They are essential for understanding the technical details of an invention. This tool queries the Zhihuiya patent database and returns image metadata including download paths and image types for a given patent.

**Lookup methods**: You can look up images by either **patent ID** (an internal identifier) or **publication number** (the publicly visible patent number such as `US20230012345A1` or `CN115000000A`). At least one of these must be provided.

## Parameter Guide

| Parameter | API Name | Required | Description | Example |
|-----------|----------|----------|-------------|---------|
| Patent ID | patentId | No* | Internal patent identifier | 8a7b6c5d-... |
| Publication Number | patentNumber | No* | Public patent publication/grant number | US20230012345A1 |
| Limit | limit | No | Maximum number of images to return (max 100, default 100) | 50 |
| Offset | offset | No | Pagination offset for image results | 0 |

> *At least one of `patentId` or `patentNumber` must be provided.

## Response Fields

| Field | Description |
|-------|-------------|
| total | Total number of image records available |
| data | Array of image entries |
| data[].patentId | Patent identifier |
| data[].pn | Publication/grant number |
| data[].fulltextImagePath | URL path to download the image |
| data[].imageType | Type/category of the image |
| columns | Column rendering metadata |
| costToken | Token cost of the request |
| type | Rendering style hint |

## 调用方式

- **API 端点**:`POST /zhihuiya/fulltextImage`(完整参数/响应/错误码见 `references/api.md`)
- **Python 脚本**:`python scripts/zhihuiya_fulltext_image.py '<JSON 参数>' [--inline]`
- **成本约束**:本工具会消耗算力;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。

**输出策略(脚本默认行为)**:
- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-zhihuiya-fulltext-image-<timestamp>.json`(`<cwd>` 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;`<session>` 取自环境变量 `SESSION_ID`,按用户任务自动聚合;**禁止写入 /tmp**,当前目录不可写则报错)
- 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本)
- 加 `--inline` 强制全量打印到 stdout(同样落盘)

**读数据建议**:先看摘要判断是否足够;需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

## 解决认证和算力问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

### 异常情况
- **未配置API Key**:环境变量未配置 `LINKFOX_AGENT_API_KEY`,也未配置 `LINKFOXAGENT_API_KEY`。
- **响应401或402状态码**
- **响应提示算力或余额不足**:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

## Usage Examples

**1. Get all images for a patent by publication number**
```
Retrieve fulltext images for patent US20230012345A1.
```
Parameters: `{"patentNumber": "US20230012345A1"}`

**2. Get images for a patent by patent ID**
```
Fetch the drawings for patent ID abc123def456.
```
Parameters: `{"patentId": "abc123def456"}`

**3. Paginated retrieval of images**
```
Get the first 20 images for patent CN115000000A.
```
Parameters: `{"patentNumber": "CN115000000A", "limit": "20", "offset": "0"}`

**4. Get the next page of images**
```
Get images 21-40 for patent CN115000000A.
```
Parameters: `{"patentNumber": "CN115000000A", "limit": "20", "offset": "20"}`

## Display Rules

1. **Present data clearly**: Show image results in a structured table with image type, download path, and patent number
2. **Image links**: Always present `fulltextImagePath` values as clickable links so users can view or download images directly
3. **Pagination notice**: When `total` exceeds the number of returned results, inform the user that more images are available and offer to fetch the next page
4. **Error handling**: When a query fails, explain the reason and suggest verifying the patent ID or publication number
5. **No fabrication**: Never invent patent IDs, publication numbers, or image URLs -- only display data returned by the API
6. **Total count**: Always mention the total number of images available for the patent
## Important Limitations

- **Image limit**: Each request returns a maximum of 100 images
- **Identifier required**: At least one of `patentId` or `patentNumber` must be supplied
- **All parameters are strings**: Even numeric values like `limit` and `offset` must be passed as strings

## User Expression & Scenario Quick Reference

**Applicable** -- Requests involving patent visual content:

| User Says | Scenario |
|-----------|----------|
| "Show me the drawings for patent XX" | Fulltext image retrieval |
| "Get the figures from this patent" | Fulltext image retrieval |
| "Download patent images for XX" | Fulltext image retrieval |
| "What diagrams does patent XX contain" | Fulltext image listing |
| "How many figures are in patent XX" | Image count query |
| "Show me the technical drawings" | Fulltext image retrieval |

**Not applicable** -- Needs beyond patent fulltext images:
- Patent text/abstract/claims search
- Patent family or citation analysis
- Patent legal status queries
- Patent assignee or inventor search
- General image search unrelated to patents

## 算力消耗规则

消耗 81 算力。

> 用户会因算力消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对算力消耗量预期不足时,务必提醒用户,由用户决定是否继续。

**Feedback:**

Auto-detect and report feedback via the Feedback API when any of the following apply:
1. The functionality or purpose described in this skill does not match actual behavior
2. The skill's results do not match the user's intent
3. The user expresses dissatisfaction or praise about this skill
4. Anything you believe could be improved

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, set [LinkFox Skills](https://skill.linkfox.com/).*

© linkfox-ai · MIT · linkfox-ai/linkfox-skills

Similar skills

Everything for Science and research →

From the same set15

linkfox-product-title-analyze Tokenizes product titles and counts word frequencies: scene, audience, material. Useful when you rewrite listings against competitors. CX Codex +1 408installs linkfox-mpstats-ozon-brand-products Pulls every product a brand sells on Ozon with sales, price, rating and lost profit. Handy for auditing a competitor's shelf or your own. CX Codex +1 404installs linkfox-multimodal-product-similarity Compares product main images and sorts a list into visual groups. Useful for spotting near-identical listings or lookalikes from other brands. CX Codex +1 400installs linkfox-zhihuiya-bibliography Pulls bibliographic records from the Zhihuiya patent database by patent ID or publication number: applicants, inventors, classes, citations. CX Codex +1 395installs linkfox-zhihuiya-legal-status A skill that pulls patent legal status and event history from the PatSnap database, for one patent or a hundred at once. CX Codex +1 395installs linkfox-sif-asin-keywords The skill shows which search terms bring traffic to an Amazon product and how that product ranks for each of them. CX Codex +1 393installs linkfox-zhihuiya-simple-bibliography Pulls patent bibliography from the Zhihuiya database by publication number or internal ID: title, abstract, applicants, inventors, IPC and CPC codes. CX Codex +1 390installs linkfox-amazon-policy-feed Pulls Amazon's official policy and regulation updates for sellers: a paged list by site and date, then the full article by id. CX Codex +1 317installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor