Output format
Every tool returns its result in thecontent[0].text payload. The format depends on what the tool does:
- Data-returning tools return a structured JSON string. The tool serializes the response data with
JSON.stringify(data, null, 2), so the text is valid, indented JSON that a client agent can parse directly. - Action-taking tools return narrative plain text that describes the result of the action.
- Errors return a plain text error string and set
isError: true.
Data-returning tools return JSON, not human-readable narrative text. Parse
content[0].text as JSON instead of scraping formatted output.Data-returning tools
These tools return structured JSON. They cover the current user, list endpoints, and single-object get endpoints.Action-taking tools
These tools perform an action and return narrative plain text describing the result.guild_chatguild_send_messageguild_interrupt_sessionguild_add_workspace_agentguild_remove_workspace_agentguild_publish_contextguild_get_agent_readmeguild_get_agent_code
Related
Prefer the terminal? Useguild api, the authenticated CLI escape hatch that calls the Guild REST API directly and prints the raw JSON response.