Ask Kimi (new session) [experimental]
kimi_askAsk Kimi Code a coding question or task in a new session and get the agent's final message. Provide a workspace for context-aware answers.
Instructions
Ask Kimi Code (kimi -p) a question or task in a NEW session. EXPERIMENTAL.
⚠️ Community-verified only — built without a Kimi account, so no authenticated
round-trip has ever run and the author cannot verify it. It won't answer until
you authenticate: run kimi login (device-code) or put an API key in
~/.kimi-code/config.toml, then check kimi_status. Returns the agent's final
message, read straight from stdout. Kimi Code is Moonshot's terminal coding
agent (Kimi K2 family); point workspace at a project dir for context-aware
answers.
Kimi print mode has NO sandbox and auto-executes every tool call (like antigravity), so run it only with trusted prompts on trusted content.
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 |