chieflab_set_publishing_targets
ActiveTool of ChiefLab
P79 — set per-workspace publishing target defaults so chiefmo_approve_action({ autoExecute: true }) doesn't need the agent to pass platform / recipient ids on every call. One-time setup per workspace. channelTargets is a map { linkedin: { accountId }, x: { accountId }, email: { fromEmail, recipientListId } }. Pass partial maps to update specific channels; pass `null` for a channel value to remove it. Persisted via deps.publishingTargetsStore when wired, otherwise in-process Map (Vercel function lifetime). Returns the merged channelTargets + storage location ('persistent' or 'in_memory').
Parameters schema
{
"type": "object",
"required": [
"channelTargets"
],
"properties": {
"workspaceId": {
"type": "string",
"description": "Optional workspace id (defaults to the auth workspace)."
},
"channelTargets": {
"type": "object",
"description": "Map of channel → target. Examples: linkedin/x → { accountId: '<zernio_account_id>' }; email → { fromEmail: 'founder@product.com', recipientListId: '<list_id>' }. Pass null as a channel value to remove it."
}
}
}Parent server
ChiefLab
https://github.com/bdentech/chiefmo-agent
1/7 registries