codebolt.state
State management operations for agents and projects.
Available Tools
state_get
- Get global state by keystate_set_agent
- Set agent-specific statestate_get_agent
- Get agent-specific statestate_remove_agent
- Remove agent-specific statestate_update_project
- Update project-specific state
Sample Usage
// Get global state
const getResult = await codebolt.tools.executeTool(
"codebolt.state",
"state_get",
{ key: "all" }
);
// Set agent-specific state
const setAgentResult = await codebolt.tools.executeTool(
"codebolt.state",
"state_set_agent",
{ key: "testKey", value: "testValue", type: "string" }
);
// Get agent-specific state
const getAgentResult = await codebolt.tools.executeTool(
"codebolt.state",
"state_get_agent",
{ variableName: "testKey" }
);
// Remove agent-specific state
const removeAgentResult = await codebolt.tools.executeTool(
"codebolt.state",
"state_remove_agent",
{ key: "testKey", value: "testValue", type: "string" }
);
// Update project-specific state
const updateProjectResult = await codebolt.tools.executeTool(
"codebolt.state",
"state_update_project",
{ key: "projectKey", value: "projectValue" }
);
info
This functionality provides state management for agents and projects through the MCP interface.