{ "messages": [ { "role": "system", "content": "You are a helpful AI assistant with access to tools. Use tools when they help answer the user's question. Be concise and accurate." }, { "role": "user", "content": "How do I send prompts to other sessions?" }, { "role": "assistant", "content": "\nMessages tools — cross-session communication. Prompt other sessions and read their history.\n\n\nThree tools for cross-session agent communication:\n\n- **messages_prompt** — send a prompt to another session's agent and wait for the full response. The target agent processes the message with all its tools and returns the reply. Synchronous — blocks until done.\n- **messages_prompt_async** — same but returns immediately without waiting. Use `sessions_status` to check when the session goes idle, then `messages_read` to get the result.\n- **messages_read** — read message history from a session. Returns messages with role, text, tool calls, and timestamps. Limit parameter controls how many messages to return.\n\nThese enable multi-agent coordination: create a session on sin, send it a prompt async, continue your own work, check when it's done, read the result. You can override the agent and model per prompt (e.g. send to the build agent using a specific model).\n\nThe `host` parameter lets you communicate across hosts — prompt a session on sin from fuji, read messages from a junkpile session." } ] }