Descriptive note about the change that's saved with the version.
workspace
string
if multi-ws
edit_agent_prompt
Field
Type
Required
Description
agentId
string
yes
oldText
string (≥ 1)
yes
Text to replace (must be unique, unless useRegex: true).
newText
string
yes
Replacement text (can be empty to delete).
useRegex
boolean
no
Interprets oldText as a regex. Default false.
workspace
string
if multi-ws
By default it attempts an exact match and, if it doesn't find one, a more flexible one with normalized whitespace. Returns editType: "exact" | "fuzzy" | "regex" to indicate how it resolved.
list_agent_prompt_versions
Field
Type
Default
agentId
string
—
workspace
string
if multi-ws
limit
1-200
50
Sub-agents
Sub-agents are regular workspace agents connected to the parent. Connecting and disconnecting does not affect the referenced agent — it only changes the relationship with the parent.
list_agent_subagents
Field
Type
Required
agentId
string
yes
workspace
string
if multi-ws
list_available_subagents
Field
Type
Required
agentId
string
yes
workspace
string
if multi-ws
Returns every agent in the workspace (except the parent and deleted ones) with an isAlreadyConnected flag.
connect_agent_subagent
Field
Type
Required
Description
agentId
string
yes
Parent agent.
subagentId
string
yes
Agent to connect.
task
"assist" \| "delegate"
no
Default "assist".
status
"active" \| "inactive"
no
Default "inactive".
description
string
no
When to invoke (only with task: "assist").
delegationCriteria
string
no
When to delegate (only with task: "delegate").
completionCriteria
string
no
When to hand control back (only with task: "delegate").
workspace
string
if multi-ws
Returns 409 if the sub-agent is already connected to the parent.
Changing task automatically clears the fields belonging to the previous mode.
disconnect_agent_subagent
Field
Type
Required
agentId
string
yes
subagentId
string
yes
workspace
string
if multi-ws
Removes the connection. It does not delete the referenced sub-agent.
create_agent_subagent
Creates a brand-new agent and connects it as a sub-agent in a single call. If you pass systemPrompt, the sub-agent's prompt version history is initialized automatically.
A sub-agent is just a normal workspace agent, so to manage its prompt use the standard tools get_agent_prompt / write_agent_prompt / edit_agent_prompt with the sub-agent's ID as agentId.
Guardrails
get_agent_guardrails
Field
Type
Required
agentId
string
yes
workspace
string
if multi-ws
update_agent_guardrails
Field
Type
Validation
agentId
string
required
enabled
boolean
—
rules
string[]
maximum 20
message
string
≤ 500 chars
conversationStrikeThreshold
integer
1-10
clientStrikeThreshold
integer
1-10
workspace
string
if multi-ws
All configuration fields are optional — only the ones present are updated.
Assist rules
get_agent_assist_rules
Field
Type
Required
agentId
string
yes
workspace
string
if multi-ws
update_agent_assist_rules
Field
Type
Validation
agentId
string
required
assistanceTriggers
string
≤ 650 chars
assistanceEnabled
boolean
—
waitMessage
string
≤ 500 chars
workspace
string
if multi-ws
Schedule
get_agent_schedule
Field
Type
Required
agentId
string
yes
workspace
string
if multi-ws
update_agent_schedule
Supports per-day merge — days not included in serviceHours are preserved.
Field
Type
Description
agentId
string
required
outOfServiceBehavior
"limited" \| "full" \| "none"
Behavior outside working hours.
serviceHours
object
Partial map of days (monday..sunday) to { availability, start, end }.
Creates entries from files already hosted publicly (fileUrl) or from raw text directly (content, no file). Each file must include either fileUrl or content. Platica downloads/extracts the content and automatically generates a title and description when applicable.
{ "name": "create_agent_knowledge_from_url", "arguments": { "agentId": "QZPHpckDPC58JIVLQA3Z", "files": [ { "fileName": "politica-devoluciones.txt", "fileType": "txt", "content": "Aceptamos devoluciones dentro de los 30 días posteriores a la compra...", "topic": "Devoluciones" } ], "setActive": true }}
ingest_agent_knowledge_from_web
Ingests web URLs. Platica extracts the content and automatically generates a title and description.
Field
Type
Required
agentId
string
yes
urls
string[] (URLs)
yes, at least one
workspace
string
if multi-ws
update_agent_knowledge
Updates an existing entry: appends text to the content, replaces it entirely, changes status/metadata, or reprocesses the original source. Returns 404 if the entry doesn't exist (it doesn't create it).
Appends text at the end of the current content (does not overwrite what exists). Don't combine with content.
appendSeparator
string
Separator between the existing content and the appended text. Default: double line break.
content
string
Directly replaces the entire content of the entry.
topic
string (≤ 30)
Short title.
description
string (≤ 900)
Description.
reprocess
boolean
Reprocess the original source.
skipParsing
boolean
Skip automatic parsing when reprocessing.
workspace
string
if multi-ws
delete_agent_knowledge
Deletes an entry from the agent's knowledge base. The agent can no longer query it.
Field
Type
Required
agentId
string
yes
knowledgeId
string
yes
workspace
string
if multi-ws
REST endpoints without an MCP tool
Some REST API endpoints are not exposed as MCP tools for simplicity or because they require a manual flow:
POST /v1/agents/{agentId}/knowledge/upload — multipart file upload (≤ 20 MB per request). Use the REST API directly; the result (fileUrl) can be passed to create_agent_knowledge_from_url.
POST /v1/agents/{agentId}/knowledge/{knowledgeId}/reparse — reprocess the original source of an entry.
GET /v1/agents/{agentId}/knowledge/{knowledgeId} — fetch a single entry (can be simulated by filtering the result of list_agent_knowledge).
GET /v1/agents/{agentId}/prompt/versions/{versionId} — fetch the contents of a specific prompt version.