legal_put_social_modules
Import social-media text modules to a WordPress site, inline or from a JSON file. Reapply networks immediately afterward to avoid removing an existing section.
Instructions
Import the social-media text modules, inline or as modules_file (websites/bin/legal-v4/social-media/library.json). Careful: importing while nothing is ticked removes an existing section; call legal_put_social with the current networks right after. Requires cvrt-legal 0.6.0+.
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": {
"site": "<site>"
},
"name": "legal_put_social_modules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| modules | No | Modules object as social-media/library.py emits it | |
| modules_file | No | Absolute path to a local .json modules file |