Tools / component_map
component_map
Write component substitutions or stage an intake draft.
Generated from @oods/foundry 0.19.0
One of the 26 tools your assistant sees by default.
Use it when connecting React/Vue exports, shadcn source or built Storybook files; use component_map_read to list, resolve or review drafts. Returns staged evidence or write outcomes. apply with draftId requires accepted ids and writes adapters and mappings atomically. create takes one entry, mappings or mappingsPath; create and report-based apply preview unless apply:true. update and delete always write. Full schema: oods://schemas/component_map.input.json.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
action | "apply" | "create" | "update" | "delete" | "draft" | yes | Choose apply, create, update, delete, draft. |
apply | boolean | no | For apply: When true, persist registry mutations. Defaults to dry-run. For create: When true, write changes to disk. Actions: apply, create. |
minConfidence | number | no | Minimum confidence to apply; lower candidates are queued. Actions: apply. |
reportPath | string | no | Filesystem path to a reconciliation_report.json artifact. Actions: apply. |
report | object | no | Reconciliation report. Actions: apply. |
mappings | object[] | no | Create entries, each without apply. All entries are checked before one atomic write. Actions: create. |
mappingsPath | string | no | Absolute path to a JSON document { mappings: [...] }, using the same entry shape. Actions: create. |
substitution | object | no | Component substitution with React/Vue exports and prop translations. Actions: create. |
externalSystem | string | no | External design system name (for example, 'team'). Actions: create, draft. |
externalComponent | string | no | External component name. Actions: create. |
oodsTraits | string[] | no | OODS trait names this component maps to. Actions: create. |
propMappings | object[] | no | Property translations from external to OODS prop names. Actions: create. |
confidence | "auto" | "manual" | no | 'auto' for machine-generated, 'manual' for human-curated. Actions: create. |
metadata | object | no | Mapping metadata. Actions: create. |
disambiguation_decisions | object[] | no | Review decisions to append; does not gate creation. Actions: create. |
preferred_terms | object[] | no | Canonical terms to append. Actions: create. |
capabilities | object[] | no | Capability definitions to append. Actions: create. |
projection_variants | object[] | no | Cross-surface mapping variants to append. Actions: create. |
id | string | no | Mapping ID. Actions: update (required), delete (required). |
updates | object | no | Fields to change: oodsTraits, confidence, propMappings, metadata, substitution. Omitted fields stay unchanged. Actions: update (required). |
source | object | no | Actions: draft (required). |
draftId | string | no | Actions: apply (required). |
accept | string[] | no | Actions: apply (required). |
Outputs
The package ships no output schema for this tool.
A real call
Recorded by this site's harbor run, step mapping, with the published OODS Foundry
0.19.0.
Its input:
{
"action": "create",
"apply": true,
"externalSystem": "harbor",
"externalComponent": "TeamButton",
"oodsTraits": [
"Stateful"
],
"substitution": {
"component": "Button",
"react": {
"package": "@harbor/example-components/react",
"version": "1.0.0",
"export": "TeamButton",
"localPath": "<workspace>/harbor-design-system/team-components",
"props": {
"content": {
"name": "caption"
},
"intent": {
"name": "appearance",
"values": {
"neutral": "quiet",
"primary": "prominent",
"danger": "danger"
}
}
}
},
"vue": {
"package": "@harbor/example-components/vue",
"version": "1.0.0",
"export": "TeamButton",
"localPath": "<workspace>/harbor-design-system/team-components",
"props": {
"content": {
"name": "caption"
},
"intent": {
"name": "appearance",
"values": {
"neutral": "quiet",
"primary": "prominent",
"danger": "danger"
}
}
}
}
}
} Its result:
{
"status": "ok",
"mapping": {
"id": "harbor-team-button",
"externalSystem": "harbor",
"externalComponent": "TeamButton",
"oodsTraits": [
"Stateful"
],
"substitution": {
"component": "Button",
"react": {
"package": "@harbor/example-components/react",
"version": "1.0.0",
"export": "TeamButton",
"localPath": "<workspace>/harbor-design-system/team-components",
"props": {
"content": {
"name": "caption"
},
"intent": {
"name": "appearance",
"values": {
"neutral": "quiet",
"primary": "prominent",
"danger": "danger"
}
}
},
"passthrough": true
},
"vue": {
"package": "@harbor/example-components/vue",
"version": "1.0.0",
"export": "TeamButton",
"localPath": "<workspace>/harbor-design-system/team-components",
"props": {
"content": {
"name": "caption"
},
"intent": {
"name": "appearance",
"values": {
"neutral": "quiet",
"primary": "prominent",
"danger": "danger"
}
}
},
"passthrough": true
}
},
"confidence": "manual",
"metadata": {
"createdAt": "2026-11-23T16:07:01.485Z"
}
},
"etag": "0591660b2f1390d73e5452d701686f87308743b564af67ed879b56de733386aa",
"applied": true
}