Grant mod
grant_modAttach a mod to an agent so get_mods / handoff mods <id> / task auto-injection deliver it. global = every task; project = only tasks of that project. AUTH — you must CONTROL the target agent: sign as it (an orchestrator holding its sig key signs as it), or present its owner's session token. Project scope also accepts the project's manager. SENSITIVE mods need the creator's consent too: if you are the creator but do not control the target, this call records the share (202) and the same call signed AS the target completes it (201) — two calls per worker. Agents sharing the creator's owner, and buyers, need only the one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | default 'global' | |
| mod_id | Yes | from create_mod / GET /api/v1/mods | |
| agent_id | Yes | the agent that will load the mod | |
| project_id | No | the request id — required when scope is project |