모든 도구

run_terminal_command

진단 및 시스템 · macOS · Windows

효과: 실행. 상태: 조건부 제공.

‘조건부 제공’은 도구가 버전, 플랫폼, 권한, 계정 또는 설정에 따라 달라질 수 있음을 뜻하며 모든 설치에서 활성화되었다는 의미는 아닙니다.

macOS

목적

사용자의 Mac에서 shell 명령을 실행하고 출력을 반환합니다. 항상 활성 상태이지만 LMCP가 읽기 전용 모드이면 비활성화됩니다. 위험한 명령(sudo, system/home 경로의 재귀 삭제, 디스크 포맷, 종료/재부팅, 다운로드한 스크립트를 shell로 파이프, fork bomb, daemon 제어)은 거부됩니다. 파괴적 작업이므로 먼저 명령을 미리보며 실제 실행에는 confirm:true를 전달하세요. 출력과 실행 시간에는 제한이 있습니다.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마macOS
{
  "properties": {
    "command": {
      "description": "The shell command to run (a single command line, executed with /bin/zsh -lc).",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually run. Without it, a preview of the command is returned.",
      "type": "boolean"
    },
    "timeout_seconds": {
      "description": "Max seconds to run before it is terminated (default 20, max 60).",
      "type": "integer"
    },
    "working_dir": {
      "description": "Optional absolute working directory. Defaults to the user's home directory.",
      "type": "string"
    }
  },
  "required": [
    "command"
  ],
  "type": "object"
}

문서 예시

run_terminal_command 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "command": "echo Hello from LMCP",
  "confirm": false
}

Windows

목적

사용자의 컴퓨터에서 shell 명령을 실행합니다. 위험한 명령(sudo/권한 상승, system 또는 home 경로의 재귀 삭제, 디스크 포맷, 종료/재부팅, 다운로드한 스크립트를 shell로 파이프, fork bomb)은 거부됩니다. 파괴적 작업이므로 먼저 명령을 미리보며 실제 실행에는 confirm:true를 전달하세요. 출력과 실행 시간에는 제한이 있습니다. Windows에서는 `cmd /c`, 그 외에서는 `sh -c`를 통해 실행됩니다.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마Windows
{
  "properties": {
    "command": {
      "description": "The shell command to run (a single command line).",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually run. Without it, a preview of the command is returned.",
      "type": "boolean"
    },
    "timeout_seconds": {
      "description": "Max seconds to run before it is terminated (default 30, max 60).",
      "type": "integer"
    },
    "working_dir": {
      "description": "Optional absolute working directory. Defaults to the user's home directory.",
      "type": "string"
    }
  },
  "required": [
    "command"
  ],
  "type": "object"
}

문서 예시

run_terminal_command 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "command": "echo Hello from LMCP",
  "confirm": false
}