execute_prompt
Send a prompt to a target session and retrieve the complete reply. Enable include_thinking to access the AI's reasoning when responses are unclear.
Instructions
向目标 session 发送 prompt 并等待完整回复。通过 Kimi Server REST API 直接通信。默认排除思考链内容以节省 token。若回复模糊,可设置 include_thinking 获取思考内容确认意图。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | 已废弃。受 MCP 超时限制,始终即发即返。用 poll_session / list_io_records 轮询进度。 | |
| policy | No | 任务策略。可选值: - "read-only": 只读(禁止写文件/执行命令) - "safe-edit": 安全编辑(禁止 shell 命令,可编辑文件) - "full-access": 全部允许(默认) - 自定义策略文件路径: 如 ".kimi-tunnel/policies/review.yaml" | |
| prompt | Yes | 要发送的 prompt 内容 | |
| auto_mode | No | 启用自动模式:自动审批所有工具调用(scope=session),无需人工确认。默认 false。 | |
| session_id | Yes | 目标 session ID。可从 list_sessions 获取。 | |
| timeout_ms | No | 等待超时毫秒数,默认 5 分钟 | |
| skip_memory | No | 跳过共享内存上下文注入(SPEC 002)。默认 false。 | |
| include_thinking | No | 是否包含 AI 的思考过程。默认 false 以节省 token。当回复模糊或不明确时设为 true。 |