{"version":"2.1.121","anchor":"file-read-encoding-parameter","canonical_anchor":"file-read-encoding-parameter","heading":"File Read encoding Parameter","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121\/e\/file-read-encoding-parameter","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121","markdown":"### File Read `encoding` Parameter\n\n**What**\n\nThe Read tool now accepts an `encoding` parameter, allowing base64 encoding for binary file reads (e.g., images).\n\n**Details**\n\n- Description: \"How to encode the bytes in `contents`. Defaults to utf-8 (lossy for binary); pass 'base64' to read images.\"\n- Response includes `encoding` field: \"Set when the request asked for base64. Absent means utf-8 \u2014 including when an older CLI ignored the request's encoding field.\"\n\n**Evidence**\n\nRead encoding support (search for `\"How to encode the bytes\"`)"}