본문으로 건너뛰기
모든 도구

excel_create

문서 · macOS · Windows

효과: 쓰기. 상태: 조건부 제공.

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

macOS

목적

헤더와 선택적 데이터 행이 있는 새 Excel 스프레드시트(.xlsx 파일)를 만듭니다. JSON 숫자(정수와 소수)는 숫자로 기록되므로 SUM()과 차트가 작동하며, JSON 문자열은 숫자처럼 보여도("007", "1e3", " 42") 항상 텍스트로 유지됩니다. 10자리를 넘는 정수 값도 수량이 아니라 CUIT, CBU, 전화번호 같은 식별자이므로 텍스트로 유지됩니다. JSON 불리언은 불리언 셀로 기록됩니다. "="로 시작하는 문자열은 수식이 아니라 텍스트로 기록되며, 셀에 수식을 넣으려면 excel_write_cell을 사용하세요.

필수 입력

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

권한 및 확인

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

영문 정식 기술 스키마 — macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to create",
      "type": "boolean"
    },
    "headers": {
      "description": "Column headers",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "overwrite": {
      "description": "Required (with confirm) to REPLACE a file that already exists at path. Without it an existing file is never touched.",
      "type": "boolean"
    },
    "path": {
      "description": "Output path for the .xlsx file",
      "type": "string"
    },
    "rows": {
      "description": "Array of ROW ARRAYS — each row is itself an array of cell values (optional)",
      "items": {
        "description": "One row: the cell values, in column order",
        "items": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "type": "array"
      },
      "type": "array"
    }
  },
  "required": [
    "path",
    "headers"
  ],
  "type": "object"
}

문서 예시

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

{
  "confirm": false,
  "headers": [
    "Task",
    "Owner"
  ],
  "path": "/Users/demo/Documents/launch-checklist.xlsx"
}

Windows

목적

헤더와 선택적 데이터 행이 있는 새 Excel(.xlsx) 파일을 만듭니다. path에 기존 파일이 있으면 overwrite=true일 때만 대체됩니다.

필수 입력

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

권한 및 확인

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

영문 정식 기술 스키마 — Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to create the file",
      "type": "boolean"
    },
    "headers": {
      "description": "Column headers",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "overwrite": {
      "description": "Required (true) to REPLACE a file that already exists at path. Without it an existing file is refused, never replaced.",
      "type": "boolean"
    },
    "path": {
      "description": "Absolute path for the new .xlsx file",
      "type": "string"
    },
    "rows": {
      "description": "Data rows (array of arrays)",
      "items": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "type": "array"
    }
  },
  "required": [
    "path",
    "headers"
  ],
  "type": "object"
}

문서 예시

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

{
  "confirm": false,
  "headers": [
    "Task",
    "Owner"
  ],
  "path": "C:\\Users\\demo\\Documents\\launch-checklist.xlsx"
}