omp_start_task
Starts a long-running local omp task asynchronously in the background and returns a task_id plus active model immediately, avoiding synchronous timeouts. Use it before polling status or cancelling.
Instructions
在后台异步启动一个较耗时的本机 omp 任务,立即返回 task_id 与当前配置的模型,避免同步等待超时。后续配合 omp_task_status 轮询进度或 omp_cancel_task 取消。重要提示:调用本工具及向用户汇报结果时,必须明确告知用户当前通过 omp 调用的模型名称(以返回结果中的模型提示行为准)。
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": {
"prompt": "<prompt>",
"cwd": "<cwd>"
},
"name": "omp_start_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | 目标项目目录的绝对路径。 | |
| model | No | 可选,指定本次任务使用的 omp 模型;不传则使用本机 omp 默认模型。 | |
| tools | No | 可选,逗号分隔的 omp 工具列表(仅 read_only=false 时生效)。 | |
| prompt | Yes | 任务说明。 | |
| thinking | No | 可选,覆盖本次思考深度。 | |
| read_only | No | 是否以只读模式运行(默认 false)。 | |
| session_id | No | 可选,传入上次返回的 session_id 继续同一会话。 | |
| timeout_seconds | No | 超时时间(秒),默认 900。 |