Skip to main content

manage_localization

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: core  ·  Module: services.tools.manage_localization

Maturity: stable (support status; independent of enabled state, readiness and permissions).

Description​

Inspect optional Unity Localization locale/table identities, shared keys, missing translations, static Smart String selectors and asset GUID references. No runtime formatting, loading or locale activation. inspect requires 1..256 explicit table_paths. For one large table, supply limit (1..4096) or offset. Each page covers shared keys in serialized order and then orphan entries by ID, with findings for those positions. Pages fit 1 MiB. Continue with data.next_offset and expected_revision=data.revision until next_offset is null. argument_names is the caller's available root-selector inventory, not proof of custom formatter or runtime variable behavior. list_locales/list_tables use optional exact paths or bounded Assets discovery. set_string_entry uses key_id for shared keys or key_name for early name-only tables. capabilities reports the native identity, Smart String support and fallback limit. Omit is_smart to preserve it. set_fallbacks replaces explicit fallbacks, refusing cycles. Writes require the asset revision (tables[0].revision for a table) and save the exact asset with native Undo. Revision includes loaded serialization and source bytes; external process races are not excluded. set_asset_entry explicitly refuses: supported package authoring also changes Addressables groups/labels/shared metadata. No asset/table/locale creation, key deletion or implicit Addressables changes.

Parameters​

NameTypeRequiredDescription
actionLiteral['capabilities', 'list_locales', 'list_tables', 'inspect', 'set_string_entry', 'set_asset_entry', 'set_fallbacks']yesExplicit read or correction action.
pathslist[str] | None—Optional exact asset paths for discovery.
table_pathslist[str] | None—Explicit tables to inspect, at most 256.
table_pathstr | None—Exact table asset for correction.
locale_pathstr | None—Exact Locale asset for fallback correction.
key_idstr | None—Existing positive Int64 shared key ID as a decimal string.
valuestr | None—New string value, including an explicit empty value.
is_smartbool | None—Explicit Smart String flag; omit to preserve.
asset_pathstr | None—Asset correction is refused because it requires Addressables authoring.
argument_nameslist[str] | None—Available root selectors for static smart diagnostics.
fallback_locale_pathslist[str] | None—Ordered fallbacks; explicit empty list clears fallback metadata only.
expected_revisionstr | None—Asset revision for correction, or data.revision for an inspection page.
offsetint | None—Page offset.
limitint | None—Page size, 1..100 for discovery or 1..4096 for one-table inspection. Default 50 in paged mode.
key_namestr | None—Exact existing key in a name-only string table.
unity_instancestr | int | None—Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance.

Returns​

A dict containing the Unity response. The exact shape depends on the action.

Examples​

List localization locales in a bounded page before choosing a table or editing a locale-specific entry.

MCP arguments
{
"action": "list_locales",
"limit": 20
}