list-templates
Retrieve available pod templates from the RunPod API to configure and deploy cloud computing instances.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:494-505 (handler)Implementation of the 'list-templates' tool handler. It is registered inline with no input schema. The handler performs a GET request to '/templates' using the shared runpodRequest helper and returns the result as a JSON-formatted text message.server.tool('list-templates', {}, async () => { const result = await runpodRequest('/templates'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; });
- src/index.ts:494-505 (registration)Registration of the 'list-templates' tool using server.tool() with empty schema and inline handler.server.tool('list-templates', {}, async () => { const result = await runpodRequest('/templates'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; });