Open a friends room
open_friend_roomOpens a private PlaySnack room for one game. Returns one join link (join_url) that everyone in the group uses and a QR page (qr_url) for people in the same place. A room holds up to 10 phones; joining needs no account. The first person to open join_url becomes the host, who starts the game (or spins the wheel); anyone else with the link joins the same room. join_url works only exactly as returned: its query and its #fragment are part of the room. Each call opens a new room. Content games (vote-maker: a poll; wheel-fortune: a roulette wheel) open ready with the list in content, and the server requires the user's approval of that list before it opens a room: without content → status needs_content with content_shape (the fields and an example); with content but without confirmed: true → status needs_confirmation with the cleaned list the room will use (what cleaning changed is in content_notes), and no room is opened; the same content with confirmed: true → the room opens with that list. Other games that are written first return status maker_link with make_url, where the user writes their questions. Other statuses: solo_only (one-phone game, solo_url), rooms_full_today and busy (retry_after), slow (retry_in seconds). 게임 하나로 친구방(최대 10명)을 열고 모두가 쓰는 참여 링크(join_url)와 QR 페이지를 돌려줍니다. 링크를 먼저 연 사람이 방장이에요. 투표(vote-maker)·룰렛(wheel-fortune)은 content의 목록으로 열리고, 정리된 목록을 needs_confirmation으로 먼저 돌려준 뒤 confirmed: true로 다시 불렀을 때만 방이 열려요.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"game_id": "<game_id>"
},
"name": "open_friend_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language (default "ko"). | |
| content | No | The list a content game opens with. vote-maker: {question, options} — e.g. {"question": "점심 뭐 먹지?", "options": ["김치찌개", "돈가스", "쌀국수"]} (2+ options). wheel-fortune: {items, title?} — e.g. {"title": "벌칙", "items": ["노래하기", "커피 사기", "통과"]} (2+ items; each item is short, up to 16 characters). | |
| game_id | Yes | A game_id from recommend_games or list_games. | |
| confirmed | No | true = the user approved the exact list returned with needs_confirmation; the room then opens with it. Absent or false = no room; the cleaned list comes back for approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | ||
| qr_url | No | A page showing the join QR, for people in the same place. | |
| status | Yes | ||
| content | No | needs_confirmation / ok: the cleaned content the room uses, exactly as the room shows it. | |
| join_url | No | The one link for everyone, valid only exactly as returned. Its first opener becomes the host; the group joins with the same link. | |
| make_url | No | maker_link: where the user writes their questions / options, then shares from the app. | |
| retry_in | No | Seconds to wait. | |
| solo_url | No | ||
| max_players | No | ||
| retry_after | No | ISO time when new rooms open again. | |
| content_notes | No | What cleaning changed (cut to the length limit, a repeat or an empty entry dropped). | |
| content_shape | No | needs_content / invalid_content: the content this game takes, with an example. |