init#

Create a starter tool manifest you’ll complete and publish.

Goal#

Scaffold a Tool with agentpm init --kind tool. Plain agentpm init creates an Agent Package. On the next page (agent.json) you’ll adapt the generated entrypoint and interface to your Tool, continuing this same example.

1) Scaffold a tool#

agentpm init --kind tool --name summarize --description "Summarize input text"

Generates a lint-valid agent.json and a runnable main.py:

{
  "$schema": "https://raw.githubusercontent.com/agentpm-dev/cli/refs/tags/apds-v1.0.0/standards/agentpm/1.0.0/manifest.schema.json",
  "standard": {
    "id": "agentpm",
    "version": "1.0.0"
  },
  "kind": "tool",
  "name": "summarize",
  "version": "0.1.0",
  "description": "Summarize input text",
  "entrypoint": {
    "args": ["main.py"],
    "command": "python3"
  },
  "files": ["main.py"],
  "inputs": {},
  "outputs": {},
  "runtime": {
    "type": "python",
    "version": "3"
  }
}
Note

The scaffold already passes lint. Replace its echo behavior and refine its interface for your Tool.

2) Quick sanity checks (optional now)#

You can already verify your setup compiles and is discoverable:

agentpm lint --strict       # schema + semantic checks; strict treats warnings as errors
agentpm publish --dry-run   # build tarball without uploading

What you’ll complete on the next page (agent.json)#

  • entrypoint.command and args (interpreter + script/module)
  • files[] (everything your tool needs at runtime)
  • inputs / outputs (JSON Schema for the tool’s interface)
  • runtime (type and version)
  • confirm name, version, and description

Once those are set, you’ll return to package & publish.