Skip to content

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

FieldPurposeGuidance
ArtifactThe particle to install

A .particle file built with particle build --pack. The mesh reads its manifest to show the tools, capabilities and credential slots below.

NameIdentifies the installed particle

Must be unique across installed particles. Agents attach by this name.

CapabilitiesWhat 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

FieldPurposeGuidance
KV workspaceKey/value state

Holds this install's KV state. Shared by every agent that uses this install. Required when the particle declares the kv capability.

MountsFile 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

FieldPurposeGuidance
MethodHow 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

FieldPurposeGuidance
PingHealth check

Calls the particle's ping handler. Results are Healthy, Degraded, Unhealthy or No ping handler.

Replace artifactUpgrade in place

Upload a new .particle. The page shows capability changes for you to accept, and Revert restores the previous artifact.

ToolsBrowse and run tools

The same tool explorer as MCP connections. Run a tool by hand to check credentials and arguments.

On an Agent

FieldPurposeGuidance
FilterWhich tools the agent sees

All tools, Selected tools, or Tools matching a pattern (a regular expression such as ^(read|write)_.*). Expose only what the agent needs.

Installing a particle

  1. Open Tools, then Particles.
  2. Select Install particle.
  3. Upload the .particle file.
  4. Enter a name for the install.
  5. Read the capabilities and accept them.
  6. Choose a Workspace for the KV state and for each mount.
  7. Fill in each credential slot.
  8. 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.ts or Particlefile.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, description and version.
  • capabilities. Use http.allowedHosts for outbound hosts. Write literal hosts and no wildcards. Use filesystem.mounts for file storage and filesystem.temp for temporary files. Use kv: { enabled: true } for key/value state.
  • credentials. Each slot has hosts, required and the allowed methods.
  • tools. Each tool has a description, an inputSchema and a handler.

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