Agentearth webpage screenshot pdf

From infometa/workbuddyskills · View interactive version

Agentearth webpage screenshot pdf is an AI agent skill from the GitHub repository infometa/workbuddyskills. 使用 DumplingAI 将公开网页渲染为截图或 PDF,保留原始版式与视觉状态,用于证据留存、页面存档和视觉对比;不替代正文抽取或性能审计。

How to use this skill

Skill file

agentearth-webpage-screenshot-pdf

使用 DumplingAI 将公开网页渲染为截图或 PDF,保留原始版式与视觉状态,用于证据留存、页面存档和视觉对比;不替代正文抽取或性能审计。

请直接调用下方列出的 MCP 工具,不要自行向任何 HTTP 接口发送请求;身份认证已由连接器处理。

Available Tools

GetAccountOverview

Returns the authenticated user's account info. Takes no arguments.

Response fields: user_id, user_name, key_name, credit (remaining balance), error_no (0 = success).

Call this directly — without RecommendTools first — whenever the user asks

about their AgentEarth account, user ID, API key name, or credit balance.

RecommendTools - discover tools for a task

| 参数 | 类型 | 必填 | 说明 |

| :--- | :--- | :--- | :--- |

| query | string | 是 | 面向任务的自然语言描述 |

| limit | integer | - | 返回工具数量上限 (1-50),默认 5 |

Returns a list of candidate tools, each with:

Call this before ExecuteTool for any external-tool task. Read every

candidate's input_schema and associated_tools before picking one — some

fields require an ID or code obtained from a companion lookup tool rather

than free text (e.g. a weather tool that needs a location ID resolved by a

geocoding tool first).

ListTools - browse tools without semantic search

| 参数 | 类型 | 必填 | 说明 |

| :--- | :--- | :--- | :--- |

| page | integer | - | 页码,从 1 开始,默认 1 |

| page_size | integer | - | 每页数量 (1-100),默认 20 |

| keyword | string | - | 按名称/描述关键词过滤 |

| sort | string | - | 排序方式 |

Use when the user wants to browse or search tools by name/category rather

than describe a task.

GetToolDetail - inspect one tool by exact name

| 参数 | 类型 | 必填 | 说明 |

| :--- | :--- | :--- | :--- |

| tool_name | string | 是 | 精确工具名 |

Returns the same shape as one entry from RecommendTools/ListTools

(tool_url, description, input_schema, etc). Use when you already know

the exact tool_name (e.g. from associated_tools, or the user named a

specific tool) and don't need semantic search.

ExecuteTool - run a tool

| 参数 | 类型 | 必填 | 说明 |

| :--- | :--- | :--- | :--- |

| tool_url | string | 是 | 从 RecommendTools/GetToolDetail 原样取得的 URL,禁止修改、拼接或重排 |

| params | object | - | 按所选工具 input_schema 构造的入参 |

Must be called after RecommendTools or GetToolDetail. tool_url must be

passed through byte-for-byte as returned — do not edit, re-encode, or

reconstruct it. Build params strictly from the selected tool's

input_schema.properties; validate required, type, enum, and

additionalProperties before calling.

Examples

Workflow

  1. Account questions (user ID, user name, key name, credit balance) → call

GetAccountOverview directly. Skip RecommendTools for these.

  1. External-tool tasks → call RecommendTools with a natural-language

description of the task, or ListTools/GetToolDetail when the user

wants to browse or inspect tools by name.

  1. Review the candidates' tool_url, description, when_to_use, and

input_schema. Pick the best fit by task relevance, schema clarity, and

credit cost; keep a fallback candidate when one exists.

  1. If a required param needs an ID/code from a companion tool (see

associated_tools), call that tool first.

  1. Call ExecuteTool with the exact tool_url and params built from

input_schema.

  1. Never invent a required value (URL, ID, token, code snippet, or other

concrete input) that the user hasn't provided — ask the user instead.

Reading the Result

ExecuteTool's MCP result has an isError field — that is the reliable

success/failure signal, not a fixed field inside the payload:

raw response of the underlying third-party API, in that API's own

format (it may or may not contain something resembling error_no/status

fields of its own — don't assume a single universal shape across tools).

wrapped as <tool_output>...</tool_output>, often followed by a

<platform_annotation> with a suggestion (e.g. "revise your request

parameters based on the upstream provider's error message"). Use that

detail to correct params and retry, or fall back to another candidate

from RecommendTools if the issue isn't fixable from user-provided input.

GetAccountOverview and GetToolDetail/RecommendTools/ListTools (the

AgentEarth-native lookups, as opposed to ExecuteTool passthrough results)

do use error_no == 0 as their own success signal.

Credentials

This connector authorizes over OAuth. On the first AgentEarth tool call,

WorkBuddy opens a browser page: signing in to AgentEarth is itself the

authorization — there is no Allow button to click and **no API key to

obtain, paste, or manage**. The page then says the authorization

succeeded, and the user closes it. Tell the user exactly that when they

ask how to connect.

WorkBuddy stores the resulting token and refreshes it on its own; this skill

never sees or handles it. Never ask the user to paste an API key, token, or

any credential in chat, and never mention the AgentEarth API Keys page as a

setup step.

If a call fails with an auth error, or the connector shows as disconnected or

unauthorized, tell the user to (re)connect AgentEarth from the WorkBuddy

Connector page — the same browser authorization page opens again.

Incorrect Flow

use isError instead.

user for an API key — this connector only ever talks to AgentEarth through

the 5 MCP tools above, and it authenticates over OAuth, not with a key.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.