Particles
A particle is a set of tools, implemented in WebAssembly, that agents can use. It runs inside the mesh in a deny-by-default sandbox. The particle has no network, filesystem or environment access unless its manifest declares it.
Use a particle when a system has no MCP server. Use a particle also when the MCP server of a system floods the model with tools you do not want.
Quick Reference
Install
| Field | Purpose | Guidance |
|---|---|---|
| Artifact | The particle to install | A |
| Name | Identifies the installed particle | Must be unique across installed particles. Agents attach by this name. |
| Capabilities | What the particle may reach | The outbound HTTP hosts the particle may call, as declared in its manifest. You must tick "I accept these capabilities" to install. A particle cannot reach anything it did not declare. |
Storage
| Field | Purpose | Guidance |
|---|---|---|
| KV workspace | Key/value state | Holds this install's KV state. Shared by every agent that uses this install. Required when the particle declares the kv capability. |
| Mounts | File storage | One Workspace per mount the manifest declares. A Global workspace shares files across conversations; a Conversation workspace gives each conversation its own copy. |
Credentials
| Field | Purpose | Guidance |
|---|---|---|
| Method | How a credential is supplied | One per credential slot the manifest declares, chosen from the methods it allows: API key, Basic auth, OAuth 2.0 (Client ID, Client secret, Authorization URL, Device authorization URL, Token URL; supports the device code flow), Raw header, or Signing key. Secrets never enter the particle sandbox; the mesh inserts them on outbound requests to the declared hosts. |
Detail Page
| Field | Purpose | Guidance |
|---|---|---|
| Ping | Health check | Calls the particle's ping handler. Results are Healthy, Degraded, Unhealthy or No ping handler. |
| Replace artifact | Upgrade in place | Upload a new |
| Tools | Browse and run tools | The same tool explorer as MCP connections. Run a tool by hand to check credentials and arguments. |
On an Agent
| Field | Purpose | Guidance |
|---|---|---|
| Filter | Which tools the agent sees | All tools, Selected tools, or Tools matching a pattern (a regular expression such as |
Installing a particle
- Open Tools, then Particles.
- Select Install particle.
- Upload the
.particlefile. - Enter a name for the install.
- Read the capabilities and accept them.
- Choose a Workspace for the KV state and for each mount.
- Fill in each credential slot.
- Select Install.
To give an agent the tools of the particle, open the agent. Under Tools, select Add tool, then Particle. Choose the install, and set the Filter to expose only the tools the agent needs.
Writing a particle
A particle has one source file at the project root. Use one of these:
Particlefile.tsorParticlefile.js. A JavaScript engine compiled to WebAssembly runs it.Particlefile.py. CPython compiled to WebAssembly runs it.- A prebuilt WebAssembly component.
The default export declares these fields:
name,descriptionandversion.capabilities. Usehttp.allowedHostsfor outbound hosts. Write literal hosts and no wildcards. Usefilesystem.mountsfor file storage andfilesystem.tempfor temporary files. Usekv: { enabled: true }for key/value state.credentials. Each slot hashosts,requiredand the allowedmethods.tools. Each tool has adescription, aninputSchemaand ahandler.
The mesh validates the input against the schema before the handler runs.
Build the particle with particle build --pack. The command writes a .particle zip archive. Test the particle on your machine with particle run and particle serve-mcp.
The public repository has the CLI, the type definitions, examples and two agent skills for writing particles: partite-ai/particles.
This example is a minimal particle in TypeScript:
import type { Particle } from "@partite-ai/particle";
export default {
name: "is-odd",
description: "Says whether a number is odd.",
version: "1.0.0",
capabilities: {},
credentials: {},
tools: {
is_odd: {
description: "Return true when n is odd.",
inputSchema: {
type: "object",
properties: { n: { type: "integer", description: "The number to test" } },
required: ["n"],
},
handler: async ({ n }: { n: number }) => ({ odd: n % 2 !== 0 }),
},
},
} satisfies Particle;Related
- Workspaces – storage for KV state and mounts.
- Agents – attach a particle to an agent.
- MCP Connections – the other way to give agents tools.