List Folders
list_foldersRetrieve an API specification's folder hierarchy with parent IDs for nested structure. Optionally pass a folder ID to get that folder and its rowVersion for updates; set project context first.
Instructions
List the folder structure of an API specification. Each folder has a parentFolderId for hierarchical nesting. Pass folderId to get just that one, with its rowVersion for update_folder. Requires project context (call set_context first).
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": {
"specId": "<specId>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | Public ID (GUID) of the API specification | |
| folderId | No | Optional public ID (GUID) of a single folder to return | |
| versionId | No | Optional version ID (GUID) to filter folders by a specific version |