Skip to main content

codebolt.orchestration

Tools for managing tasks, agents, and threads in multi-agent orchestration workflows.

Task Management Tools

task_create

Creates a new task.

ParameterTypeRequiredDescription
titlestringYesThe title/name of the task.
descriptionstringNoThe description of the task.
thread_idstringNoThe thread ID for the task.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_create",
{ title: "Implement user authentication", description: "Add JWT-based auth flow", thread_id: "thread-123" }
);

task_update

Updates an existing task.

ParameterTypeRequiredDescription
task_idstringYesThe ID of the task to update.
namestringNoNew name for the task.
completedbooleanNoWhether the task is completed.
statusstringNoTask status (e.g., 'completed', 'pending').

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_update",
{ task_id: "task-456", name: "Updated task name", status: "completed" }
);

task_delete

Deletes a task by its ID.

ParameterTypeRequiredDescription
task_idstringYesThe ID of the task to delete.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_delete",
{ task_id: "task-456" }
);

task_list

Retrieves a list of all tasks.

ParameterTypeRequiredDescription
(none)--This tool takes no parameters.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_list",
{}
);

task_get

Retrieves details of a specific task.

ParameterTypeRequiredDescription
task_idstringYesThe ID of the task to retrieve.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_get",
{ task_id: "task-456" }
);

task_assign

Assigns an agent to a task.

ParameterTypeRequiredDescription
task_idstringYesThe ID of the task.
agent_idstringYesThe ID of the agent to assign.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_assign",
{ task_id: "task-456", agent_id: "agent-789" }
);

task_execute

Executes a task with a specific agent.

ParameterTypeRequiredDescription
task_idstringYesThe ID of the task to execute.
agent_idstringYesThe ID of the agent to execute the task with.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"task_execute",
{ task_id: "task-456", agent_id: "agent-789" }
);

Agent Management Tools

agent_find

Finds agents suitable for a given task.

ParameterTypeRequiredDescription
taskstringYesThe task description to find agents for.
max_resultsnumberNoMaximum number of results (default: 3).

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"agent_find",
{ task: "Write unit tests for authentication module", max_results: 5 }
);

agent_start

Starts an agent with a specific task.

ParameterTypeRequiredDescription
agent_idstringYesThe ID of the agent to start.
taskstringYesThe task for the agent to execute.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"agent_start",
{ agent_id: "agent-789", task: "Review and refactor the login component" }
);

agent_list

Lists all available agents.

ParameterTypeRequiredDescription
(none)--This tool takes no parameters.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"agent_list",
{}
);

agent_details

Retrieves details of specific agents.

ParameterTypeRequiredDescription
agent_listarray of stringsNoList of agent IDs to get details for.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"agent_details",
{ agent_list: ["agent-123", "agent-456"] }
);

Thread Management Tools

thread_create

Creates a new thread with the specified options.

ParameterTypeRequiredDescription
optionsobjectYesThread creation options object containing thread parameters.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_create",
{ options: { name: "Feature Development", priority: "high" } }
);

thread_create_start

Creates and immediately starts a new thread with the specified options.

ParameterTypeRequiredDescription
optionsobjectYesThread creation and start options object containing thread parameters.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_create_start",
{ options: { name: "Urgent Bug Fix", agent_id: "agent-789" } }
);

thread_create_background

Creates a thread in the background and resolves when the agent starts or fails.

ParameterTypeRequiredDescription
optionsobjectYesThread creation options object containing thread parameters.
groupIdstringNoOptional group ID for organizing threads.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_create_background",
{ options: { name: "Background Task" }, groupId: "group-123" }
);

thread_list

Retrieves a list of threads with optional filtering.

ParameterTypeRequiredDescription
optionsobjectNoOptional filtering options for the thread list.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_list",
{ options: { status: "active" } }
);

thread_get

Retrieves detailed information about a specific thread.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to retrieve.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_get",
{ threadId: "thread-123" }
);

thread_start

Starts a thread by its ID.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to start.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_start",
{ threadId: "thread-123" }
);

thread_update

Updates an existing thread with the specified changes.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to update.
updatesobjectYesThe updates to apply to the thread.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_update",
{ threadId: "thread-123", updates: { name: "Updated Thread Name", priority: "low" } }
);

thread_delete

Deletes a thread by its ID.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to delete.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_delete",
{ threadId: "thread-123" }
);

thread_get_messages

Retrieves messages for a specific thread with optional pagination.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to get messages for.
limitnumberNoOptional limit on number of messages to retrieve.
offsetnumberNoOptional offset for pagination.
beforestringNoOptional: include only messages before this timestamp.
afterstringNoOptional: include only messages after this timestamp.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_get_messages",
{ threadId: "thread-123", limit: 50, offset: 0 }
);

thread_update_status

Updates the status of a thread.

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to update status for.
statusstringYesThe new status for the thread.

Example:

const result = await codebolt.tools.executeTool(
"codebolt.orchestration",
"thread_update_status",
{ threadId: "thread-123", status: "completed" }
);

info

The orchestration tools enable complex multi-agent workflows by providing task decomposition, agent discovery and assignment, and thread-based conversation management. Use these tools to coordinate work between multiple AI agents and track task progress across your development pipeline.