Tutorials > Remote control with the job queue > The plugin THE PLUGIN (3/3) return { dest, bytes: res.bytes }; // small: must stay < 192 bytes of JSON } // The job-queue entry point. api.registerAction('save', save); // The manual button uses the same code path. container.querySelector('button').onclick = async () => { const out = container.querySelector('[data-out]'); out.textContent = 'Downloading...'; try { const r = await save({ url: container.querySelector('[data-url]').value.trim() }); out.textContent = `Saved ${r.dest} (${r.bytes} bytes)`; } catch (e) { out.textContent = 'Error: ' + e.message; } }; }); A dest path can be at most ~170 characters to keep the result under 192 bytes. That's why the name is cut to 80 characters. Return ids or short paths, never content. End of this folder.