Add accounts to a list
add_to_listAdd accounts to a Mastodon list by providing list ID and account handles. Follow accounts first to avoid errors when adding them to a list.
Instructions
Add accounts to a list. You have to already follow an account before you can put it on a list, which is the error people hit here.
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": {
"id": "<id>",
"accts": "<accts>"
},
"name": "add_to_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The list id. | |
| accts | Yes | Handles or ids to add. | |
| account | No | Which connected account to act as. Matches a full handle (alice@example.social), a bare username (alice), or an instance (example.social). Defaults to the first connected account. Call list_accounts to see them. |