server_get_task
Retrieve configuration details for a scheduled task on a specific server to manage automation settings.
Instructions
Get configuration for a specific scheduled task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | Server ID or UUID | |
| task_id | Yes | Task ID |
Implementation Reference
- src/tools/server-tasks.ts:21-36 (handler)The `server_get_task` tool is registered and implemented here, using the `client.get` method to fetch task details from the API.
server.tool( "server_get_task", "Get configuration for a specific scheduled task", { server_id: z.string().describe("Server ID or UUID"), task_id: z.string().describe("Task ID"), }, async ({ server_id, task_id }) => { try { const data = await client.get(`/servers/${server_id}/tasks/${task_id}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } }