get-network-volume
Retrieve details of a specific network volume from the RunPod platform using its unique ID to access configuration and status information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkVolumeId | Yes | ID of the network volume to retrieve |
Implementation Reference
- src/index.ts:649-662 (handler)The handler function for the 'get-network-volume' tool. It makes an API request to retrieve the network volume details using the provided ID and returns the result as a formatted JSON text content block.async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}` ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:644-648 (schema)Zod input schema for the 'get-network-volume' tool, defining the required 'networkVolumeId' parameter.{ networkVolumeId: z .string() .describe('ID of the network volume to retrieve'), },
- src/index.ts:642-663 (registration)Registration of the 'get-network-volume' tool using server.tool(), including inline schema and handler.server.tool( 'get-network-volume', { networkVolumeId: z .string() .describe('ID of the network volume to retrieve'), }, async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}` ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );