Media & Image v1.0.0

url-extractor

Extract and validate URLs from text, presenting results in a clear format with brief descriptions and image previews.

openlark 更新于 2026-06-07 1 浏览
下载 SKILL

技能说明

Extract and validate URLs from text, presenting results in a clear format with brief descriptions and image previews.

使用场景

Quickly extract all URLs from text, validate them, and present results in a structured format.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/url-extractor
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 13 kB
SKILL.md text/markdown
---
name: url-extractor
description: Extract and validate URLs from text, presenting results in a clear format with brief descriptions and image previews. 
---

# URL Extractor

Quickly extract all URLs from text, validate them, and present results in a structured format.

## Use Cases

Use when users need to "extract links", "extract URLs", "find web addresses", or "extract links from text".

## Workflow

### 1. Text Analysis & Extraction

Quickly identify and extract all possible URLs from user-provided text:
- Full URLs (starting with `https://` or `http://`)
- Domain-style links (e.g., `example.com/path`)
- Ensure extracted URLs are correctly formatted and not truncated

### 2. Validation

Validate extracted URLs:
- Use the `web_fetch` tool to access each URL and confirm accessibility
- Extract page titles as URL descriptions
- If a URL returns an image (`Content-Type: image/*`), mark it as previewable
- Mark inaccessible URLs as `❌ Unreachable`

### 3. Present Results

Output in a structured format:

```
## Extraction Results

N URLs extracted (M accessible, K unreachable)

| # | URL | Status | Title/Description |
|---|-----|--------|-------------------|
| 1 | https://example.com | ✅ | Example Domain |
| 2 | https://example.com/img.png | ✅ 🖼️ | Image Preview |
| 3 | https://broken.link | ❌ | Unreachable |

### Image Previews
[For image URLs, use the image tool to show previews]
```

## Notes

- Only handle tasks related to URL extraction and validation
- Do not provide detailed analysis of URL content unless explicitly requested
- Extracted URLs must be valid and relevant to the user's query
- For large numbers of URLs (>20), prioritize validating the first 20; list the rest as pending

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。