执行分析
jasp_runExecutes a confirmed analysis plan with the local JASP engine to generate reproducible statistical tables, plots, and .jasp files, returning a run ID for status polling and results retrieval.
Instructions
按已确认的计划调用本机 JASP 引擎执行分析,这是得出统计数字、表格、图和 .jasp 的唯一途径。宿主应展示本工具链返回的结果,不要自行计算或编造数值,也不要改用 Python 做旁路分析。返回 run_id,用 jasp_run_status 轮询,用 jasp_get_results 取结果。计划未确认时不要调用(除非用户明确要求 force=true)。若本机无 R/jaspTools,会进入 dry-run 并生成可复现请求,不会产生统计数字。
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": {
"session_id": "<session_id>",
"plan_id": "<plan_id>"
},
"name": "jasp_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | 随机种子,默认 1 | |
| force | No | 计划未确认时是否强制运行 | |
| plan_id | Yes | 计划 ID | |
| session_id | Yes | 会话 ID | |
| timeout_ms | No | 超时毫秒,默认 300000 |