Create, manage, and interact with AI agents and their conversations
Server path:/agent-management | Type: Embedded | PCID required: NoCreate agents, start conversations, and retrieve artifacts.For a guided walkthrough, see the Agent Management guide.
Create a new agent with instructions, tool access, and optional workflow bindings.Parameters:
Parameter
Type
Required
Description
name
string
Yes
Display name for the agent
description
string
Yes
Description of what the agent does
instructions
string
Yes
System prompt that guides the agent’s behavior
outputSchema
string
No
JSON schema for structured agent output
servers
object[]
No
MCP servers and tools to grant access to. Each entry has a name (server name) and tools (map of tool names to config objects — use {} for defaults). Defaults to [].
workflows
object[]
No
Workflows the agent can trigger. Each entry has triggerName, workflowName, triggerUrl, and triggerApiKey.
bindToWorkflow
object
No
Bind the agent to a workflow after creation. Has automationId and resourceName.
The datastores, filestores, and knowledgeBases parameters exist but are not yet supported. Do not use them.
Response fields:
Field
Type
Description
id
string
Agent ID
name
string
Agent name
description
string
Agent description
instructions
string
Agent system prompt
createdDate
string
Creation timestamp
Show inputSchema
Copy
Ask AI
{ "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "description": "Display name for the agent" }, "description": { "type": "string", "description": "Description of what the agent does" }, "instructions": { "type": "string", "description": "System instructions/prompt for the agent" }, "outputSchema": { "type": "string", "description": "Optional JSON schema for agent output structure" }, "servers": { "type": "array", "description": "MCP servers and tools to grant the agent access to", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Server name" }, "tools": { "type": "object", "description": "Map of tool names to config objects" } } }, "default": [] }, "workflows": { "type": "array", "description": "Workflows the agent can trigger", "items": { "type": "object", "properties": { "triggerName": { "type": "string" }, "workflowName": { "type": "string" }, "triggerUrl": { "type": "string" }, "triggerApiKey": { "type": "string" }, "toolName": { "type": "string" } } }, "default": [] }, "bindToWorkflow": { "type": "object", "description": "Bind this agent to a workflow after creation", "properties": { "automationId": { "type": "string" }, "resourceName": { "type": "string" } } } }, "required": ["name", "description", "instructions"]}
curl -s -X POST "https://mcp.app.pinkfish.ai/agent-management" \ -H "Authorization: Bearer $PINKFISH_TOKEN" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "agent-management_agent_create", "arguments": { "name": "Research Assistant", "description": "An agent that researches topics and summarizes findings", "instructions": "You are a research assistant. When given a topic, search the web and provide a concise summary with sources." } }, "id": 1 }'
Response:
Copy
Ask AI
{ "structuredContent": { "id": "ua_abc123", "name": "Research Assistant", "description": "An agent that researches topics and summarizes findings", "instructions": "You are a research assistant...", "createdDate": "2026-02-15T10:00:00Z" }}
Create a new chat session for an agent without sending a message. Useful when you need a chatId before invoking the agent — for example, to use with code execution artifacts.
You don’t always need chat_create. Calling agent_invoke without a chatId automatically creates a new chat and returns its ID.
Parameters:
Parameter
Type
Required
Description
agentId
string
Yes
ID of the agent to create a chat for
name
string
No
Display name for the chat. Defaults to "Chat with agent <agentId>".
Response fields:
Field
Type
Description
id
string
Chat ID (use as chatId in agent_invoke)
agentId
string
Agent ID this chat is associated with
name
string
Chat display name
createdDate
string
Creation timestamp
Show inputSchema
Copy
Ask AI
{ "type": "object", "properties": { "agentId": { "type": "string", "description": "ID of the agent to create a chat for" }, "name": { "type": "string", "description": "Optional display name for the chat" } }, "required": ["agentId"]}
Clear all messages in a chat. The chat itself is preserved and can be reused — only the conversation history is wiped.Parameters:
Parameter
Type
Required
Description
chatId
string
Yes
ID of the chat to reset
Response fields:
Field
Type
Description
success
boolean
Whether the conversation was successfully reset
chatId
string
ID of the chat that was reset
Show inputSchema
Copy
Ask AI
{ "type": "object", "properties": { "chatId": { "type": "string", "description": "ID of the chat whose conversation history should be reset" } }, "required": ["chatId"]}
Show outputSchema
Copy
Ask AI
{ "type": "object", "properties": { "success": { "type": "boolean", "description": "Whether the conversation was successfully reset" }, "chatId": { "type": "string", "description": "ID of the chat that was reset" } }}
List all artifacts (files) associated with a chat. Artifacts are created by agents during code execution via createArtifact(), or uploaded by users.Parameters:
Parameter
Type
Required
Description
chatId
string
Yes
ID of the chat to list artifacts for
Response fields:
Field
Type
Description
artifacts
object[]
Array of artifact metadata
artifacts[].id
string
Artifact ID
artifacts[].sourceFileName
string
Original file name
artifacts[].mimeType
string
MIME type (e.g. application/pdf)
artifacts[].sourceSizeBytes
number
File size in bytes
artifacts[].url
string
Signed download URL
artifacts[].fileType
string
Artifact type classification
artifacts[].version
number
Version number
artifacts[].versionDate
string
Last update timestamp
Show inputSchema
Copy
Ask AI
{ "type": "object", "properties": { "chatId": { "type": "string", "description": "ID of the chat to list artifacts for" } }, "required": ["chatId"]}
Show outputSchema
Copy
Ask AI
{ "type": "object", "properties": { "artifacts": { "type": "array", "description": "List of artifacts associated with the chat", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Artifact ID" }, "sourceFileName": { "type": "string", "description": "Original file name" }, "mimeType": { "type": "string", "description": "MIME type of the artifact" }, "sourceSizeBytes": { "type": "number", "description": "Artifact size in bytes" }, "url": { "type": "string", "description": "Signed URL to download the artifact" }, "fileType": { "type": "string", "description": "Artifact type classification" }, "version": { "type": "number", "description": "Artifact version number" }, "versionDate": { "type": "string", "description": "Last update timestamp" } } } } }}