It was taught in the Tosefta of Shabbat (Chapter 13, Halacha 5): "One who hunts a domesticated animal, a wild animal, or a bird from an efer that is in the domain of a person, if they were lacking hunting – he is liable. To an efer that is in the domain of a person, if they were (so it should be said) lacking hunting – he is exempt. One who spreads a trap over a domesticated animal, a wild animal, or a bird, even though they enter into it – he is exempt; for a domesticated animal, a wild animal, or a bird, if they were entering into it – he is liable. One who dismantles a domesticated animal or a bird from the trap – he is exempt." Thus far its words. And it appears to me that this is its explanation: that an efer is a wide grazing area fenced all around, and one who hunts from there, even though they cannot exit from there, nevertheless, even to catch them there one must chase after them because the place is wide, and therefore one who hunts from there – is liable, and this is according to the method of the Tosafot that we wrote in section 5. However, even according to what we inferred from the words of the Rambam, that there one is not liable, nevertheless an efer is a very large place, and it is properly considered hunting when he hunts from there. And if he hunts into an efer – he is exempt according to the Torah, for this is like a bird into a house or a deer into a salon where one is exempt, as I wrote in section 3. And one who spreads a trap over a domesticated animal, a wild animal, or a bird, meaning that he spreads a trap so that a domesticated animal, a wild animal, or a bird will enter there, since at this moment they are not here, even though they enter into it afterwards – he is exempt according to the Torah but it is forbidden according to the rabbis. Therefore, it is forbidden to set a trap on Shabbat for mice (Magen Avraham, subsection 9), and also the trap is complete muktzeh and it is forbidden to move it even for the purpose of its use or its place, for one does not use it for anything and it is like pebbles and stones. And afterwards the Tosefta says: 'for a domesticated animal, a wild animal, or a bird', meaning if the animal stood there near the trap at the time of his spreading it and it entered into it – he is liable, for this is like actual hunting and he is liable for a chatat, and even if done intentionally there is no liability of stoning, for he did not know it would enter immediately, and it is only an unintentional act (and so it is explained in Tosafot in the first chapter 17b, beginning with the word 'Ein' see there). And one who dismantles a domesticated animal, a wild animal, or a bird from the trap, meaning they were already caught and he came on Shabbat and opened an opening for them so they could exit, or he destroyed the trap – he is exempt but it is forbidden, as with any destructive act on Shabbat which is forbidden according to the rabbis, and all the laws of this Tosefta are for halacha.
תניא בתוספתא דשבת (פרק י"ג הלכה ה'): "הצד בהמה חיה ועוף מאפר שברשות אדם, אם היו מחוסרין צידה – חייב. לאפר שברשות אדם, אם היו (כן צריך לומר) מחוסרין צידה – פטור. הפורס מצודה על גבי בהמה חיה ועוף, אף על פי שנכנסין לתוכה - פטור לבהמה חיה ועוף, אם היו נכנסין לתוכה – חייב. המפרק בהמה ועוף מן המצודה - פטור" עכ"ל. ונראה לי דהכי פירושו: דאפר הוא מקום מרעה רחב מגודר סביב סביב, והצד משם אף על פי שלא יוכלו לצאת משם, מכל מקום גם לתופשם בשם צריכים לרדוף אחריהם מפני שהמקום רחב, ולכן הצד משם – חייב, וזהו כשיטת התוספות שכתבנו בסעיף ה'. אך אפילו לפי מה שדקדקנו מדברי הרמב"ם, דשם אינו חייב, מכל מקום אפר הוא מקום גדול מאד, ושפיר הוה צידה כשיצוד משם. ואם צד לאפר - פטור מדאורייתא, דזהו כעוף לבית וצבי לטרקלין דפטור, כמ"ש בסעיף ג'. והפורס מצודה על גבי בהמה חיה ועוף, כלומר שפורס מצודה בשביל שתכנס לשם בהמה חיה ועוף, כיון שברגע זו אינם כאן, אף על פי שנכנסין לתוכה אחר כך - פטור מן התורה אבל אסור מדרבנן. ולכן אסור להעמיד מצודה בשבת בשביל עכברים (מג"א סק"ט), וגם המצודה היא מוקצה גמורה ואסור לטלטלה אפילו לצורך גופו ומקומו, דאין משתמשין בה שום דבר והוי כצרורות ואבנים. ואחר כך אומרת התוספתא: 'לבהמה חיה ועוף', כלומר אם הבהמה עמדה שם אצל המצודה בעת פריסתו ונכנסה לתוכה – חייב, דזהו כצידה ממש וחייב חטאת, ואפילו במזיד אין בזה חיוב סקילה, שהרי לא ידע שתכנס תיכף, ואינו אלא שוגג (וכן מפורש בתוספות בפרק קמא י"ז: ד"ה 'אין' ע"ש). והמפרק בהמה חיה ועוף מן המצודה, כלומר שהמה נתפסו כבר ובא הוא בשבת ופתח להם פתח שיצאו, או סתר את המצודה - פטור אבל אסור, כמו בכל מקלקל בשבת שאסור מדרבנן, וכל דיני תוספתא זו הוא להלכה.