fulander0301/dsh-tool-read-tiff0

dsh-tool-read-tiff

面向模型的 TIFF/TIF 图像读取工具:支持解码各类 TIFF 图像为可视 PNG 并提取完整元数据,可配置视觉终点生成单张描述。

AI 分析

核心用途是让智能体能够读取和解析 TIFF 格式的专业图像。适合需要处理医学、地理等 TIFF 图像数据的用户。使用视觉描述功能需配置 OpenAI 兼容终点。

套件
dsh-tool-read-tiff
版本
0.1.0
授權
MIT
最近更新
2026年8月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fulander0301/dsh-tool-read-tiff

Configuration

The tool works with zero configuration (decode + convert + metadata only). To enable the one-shot visual description, configure the vision endpoint (Settings → 插件配置 → "TIFF reading", or a composition entry):

KeyDefaultMeaning
baseURLOpenAI-compatible endpoint root (e.g. https://dashscope.aliyuncs.com/compatible-mode/v1); trailing slashes stripped
modelVision model id
apiKeyInline key; prefer apiKeyEnv
apiKeyEnvVISION_API_KEYEnvironment-variable name for the API key (shared convention with the describe-image tool)
defaultPromptsee sourceInstruction used when a call omits its prompt
maxBytes67108864TIFF byte bound (local files and downloads alike)
maxOutputTokens1024Output-token cap sent to the vision model
timeoutMs60000Per-call vision request timeout
outputDir— (temp dir for URLs)Where converted PNGs go when the source is not a local file

Configured mount example (cordis.patch.yml / composition file):

- id: read-tiff
  name: 'dsh-tool-read-tiff'
  config:
    baseURL: https://dashscope.aliyuncs.com/compatible-mode/v1
    model: qwen-vl-max
    apiKey: !!js process.env.VISION_API_KEY

Usage

Point the tool at a TIFF and (optionally) give the vision model a precise instruction:

  • "transcribe all text in this scanned fax"
  • "extract the table as CSV"
  • "describe the map features and projection"
  • "what does the label in the corner say"

For multi-page files, call again with page: 1, page: 2, and so on; pages tells you how many there are. When no vision endpoint is configured, the tool still returns everything it decoded plus a convertedPath you can hand to the already-installed describe_image tool.