kimi_run
Run a non-interactive Kimi Code agent in a specified working directory. Provide a task prompt and absolute path to let the agent read, edit, and execute commands within scoped boundaries.
Instructions
Start a new non-interactive Kimi Code agent session in a working directory. The Kimi CLI may read, edit, and run commands in that directory. Scope the prompt and work_dir carefully.
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>",
"work_dir": "<work_dir>"
},
"name": "kimi_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Task for Kimi Code | |
| work_dir | Yes | Absolute working directory | |
| timeout_seconds | No |