MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runShellCommand

Function runShellCommand

packages/node-sdk/src/rpc.ts:247–260  ·  view source on GitHub ↗
(input: {
    sessionId: string;
    command: string;
    commandId?: string;
  })

Source from the content-addressed store, hash-verified

245 }
246
247 async runShellCommand(input: {
248 sessionId: string;
249 command: string;
250 commandId?: string;
251 }): Promise<{ stdout: string; stderr: string; isError?: boolean; backgrounded?: boolean }> {
252 const agentId = this.interactiveAgentId;
253 const rpc = await this.getRpc();
254 return rpc.runShellCommand({
255 sessionId: input.sessionId,
256 agentId,
257 command: input.command,
258 commandId: input.commandId,
259 });
260 }
261
262 async cancelShellCommand(input: { sessionId: string; commandId: string }): Promise<void> {
263 const agentId = this.interactiveAgentId;

Callers

nothing calls this directly

Calls 2

getRpcMethod · 0.45
runShellCommandMethod · 0.45

Tested by

no test coverage detected