按路径查询 Swagger 接口
get_api_by_pathRetrieve complete API documentation by exact path and optional HTTP method. Returns recursive schema tree and flat fields for structured understanding.
Instructions
按精确路径和可选 HTTP Method 实时查询完整接口文档,返回递归 schemaTree 和 flatFields。回答用户时必须明确保留 sourceNotice。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docsUrl": "<docsUrl>",
"path": "<path>"
},
"name": "get_api_by_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Swagger paths 中的精确接口路径 | |
| group | No | 多分组文档的精确分组名;只有一个分组时可省略 | |
| method | No | HTTP Method;同一路径有多个方法时必须提供 | |
| docsUrl | Yes | 本次要查询的 doc.html 或 Swagger JSON 完整地址 |