list_compartments
Retrieve a list of compartments within an Oracle Cloud Infrastructure tenancy or parent compartment, with filtering options for subtree and pagination.
Instructions
List compartments under a parent (default: tenancy).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_compartments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | ||
| limit | No | ||
| page | No | ||
| subtree | No |