Ask Kimi (new session) [experimental]
kimi_askAsk Kimi K2 questions or give coding instructions in a new session; set a workspace path to provide repo context for the sub-agent.
Instructions
Best for the Kimi K2 family (Moonshot's Kimi Code, kimi -p), in a NEW session.
EXPERIMENTAL: built without a Kimi account, so no authenticated round-trip has run;
it needs kimi login or an API key in ~/.kimi-code/config.toml (check kimi_status).
Pass workspace=; without it the sub-agent sees no repo. Follow up with
kimi_continue. NO sandbox: it auto-executes every tool call, so trusted prompts
only.
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>"
},
"name": "kimi_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model alias (`-m`, from ~/.kimi-code/config.toml); omit to use config's default_model. Not validated up front (Kimi has no `models` list), so a bad alias surfaces as Kimi's own run-time error. | |
| prompt | Yes | Question or instruction for Kimi. | |
| timeout_s | No | Max seconds to wait for kimi to complete. Default 180. | |
| workspace | No | Working root (kimi's cwd). Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |