The following agent will retrieve the number of spaces and their names.
from agno.agent import Agentfrom agno.tools.confluence import ConfluenceToolsagent = Agent( name="Confluence agent", tools=[ConfluenceTools()], show_tool_calls=True, markdown=True,)agent.print_response("How many spaces are there and what are their names?")
Toolkit Functions
Parameter
Type
Default
Description
username
str
-
Confluence username. Can also be set via environment variable CONFLUENCE_USERNAME.
password
str
-
Confluence password or API key. Can also be set via environment variables CONFLUENCE_API_KEY or CONFLUENCE_PASSWORD.
url
str
-
Confluence instance URL. Can also be set via environment variable CONFLUENCE_URL.
api_key
str
-
Confluence API key (alternative to password).
ssl_verify
bool
True
If True, verify the SSL certificate.
Toolkit Functions
Function
Description
get_page_content
Gets the content of a specific page.
get_all_space_detail
Gets details about all Confluence spaces.
get_space_key
Gets the Confluence key for the specified space.
get_all_page_from_space
Gets details of all pages from the specified space.
create_page
Creates a new Confluence page with the provided title and body.