import {
  listAgents
} from "./chunk-IUP5IHBD.js";
import "./chunk-CAY57CKF.js";
import "./chunk-KOO5733S.js";

// src/tools/list-agents.ts
async function handleListAgents() {
  const result = await listAgents({ limit: 100 });
  const agents = result.data;
  if (!Array.isArray(agents) || agents.length === 0) {
    return "No agents found in this project.\n\n> Tip: Use `platform_create_agent` to create your first agent.";
  }
  const lines = [];
  lines.push(`# Agents (${result.pagination.total} total)
`);
  for (const a of agents) {
    lines.push(`## ${a.name}`);
    lines.push(`**ID**: ${a.id}`);
    lines.push(`**Type**: ${a.type}`);
    lines.push(`**Updated**: ${a.updatedAt}`);
    lines.push("");
  }
  lines.push(
    "> Use `platform_get_agent` with the ID to see full agent details including config."
  );
  return lines.join("\n");
}
export {
  handleListAgents
};
//# sourceMappingURL=list-agents-6ZNOV7FK.js.map