yeepay_yop_link_detail
Retrieve detailed content from Yeepay's YOP platform subpages or external links by providing the URL for comprehensive information extraction.
Instructions
通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容
Args: url: str - 易宝支付开放平台(YOP)的子页面的URL地址
Returns: str: 易宝支付开放平台(YOP)的各个子页面的详细内容
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- yop_mcp/main.py:149-169 (handler)The handler function for the 'yeepay_yop_link_detail' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function downloads content from the provided URL (absolute or relative to Yeepay YOP platform base URL) using HttpUtils.download_content, handling exceptions by returning an error message.@mcp.tool() def yeepay_yop_link_detail(url: str) -> str: """ 通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容 Args: url: str - 易宝支付开放平台(YOP)的子页面的URL地址 Returns: str: 易宝支付开放平台(YOP)的各个子页面的详细内容 """ try: if url.startswith("http"): return HttpUtils.download_content(url) url = ("https://open.yeepay.com/" + url).replace("//", "/") return HttpUtils.download_content(url) except (ValueError, TypeError, ConnectionError): return "HTTP请求失败, url: " + url
- yop_mcp/main.py:149-149 (registration)The @mcp.tool() decorator registers the yeepay_yop_link_detail function as a tool in the FastMCP server.@mcp.tool()
- yop_mcp/main.py:150-160 (schema)The function signature and docstring define the input schema (url: str) and output (str), used by FastMCP for tool schema.def yeepay_yop_link_detail(url: str) -> str: """ 通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容 Args: url: str - 易宝支付开放平台(YOP)的子页面的URL地址 Returns: str: 易宝支付开放平台(YOP)的各个子页面的详细内容 """