actionsGetActionsCacheUsage
Get GitHub Actions cache usage for a repository
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/actions/cache/usage - Operation ID:
actions/get-actions-cache-usage
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"title": "Actions Cache Usage by repository",
"description": "GitHub Actions Cache Usage by repository.",
"type": "object",
"properties": {
"full_name": {
"description": "The repository owner and name for the cache usage being shown.",
"type": "string",
"example": "octo-org/Hello-World"
},
"active_caches_size_in_bytes": {
"description": "The sum of the size in bytes of all the active cache items in the repository.",
"type": "integer",
"example": 2322142
},
"active_caches_count": {
"description": "The number of active caches in the repository.",
"type": "integer",
"example": 3
}
},
"required": [
"full_name",
"active_caches_size_in_bytes",
"active_caches_count"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsGetActionsCacheUsage', {
# Add required parameters here
})