Put games in lists
set_activity_foldersPut games into lists of the current user (the Lists of My games), take them out or move them from one list to another. With mode "add" the games go into the lists in "folders" and stay in the ones they were in; with "remove" they leave those lists; with "set", the default, each game ends up in exactly the lists in "folders", so "set" with an empty "folders" takes it out of all its lists. To move a game, send "set" with its new lists, or "remove" from one list and then "add" to the other. Taking a game out of a list never deletes it. Lists only show published games: with scope "all" only published games are taken, while games chosen by id go in whatever their state, and the unpublished ones do not show in the list. Ids of lists of other users are ignored. Choose the games by id, at most 50 per call, or with scope "all", every game that matches the filters ("folder", "type", "q2", "state") except those in "exclude": then each call handles one batch, and while "hasMore" is true you call again with "nextCursor" as "before". Same as POST users/{idUser}/activities/ with action=setFolders of the Educaplay REST API, for the current user: its JSON body, or its error body, comes in "response". There "ok" lists the games changed and "failed" the ones that could not be, with the reason.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_activity_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q2 | No | With scope "all": only the games whose title, description or labels contain this text. | |
| ids | No | Ids of the games, from list_my_activities or list_folder_activities. Not used with scope "all". | |
| mode | No | How "folders" is applied: "set" (the default), "add" or "remove". | |
| type | No | With scope "all": only the games of this activity type. | |
| scope | No | "all" to act on every game that matches the filters instead of on "ids". | |
| state | No | With scope "all": only the games in this state. | |
| before | No | With scope "all": "nextCursor" of the previous batch. Omit it for the first batch. | |
| folder | No | With scope "all": only the games of this list. | |
| length | No | With scope "all": games per batch, at most 50, which is also the default. | |
| exclude | No | With scope "all": ids of games to leave out. | |
| folders | No | Ids of the lists, from list_my_folders. |