# start_picture_upload

> 사진 설정을 시작하는 AirBuild MCP 도구입니다. 팀 사진, 프로젝트 사진, 에이전트 사진, 그룹 채팅 사진, 채팅 배경화면을 설정합니다.

Source: https://air.build/ko/docs/mcp-tools/start_picture_upload/

`start_picture_upload`는 사진을 설정하는 세 단계 중 첫 단계입니다. 팀 사진, 프로젝트 사진, 에이전트 사진, 그룹 채팅 사진, 채팅 배경화면을 설정할 수 있습니다. 업로드 링크와 바로 쓸 수 있는 명령을 반환합니다. 도구가 이미지를 직접 옮기지는 않습니다. 그 명령으로 바이트를 업로드한 뒤(HTTP PUT 한 번), 같은 입력과 `uploadId`로 [finish_picture_upload](https://air.build/ko/docs/mcp-tools/finish_picture_upload/)를 호출하세요. 그전에는 앱에서 아무것도 바뀌지 않습니다. 팀 사진은 소유자만 설정할 수 있고, 나머지는 팀의 모든 사람이 설정할 수 있습니다.

1. 대상, 이미지 유형, 정확한 바이트 크기로 `start_picture_upload`를 호출합니다.
2. `expiresAt` 전에 `<path-to-image>`를 파일로 바꿔 `howTo`를 실행합니다.
3. [finish_picture_upload](https://air.build/ko/docs/mcp-tools/finish_picture_upload/)를 호출합니다.

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

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | 예 | — | 팀. [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)에서 가져옵니다 |
| `target` | `team`, `project`, `agent`, `group` 또는 `wallpaper` | 예 | — | 어떤 사진인지: [대상](https://air.build/ko/docs/mcp-tools/start_picture_upload/#targets) 참고 |
| `targetId` | string | `team` 외에는 모두 필수 | — | 사진이 속한 프로젝트, 에이전트, 채팅: [대상](https://air.build/ko/docs/mcp-tools/start_picture_upload/#targets) 참고. `team`에는 쓰지 않음 |
| `mediaType` | `image/jpeg`, `image/png` 또는 `image/webp` | 예 | — | 이미지 형식 |
| `byteCount` | 정수, 1 이상 | 예 | — | 이미지의 정확한 바이트 크기. 최대 2 MB(2097152바이트), 배경화면은 최대 8 MB(8388608바이트) |

### 대상

| `target` | 사진 | `targetId` | 권한 |
| --- | --- | --- | --- |
| `team` | 팀 사진 | — | 팀 소유자 |
| `project` | 프로젝트 사진 | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)에서 얻은 `projectId` | 팀의 모든 사람 |
| `agent` | 에이전트 사진 | [list_team_members](https://air.build/ko/docs/mcp-tools/list_team_members/)에서 얻은 `agentId` | 팀의 모든 사람 |
| `group` | 그룹 채팅 사진 | [list_channels](https://air.build/ko/docs/mcp-tools/list_channels/)에서 얻은 그룹 채팅의 `channelId`(`grp.<uuid>`) | 그룹을 볼 수 있는 모든 사람 |
| `wallpaper` | 채팅 배경화면. 채팅에 있는 모두가 봅니다 | [list_channels](https://air.build/ko/docs/mcp-tools/list_channels/)에서 얻은 프로젝트 채팅, 그룹 채팅, 다이렉트 메시지의 `channelId` | 채팅을 볼 수 있는 모든 사람 |

## 결과

| 필드 | 내용 |
| --- | --- |
| `uploadId` | 업로드의 id. [finish_picture_upload](https://air.build/ko/docs/mcp-tools/finish_picture_upload/)에 씁니다 |
| `uploadUrl` | 바이트를 보낼 곳. 비밀로 취급하세요. 이 값을 가진 사람은 누구나 만료 전까지 업로드할 수 있습니다 |
| `expiresAt` | `uploadUrl`이 작동을 멈추는 시각(ISO 8601) |
| `howTo` | 파일을 `uploadUrl`로 업로드하는 `curl` 명령. `<path-to-image>`를 파일로 바꾸세요 |

```json
{
  "uploadId": "00000000-0000-0000-0000-000000000000",
  "uploadUrl": "https://<upload-host>/<path>",
  "expiresAt": "2026-11-20T10:00:00Z",
  "howTo": "curl -sS -X PUT -H 'Content-Type: image/png' --upload-file <path-to-image> 'https://<upload-host>/<path>'"
}
```

## 오류

_기울임꼴_ 단어는 문장 안의 값을 나타냅니다. _Picture_는 `wallpaper`를 제외한 모든 대상에서 `Avatar`이고, `wallpaper`에서는 `Wallpaper`입니다.

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| target is one of team, project, agent, group, wallpaper. | `target`이 다른 값임 | 다섯 가지 중 하나를 사용하세요 |
| targetId is required. | `target`이 `team`이 아닌데 `targetId`가 없음 | 프로젝트, 에이전트, 채팅을 지정하세요: [대상](https://air.build/ko/docs/mcp-tools/start_picture_upload/#targets) 참고 |
| targetId is not a valid id. Use one from the list tools. | `targetId`가 `agentId`도 `channelId`도 아님 | [대상](https://air.build/ko/docs/mcp-tools/start_picture_upload/#targets)에 나온 도구에서 가져오세요 |
| targetId must be a UUID, from the list tools. | `target`이 `project`인데 `targetId`가 UUID가 아님 | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)에서 `projectId`를 가져오세요 |
| An Avatar must contain at least one byte. | `byteCount`가 `0`임(배경화면이면 메시지가 “A Wallpaper”로 시작) | 이미지의 실제 크기를 보내세요 |
| The _Picture_ exceeds the _N_-byte limit. | `byteCount`가 한도를 넘음 | 이미지를 더 작게 만드세요 |
| _Picture_ must be a JPEG, PNG, or WebP image. | `mediaType`이 다른 형식임 | 이미지를 변환하세요 |
| Only the Team's owner can change the Team's picture. | `target`이 `team`인데 소유자가 아님 | 소유자에게 요청하세요 |
| Only a group has a picture of its own. | `target`이 `group`인데 채팅이 프로젝트 채팅이나 다이렉트 메시지임 | 프로젝트는 `target: "project"`를 사용하세요. 다이렉트 메시지에는 사진이 없습니다 |
| Project not found. | 이 팀에 이 `targetId`인 프로젝트가 없음 | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)에서 가져오세요 |
| Team member not found. | 팀에 이 `targetId`인 에이전트가 없음 | [list_team_members](https://air.build/ko/docs/mcp-tools/list_team_members/)에서 가져오세요 |
| Channel not found. | 이 팀에 채팅이 없거나, 채팅을 볼 수 없음 | [list_channels](https://air.build/ko/docs/mcp-tools/list_channels/)에서 얻은 `channelId`를 사용하세요 |
| Image storage isn't available right now. Try again later. | 지금은 사진을 저장할 수 없음 | 나중에 다시 시도하세요 |
| Team not found. | 팀이 존재하지 않거나 내가 그 팀에 속해 있지 않음 | [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)에서 얻은 `teamId`를 사용하세요 |

모든 도구가 반환할 수 있는 오류는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

## 예시

```json
{"name": "start_picture_upload", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "target": "agent", "targetId": "designer", "mediaType": "image/png", "byteCount": 48213}}
```
