Use this skill when you need to ask another agent a question, seek help, request a plan, request a review, request decision support, or engage in any form of communication. If the user explicitly asks to talk to a specific agent, you should also use this skill.
session_id
list_agents() and chat_with_agent(...) for foreground conversations — do not resort to other methods
submit_to_agent(...) to submit it, then check_agent_task(...) to check the status
Follow this flow strictly when using this skill:
list_agents() and chat_with_agent(...) built-in toolslist_agents() to view the currently available agents, and select one by extracting its IDchat_with_agent(...) to initiate a foreground conversation. Key parameters include:to_agent: the target agent's ID (note: this is the ID, not the name)text: what you want to say to the target agentsession_id: (optional) if you need multiple rounds of conversation with the same agent, pass the same session_id starting from the second round to maintain context continuitytimeout: (optional) estimated time needed for the foreground wait, to avoid premature timeoutssubmit_to_agent(...): submit a background task — only requires to_agent, text, and optionally session_id
check_agent_task(...): check task status by task_id; returns the final result when completelist_agents()
chat_with_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] I need your help determining the approach for this issue.",
)
chat_with_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] Please continue expanding on point 2 based on the previous conclusion.",
session_id="<previous_session_id>",
)
submit_to_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] Please complete this longer task in the background.",
)
check_agent_task(
task_id="<task_id>",
)
[Agent <your_agent_id> requesting]
This helps the other agent clearly identify who is speaking, improving communication efficiency and accuracy.
Reuse sessions wisely: if you need multiple rounds of conversation with the same agent, be sure to pass the same session_id to maintain context continuity. Otherwise, each call is treated as a new conversation, and the other agent may not correctly understand your needs. You can obtain the session_id from the first round's response, for example:
[SESSION: xxx]
where xxx is the session_id value. This value is typically system-generated and has a long, unique format. Save this session_id and continue using it in subsequent conversations with the same agent.