add_account
Add an X (Twitter) account to x-use's configuration by validating and saving account settings, importing a local cookie file, and storing persona and target keyword preferences.
Instructions
Add an account to config/accounts.json (validated, backed up,
atomic). cookie_file is a path ON THIS MACHINE to an exported
x.com cookies JSON; it is validated and copied beside the selected
accounts configuration as <account_id>_cookies.json. Cookie values never pass through
the tool call. persona is freeform markdown describing the
account's voice/engagement style (max 4000 chars).
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": {
"account_id": "<account_id>"
},
"name": "add_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | No | ||
| persona | No | ||
| is_active | No | ||
| account_id | Yes | ||
| cookie_file | No | ||
| target_keywords | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |