MCP 도구

메시지에 첨부할 파일의 업로드를 시작하는 AirBuild MCP 도구입니다. 일회용 업로드 URL과 바이트를 보내는 curl 명령을 응답합니다.

create_attachment_upload는 메시지에 첨부할 파일의 업로드를 시작합니다. 첨부 파일 자리를 예약하고 업로드 URL을 응답하며, MCP 호출로는 파일을 실어 나를 수 없으므로 스스로 바이트를 옮기지는 않습니다. 파일은 HTTP PUT 한 번으로 보내고, complete_attachment_upload로 완료한 뒤, send_message로 첨부합니다. 첨부 파일은 채널 하나가 아니라 팀에 속하며, 메시지로 보내기 전에는 아무도 볼 수 없습니다.

읽기 전용 파괴적 멱등
아니요 아니요 아니요

업로드 단계별 안내

  1. 파일 이름, 미디어 유형, 정확한 바이트 크기로 create_attachment_upload를 호출합니다.
  2. 파일의 바이트를 uploadUrl로 HTTP PUT 한 번에 보내며, Content-Type 헤더를 contentType으로 설정합니다. howTo 필드는 바로 실행할 수 있는 그 명령입니다. <path-to-file>을 파일 경로로 바꾸세요. 업로드 URL에는 Authorization 헤더가 필요 없으며 expiresAt까지 작동합니다.
  3. attachmentId로 complete_attachment_upload를 호출합니다. AirBuild가 바이트가 선언한 내용과 일치하는지 확인합니다.
  4. attachmentId를 attachmentIds에 넣어 send_message에 전달합니다.

입력

입력 유형 필수 기본값 설명
teamId 문자열 (UUID) 예 — 팀. list_teams에서 가져옵니다
fileName 문자열, 1~255자 예 — 사람들이 보는 이름. 예: report.pdf. /, \, 제어 문자는 쓸 수 없고, .이나 ..도 안 됩니다
mediaType 문자열, 최대 255바이트 예 — 파일의 미디어 유형. 예: image/png 또는 application/pdf. 구체적인 유형이어야 하며 image/*는 거부됩니다. 모를 때는 application/octet-stream을 사용하세요
byteCount 정수, 1 이상 예 — 파일의 정확한 바이트 크기. 업로드는 정확히 이 크기여야 합니다

결과

필드 내용
attachmentId 첨부 파일의 id(UUID). complete_attachment_upload에 전달한 뒤 send_message에 전달하세요
uploadUrl 바이트를 PUT할 곳
method PUT
contentType PUT에 넣어야 하는 Content-Type 헤더: 소문자로 쓴 mediaType
expiresAt 업로드 URL이 작동을 멈추는 시각(ISO 8601)
howTo PUT을 수행하는 curl 명령
{
  "attachmentId": "00000000-0000-0000-0000-000000000000",
  "uploadUrl": "https://<upload-host>/<path>",
  "method": "PUT",
  "contentType": "application/pdf",
  "expiresAt": "2026-11-21T09:30:00Z",
  "howTo": "curl -sS -X PUT -H 'Content-Type: application/pdf' --upload-file <path-to-file> 'https://<upload-host>/<path>'"
}

오류

기울임꼴 단어는 문장 안의 값을 나타냅니다.

Message 발생 조건 해결 방법
fileName is required. fileName이 없거나 공백만 있음 파일 이름을 보내세요
byteCount is required. byteCount가 없음 파일 크기를 바이트로 보내세요
An Attachment must contain at least one byte. byteCount is 0 빈 파일은 첨부할 수 없음
This file exceeds the N-byte limit. Choose a smaller file. byteCount가 팀의 파일 하나당 한도를 넘음 더 작은 파일을 보내거나 나눠 보내세요
Attachment fileName must contain 1…255 safe characters without path separators or control characters. fileName이 너무 길거나, . 또는 ..이거나, /, \, 제어 문자를 포함함 일반적인 파일 이름을 보내세요
Attachment mediaType must be a concrete IANA media type such as application/octet-stream. mediaType이 type/subtype 형식이 아니거나 *를 사용함 실제 미디어 유형이나 application/octet-stream을 보내세요
File uploads aren’t available right now. Try again later. 현재 업로드를 사용할 수 없음 나중에 다시 시도하세요
Unable to save this attachment right now. Try again. AirBuild가 첨부 파일을 기록하지 못함 다시 시도하세요
Team not found. 팀이 존재하지 않거나 내가 그 팀에 속해 있지 않음 list_teams에서 얻은 teamId를 사용하세요

모든 도구가 반환할 수 있는 오류는 서버와 로그인에 있습니다.

예시

{"name": "create_attachment_upload", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "fileName": "report.pdf", "mediaType": "application/pdf", "byteCount": 482113}}