api-resources
Discover available Kubernetes API resources to manage cluster components through natural language commands.
Instructions
Get available API resources
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:1779-1785 (handler)Handler for the 'api-resources' tool: executes 'kubectl api-resources' command and returns the output as text content.case "api-resources": { const cmd = `kubectl api-resources`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No API resources found" }] }; }
- server.js:620-626 (registration)Registration of the 'api-resources' tool in the tools list, including its name, description, and empty input schema. This list is returned by the ListToolsRequestHandler.name: "api-resources", description: "Get available API resources", inputSchema: { type: "object", properties: {} } },
- server.js:622-625 (schema)Input schema for the 'api-resources' tool: an empty object (no parameters required).inputSchema: { type: "object", properties: {} }