kdeps-tools-whatsapp_post
v1.0.0Write to the WhatsApp Cloud API: POST a JSON body to https://graph.facebook.com/PATH and return the JSON. Use it to send messages and mark them read. Requires WHATSAPP_ACCESS_TOKEN or the vault secret whatsapp_access_token.
set tools / shelf tools
LLM context: ~146 tokens when loaded (prompt or tool definition)
Where it runs
Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.
- the agent loop builds the request
- the tool definitions are sent to the modeltools/whatsapp_post
- the model calls a tool
- kdeps runs it
- the result goes back to the model
Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update, kdeps upgrade
In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runjudge.Panelagent.runJudgePanelagent.definedAs
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Pin a version with kdeps install tools/whatsapp_post@<version>.
Contents
Write to the WhatsApp Cloud API: POST a JSON body to https://graph.facebook.com/PATH and return the JSON. Use it to send messages and mark them read. Requires WHATSAPP_ACCESS_TOKEN or the vault secret whatsapp_access_token.
| Parameter | Type | Description |
|---|---|---|
| path * | string | The Graph API path with its version. Example: v23.0/PHONE_NUMBER_ID/messages. |
| body * | object | The JSON request body. Example for a reply: {"messaging_product": "whatsapp", "to": "15551234567", "type": "text", "text": {"body": "..."}}. |
HTTP call (declared in YAML, no Go code)
https://graph.facebook.com/{{trimPrefix .args.path "/"}}Offered when set: WHATSAPP_ACCESS_TOKEN | secret:whatsapp_access_token
- Authorization:
- Bearer {{.env.TOKEN}}
- Content-Type:
- application/json
- User-Agent:
- kdeps
Body
{{json .args.body}}
version: 1.0.0
description: 'Write to the WhatsApp Cloud API: POST a JSON body to https://graph.facebook.com/PATH and return the JSON. Use it to send messages and mark them read. Requires WHATSAPP_ACCESS_TOKEN or the vault secret whatsapp_access_token.'
parameters:
path:
type: string
description: 'The Graph API path with its version. Example: v23.0/PHONE_NUMBER_ID/messages.'
required: true
body:
type: object
description: 'The JSON request body. Example for a reply: {"messaging_product": "whatsapp", "to": "15551234567", "type": "text", "text": {"body": "..."}}.'
required: true
http:
env:
TOKEN: [WHATSAPP_ACCESS_TOKEN, "secret:whatsapp_access_token"]
method: POST
# The host is fixed; path only adds to it.
url: 'https://graph.facebook.com/{{trimPrefix .args.path "/"}}'
headers:
Authorization: 'Bearer {{.env.TOKEN}}'
Content-Type: application/json
User-Agent: kdeps
body: '{{json .args.body}}'
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.0 | 11/27/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 11/27/2026