@zack/slack-post-message
Post or update Slack messages using a compact action surface for agent notifications.
Get started
Install, run, or load this Tool.
01Install
Resolve this exact Tool version and its prepared dependencies.
agentpm install @zack/slack-post-message@0.1.202Run Tool
Send JSON to its declared input contract and receive JSON output.
agentpm run @zack/slack-post-message@0.1.2 --input '{"action":"post_message","channel":"Slack channel ID where the message will be posted or updated.","text":"Primary message text."}'Schema-derived starter input. Replace sample values with your own before running.
This Tool declares required environment variables. Review requirements in Runtime & execution before running it.
ORLoad via SDK
Call the installed Tool through an SDK.
import { load } from '@agentpm/sdk';
const t = await load('@zack/slack-post-message@0.1.2');CLI version & updates
CLI 0.1.36+ reads and preserves standard declarations. New publications require an explicit supported standard; use the latest CLI for current authoring checks. Historical releases remain installable as published. This floor does not establish selected-release installation support or Harness readiness.
Check agentpm --version, then follow the CLI installation and update guide. See the publication compatibility requirements.
Interface
The contract a caller must satisfy, from the authored JSON Schema.
Input
tsstringoptionalSlack timestamp of the message to update.
textstringrequiredPrimary message text.
actionstringrequiredSlack message action to perform.
- enum:
- ["post_message","update_message"]
blocksarrayoptionalOptional Slack block kit payload.
Inspect blocks structure
Optional Slack block kit payload.
Array itemsOne Slack block object.
objectAny JSON object; no fields are specified.
channelstringrequiredSlack channel ID where the message will be posted or updated.
thread_tsstringoptionalOptional Slack thread timestamp for posting a threaded reply.
No other input fields are accepted.
Complete input schema
{
"type": "object",
"required": [
"action",
"channel",
"text"
],
"properties": {
"ts": {
"type": "string",
"description": "Slack timestamp of the message to update."
},
"text": {
"type": "string",
"description": "Primary message text."
},
"action": {
"enum": [
"post_message",
"update_message"
],
"type": "string",
"description": "Slack message action to perform."
},
"blocks": {
"type": "array",
"items": {
"type": "object",
"description": "One Slack block object.",
"additionalProperties": true
},
"description": "Optional Slack block kit payload."
},
"channel": {
"type": "string",
"description": "Slack channel ID where the message will be posted or updated."
},
"thread_ts": {
"type": "string",
"description": "Optional Slack thread timestamp for posting a threaded reply."
}
},
"additionalProperties": false
}Output
Variant 1
oktrueTrue when the Slack API call succeeded.
tsstringSlack timestamp of the created or updated message.
actionstringAction that was executed.
channelstringSlack channel ID returned by Slack.
messageobjectNormalized Slack message payload.
- additionalProperties:
- true
metadataobjectAdditional request metadata such as whether a thread was targeted.
- additionalProperties:
- true
Variant 2
okfalseFalse when validation or the Slack API call failed.
errorobjectStructured error returned by the tool.
- additionalProperties:
- true
Inspect error structure
Structured error returned by the tool.
codestringrequiredStable machine-readable error code.
detailsobjectoptionalOptional structured context about the failure.
- additionalProperties:
- true
messagestringrequiredHuman-readable explanation of the failure.
Complete output schema
{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"action",
"channel",
"ts",
"message",
"metadata"
],
"properties": {
"ok": {
"const": true,
"description": "True when the Slack API call succeeded."
},
"ts": {
"type": "string",
"description": "Slack timestamp of the created or updated message."
},
"action": {
"type": "string",
"description": "Action that was executed."
},
"channel": {
"type": "string",
"description": "Slack channel ID returned by Slack."
},
"message": {
"type": "object",
"description": "Normalized Slack message payload.",
"additionalProperties": true
},
"metadata": {
"type": "object",
"description": "Additional request metadata such as whether a thread was targeted.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false,
"description": "False when validation or the Slack API call failed."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code."
},
"details": {
"type": "object",
"description": "Optional structured context about the failure.",
"additionalProperties": true
},
"message": {
"type": "string",
"description": "Human-readable explanation of the failure."
}
},
"description": "Structured error returned by the tool.",
"additionalProperties": true
}
},
"additionalProperties": false
}
]
}Runtime & execution
What AgentPM provisions and runs on your machine.
- Runtime
- node 20
- Entrypoint
- node dist/index.js
- Timeout
- 30 s
- Packaged files
- 1
Environment
SLACK_BOT_TOKENRequiredSLACK_API_BASE_URLOptionalhttps://slack.com/apiDeclared by the author and read from your environment at run time. AgentPM neither supplies nor proxies credentials. Local runtime readiness is not evaluated here.
Evidence
Health & Security →Reported by the Registry, for this version. A Registry-performed check is a Registry-reported result, not independent verification.
- APDS conformance
- Legacy inference; conformance not established
- Integrity & provenance
4 recorded signals
- Not applicable: Logical release digestRegistry recomputed metadata binding; archive bytes are not re-downloaded. Historical single archives have no logical release digest.Source: canonical release document and stored manifest/resolution/artifact inventory. Observed .
- Author signature verified by RegistryRegistry namespace signer history; Ed25519 and exact statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Registry attestation verified by RegistryRoot-signed Registry key set; exact origin, validity, key history and Ed25519 statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Not evaluated: Dependency byte integrity not evaluatedUse a local verified installation to check the exact graph's downloaded bytes.Source: Registry metadata only. Observed .
- Target support
- 1 artifact · legacy · provisioning not evaluated
- License
- MIT · declared by the author
Source
Legacy manifest: no explicit APDS declaration. Compatibility may be inferred; this is not verified conformance.
Full agent.json · v0.1.2
{
"kind": "tool",
"name": "slack-post-message",
"files": [
"dist/"
],
"inputs": {
"type": "object",
"required": [
"action",
"channel",
"text"
],
"properties": {
"ts": {
"type": "string",
"description": "Slack timestamp of the message to update."
},
"text": {
"type": "string",
"description": "Primary message text."
},
"action": {
"enum": [
"post_message",
"update_message"
],
"type": "string",
"description": "Slack message action to perform."
},
"blocks": {
"type": "array",
"items": {
"type": "object",
"description": "One Slack block object.",
"additionalProperties": true
},
"description": "Optional Slack block kit payload."
},
"channel": {
"type": "string",
"description": "Slack channel ID where the message will be posted or updated."
},
"thread_ts": {
"type": "string",
"description": "Optional Slack thread timestamp for posting a threaded reply."
}
},
"additionalProperties": false
},
"readme": "README.md",
"$schema": "https://raw.githubusercontent.com/agentpm-dev/cli/refs/heads/main/schemas/agentpm.manifest.schema.json",
"license": {
"spdx": "MIT"
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"action",
"channel",
"ts",
"message",
"metadata"
],
"properties": {
"ok": {
"const": true,
"description": "True when the Slack API call succeeded."
},
"ts": {
"type": "string",
"description": "Slack timestamp of the created or updated message."
},
"action": {
"type": "string",
"description": "Action that was executed."
},
"channel": {
"type": "string",
"description": "Slack channel ID returned by Slack."
},
"message": {
"type": "object",
"description": "Normalized Slack message payload.",
"additionalProperties": true
},
"metadata": {
"type": "object",
"description": "Additional request metadata such as whether a thread was targeted.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false,
"description": "False when validation or the Slack API call failed."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code."
},
"details": {
"type": "object",
"description": "Optional structured context about the failure.",
"additionalProperties": true
},
"message": {
"type": "string",
"description": "Human-readable explanation of the failure."
}
},
"description": "Structured error returned by the tool.",
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"runtime": {
"type": "node",
"version": "20"
},
"version": "0.1.2",
"entrypoint": {
"args": [
"dist/index.js"
],
"command": "node",
"timeout_ms": 30000
},
"description": "Post or update Slack messages using a compact action surface for agent notifications.",
"environment": {
"vars": {
"SLACK_BOT_TOKEN": {
"required": true,
"description": "Slack bot token used for message API requests."
},
"SLACK_API_BASE_URL": {
"default": "https://slack.com/api",
"required": false,
"description": "Optional Slack API base URL. Defaults to https://slack.com/api."
}
}
}
}