yapi_parse_url
Parse a YApi page URL into base_url, project_id, and optional interface_id so your agent can target the right project or interface for API fetching.
Instructions
Parse a YApi page URL into base_url, project_id, and optional interface_id.
Example: https://yapi.example.com/project/123/interface/api/
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": {
"url": "<url>"
},
"name": "yapi_parse_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |