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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_id": "<server_id>",
"task_id": "<task_id>"
},
"name": "server_get_task"
}
}Input 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 }; } }