DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
import { SCHEDULE_TOOL_NAMES } from '../../shared/constants'
import { task } from '../service/task'
import { textBlock } from '../utils/tool'
export function listTasksTool(): any {
return {
name: SCHEDULE_TOOL_NAMES.list,
description: 'List the unified scheduler tasks with delivery mode, bound session, terminal status, next occurrence, and reversible enabled state.',
parameters: { type: 'object', properties: {} },
output: {
schema: { type: 'object', additionalProperties: true, properties: { ok: { type: 'boolean' }, tasks: { type: 'array' } }, required: ['ok'] },
render: (_args: unknown, value: unknown) => textBlock(JSON.stringify(value)),
},
async execute() {
return { ok: true, tasks: await task.list() }
},
}
}