slack

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

Search Slack messages using the Slack search.messages API for investigative context during alert analysis.

Configuration

Environment Variable CLI Flag Required Description
WARREN_SLACK_TOOL_USER_TOKEN --slack-tool-user-token Yes Slack User token (not Bot token). Requires search:read scope.

Note: The Slack search API requires a User token (xoxp-...), not a Bot token (xoxb-...). Bot tokens do not support the search.messages API.

Available Functions

Function Description
slack_message_search Search Slack messages. Supports parameters: query, sort (score/timestamp), sort_dir (asc/desc), count, page, highlight

Setup

  1. In your Slack workspace, create or use an existing Slack App
  2. Navigate to OAuth & Permissions
  3. Under User Token Scopes, add search:read
  4. Install the app and copy the User OAuth Token (xoxp-...)
  5. Set WARREN_SLACK_TOOL_USER_TOKEN environment variable

The tool is automatically enabled when the user token is configured.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

Action is the warren-side wrapper around github.com/gollem-dev/tools/slack. It binds the CLI flag and warren planner metadata onto the external gollem.ToolSet that carries the search.messages Specs/Run logic.

func (*Action) Configure

func (x *Action) Configure(_ context.Context) error

func (*Action) Description added in v0.14.0

func (x *Action) Description() string

func (*Action) Flags

func (x *Action) Flags() []cli.Flag

func (*Action) Helper

func (x *Action) Helper() *cli.Command

func (*Action) ID added in v0.14.0

func (x *Action) ID() string

func (*Action) LogValue

func (x *Action) LogValue() slog.Value

func (*Action) Prompt

func (x *Action) Prompt(_ context.Context) (string, error)

Prompt returns additional instructions for the system prompt.

func (*Action) Run

func (x *Action) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)

func (*Action) Specs

func (x *Action) Specs(ctx context.Context) ([]gollem.ToolSpec, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL