Skip to main content
Resources are read-only MCP capabilities. Use them for stable external context such as policies, templates, docs, or product metadata. A resource import exposes an MCP resource to a workflow.
resource project_readme from mcp.tasks.resource.project_readme
Read a resource in a dynamic block:
dynamic {
    readme: read resource.project_readme
}
Resources can also be provided to agents through uses.
agent writer {
    model: model.fast
    uses: [resource.project_readme]
    instruction: "Use the project README to write a short overview."

    output {
        overview: string
    }
}
Use dynamic { read resource.* } when the workflow must always load the resource. Use uses: [resource.*] when the model should decide whether to read it during that step.

See also