opencode

Connect OpenCode to Confluence and PostgreSQL

Give OpenCode both Confluence and Postgres and it can work against your database and document the change without a second tool. Postgres holds the tables, schemas, and functions the agent operates on. Confluence is where the migration note or the report belongs. The agent can create a schema, analyze a table, or copy data out, then publish a page that explains the result.

Loading preview…
Opens a workflow with 85 tools ready to use.

Tools OpenCode gets

Pick the operations you want and each becomes a tool the agent can call directly while it works.

Confluence

45 tools
List Pages

List pages, optionally filtered by space, status, or title.

Get Page

Get a single page by ID, optionally including its body.

Create Page

Create a page in a space.

Update Page

Update a page. Requires the new version number (current + 1).

Delete Page

Trash (or permanently purge) a page.

List Pages in Space

List all pages within a given space.

List Child Pages

List the direct child pages of a page.

Get Page Versions

List the version history of a page.

Get Page Ancestors

Get the ancestor pages (breadcrumb path) of a page.

List Blog Posts

List blog posts, optionally filtered by space or status.

Get Blog Post

Get a single blog post by ID, optionally including its body.

Create Blog Post

Create a blog post in a space.

Update Blog Post

Update a blog post. Requires the new version number (current + 1).

Delete Blog Post

Delete a blog post.

List Spaces

List spaces, optionally filtered by key, type, or status.

Get Space

Get a single space by ID.

Create Space

Create a new Confluence space.

List Space Labels

List labels applied to a space.

List Footer Comments

List footer comments on a page.

Create Footer Comment

Add a footer comment to a page or blog post.

Update Footer Comment

Update the body of a footer comment.

Delete Footer Comment

Delete a footer comment.

List Blog Post Footer Comments

List footer comments on a blog post.

List Inline Comments

List inline (highlight) comments on a page.

Create Inline Comment

Create an inline comment anchored to selected text on a page or blog post.

Update Inline Comment

Update the body of an inline comment.

Delete Inline Comment

Delete an inline comment.

List Blog Post Inline Comments

List inline comments on a blog post.

List Attachments

List attachments on a page.

Get Attachment

Get attachment metadata, including its download link.

Upload Attachment

Upload a file as an attachment to a page (v1 multipart API).

Delete Attachment

Delete an attachment.

List Page Labels

List labels attached to a page.

Add Label

Add a label to content (page or blog post). Uses the v1 API.

Remove Label

Remove a label from content (page or blog post). Uses the v1 API.

List Content Properties

List custom content properties (key/value metadata) on a page.

Create Content Property

Set a custom content property on a page.

Update Content Property

Update an existing content property on a page (requires the property ID and current version).

Delete Content Property

Delete a content property from a page.

List Tasks

List inline tasks (checkboxes) across the site or filtered by space/page.

Get Task

Get a single inline task by ID.

Update Task

Update an inline task (e.g., mark as complete or incomplete).

Search (CQL)

Full-text / structured search via CQL (v1). Returns search results.

Search Content (CQL)

CQL search returning content objects only (v1).

Get Current User

Get the authenticated user's account info (v1).

PostgreSQL

40 tools
Run Select Query

Execute a SELECT query and return results as JSON

Execute Sql Statement

Execute an INSERT, UPDATE, DELETE, or other non-SELECT statement

Execute Batch Statements

Execute a statement with multiple parameter sets (batch operations)

Run Query with Cursor

Execute query with cursor for large result sets

Copy Data to Table

Bulk import data to a table using COPY

Copy Data from Table

Bulk export data from a table using COPY

List Schema Tables

List all tables in a schema

List Table Columns

Get column metadata for a table

Get Table Info

Get detailed information about a table including constraints and indexes

Create Table

Create a new table

Drop Table

Drop a table

Truncate Table

Truncate a table (remove all rows)

List Schemas

List all schemas in the database

Create Schema

Create a new schema

Drop Schema

Drop a schema

List Databases

List all databases in the PostgreSQL server

List Schema Indexes

List all indexes in a schema

Create Index

Create an index on a table

Drop Index

Drop an index

List Schema Views

List all views in a schema

Create View

Create a view

Drop View

Drop a view

List Schema Sequences

List all sequences in a schema

Get Sequence Next Value

Get the next value from a sequence (nextval)

Get Sequence Current Value

Get the current value from a sequence (currval)

Set Sequence Value

Set the current value of a sequence (setval)

List Schema Functions

List all functions in a schema

Call Database Function

Call a PostgreSQL function

List Table Constraints

List all constraints for a table

List Schema Triggers

List all triggers in a schema

List Extensions

List all installed extensions

Install Extension

Create/install an extension

List Database Users

List all database users

List Database Roles

List all database roles

Explain Query Plan

Explain a query's execution plan

Vacuum Table

Vacuum a table to reclaim storage and update statistics

Analyze Table Statistics

Analyze a table to update statistics

Begin Transaction

Begin a new transaction

Commit Transaction

Commit the current transaction

Rollback Transaction

Rollback the current transaction

What you can build

Analyze table statistics in Postgres and publish a Confluence page flagging the tables that need an index.
Create a new Postgres schema and index, then document the migration on a Confluence page labeled for the data team.
Copy data from a Postgres table for the monthly report and post the numbers as a Confluence blog post.
Install a Postgres extension inside a transaction and record what changed as an inline comment on the Confluence runbook.

About OpenCode

OpenCode is an open, model-agnostic command-line coding agent. In NoClick it runs hosted and gains your apps as tools, so it can act on real systems rather than just edit files. Wire an integration into the agent and OpenCode can use that app’s operations directly while it works. It is a flexible choice when you want an open agent with broad model support and real tool access.

Open and model-agnostic
Flexible across many underlying models
Good general-purpose tool use
Lightweight to point at a focused task

Frequently asked questions

Open your OpenCode agent in one click

NoClick runs OpenCode for you with Confluence and PostgreSQL wired in as tools. Connect your account and run.